From 11e0eff473e148c6a47b2901f96d01305beb010e Mon Sep 17 00:00:00 2001 From: szTheory Date: Tue, 10 Apr 2018 16:58:26 -0400 Subject: [PATCH 1/3] update for Ruby 2.2, add Travis CI --- .travis.yml | 14 +++++++++++++ Gemfile | 3 ++- Gemfile.lock | 50 +++++++++++++++++++++++++++++++++------------ spec/spec_helper.rb | 3 ++- 4 files changed, 55 insertions(+), 15 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..53c95d1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +cache: bundler +sudo: false +matrix: + fast_finish: true +branches: + only: master +rvm: + - 1.9.3 + - 2.0.0 + - 2.1.0 + - 2.2.0 + - 2.3.0 + - 2.4.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/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 From c954775c3646b2a0bfbbeda9408adc6593bd2449 Mon Sep 17 00:00:00 2001 From: szTheory Date: Tue, 10 Apr 2018 17:04:57 -0400 Subject: [PATCH 2/3] update Travis CI to remove 1.9.3 and 2.4.0 support. 2.4.0 doesn't work at the moment due to an incompatibility with the current version of fakeweb. --- .travis.yml | 2 -- README.rdoc | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 53c95d1..224542c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,10 +5,8 @@ matrix: branches: only: master rvm: - - 1.9.3 - 2.0.0 - 2.1.0 - 2.2.0 - 2.3.0 - - 2.4.0 script: bundle exec rspec diff --git a/README.rdoc b/README.rdoc index effbaf0..5bf3b20 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,4 +1,4 @@ -== Mixcloud +== Mixcloud [![Build Status](https://travis-ci.org/actfong/mixcloud.svg?branch=master)](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 From e90973f24921aab1f39edfb6436d01f9ea45d5af Mon Sep 17 00:00:00 2001 From: szTheory Date: Tue, 10 Apr 2018 17:06:34 -0400 Subject: [PATCH 3/3] update Travis CI build badge in README for rdoc format --- README.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index 5bf3b20..6c7d83a 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,4 +1,4 @@ -== Mixcloud [![Build Status](https://travis-ci.org/actfong/mixcloud.svg?branch=master)](https://travis-ci.org/actfong/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.