From 87cf23b6efd4ba4f078ba57b0653474dd4383bed Mon Sep 17 00:00:00 2001 From: danascheider Date: Sat, 28 May 2016 10:15:32 -0700 Subject: [PATCH] Update Gemfile to get wire protocol from git --- Gemfile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 9b44d8e2e4..975c9b60da 100644 --- a/Gemfile +++ b/Gemfile @@ -4,11 +4,16 @@ gemspec unless ENV['CUCUMBER_USE_RELEASED_CORE'] core_path = File.expand_path("../../cucumber-ruby-core", __FILE__) wire_path = File.expand_path("../../cucumber-ruby-wire", __FILE__) - if File.exist?(core_path) && !ENV['CUCUMBER_USE_GIT_CORE'] - gem 'cucumber-core', :path => core_path - gem 'cucumber-wire', :path => wire_path + if File.exist?(core_path) && !ENV["cucumber_use_git_core"] + gem "cucumber-core", :path => core_path else - gem 'cucumber-core', :git => "https://github.com/cucumber/cucumber-ruby-core.git" + gem "cucumber-core", :git => "git://github.com/cucumber/cucumber-ruby-core.git" + end + + if File.exist?(wire_path) && !ENV["CUCUMBER_USE_GIT_CORE"] + gem "cucumber-wire", :path => wire_path + else + gem "cucumber-wire", :git => "git://github.com/cucumber/cucumber-ruby-wire.git" end end