[DRE-commits] [ruby-ramaze] 04/05: Add dont_gem_rinotify.patch, forbidding to try to load RInotify Ruby library with rubygems.

Cédric Boutillier boutil at moszumanska.debian.org
Tue Nov 26 06:43:30 UTC 2013


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

boutil pushed a commit to branch master
in repository ruby-ramaze.

commit 6888533371d5eb2b8cef704b18b35d085a5d56f3
Author: Cédric Boutillier <boutil at debian.org>
Date:   Tue Nov 26 07:19:11 2013 +0100

    Add dont_gem_rinotify.patch, forbidding to try to load RInotify Ruby library with rubygems.
---
 debian/changelog                       |  2 ++
 debian/patches/dont_gem_rinotify.patch | 18 ++++++++++++++++++
 debian/patches/series                  |  1 +
 3 files changed, 21 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index ae543fa..b0093ad 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ ruby-ramaze (2012.12.08-2) unstable; urgency=low
 
   * Build-depend on ruby-innate (Closes: #725545)
   * Update my email address in the Uploaders field
+  * Add dont_gem_rinotify.patch, forbidding to try to load RInotify Ruby
+    library with rubygems.
 
  -- Cédric Boutillier <boutil at debian.org>  Tue, 26 Nov 2013 06:59:05 +0100
 
diff --git a/debian/patches/dont_gem_rinotify.patch b/debian/patches/dont_gem_rinotify.patch
new file mode 100644
index 0000000..fffaa4b
--- /dev/null
+++ b/debian/patches/dont_gem_rinotify.patch
@@ -0,0 +1,18 @@
+Description: do not try to use rinotify via rubygems
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2013-11-26 
+
+--- a/lib/ramaze/reloader.rb
++++ b/lib/ramaze/reloader.rb
+@@ -46,11 +46,6 @@
+     }
+ 
+     begin
+-      begin
+-        gem('RInotify', '>=0.9') # is older version ok?
+-      rescue NoMethodError # Kernel::gem might simply be not available
+-      end
+-
+       require 'rinotify'
+       require 'ramaze/reloader/watch_inotify'
+       Watcher = WatchInotify
diff --git a/debian/patches/series b/debian/patches/series
index 10bfe17..40892df 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 dont_hardcode_relative_paths
 dont_require_rubygems
+dont_gem_rinotify.patch

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



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