raf 0.0.1 → 0.0.2

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/raf.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{raf}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["garin"]
@@ -12,7 +12,7 @@ class TestRafFootnote < Test::Unit::TestCase
12
12
  str = '(([aaa]))'
13
13
  res = @raf.parse(str)
14
14
  assert_kind_of Raf::Footnote, res[0]
15
- assert_equal '<Footnote>Contents:aaa,Id:1</Footnote>', res[0].apply
15
+ assert_equal '<Footnote>aaa</Footnote>', res[0].apply
16
16
  assert_equal "aaa", @raf.index[:footnote][0][:content][0].apply
17
17
  end
18
18
 
@@ -23,10 +23,10 @@ class TestRafFootnote < Test::Unit::TestCase
23
23
  assert_kind_of Raf::Footnote, res[0]
24
24
  assert_kind_of Raf::Footnote, res[1]
25
25
  assert_kind_of Raf::Footnote, res[2]
26
-
26
+
27
27
  assert_equal "aaa", @raf.index[:footnote][0][:content][0].apply
28
28
  assert_equal "bbb", @raf.index[:footnote][1][:content][0].apply
29
- assert_equal "ccc", @raf.index[:footnote][2][:content][0].apply
29
+ assert_equal "ccc", @raf.index[:footnote][2][:content][0].apply
30
30
  end
31
31
 
32
32
  def test_footnote_in_element
data/test/test_image.rb CHANGED
@@ -11,16 +11,16 @@ class TestRafImage < Test::Unit::TestCase
11
11
  def test_image_is_image
12
12
  str = '(($aaa.png$))'
13
13
  res = @raf.parse(str)
14
- assert_kind_of Raf::Strike, res[0]
14
+ assert_kind_of Raf::Image, res[0]
15
15
  end
16
16
 
17
17
  def test_image_apply
18
- str1 = '(($aaa.png$))'
18
+ str1 = '(($aaa.png$))'
19
19
  res = @raf.parse(str1)
20
20
  assert_respond_to res[0], 'apply'
21
21
  assert_equal '<Image>aaa.png</Image>', res[0].apply
22
22
 
23
- str2 = '(($AAA|aaa.png$))'
23
+ str2 = '(($AAA|aaa.png$))'
24
24
  res = @raf.parse(str2)
25
25
  assert_respond_to res[0], 'apply'
26
26
  assert_equal '<Image>AAA|aaa.png</Image>', res[0].apply
@@ -36,7 +36,7 @@ class TestRafImage < Test::Unit::TestCase
36
36
  # res = @raf.parse(str2)
37
37
  # assert_equal [Raf::Plain, Raf::Image, Raf::Plain], res[0].contents.map {|c| c.class }
38
38
  # assert_equal '<Image>a<Image>a</Image>a</Image>', res[0].apply
39
-
39
+
40
40
  # str3 = '(($a((*a*))a$))'
41
41
  # res = @raf.parse(str3)
42
42
  # assert_equal [Raf::Plain, Raf::Emphasis, Raf::Plain], res[0].contents.map {|c| c.class }
data/test/ts_block.rb CHANGED
@@ -7,3 +7,4 @@ require "test_reference"
7
7
  require "test_itemlistblock"
8
8
  require "test_numlistblock"
9
9
  require "test_tableblock"
10
+ require "test_footnote"
data/test/ts_inline.rb CHANGED
@@ -5,4 +5,4 @@ require "test_italic"
5
5
  require "test_strike"
6
6
  require "test_ruby"
7
7
  require "test_verb"
8
-
8
+ require "test_image"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raf
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - garin