breakout_parser 0.0.18-x86-mswin32 → 0.0.19-x86-mswin32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +5 -0
- data/spec/parser_spec.rb +6 -0
- metadata +4 -4
data/ChangeLog
CHANGED
data/spec/parser_spec.rb
CHANGED
@@ -939,6 +939,12 @@ describe 'BreakoutParser' do
|
|
939
939
|
parse("[[url:/rel|text]]", :absolute_urls => v, :site_url => 'http://www.ru').should ==
|
940
940
|
'<a rel="nofollow" href="http://www.ru/rel">text</a>'
|
941
941
|
end
|
942
|
+
it "should strip redundant '/' when absolute_urls = #{v.inspect}" do
|
943
|
+
parse("[[url:/rel]]", :absolute_urls => v, :site_url => 'http://www.ru/').should ==
|
944
|
+
'<a rel="nofollow" href="http://www.ru/rel">/rel</a>'
|
945
|
+
parse("[[url:/rel|text]]", :absolute_urls => v, :site_url => 'http://www.ru/').should ==
|
946
|
+
'<a rel="nofollow" href="http://www.ru/rel">text</a>'
|
947
|
+
end
|
942
948
|
end
|
943
949
|
# 'false' values
|
944
950
|
[false, nil].each do |v|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: breakout_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 57
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 19
|
10
|
+
version: 0.0.19
|
11
11
|
platform: x86-mswin32
|
12
12
|
authors:
|
13
13
|
- Andrey "Zed" Zaikin
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-08-
|
18
|
+
date: 2010-08-29 00:00:00 +04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|