gr_autolink 1.0.9 → 1.0.10
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.
- data/CHANGELOG.rdoc +4 -0
- data/lib/gr_autolink.rb +1 -1
- data/lib/gr_autolink/helpers.rb +1 -1
- data/test/test_gr_autolink.rb +5 -0
- metadata +8 -8
data/CHANGELOG.rdoc
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
=== 1.0.10 / 2012-04-02
|
2
|
+
|
3
|
+
* bug fix: fix the ...yes/no bug mentioned below
|
4
|
+
|
1
5
|
=== 1.0.9 / 2012-03-30
|
2
6
|
|
3
7
|
* adding patterns to match...now anything that's alphanum + period + 2 or more alphanum + / other stuff will match as a url. this will get some false positives "...yes/no", but at least the regex is still simple and will catch a lot of cases the old version did not.
|
data/lib/gr_autolink.rb
CHANGED
data/lib/gr_autolink/helpers.rb
CHANGED
data/test/test_gr_autolink.rb
CHANGED
@@ -310,6 +310,11 @@ class TestGrAutolink < MiniTest::Unit::TestCase
|
|
310
310
|
end
|
311
311
|
end
|
312
312
|
|
313
|
+
def test_dont_autolink_periods_and_then_alphanum_with_slash
|
314
|
+
text = "i dunno...yes/no"
|
315
|
+
assert_equal text, auto_link(text)
|
316
|
+
end
|
317
|
+
|
313
318
|
def test_auto_link_retains_html_safeness_on_strings_with_no_url_sanitize_false
|
314
319
|
assert auto_link("abc123".html_safe, :sanitize => false).html_safe?
|
315
320
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gr_autolink
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,11 +12,11 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2012-
|
15
|
+
date: 2012-04-02 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rails
|
19
|
-
requirement: &
|
19
|
+
requirement: &2152851320 !ruby/object:Gem::Requirement
|
20
20
|
none: false
|
21
21
|
requirements:
|
22
22
|
- - ~>
|
@@ -24,10 +24,10 @@ dependencies:
|
|
24
24
|
version: '3.1'
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
|
-
version_requirements: *
|
27
|
+
version_requirements: *2152851320
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rdoc
|
30
|
-
requirement: &
|
30
|
+
requirement: &2152850720 !ruby/object:Gem::Requirement
|
31
31
|
none: false
|
32
32
|
requirements:
|
33
33
|
- - ~>
|
@@ -35,10 +35,10 @@ dependencies:
|
|
35
35
|
version: '3.10'
|
36
36
|
type: :development
|
37
37
|
prerelease: false
|
38
|
-
version_requirements: *
|
38
|
+
version_requirements: *2152850720
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: hoe
|
41
|
-
requirement: &
|
41
|
+
requirement: &2152850180 !ruby/object:Gem::Requirement
|
42
42
|
none: false
|
43
43
|
requirements:
|
44
44
|
- - ~>
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
version: '2.16'
|
47
47
|
type: :development
|
48
48
|
prerelease: false
|
49
|
-
version_requirements: *
|
49
|
+
version_requirements: *2152850180
|
50
50
|
description: ! "This is an adaptation of the extraction of the `auto_link` method
|
51
51
|
from rails\nthat is the rails_autolink gem. The `auto_link`\nmethod was removed
|
52
52
|
from Rails in version Rails 3.1. This gem is meant to\nbridge the gap for people
|