summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2010-10-16 08:29:47 +0000
committerHans de Graaff <graaff@gentoo.org>2010-10-16 08:29:47 +0000
commit421d4eece1bc81277af965397c3cfc5cf3657cef (patch)
tree86d8c76b65dfb7e666997f1282b438398aebd965 /dev-ruby/bundler/files
parentPatch the "Use of uninitialized value" warning (diff)
downloadgentoo-2-421d4eece1bc81277af965397c3cfc5cf3657cef.tar.gz
gentoo-2-421d4eece1bc81277af965397c3cfc5cf3657cef.tar.bz2
gentoo-2-421d4eece1bc81277af965397c3cfc5cf3657cef.zip
Version bump.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/bundler/files')
-rw-r--r--dev-ruby/bundler/files/bundler-1.0.3-gentoo.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/dev-ruby/bundler/files/bundler-1.0.3-gentoo.patch b/dev-ruby/bundler/files/bundler-1.0.3-gentoo.patch
new file mode 100644
index 000000000000..5667e87628ff
--- /dev/null
+++ b/dev-ruby/bundler/files/bundler-1.0.3-gentoo.patch
@@ -0,0 +1,20 @@
+diff --git a/bin/bundle b/bin/bundle
+index d2e5081..17db3f0 100755
+--- a/bin/bundle
++++ b/bin/bundle
+@@ -1,9 +1,14 @@
+ #!/usr/bin/env ruby
+
+ # Check if an older version of bundler is installed
++mybasedir = __FILE__.gsub(/\/bin\/bundle/, '')
++
+ require 'bundler'
+ $:.each do |path|
+- if path =~ %r'/bundler-0.(\d+)' && $1.to_i < 9
++ # ignore the directory we're running from, in the tests
++ path = path.gsub(%r"^#{mybasedir}", '')
++
++ if path =~ %r'/bundler-0\.(\d+)' && $1.to_i < 9
+ abort "Please remove older versions of bundler. This can be done by running `gem cleanup bundler`."
+ end
+ end