Skip to content

Commit

Permalink
Only support Ruby >= 1.9.3
Browse files Browse the repository at this point in the history
Update the README, Gemfiles, and gemspec to remove all references to
Rubies < 1.9.3.
  • Loading branch information
kjc-stripe committed Nov 4, 2015
1 parent 1593350 commit 7bf660d
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 39 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
language: ruby

rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1
Expand Down
6 changes: 0 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
source "https://rubygems.org"
gemspec

if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('1.9.3')
gem 'i18n', '< 0.7'
gem 'rest-client', '~> 1.6.8'
gem 'activesupport', '~> 3.2'
end
9 changes: 1 addition & 8 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,7 @@ If you want to build the gem from source:

== Requirements

* Ruby 1.8.7 or above. (Ruby 1.8.6 may work if you load
ActiveSupport.) For Ruby versions before 1.9.2, you'll need to add this to your Gemfile:

if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('1.9.2')
gem 'rest-client', '~> 1.6.8'
end


* Ruby 1.9.3 or above.
* rest-client, json

== Bundler
Expand Down
8 changes: 1 addition & 7 deletions gemfiles/default-with-activesupport.gemfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
source "https://rubygems.org"
gemspec :path => File.join(File.dirname(__FILE__), "..")

if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('1.9.3')
gem 'i18n', '< 0.7'
gem 'rest-client', '~> 1.6.8'
gem 'activesupport', '~> 3.2'
else
gem 'activesupport'
end
gem 'activesupport'
9 changes: 1 addition & 8 deletions gemfiles/json.gemfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
source "https://rubygems.org"
gemspec :path => File.join(File.dirname(__FILE__), "..")

if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('1.9.3')
gem 'i18n', '< 0.7'
gem 'rest-client', '~> 1.6.8'
gem 'activesupport', '~> 3.2'
else
gem 'activesupport'
end

gem 'activesupport'
gem 'json'
9 changes: 1 addition & 8 deletions gemfiles/yajl.gemfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
source "https://rubygems.org"
gemspec :path => File.join(File.dirname(__FILE__), "..")

if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('1.9.3')
gem 'i18n', '< 0.7'
gem 'rest-client', '~> 1.6.8'
gem 'activesupport', '~> 3.2'
else
gem 'activesupport'
end

gem 'activesupport'
gem 'yajl-ruby'
1 change: 1 addition & 0 deletions stripe.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ require 'stripe/version'
spec = Gem::Specification.new do |s|
s.name = 'stripe'
s.version = Stripe::VERSION
s.required_ruby_version = '>= 1.9.3'
s.summary = 'Ruby bindings for the Stripe API'
s.description = 'Stripe is the easiest way to accept payments online. See https://stripe.com for details.'
s.authors = ['Ross Boucher', 'Greg Brockman']
Expand Down

0 comments on commit 7bf660d

Please sign in to comment.