zemanta_client 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -0
- data/lib/zemanta/enhancer.rb +1 -1
- data/lib/zemanta/version.rb +1 -1
- data/spec/zemanta/enhancer_spec.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
data/lib/zemanta/enhancer.rb
CHANGED
@@ -28,7 +28,7 @@ module Zemanta
|
|
28
28
|
|
29
29
|
url = strip_query_string(url) if @opts[:strip_query_string]
|
30
30
|
|
31
|
-
link = "<a href
|
31
|
+
link = "<a href='#{url}'>#{dictionary[:word]}</a>)"
|
32
32
|
if @opts[:no_duplicates]
|
33
33
|
@text.sub!(dictionary[:word], link)
|
34
34
|
else
|
data/lib/zemanta/version.rb
CHANGED
@@ -43,7 +43,7 @@ describe Zemanta::Enhancer do
|
|
43
43
|
suggestions = [{ word: 'foo', link: "http://bar.com/foo?bar=123" }]
|
44
44
|
Zemanta::Enhancer.any_instance.stub(words_to_anchor: suggestions)
|
45
45
|
output = Zemanta::Enhancer.new(text, strip_query_string: true).enhance
|
46
|
-
output.should == "Hello <a href=http://bar.com/foo>foo</a> bar"
|
46
|
+
output.should == "Hello <a href='http://bar.com/foo'>foo</a> bar"
|
47
47
|
end
|
48
48
|
end
|
49
49
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zemanta_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-10-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: typhoeus
|