summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2013-01-25 20:50:24 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2013-01-25 20:50:24 +0000
commite069115ed9d8f966421050225b52c7530b730128 (patch)
treeb0550d6cc5f0f1b0d3ead5e3c11643613c67251a /dev-ruby/rails_autolink/files
parentAdd menu desktop file and icons, bug #453920 (diff)
downloadgentoo-2-e069115ed9d8f966421050225b52c7530b730128.tar.gz
gentoo-2-e069115ed9d8f966421050225b52c7530b730128.tar.bz2
gentoo-2-e069115ed9d8f966421050225b52c7530b730128.zip
Initial import of rails_autolink from graaff's overlay. This version only supports Ruby 1.9 (as the testsuite fails on 1.8), spots a fix for the testsuite and the schemes, and support doc building.
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342)
Diffstat (limited to 'dev-ruby/rails_autolink/files')
-rw-r--r--dev-ruby/rails_autolink/files/rails_autolink-1.0.9-fixes.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/dev-ruby/rails_autolink/files/rails_autolink-1.0.9-fixes.patch b/dev-ruby/rails_autolink/files/rails_autolink-1.0.9-fixes.patch
new file mode 100644
index 000000000000..a1a0a8a11dac
--- /dev/null
+++ b/dev-ruby/rails_autolink/files/rails_autolink-1.0.9-fixes.patch
@@ -0,0 +1,32 @@
+From 9bc8ce3c5bd1919df87ac7039b41de18e70bc64d Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@flameeyes.eu>
+Date: Fri, 25 Jan 2013 12:29:21 -0800
+Subject: [PATCH] lib: add to the whitelist the protocol schemes that are
+ tested for.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Without this commit, the testsuite will simply fail.
+
+Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
+---
+ lib/rails_autolink/helpers.rb | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/rails_autolink/helpers.rb b/lib/rails_autolink/helpers.rb
+index 4f6cd8d..bec82c6 100644
+--- a/lib/rails_autolink/helpers.rb
++++ b/lib/rails_autolink/helpers.rb
+@@ -71,7 +71,7 @@ module RailsAutolink
+ private
+
+ AUTO_LINK_RE = %r{
+- (?: ((?:ed2k|ftp|http|https|irc|mailto|news|gopher|nntp|telnet|webcal|xmpp|callto|feed|svn|urn|aim|rsync|tag|ssh|sftp|rtsp|afs):)// | www\. )
++ (?: ((?:ed2k|ftp|http|https|irc|mailto|news|gopher|nntp|telnet|webcal|xmpp|callto|feed|svn|urn|aim|rsync|tag|ssh|sftp|rtsp|afs|file|z39.50r|chrome|view-source:http):)// | www\. )
+ [^\s<]+
+ }x
+
+--
+1.8.1.1
+