raf 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.rdoc CHANGED
@@ -1,2 +1,8 @@
1
+ == 0.0.3 2011-04-10
2
+ * typo fix
3
+
4
+ == 0.0.2 2011-04-07
5
+ * unit test passed
6
+
1
7
  == 0.0.1 2011-04-07
2
8
  * first public version
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
data/bin/raf2html CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- $:.unshift "/home/yoshino/src/raf/lib"
3
2
  $:.unshift File.join(File.dirname(__FILE__), "../lib")
4
3
  require "optparse"
5
4
  require "rafblockparser.tab"
@@ -7,6 +6,8 @@ require "raf2html"
7
6
 
8
7
  options = {:css => nil, :language => 'ja', :index => true, :quiet => false}
9
8
  opt = OptionParser.new do |opt|
9
+ opt.release = "2011-04-07"
10
+ opt.version = "0.0.2"
10
11
  opt.on("--css file", "スタイルシートのファイルを指定") {|f| options[:css] = f}
11
12
  opt.on("-L", "--language LANG", "言語(デフォルトは #{options[:language]} 。ドキュメント側で指定されていればそちらを優先)"){|l| options[:language] = l}
12
13
  opt.on("--[no-]index", "目次を生成する(デフォルトは生成する)"){|v| options[:index] = v }
@@ -33,7 +33,7 @@ module Raf
33
33
  def apply
34
34
  return "" if @contents[0] == 1
35
35
  str = ""
36
- str += "<h#{@contents[0]} id='raf-head#{@contents[0]}-#{@contents[2]}'>"
36
+ str += "<h#{@contents[0]} id='raf-head#{@contents[0]}-#{@contents[2]}' class='raf-headline'>"
37
37
  str += "<a id='#{@contents[1].to_code}'></a>"
38
38
  str += "#{@contents[3]}" unless @contents[0] == 1 or @contents[0] == 5 or @contents[0] == 6
39
39
  str += "#{@contents[1]}</h#{@contents[0]}>\n"
data/raf.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{raf}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
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
- s.date = %q{2011-04-07}
12
+ s.date = %q{2011-04-11}
13
13
  s.default_executable = %q{raf2html}
14
14
  s.description = %q{raf is simple document format}
15
15
  s.email = %q{garin54@gmail.com}
@@ -47,7 +47,6 @@ Gem::Specification.new do |s|
47
47
  "test/test_erb.rb",
48
48
  "test/test_footnote.rb",
49
49
  "test/test_headline.rb",
50
- "test/test_headline_and_itemlist.rb",
51
50
  "test/test_helper.rb",
52
51
  "test/test_image.rb",
53
52
  "test/test_italic.rb",
@@ -76,7 +75,6 @@ Gem::Specification.new do |s|
76
75
  "test/test_erb.rb",
77
76
  "test/test_footnote.rb",
78
77
  "test/test_headline.rb",
79
- "test/test_headline_and_itemlist.rb",
80
78
  "test/test_helper.rb",
81
79
  "test/test_image.rb",
82
80
  "test/test_italic.rb",
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - garin
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-07 00:00:00 +09:00
18
+ date: 2011-04-11 00:00:00 +09:00
19
19
  default_executable: raf2html
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -116,7 +116,6 @@ files:
116
116
  - test/test_erb.rb
117
117
  - test/test_footnote.rb
118
118
  - test/test_headline.rb
119
- - test/test_headline_and_itemlist.rb
120
119
  - test/test_helper.rb
121
120
  - test/test_image.rb
122
121
  - test/test_italic.rb
@@ -173,7 +172,6 @@ test_files:
173
172
  - test/test_erb.rb
174
173
  - test/test_footnote.rb
175
174
  - test/test_headline.rb
176
- - test/test_headline_and_itemlist.rb
177
175
  - test/test_helper.rb
178
176
  - test/test_image.rb
179
177
  - test/test_italic.rb
@@ -1,40 +0,0 @@
1
- #!/usr/bin/env ruby
2
- $:.unshift File.join(File.dirname(__FILE__), "../lib")
3
- require 'test_helper'
4
- require 'rafblockparser.tab'
5
-
6
- class TestRafHeadLine < Test::Unit::TestCase
7
- def setup
8
- @raf = Raf::BlockParser.new
9
- @hi = StringHeadLineItemlist.new
10
-
11
- end
12
-
13
- def test_headline_is_headline
14
- res = @raf.parse(@hi.single)
15
- #assert_kind_of Raf::HeadLine, res[0]
16
- p res.size
17
- puts "4 is error"
18
- # p res[0].contents
19
- # p res[1].contents
20
- # p res[2].contents
21
- # p res[3].contents
22
-
23
- end
24
-
25
- end
26
-
27
-
28
- class StringHeadLineItemlist
29
- def single
30
- <<EOL
31
- == aaa
32
- aaa
33
-
34
- * list
35
-
36
- === bbb
37
- BBB
38
- EOL
39
- end
40
- end