postrank-uri 1.0.10 → 1.0.11
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/lib/postrank-uri.rb +1 -1
- data/lib/postrank-uri/c18n.yml +3 -1
- data/lib/postrank-uri/version.rb +1 -1
- data/spec/c18n_hosts.yml +4 -1
- data/spec/postrank-uri_spec.rb +8 -8
- metadata +1 -1
data/lib/postrank-uri.rb
CHANGED
data/lib/postrank-uri/c18n.yml
CHANGED
data/lib/postrank-uri/version.rb
CHANGED
data/spec/c18n_hosts.yml
CHANGED
@@ -57,4 +57,7 @@
|
|
57
57
|
- http://www.usatoday.com/life/television/news/2011-01-19-race19_ST_N.htm
|
58
58
|
|
59
59
|
- - http://news.cnet.com/8301-17938_105-20029409-1.html?part=rss&subj=news&tag=2547-1_3-0-20
|
60
|
-
- http://news.cnet.com/8301-17938_105-20029409-1.html
|
60
|
+
- http://news.cnet.com/8301-17938_105-20029409-1.html
|
61
|
+
|
62
|
+
- - http://www.waomarketing.com/blog/at-internet-white-paper-series/?nucrss=1
|
63
|
+
- http://www.waomarketing.com/blog/at-internet-white-paper-series
|
data/spec/postrank-uri_spec.rb
CHANGED
@@ -189,20 +189,20 @@ describe PostRank::URI do
|
|
189
189
|
PostRank::URI.hash(uri, opts)
|
190
190
|
end
|
191
191
|
|
192
|
-
it "should compute MD5 hash
|
192
|
+
it "should compute the MD5 hash without cleaning the URI" do
|
193
193
|
hash = '55fae8910d312b7878a3201ed653b881'
|
194
194
|
|
195
|
-
h('http://
|
196
|
-
h('
|
197
|
-
h('everburning.com/feed/post/1').should == hash
|
198
|
-
h('everburning.com/feed/post/1/').should == hash
|
195
|
+
h('http://everburning.com/feed/post/1').should == hash
|
196
|
+
h('everburning.com/feed/post/1').should_not == hash
|
199
197
|
end
|
200
198
|
|
201
|
-
it "should
|
199
|
+
it "should normalize the URI if requested and compute MD5 hash" do
|
202
200
|
hash = '55fae8910d312b7878a3201ed653b881'
|
203
201
|
|
204
|
-
h('http://
|
205
|
-
h('
|
202
|
+
h('http://EverBurning.Com/feed/post/1', :clean => true).should == hash
|
203
|
+
h('Everburning.com/feed/post/1', :clean => true).should == hash
|
204
|
+
h('everburning.com/feed/post/1', :clean => true).should == hash
|
205
|
+
h('everburning.com/feed/post/1/', :clean => true).should == hash
|
206
206
|
end
|
207
207
|
end
|
208
208
|
|