Skip to content
Permalink
Browse files

Fix shared gems to be deduplicated

  • Loading branch information
mbj committed Sep 4, 2015
1 parent 2a37b11 commit dfa8a8ae6d3b7d54d2ff0cad42940bcf9f745d78
Showing with 7 additions and 0 deletions.
  1. +1 −0 Gemfile
  2. +3 −0 Gemfile.shared
  3. +1 −0 spec/support/corpus.rb
  4. +1 −0 test_app/Gemfile.rspec3.2
  5. +1 −0 test_app/Gemfile.rspec3.3
@@ -3,3 +3,4 @@ source 'https://rubygems.org'
gemspec name: 'mutant'

gem 'devtools', git: 'https://github.com/rom-rb/devtools.git'
eval_gemfile File.expand_path('../Gemfile.shared', __FILE__)
@@ -0,0 +1,3 @@
# Place for shared git sources, used for developing updates to depedencies
# where the git sources (without this file) need to be consistently edited
# into multiple Gemfiles.
@@ -134,6 +134,7 @@ def install_mutant
repo_path.join('Gemfile').open('a') do |file|
file << "gem 'mutant', path: '#{relative}'\n"
file << "gem 'mutant-rspec', path: '#{relative}'\n"
file << "eval_gemfile File.expand_path('#{relative.join('Gemfile.shared')}')\n"
end
lockfile = repo_path.join('Gemfile.lock')
lockfile.delete if lockfile.exist?
@@ -4,3 +4,4 @@ gem 'rspec-core', '~> 3.2.0'
gem 'mutant', path: '../'
gem 'mutant-rspec', path: '../'
gem 'adamantium'
eval_gemfile File.expand_path('../../Gemfile.shared', __FILE__)
@@ -4,3 +4,4 @@ gem 'rspec-core', '~> 3.3.0'
gem 'mutant', path: '../'
gem 'mutant-rspec', path: '../'
gem 'adamantium'
eval_gemfile File.expand_path('../../Gemfile.shared', __FILE__)

0 comments on commit dfa8a8a

Please sign in to comment.
You can’t perform that action at this time.