mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-12-07 00:00:35 -05:00
Lock Byebug to just the MRI
Here we predicate the installation of Byebug on being on the MRI. This allows us to `bundle install` on alternate platforms like JRuby. Also performs some Gemfile management: add latest MRI and JRuby versions and remove special case Gemfiles.
This commit is contained in:
parent
c3c541363b
commit
dd2bae2057
11
.travis.yml
11
.travis.yml
@ -5,16 +5,9 @@ rvm:
|
|||||||
- 2.0.0
|
- 2.0.0
|
||||||
- 2.1
|
- 2.1
|
||||||
- 2.2
|
- 2.2
|
||||||
|
- 2.3.0
|
||||||
- jruby-19mode
|
- jruby-19mode
|
||||||
|
- jruby-head
|
||||||
gemfile:
|
|
||||||
- gemfiles/default-with-activesupport.gemfile
|
|
||||||
- gemfiles/yajl.gemfile
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
exclude:
|
|
||||||
- rvm: jruby-19mode
|
|
||||||
gemfile: gemfiles/yajl.gemfile
|
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
|
|||||||
18
Gemfile
18
Gemfile
@ -1,2 +1,20 @@
|
|||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
gemspec
|
gemspec
|
||||||
|
|
||||||
|
group :development do
|
||||||
|
gem 'mocha', '~> 0.13.2'
|
||||||
|
gem 'pry'
|
||||||
|
gem 'rake'
|
||||||
|
gem 'shoulda', '~> 3.4.0'
|
||||||
|
gem 'test-unit'
|
||||||
|
|
||||||
|
platforms :mri do
|
||||||
|
# to avoid problems, bring Byebug in on just versions of Ruby under which
|
||||||
|
# it's known to work well
|
||||||
|
if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.0.0')
|
||||||
|
gem 'byebug'
|
||||||
|
gem 'pry-byebug'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
source "https://rubygems.org"
|
|
||||||
gemspec :path => File.join(File.dirname(__FILE__), "..")
|
|
||||||
|
|
||||||
gem 'activesupport'
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
source "https://rubygems.org"
|
|
||||||
gemspec :path => File.join(File.dirname(__FILE__), "..")
|
|
||||||
|
|
||||||
gem 'activesupport'
|
|
||||||
gem 'yajl-ruby'
|
|
||||||
@ -15,19 +15,6 @@ spec = Gem::Specification.new do |s|
|
|||||||
|
|
||||||
s.add_dependency('rest-client', '~> 1.4')
|
s.add_dependency('rest-client', '~> 1.4')
|
||||||
|
|
||||||
s.add_development_dependency('mocha', '~> 0.13.2')
|
|
||||||
s.add_development_dependency('shoulda', '~> 3.4.0')
|
|
||||||
s.add_development_dependency('test-unit')
|
|
||||||
s.add_development_dependency('rake')
|
|
||||||
|
|
||||||
# to avoid problems, bring Byebug in on just versions of Ruby under which
|
|
||||||
# it's known to work well
|
|
||||||
if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.0.0')
|
|
||||||
s.add_development_dependency("byebug")
|
|
||||||
s.add_development_dependency("pry")
|
|
||||||
s.add_development_dependency("pry-byebug")
|
|
||||||
end
|
|
||||||
|
|
||||||
s.files = `git ls-files`.split("\n")
|
s.files = `git ls-files`.split("\n")
|
||||||
s.test_files = `git ls-files -- test/*`.split("\n")
|
s.test_files = `git ls-files -- test/*`.split("\n")
|
||||||
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user