breakout_parser 0.0.4-x86-mingw32 → 0.0.5-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
data/spec/parser_spec.rb CHANGED
@@ -354,6 +354,18 @@ describe 'BreakoutParser' do
354
354
  parse("#1234d").should == '#1234d'
355
355
  parse("#xxx").should == '#xxx'
356
356
  end
357
+
358
+ ".,;!?:-".each_char do |c|
359
+ it "uses '#{c}' as separator" do
360
+ l = '<a href="/spaces/test_space/tickets/1234">#1234</a>'
361
+ t = "L#{c}L"
362
+ parse(t.gsub('L','#1234')).should == t.gsub('L',l)
363
+ t = "L#{c}#{c}L"
364
+ parse(t.gsub('L','#1234')).should == t.gsub('L',l)
365
+ t = "#{c}L#{c}L#{c}"
366
+ parse(t.gsub('L','#1234')).should == t.gsub('L',l)
367
+ end
368
+ end
357
369
  end
358
370
 
359
371
  ###############################################################################
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: breakout_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Andrey "Zed" Zaikin
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-03 00:00:00 +05:00
12
+ date: 2010-02-05 00:00:00 +05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency