anchored 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/anchored/linker.rb +2 -1
- data/lib/anchored/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eca910ed49f66149517c9e86291ea10ec9f3c109
|
4
|
+
data.tar.gz: 773d20906917d465d3a6004b6e6917f5e7be3871
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61747594002d954684ea02beef9331e4cc07fa26ac48a5591e278337309d924efe1497bf325078d8903f01f61ea829b7d874fb49fa80aee13fd9a4d9db668dcf
|
7
|
+
data.tar.gz: bfb708d606bed00238d7c73a75d6bd0e8800cd1097d17c580f5cde2cf408f86671c21e262681d7cf6f6cf965be346d46271d02bfa94c9ca31abea50c35e86a83
|
data/lib/anchored/linker.rb
CHANGED
@@ -35,7 +35,8 @@ module Anchored
|
|
35
35
|
# Turns all urls into clickable links. If a block is given, each url
|
36
36
|
# is yielded and the result is used as the link text.
|
37
37
|
def auto_link_urls(text, options = {})
|
38
|
-
text
|
38
|
+
# to_str is for SafeBuffer objects (text marked html_safe)
|
39
|
+
text.to_str.gsub(AUTO_LINK_RE) do
|
39
40
|
match = Regexp.last_match
|
40
41
|
href = match[0]
|
41
42
|
scheme = match[1]
|
data/lib/anchored/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anchored
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tee Parham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '5.10'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: activesupport
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '5.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '5.0'
|
55
69
|
description: Ruby auto linker based on rails_autolink. It wraps links in text with
|
56
70
|
HTML anchors.
|
57
71
|
email:
|