[DRE-commits] [ruby-kramdown] 02/03: Refresh patches

Youhei SASAKI uwabami-guest at alioth.debian.org
Wed Sep 4 09:06:30 UTC 2013


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

uwabami-guest pushed a commit to branch master
in repository ruby-kramdown.

commit 21efa207f4afcabd361c5099dcdf4219dbd860e7
Author: Youhei SASAKI <uwabami at gfd-dennou.org>
Date:   Wed Sep 4 16:54:20 2013 +0900

    Refresh patches
    
    Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
---
 debian/patches/0001-Fix_StringEx_Require.patch |   20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/debian/patches/0001-Fix_StringEx_Require.patch b/debian/patches/0001-Fix_StringEx_Require.patch
index 5ef4329..573c904 100644
--- a/debian/patches/0001-Fix_StringEx_Require.patch
+++ b/debian/patches/0001-Fix_StringEx_Require.patch
@@ -7,16 +7,14 @@ Subject: Fix_StringEx_Require
  lib/kramdown/utils/unidecoder.rb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
-diff --git a/lib/kramdown/utils/unidecoder.rb b/lib/kramdown/utils/unidecoder.rb
-index e227714..879c3ec 100644
---- a/lib/kramdown/utils/unidecoder.rb
-+++ b/lib/kramdown/utils/unidecoder.rb
-@@ -21,7 +21,7 @@ module Kramdown
-         end
-       else
+--- ruby-kramdown.orig/lib/kramdown/utils/unidecoder.rb
++++ ruby-kramdown/lib/kramdown/utils/unidecoder.rb
+@@ -15,7 +15,7 @@
+     # Provides the ability to tranliterate Unicode strings into plain ASCII ones.
+     module Unidecoder
  
--        require 'stringex/unidecoder' # dummy require so that we can get at the data files
-+        require 'stringex' # dummy require so that we can get at the data files
+-      gem 'stringex' if defined?(Gem)
++      require 'stringex'
+       path = $:.find {|dir| File.directory?(File.join(File.expand_path(dir), "stringex", "unidecoder_data"))}
  
-         # Transliterate string from Unicode into ASCII.
-         def self.decode(string)
+       if RUBY_VERSION <= '1.8.6' || !path

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



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