Skip to content

Commit

Permalink
Require Ruby 1.9.3 or higher
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Jul 22, 2014
1 parent deafd02 commit 243fcb7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 20 deletions.
15 changes: 6 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
bundler_args: --without development
env:
global:
- JRUBY_OPTS="$JRUBY_OPTS --debug"
language: ruby
rvm:
- 1.8.7
- 1.9.3
- 2.0.0
- 2.1.0
- 2.1
- jruby-19mode
- jruby-head
- rbx-2
- ruby-head
matrix:
include:
- rvm: jruby-18mode
env: JRUBY_OPTS="$JRUBY_OPTS --debug"
- rvm: jruby-19mode
env: JRUBY_OPTS="$JRUBY_OPTS --debug"
- rvm: jruby-head
env: JRUBY_OPTS="$JRUBY_OPTS --debug"
allow_failures:
- rvm: jruby-head
- rvm: ruby-head
Expand Down
9 changes: 1 addition & 8 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,13 @@ gem 'jruby-openssl', :platforms => :jruby

group :development do
gem 'pry'
platforms :ruby_19, :ruby_20 do
gem 'pry-debugger'
gem 'pry-stack_explorer'
end
end

group :test do
gem 'backports'
gem 'coveralls'
gem 'json', :platforms => [:rbx, :ruby_19, :ruby_18]
gem 'mime-types', '~> 1.25', :platforms => [:jruby, :ruby_18]
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 'rubocop', '>= 0.23'
gem 'simplecov', '>= 0.9'
gem 'webmock'
gem 'yardstick'
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ Ruby wrapper for the RubyGems.org API.
This library aims to support and is [tested against][travis] the following Ruby
implementations:

* Ruby 1.8.7
* Ruby 1.9.2
* Ruby 1.9.3
* Ruby 2.0.0
* Ruby 2.1.0
Expand Down
1 change: 1 addition & 0 deletions gems.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Gem::Specification.new do |spec|
spec.licenses = %w(MIT)
spec.name = 'gems'
spec.require_paths = %w(lib)
spec.required_ruby_version = '>= 1.9.3'
spec.summary = spec.description
spec.test_files = Dir.glob('spec/**/*')
spec.version = Gems::VERSION
Expand Down
2 changes: 1 addition & 1 deletion lib/gems/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def request(method, path, data, content_type, request_host = host) # rubocop:dis
end

def hash_to_query_string(hash)
hash.keys.inject('') do |query_string, key|
hash.keys.each_with_object('') do |key, query_string|
query_string << '&' unless key == hash.keys.first
query_string << "#{URI.encode(key.to_s)}=#{URI.encode(hash[key])}"
end
Expand Down

0 comments on commit 243fcb7

Please sign in to comment.