[DRE-commits] [SCM] ruby-dataobjects-sqlite3.git branch, master, updated. upstream/0.10.7-11-g5c231fd
Cédric Boutillier
cedric.boutillier at gmail.com
Sat Nov 5 00:18:21 UTC 2011
The following commit has been merged in the master branch:
commit 874ef595a2e9002d80d4307cd2e12b27546775e1
Author: Cédric Boutillier <cedric.boutillier at gmail.com>
Date: Sat Nov 5 01:08:48 2011 +0100
patch: remove load_path manipulations from specs
diff --git a/debian/patches/0020_remove_loadpath_manipulation_in_specs.patch b/debian/patches/0020_remove_loadpath_manipulation_in_specs.patch
new file mode 100644
index 0000000..5ebcc5c
--- /dev/null
+++ b/debian/patches/0020_remove_loadpath_manipulation_in_specs.patch
@@ -0,0 +1,29 @@
+Description: remove $LOAD_PATH manipulation in specs
+ They should use the copy installed in debian/
+Author: Cédric Boutillier <cedric.boutillier at gmail.com>
+Last-Update: 2011-11-03
+
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -8,15 +8,15 @@
+ require 'win32console' if RUBY_PLATFORM =~ /mingw|mswin/
+
+ driver_lib = File.expand_path('../../lib', __FILE__)
+-$LOAD_PATH.unshift(driver_lib) unless $LOAD_PATH.include?(driver_lib)
++#$LOAD_PATH.unshift(driver_lib) unless $LOAD_PATH.include?(driver_lib)
+
+ # Prepend data_objects/do_jdbc in the repository to the load path.
+ # DO NOT USE installed gems, except when running the specs from gem.
+-repo_root = File.expand_path('../../..', __FILE__)
+-(['data_objects'] << ('do_jdbc' if JRUBY)).compact.each do |lib|
+- lib_path = "#{repo_root}/#{lib}/lib"
+- $LOAD_PATH.unshift(lib_path) if File.directory?(lib_path) && !$LOAD_PATH.include?(lib_path)
+-end
++#repo_root = File.expand_path('../../..', __FILE__)
++#(['data_objects'] << ('do_jdbc' if JRUBY)).compact.each do |lib|
++# lib_path = "#{repo_root}/#{lib}/lib"
++# $LOAD_PATH.unshift(lib_path) if File.directory?(lib_path) && !$LOAD_PATH.include?(lib_path)
++#end
+
+ require 'data_objects'
+ require 'data_objects/spec/setup'
diff --git a/debian/patches/series b/debian/patches/series
index 5cacb40..7348b7a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
0010_remove_rubygems_from_specs.patch
+0020_remove_loadpath_manipulation_in_specs.patch
--
ruby-dataobjects-sqlite3.git
More information about the Pkg-ruby-extras-commits
mailing list