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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39c247438a8a840141da58a0d9f9e4ba030c3bcf
4
- data.tar.gz: 23f26e84325894e655aafa1c5e7bb263e8d22e14
3
+ metadata.gz: eca910ed49f66149517c9e86291ea10ec9f3c109
4
+ data.tar.gz: 773d20906917d465d3a6004b6e6917f5e7be3871
5
5
  SHA512:
6
- metadata.gz: 78eaec619054ea5cab13b7f4c364b0dfa163efc3e48c3b28a48b17a8f0f82ff25e914c97d5f7f199c698f4158600cd7364743d70f9b8245ca207a740a5daf87b
7
- data.tar.gz: 132e864ab6d3173d883eeda8ab1cfb2c05074fc37c22b331f832b34947d6654942df54f0a67860dce55b3fb9299b7c57792fb1ccb899fe496bb6ea968725cf3a
6
+ metadata.gz: 61747594002d954684ea02beef9331e4cc07fa26ac48a5591e278337309d924efe1497bf325078d8903f01f61ea829b7d874fb49fa80aee13fd9a4d9db668dcf
7
+ data.tar.gz: bfb708d606bed00238d7c73a75d6bd0e8800cd1097d17c580f5cde2cf408f86671c21e262681d7cf6f6cf965be346d46271d02bfa94c9ca31abea50c35e86a83
@@ -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.gsub(AUTO_LINK_RE) do
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]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Anchored
4
- VERSION = "1.0.1"
4
+ VERSION = "1.0.2"
5
5
  end
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.1
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-02 00:00:00.000000000 Z
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: