breakout_parser 0.0.13-x86-mingw32 → 0.0.16-x86-mingw32

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/ChangeLog CHANGED
@@ -1,3 +1,15 @@
1
+ [ 0.0.16 ]
2
+
3
+ * make a [[issue:123]] as a synonym to [[ticket:123]]
4
+
5
+ [ 0.0.15 ]
6
+
7
+ * allow spaces in links to wiki pages, re http://www.assembla.com/spaces/breakout/tickets/5916
8
+
9
+ [ 0.0.14 ]
10
+
11
+ * fix handling of broken multilevel lists, re https://www.assembla.com/spaces/breakout/tickets/5902
12
+
1
13
  [ 0.0.13 ]
2
14
 
3
15
  * add "h-" to header ids
data/spec/parser_spec.rb CHANGED
@@ -350,12 +350,18 @@ describe 'BreakoutParser' do
350
350
  it "mess - should have matching count of opening and closing tags" do
351
351
  r = parse(get_data('list4'))
352
352
  r.scan('<ul>').count.should > 0
353
- r.scan('<ul>').count.should <= r.scan('</ul>').count
353
+ r.scan('<ul>').count.should == r.scan('</ul>').count
354
354
  end
355
355
 
356
356
  it "at end" do
357
357
  parse(get_data('list5')).should == unformat(get_data('list5.html'))
358
358
  end
359
+
360
+ it "handles broken lists correctly - https://www.assembla.com/spaces/breakout/tickets/5902" do
361
+ r = parse(get_data('list6'))
362
+ r.scan('<ul>').count.should > 0
363
+ r.scan('<ul>').count.should == r.scan('</ul>').count
364
+ end
359
365
  end
360
366
  end
361
367
 
@@ -803,7 +809,9 @@ describe 'BreakoutParser' do
803
809
  describe "Assembla Links" do
804
810
  a = {}
805
811
  a["wiki:Name"] = '<a class="wiki_link" title="Name" href="/wiki/show/test_space/Name">Name</a>'
812
+ a["wiki:Name With Space"] = '<a class="wiki_link" title="Name With Space" href="/wiki/show/test_space/Name_With_Space">Name With Space</a>'
806
813
  a["Name"] = '<a class="wiki_link" title="Name" href="/wiki/show/test_space/Name">Name</a>'
814
+ a["Name With Space"] = '<a class="wiki_link" title="Name With Space" href="/wiki/show/test_space/Name_With_Space">Name With Space</a>'
807
815
  a["Name#Ref"] = '<a class="wiki_link" title="Name#Ref" href="/wiki/show/test_space/Name#h-Ref">Name#Ref</a>'
808
816
  a["Name#h-Ref"] = '<a class="wiki_link" title="Name#h-Ref" href="/wiki/show/test_space/Name#h-h-Ref">Name#h-Ref</a>'
809
817
  a["#Ref"] = '<a href="#h-Ref" title="#Ref" class="wiki_link">#Ref</a>'
@@ -815,6 +823,7 @@ describe 'BreakoutParser' do
815
823
  a["#with&amp"] = %Q|<a href="#h-#{hex_string("with&amp")}" title="#with&amp" class="wiki_link">#with&amp;amp</a>|
816
824
 
817
825
  a["ticket:234"] = '<a href="/spaces/test_space/tickets/234">#234</a>'
826
+ a["issue:234"] = '<a href="/spaces/test_space/tickets/234">#234</a>'
818
827
  a["revision:1f4bdab77be696efd"] =
819
828
  '<a href="/code/test_space/git/changesets/1f4bdab77be696efd">revision:1f4bdab77be696efd</a>'
820
829
  a["revision:12345"] =
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: breakout_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 16
9
+ version: 0.0.16
5
10
  platform: x86-mingw32
6
11
  authors:
7
12
  - Andrey "Zed" Zaikin
@@ -9,19 +14,23 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-04-27 00:00:00 +06:00
17
+ date: 2010-07-20 00:00:00 +06:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: rspec
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 1
29
+ - 2
30
+ - 9
23
31
  version: 1.2.9
24
- version:
32
+ type: :development
33
+ version_requirements: *id001
25
34
  description: BreakoutParser
26
35
  email: zed.0xff@gmail.com
27
36
  executables: []
@@ -49,18 +58,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
49
58
  requirements:
50
59
  - - ">="
51
60
  - !ruby/object:Gem::Version
61
+ segments:
62
+ - 0
52
63
  version: "0"
53
- version:
54
64
  required_rubygems_version: !ruby/object:Gem::Requirement
55
65
  requirements:
56
66
  - - ">="
57
67
  - !ruby/object:Gem::Version
68
+ segments:
69
+ - 0
58
70
  version: "0"
59
- version:
60
71
  requirements: []
61
72
 
62
73
  rubyforge_project:
63
- rubygems_version: 1.3.5
74
+ rubygems_version: 1.3.6
64
75
  signing_key:
65
76
  specification_version: 3
66
77
  summary: BreakoutParser