Skip to content

Commit

Permalink
Install gems for rbx platform only when running rbx
Browse files Browse the repository at this point in the history
or bundle install fails on ruby 3 because rubysl ~> 2.0 doesn't support ruby 3
  • Loading branch information
amatsuda committed May 4, 2021
1 parent 2a77263 commit 59dbc12
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 30 deletions.
12 changes: 7 additions & 5 deletions gemfiles/active_record_41.gemfile
Expand Up @@ -18,11 +18,13 @@ platforms :jruby do
gem 'activerecord-jdbcpostgresql-adapter', require: false
gem 'activerecord-jdbcmysql-adapter', require: false
end
platforms :rbx do
gem 'rubysl', '~> 2.0'
gem 'racc'
gem 'minitest'
gem 'rubinius-developer_tools'
if RUBY_ENGINE == 'rbx'
platforms :rbx do
gem 'rubysl', '~> 2.0'
gem 'racc'
gem 'minitest'
gem 'rubinius-developer_tools'
end
end

gemspec path: '../'
12 changes: 7 additions & 5 deletions gemfiles/active_record_42.gemfile
Expand Up @@ -18,11 +18,13 @@ platforms :jruby do
gem 'activerecord-jdbcpostgresql-adapter', require: false
gem 'activerecord-jdbcmysql-adapter', require: false
end
platforms :rbx do
gem 'rubysl', '~> 2.0'
gem 'racc'
gem 'minitest'
gem 'rubinius-developer_tools'
if RUBY_ENGINE == 'rbx'
platforms :rbx do
gem 'rubysl', '~> 2.0'
gem 'racc'
gem 'minitest'
gem 'rubinius-developer_tools'
end
end

gemspec path: '../'
12 changes: 7 additions & 5 deletions gemfiles/active_record_50.gemfile
Expand Up @@ -14,11 +14,13 @@ platforms :jruby do
gem 'activerecord-jdbcpostgresql-adapter', require: false
gem 'activerecord-jdbcmysql-adapter', require: false
end
platforms :rbx do
gem 'rubysl', '~> 2.0'
gem 'racc'
gem 'minitest'
gem 'rubinius-developer_tools'
if RUBY_ENGINE == 'rbx'
platforms :rbx do
gem 'rubysl', '~> 2.0'
gem 'racc'
gem 'minitest'
gem 'rubinius-developer_tools'
end
end

gemspec path: '../'
12 changes: 7 additions & 5 deletions gemfiles/active_record_51.gemfile
Expand Up @@ -14,11 +14,13 @@ platforms :jruby do
gem 'activerecord-jdbcpostgresql-adapter', require: false
gem 'activerecord-jdbcmysql-adapter', require: false
end
platforms :rbx do
gem 'rubysl', '~> 2.0'
gem 'racc'
gem 'minitest'
gem 'rubinius-developer_tools'
if RUBY_ENGINE == 'rbx'
platforms :rbx do
gem 'rubysl', '~> 2.0'
gem 'racc'
gem 'minitest'
gem 'rubinius-developer_tools'
end
end

gemspec path: '../'
12 changes: 7 additions & 5 deletions gemfiles/active_record_52.gemfile
Expand Up @@ -14,11 +14,13 @@ platforms :jruby do
gem 'activerecord-jdbcpostgresql-adapter', require: false
gem 'activerecord-jdbcmysql-adapter', require: false
end
platforms :rbx do
gem 'rubysl', '~> 2.0'
gem 'racc'
gem 'minitest'
gem 'rubinius-developer_tools'
if RUBY_ENGINE == 'rbx'
platforms :rbx do
gem 'rubysl', '~> 2.0'
gem 'racc'
gem 'minitest'
gem 'rubinius-developer_tools'
end
end

gemspec path: '../'
12 changes: 7 additions & 5 deletions gemfiles/active_record_edge.gemfile
Expand Up @@ -23,11 +23,13 @@ platforms :jruby do
gem 'activerecord-jdbcpostgresql-adapter', require: false
gem 'activerecord-jdbcmysql-adapter', require: false
end
platforms :rbx do
gem 'rubysl', '~> 2.0'
gem 'racc'
gem 'minitest'
gem 'rubinius-developer_tools'
if RUBY_ENGINE == 'rbx'
platforms :rbx do
gem 'rubysl', '~> 2.0'
gem 'racc'
gem 'minitest'
gem 'rubinius-developer_tools'
end
end

gemspec path: '../'

0 comments on commit 59dbc12

Please sign in to comment.