rails_autolink 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rails_autolink/helpers.rb +1 -1
- data/lib/rails_autolink/version.rb +1 -1
- data/rails_autolink.gemspec +1 -0
- data/test/test_rails_autolink.rb +4 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0d13b2069f253b2462d1ea876055e7d43897d5a
|
4
|
+
data.tar.gz: add8c39f50d8e3632376e6eefca0d523fc528d83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 919984fd569f0d131b296be468a718672947efeb8a1aee0887d7e0a9c5c32c5b4241db8d16585a41b945a15024e5edde050f89c5659742c5a10b207e53da1ca3
|
7
|
+
data.tar.gz: 51ab4ad52e33448124dcf683472240d4c1ea0373ec03cd5d2ccee2c21014c3fd184897532547815f033ad831bb76e8adceb57679f684dd4ea606cf02f3f447df
|
@@ -72,7 +72,7 @@ module RailsAutolink
|
|
72
72
|
|
73
73
|
AUTO_LINK_RE = %r{
|
74
74
|
(?: ((?:ed2k|ftp|http|https|irc|mailto|news|gopher|nntp|telnet|webcal|xmpp|callto|feed|svn|urn|aim|rsync|tag|ssh|sftp|rtsp|afs|file):)// | www\. )
|
75
|
-
[^\s
|
75
|
+
[^\s<\u00A0]+
|
76
76
|
}x
|
77
77
|
|
78
78
|
# regexps for determining context, used high-volume
|
data/rails_autolink.gemspec
CHANGED
@@ -11,6 +11,7 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.description = 'This is an extraction of the `auto_link` method from rails. The `auto_link` method was removed from Rails in version Rails 3.1. This gem is meant to bridge the gap for people migrating.'
|
12
12
|
|
13
13
|
s.add_dependency 'rails', '> 3.1'
|
14
|
+
s.license = 'MIT'
|
14
15
|
|
15
16
|
s.files = Dir.glob("{test,lib/**/*}") + `git ls-files -z`.split("\0")
|
16
17
|
end
|
data/test/test_rails_autolink.rb
CHANGED
@@ -274,6 +274,10 @@ class TestRailsAutolink < MiniTest::Unit::TestCase
|
|
274
274
|
with_kcode 'u' do
|
275
275
|
assert_equal %(浅草.rbの公式サイトはこちら#{link11_result}), auto_link("浅草.rbの公式サイトはこちら#{link11_raw}")
|
276
276
|
end
|
277
|
+
|
278
|
+
link12_raw = 'http://tools.ietf.org/html/rfc3986'
|
279
|
+
link12_result = generate_result(link12_raw)
|
280
|
+
assert_equal %(<p>#{link12_result} text-after-nonbreaking-space</p>), auto_link("<p>#{link12_raw} text-after-nonbreaking-space</p>")
|
277
281
|
end
|
278
282
|
|
279
283
|
def test_auto_link_parsing
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_autolink
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Patterson
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-09-
|
13
|
+
date: 2013-09-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -46,7 +46,8 @@ files:
|
|
46
46
|
- rails_autolink.gemspec
|
47
47
|
- test/test_rails_autolink.rb
|
48
48
|
homepage: https://github.com/tenderlove/rails_autolink
|
49
|
-
licenses:
|
49
|
+
licenses:
|
50
|
+
- MIT
|
50
51
|
metadata: {}
|
51
52
|
post_install_message:
|
52
53
|
rdoc_options: []
|