[vagrant] Disable development dependencies
Vít Ondruch
vondruch at fedoraproject.org
Wed Jan 21 13:37:58 UTC 2015
commit d6735a9c1822dbeb09b2adbb787ad624b1dec155
Author: Vít Ondruch <vondruch at redhat.com>
Date: Wed Nov 5 12:05:40 2014 +0100
Disable development dependencies
They have to be disabled for runtime, otherwise Bundler
tries to consider them when resolving dependencies.
(https://github.com/bundler/bundler/issues/3231)
vagrant-1.6.5-fix-dependencies.patch | 42 +++++++++++----------------------
1 files changed, 14 insertions(+), 28 deletions(-)
---
diff --git a/vagrant-1.6.5-fix-dependencies.patch b/vagrant-1.6.5-fix-dependencies.patch
index 8c2573b..85046ed 100644
--- a/vagrant-1.6.5-fix-dependencies.patch
+++ b/vagrant-1.6.5-fix-dependencies.patch
@@ -13,27 +13,6 @@ index 21630e1..ac28e04 100755
puts "Vagrant #{Vagrant::VERSION}"
exit 0
end
-diff --git a/lib/vagrant.rb b/lib/vagrant.rb
-index 26ed018..fd0da8c 100644
---- a/lib/vagrant.rb
-+++ b/lib/vagrant.rb
-@@ -72,10 +72,12 @@ global_logger.info("RubyGems version: #{Gem::VERSION}")
- ENV.each do |k, v|
- global_logger.info("#{k}=#{v.inspect}") if k =~ /^VAGRANT_/
- end
--global_logger.info("Plugins:")
--Bundler.definition.specs_for([:plugins]).each do |spec|
-- global_logger.info(" - #{spec.name} = #{spec.version}")
--end
-+# This forces Bundler to load development dependencies. Seem to be Bundler
-+# issue: https://github.com/bundler/bundler/issues/3231
-+#global_logger.info("Plugins:")
-+#Bundler.definition.specs_for([:plugins]).each do |spec|
-+# global_logger.info(" - #{spec.name} = #{spec.version}")
-+#end
-
-
- # We need these components always so instead of an autoload we
diff --git a/lib/vagrant/bundler.rb b/lib/vagrant/bundler.rb
index 05867da..ea8c056 100644
--- a/lib/vagrant/bundler.rb
@@ -76,10 +55,10 @@ index 3020c7b..c7b11b9 100644
if Vagrant::Util::Platform.windows?
diff --git a/vagrant.gemspec b/vagrant.gemspec
-index c4131b2..4039e53 100644
+index c4131b2..0d7f8d6 100644
--- a/vagrant.gemspec
+++ b/vagrant.gemspec
-@@ -15,26 +15,33 @@ Gem::Specification.new do |s|
+@@ -15,27 +15,38 @@ Gem::Specification.new do |s|
s.required_rubygems_version = ">= 1.3.6"
s.rubyforge_project = "vagrant"
@@ -107,19 +86,26 @@ index c4131b2..4039e53 100644
- # We lock this down to avoid compilation issues.
- s.add_dependency "nokogiri", "= 1.6.3.1"
+ s.add_dependency "nokogiri"
-+
-+ # This dependency is typically provided by listen, but was removed in Fedora.
-+ s.add_dependency "rb-inotify"
- s.add_development_dependency "rake"
+- s.add_development_dependency "rake"
- s.add_development_dependency "contest", ">= 0.1.2"
- s.add_development_dependency "minitest", "~> 2.5.1"
- s.add_development_dependency "mocha"
+- s.add_development_dependency "rspec", "~> 2.14.0"
++ # This dependency is typically provided by listen, but was removed in Fedora.
++ s.add_dependency "rb-inotify"
++
+ # Minitest, contest and Mocha are not required.
+ # https://github.com/mitchellh/vagrant/pull/4777
+ #s.add_development_dependency "contest", ">= 0.1.2"
+ #s.add_development_dependency "minitest"
+ #s.add_development_dependency "mocha"
- s.add_development_dependency "rspec", "~> 2.14.0"
++
++ # Development dependencies have to be disabled for runtime, otherwise Bundler
++ # tries to consider them when resolving dependencies.
++ # https://github.com/bundler/bundler/issues/3231
++ # s.add_development_dependency "rake"
++ # s.add_development_dependency "rspec", "~> 2.14.0"
# The following block of code determines the files that should be included
+ # in the gem. It does this by reading all the files in the directory where
More information about the scm-commits
mailing list