zemanta_client 0.0.6 → 0.0.7

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/README.md CHANGED
@@ -96,6 +96,7 @@ end
96
96
 
97
97
  ## Changelog
98
98
 
99
+ 0.0.7 - small fixes
99
100
  0.0.6 - Added #skip and #strip_query_string options to enhancer
100
101
  0.0.5 - Added #no_duplicates option to Enhancer
101
102
  0.0.4 - Fixed yajl require in gemspec
@@ -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=#{url}>#{dictionary[:word]}</a>"
31
+ link = "<a href='#{url}'>#{dictionary[:word]}</a>)"
32
32
  if @opts[:no_duplicates]
33
33
  @text.sub!(dictionary[:word], link)
34
34
  else
@@ -1,3 +1,3 @@
1
1
  module Zemanta
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -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.6
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-07-23 00:00:00.000000000 Z
12
+ date: 2013-10-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: typhoeus