From c12b8f0c195bbe59a6d15de04dc33ca03f94392b Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Wed, 9 Jul 2014 10:36:00 +0200 Subject: [PATCH] Lock rest-client to ~> 1.6.0 on Ruby 1.8.7 --- Gemfile | 3 ++- gems.gemspec | 2 +- spec/gems/request_spec.rb | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index f4f9d5f..0765d99 100644 --- a/Gemfile +++ b/Gemfile @@ -17,8 +17,9 @@ group :test do gem 'coveralls', :require => false gem 'json', :platforms => [:rbx, :ruby_19, :ruby_18] gem 'mime-types', '~> 1.25', :platforms => [:jruby, :ruby_18] - gem 'rubocop', '>= 0.23', :platforms => [:ruby_19, :ruby_20, :ruby_21] + gem 'rest-client', '~> 1.6.0', :platforms => [:jruby, :ruby_18] gem 'rspec', '>= 2.11' + gem 'rubocop', '>= 0.23', :platforms => [:ruby_19, :ruby_20, :ruby_21] gem 'simplecov', :require => false gem 'webmock' gem 'yardstick' diff --git a/gems.gemspec b/gems.gemspec index dec3767..13032da 100644 --- a/gems.gemspec +++ b/gems.gemspec @@ -7,7 +7,7 @@ Gem::Specification.new do |spec| spec.add_dependency 'json', '~> 1.8' spec.add_development_dependency 'bundler', '~> 1.0' spec.authors = ['Erik Michaels-Ober'] - spec.description = %q(Ruby wrapper for the RubyGems.org API) + spec.description = 'Ruby wrapper for the RubyGems.org API' spec.email = ['sferik@gmail.com'] spec.files = %w(.yardopts CONTRIBUTING.md LICENSE.md README.md Rakefile gems.gemspec) spec.files = `git ls-files`.split("\n") diff --git a/spec/gems/request_spec.rb b/spec/gems/request_spec.rb index 31c1548..252789d 100644 --- a/spec/gems/request_spec.rb +++ b/spec/gems/request_spec.rb @@ -7,7 +7,7 @@ describe '#get with redirect' do before do - response_body = %q(\r\n302 Found\r\n\r\n

302 Found

\r\n
nginx
\r\n\r\n\r\n) + response_body = '\r\n302 Found\r\n\r\n

302 Found

\r\n
nginx
\r\n\r\n\r\n' response_location = 'https://bundler.rubygems.org/api/v1/dependencies?gems=rails,thor' stub_get('/api/v1/dependencies').