diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..224542c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +cache: bundler +sudo: false +matrix: + fast_finish: true +branches: + only: master +rvm: + - 2.0.0 + - 2.1.0 + - 2.2.0 + - 2.3.0 +script: bundle exec rspec diff --git a/Gemfile b/Gemfile index df87cd4..aaacd70 100644 --- a/Gemfile +++ b/Gemfile @@ -1,2 +1,3 @@ source :rubygems -gemspec \ No newline at end of file +gemspec +gem 'rspec-its' \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 2aeea22..1bbb4b7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,20 +8,40 @@ PATH GEM remote: http://rubygems.org/ specs: - diff-lcs (1.1.3) + diff-lcs (1.3) + domain_name (0.5.20170404) + unf (>= 0.0.5, < 1.0.0) fakeweb (1.3.0) - json (1.7.6) - mime-types (1.19) - rest-client (1.6.7) - mime-types (>= 1.16) - rspec (2.7.0) - rspec-core (~> 2.7.0) - rspec-expectations (~> 2.7.0) - rspec-mocks (~> 2.7.0) - rspec-core (2.7.1) - rspec-expectations (2.7.0) - diff-lcs (~> 1.1.2) - rspec-mocks (2.7.0) + http-cookie (1.0.3) + domain_name (~> 0.5) + json (2.1.0) + mime-types (3.1) + mime-types-data (~> 3.2015) + mime-types-data (3.2016.0521) + netrc (0.11.0) + rest-client (2.0.2) + http-cookie (>= 1.0.2, < 2.0) + mime-types (>= 1.16, < 4.0) + netrc (~> 0.8) + rspec (3.7.0) + rspec-core (~> 3.7.0) + rspec-expectations (~> 3.7.0) + rspec-mocks (~> 3.7.0) + rspec-core (3.7.1) + rspec-support (~> 3.7.0) + rspec-expectations (3.7.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.7.0) + rspec-its (1.2.0) + rspec-core (>= 3.0.0) + rspec-expectations (>= 3.0.0) + rspec-mocks (3.7.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.7.0) + rspec-support (3.7.1) + unf (0.1.4) + unf_ext + unf_ext (0.0.7.5) PLATFORMS ruby @@ -30,3 +50,7 @@ DEPENDENCIES fakeweb (>= 1.3.0) mixcloud! rspec (>= 2.7.0) + rspec-its + +BUNDLED WITH + 1.16.1 diff --git a/README.rdoc b/README.rdoc index effbaf0..6c7d83a 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,4 +1,4 @@ -== Mixcloud +== Mixcloud {Build Status}[https://travis-ci.org/actfong/mixcloud] The Mixcloud gem is a ruby wrapper of the Mixcloud.com API. It enables you to create Ruby objects of Mixcloud resources such as Cloudcast, Artist, etc. by providing their API urls. @@ -9,6 +9,10 @@ For more info check This gem has not yet been tested with a Rails app. So it is still pretty much a beta. But feel free to test it, use it, drop me a note if you think something needs to be changed or added, or if something isn't quite working. +== Requirements + +Ruby >= 2.0 is supported, except for 2.4 which is currently broken due an issue with the `fakeweb` gem dependency. Once fakeweb is updated we can update to add support. + == Installation sudo gem install mixcloud diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 2b2732d..291ab0e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,9 +1,10 @@ require 'rspec' require 'mixcloud' require 'fakeweb' +require 'rspec/its' RSpec.configure do |config| - config.color_enabled = true + config.color = true config.formatter = 'documentation' end