Skip to content

Commit

Permalink
Fix shared gems to be deduplicated
Browse files Browse the repository at this point in the history
  • Loading branch information
mbj committed Sep 4, 2015
1 parent 2a37b11 commit dfa8a8a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -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__)
3 changes: 3 additions & 0 deletions Gemfile.shared
@@ -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.
1 change: 1 addition & 0 deletions spec/support/corpus.rb
Expand Up @@ -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?
Expand Down
1 change: 1 addition & 0 deletions test_app/Gemfile.rspec3.2
Expand Up @@ -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__)
1 change: 1 addition & 0 deletions test_app/Gemfile.rspec3.3
Expand Up @@ -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.