woody-decorators 10.2.0 → 10.3.0

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: 6c088fba9d875556061aab68655882ef16d91f22
4
- data.tar.gz: cc5806f4d5f358fe8c37bf2a6dd594cea6284d4f
3
+ metadata.gz: 153b556db447b12f1eba1f55a0ca6ef6ecb8e5c6
4
+ data.tar.gz: 588ccb6d7651b403ce4ffb9bb003882dd9c81504
5
5
  SHA512:
6
- metadata.gz: 1206a115a169d92ce51533e75547573bf1ec521d2d69fe7d81b2d9739fd47e9629827f02aa3f64b8ee06fb86cc009eeb60806726806036e77f3370d5483a90f1
7
- data.tar.gz: 9c33a506e0c4c2210c65d0ff19827a554203f0e768646d0ccf6c38fcd7c0739cc8beb1f50a78fbd063d2b7eca0bdbf1f674e90a1f3eb93b09e5a3a1d29bb86bc
6
+ metadata.gz: e7440d4cb8eaa7849a25862071f68f1a08749869314ca9cad12dbb83fecb095a9c58c09c9efdfd7f96e479961498f0c944a42dd2e5038b58e368a61b8d1819f1
7
+ data.tar.gz: 56b62d62f8267379bae732e6197d885291efc38794589594dce22bff8837cde5904da7da3992da2a4bcb999281940c36aabf8cca3fc480500f746b2355ee5fd0
@@ -1,5 +1,5 @@
1
1
  module Woody
2
2
  module Decorators
3
- VERSION = '10.2.0'.freeze
3
+ VERSION = '10.3.0'.freeze
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  require 'woody/decorators/base'
2
- require 'uri'
2
+ require 'rinku'
3
3
 
4
4
  module Woody
5
5
  module Decorators
@@ -34,7 +34,7 @@ module Woody
34
34
  private
35
35
 
36
36
  def link_wrap_answer(answer)
37
- answer.gsub(URI.regexp, '<a href="\0" target="_blank">\0</a>')
37
+ Rinku.auto_link(answer, :all, 'target="_blank"')
38
38
  end
39
39
 
40
40
  def answer_for_question(id)
@@ -27,4 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.add_dependency "time_diff", "~> 0"
28
28
  spec.add_dependency "wes-cloudkit", "~> 4"
29
29
  spec.add_dependency "wes-data-api", "~> 12"
30
+ spec.add_dependency "rinku", "~> 2"
30
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: woody-decorators
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.2.0
4
+ version: 10.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
@@ -136,6 +136,20 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: '12'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rinku
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '2'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '2'
139
153
  description:
140
154
  email:
141
155
  - ''