Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rubygems#4922 - JuanitoFatas:fix/4914-gemfile-engine-sy…
…mbol-and-string, r=segiddins Support specify engine by symbol in Gemfile This fixes rubygems#4914. Our test suite did not run with jruby but I have manually verified this patch works. Details can be seen below. <details> <summary>View manual verification details</summary> The spec I added in this PR works with jruby: ``` $ chruby jruby-9.1.2.0 $ ruby -v jruby 9.1.2.0 (2.3.0) 2016-05-26 7357c8f Java HotSpot(TM) 64-Bit Server VM 25.25-b02 on 1.8.0_25-b17 +jit [darwin-x86_64] $ rspec spec/install/gemfile_spec.rb Run options: exclude {:rubygems_master=>true, :git=>"=< 2.8.1", :rubygems=>"=< 2.6.4", :ruby=>"=< 2.3.0", :realworld=>true, :sudo=>true} bundle install with duplicated gems will display a warning with --gemfile finds the gemfile with gemfile set via config uses the gemfile to install uses the gemfile while in a subdirectory with deprecated features reports that lib is an invalid option with engine specified in symbol <--------------------- HERE should not report error <--------------------- HERE Retried examples: 0 Finished in 43.89 seconds (files took 1.68 seconds to load) 6 examples, 0 failures ``` Real-world Gemfile also works after this patch: ``` $ ruby -v jruby 9.1.2.0 (2.3.0) 2016-05-26 7357c8f Java HotSpot(TM) 64-Bit Server VM 25.25-b02 on 1.8.0_25-b17 +jit [darwin-x86_64] $ cat Gemfile source "https://rubygems.org" ruby '2.3.0', :engine => :jruby, engine_version: '9.1.2.0' $ dbundle The Gemfile specifies no dependencies Bundle complete! 0 Gemfile dependencies, 1 gem now installed. Use `bundle show [gemname]` to see where a bundled gem is installed. ``` </details>
- Loading branch information