breakout_parser 0.0.18-x86-mingw32 → 0.0.19-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/ChangeLog +5 -0
  2. data/spec/parser_spec.rb +6 -0
  3. metadata +4 -4
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ [ 0.0.19 ]
2
+
3
+ * skip redundant '/' in making relative urls absolute
4
+ (https://www.assembla.com/spaces/breakout/tickets/6513)
5
+
1
6
  [ 0.0.18 ]
2
7
 
3
8
  * added README
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: 59
4
+ hash: 57
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 18
10
- version: 0.0.18
9
+ - 19
10
+ version: 0.0.19
11
11
  platform: x86-mingw32
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-25 00:00:00 +04:00
18
+ date: 2010-08-29 00:00:00 +04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency