hparser 0.1.0 → 0.1.1

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.
@@ -8,11 +8,7 @@ module HParser
8
8
  spliter '>||','||<'
9
9
 
10
10
  def self.<=>(o)
11
- if Block.const_defined?(:Pre) and o == Pre then
12
- 1
13
- else
14
- -1
15
- end
11
+ -1
16
12
  end
17
13
  end
18
14
  end
data/test/test_block.rb CHANGED
@@ -60,6 +60,16 @@ END
60
60
  END
61
61
  end
62
62
 
63
+ def test_spre
64
+ p HParser::Parser.default_parser
65
+ assert_equal [SuperPre.new('a')],parse(<<-END)
66
+ >||
67
+ a
68
+ ||<
69
+ END
70
+
71
+ end
72
+
63
73
  def test_list
64
74
  assert_equal [Ul.new(li('a'),Ol.new(li('b')),Ul.new(li('c')))],
65
75
  parse(<<-END)
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: hparser
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.0
7
- date: 2006-08-02 00:00:00 +09:00
6
+ version: 0.1.1
7
+ date: 2006-08-05 00:00:00 +09:00
8
8
  summary: Hatena Format Parser
9
9
  require_paths:
10
10
  - lib