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:
Brandur 2016-03-14 07:58:14 -07:00
parent c3c541363b
commit dd2bae2057
5 changed files with 20 additions and 31 deletions

View File

@ -5,16 +5,9 @@ rvm:
- 2.0.0
- 2.1
- 2.2
- 2.3.0
- jruby-19mode
gemfile:
- gemfiles/default-with-activesupport.gemfile
- gemfiles/yajl.gemfile
matrix:
exclude:
- rvm: jruby-19mode
gemfile: gemfiles/yajl.gemfile
- jruby-head
notifications:
email:

18
Gemfile
View File

@ -1,2 +1,20 @@
source "https://rubygems.org"
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

View File

@ -1,4 +0,0 @@
source "https://rubygems.org"
gemspec :path => File.join(File.dirname(__FILE__), "..")
gem 'activesupport'

View File

@ -1,5 +0,0 @@
source "https://rubygems.org"
gemspec :path => File.join(File.dirname(__FILE__), "..")
gem 'activesupport'
gem 'yajl-ruby'

View File

@ -15,19 +15,6 @@ spec = Gem::Specification.new do |s|
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.test_files = `git ls-files -- test/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }