[DRE-commits] [rubygems-integration] 03/05: Add support for disabling rubygems-integration

Antonio Terceiro terceiro at moszumanska.debian.org
Thu Apr 10 19:51:44 UTC 2014


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository rubygems-integration.

commit 53542cdfe8c15700c7d27aa7b14010af8684f9d8
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date:   Thu Apr 10 16:23:20 2014 -0300

    Add support for disabling rubygems-integration
    
    This can be done by setting an environment variable
    DEBIAN_DISABLE_RUBYGEMS_INTEGRATION.
---
 debian/changelog                          | 2 ++
 lib/rubygems/defaults/operating_system.rb | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 6275f18..f3071f5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ rubygems-integration (1.6) UNRELEASED; urgency=medium
   * debian/tests/package-list: make output easier to read. First output the
     list of gems to a file, then grep that file.
   * Drop rdoc workaround for Ruby 1.9
+  * Add support for disabling rubygems-integration by setting an environment
+    variable DEBIAN_DISABLE_RUBYGEMS_INTEGRATION.
 
  -- Antonio Terceiro <terceiro at debian.org>  Thu, 10 Apr 2014 16:16:36 -0300
 
diff --git a/lib/rubygems/defaults/operating_system.rb b/lib/rubygems/defaults/operating_system.rb
index 52cf34c..5a28b9f 100644
--- a/lib/rubygems/defaults/operating_system.rb
+++ b/lib/rubygems/defaults/operating_system.rb
@@ -1,3 +1,5 @@
+unless ENV['DEBIAN_DISABLE_RUBYGEMS_INTEGRATION']
+
 class << Gem
 
   alias :upstream_default_dir :default_dir
@@ -27,3 +29,5 @@ if RUBY_VERSION >= '2.0' then
 
   end
 end
+
+end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/rubygems-integration.git



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