[DRE-commits] [SCM] ruby-railties-3.2.git branch, master, updated. debian/3.2.6-2-9-g4466df8

Antonio Terceiro terceiro at debian.org
Fri Jun 29 00:07:15 UTC 2012


The following commit has been merged in the master branch:
commit ef0bacd1fcf89c2714968b6a0ff456f8fcf20360
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Thu Jun 28 19:14:17 2012 -0300

    Remove bundler command patch

diff --git a/debian/patches/dont-require-bundler-from-rubygems.patch b/debian/patches/dont-require-bundler-from-rubygems.patch
deleted file mode 100644
index 58c4c4b..0000000
--- a/debian/patches/dont-require-bundler-from-rubygems.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-Description: Don't require bundler installed with Rubygems
- This patch makes it possible to create a fresh Rails app on Debian without
- having to install anything without APT.
-Author: Antonio Terceiro <terceiro at debian.org>
-
---- ruby-railties-3.2-3.2.3.orig/lib/rails/generators/app_base.rb
-+++ ruby-railties-3.2-3.2.3/lib/rails/generators/app_base.rb
-@@ -240,18 +240,7 @@ module Rails
- 
-       def bundle_command(command)
-         say_status :run, "bundle #{command}"
--
--        # We are going to shell out rather than invoking Bundler::CLI.new(command)
--        # because `rails new` loads the Thor gem and on the other hand bundler uses
--        # its own vendored Thor, which could be a different version. Running both
--        # things in the same process is a recipe for a night with paracetamol.
--        #
--        # We use backticks and #print here instead of vanilla #system because it
--        # is easier to silence stdout in the existing test suite this way. The
--        # end-user gets the bundler commands called anyway, so no big deal.
--        #
--        # Thanks to James Tucker for the Gem tricks involved in this call.
--        print `"#{Gem.ruby}" -rubygems "#{Gem.bin_path('bundler', 'bundle')}" #{command}`
-+        print `"#{Gem.ruby}" -rubygems /usr/bin/bundle #{command}`
-       end
- 
-       def run_bundle
diff --git a/debian/patches/series b/debian/patches/series
index 0830401..c06c7e5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,2 @@
 syntaxhighlighter-source.patch
 remove-rubygems.patch
-dont-require-bundler-from-rubygems.patch

-- 
ruby-railties-3.2.git



More information about the Pkg-ruby-extras-commits mailing list