rdtool 0.6.32 → 0.6.33

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY CHANGED
@@ -53,8 +53,6 @@
53
53
  Emacs major mode for RD.
54
54
  :doc/rd-draft.rd(.ja)
55
55
  RD working draft.(obsolete)
56
- :makrrdtool.rb
57
- script to make Makefile.
58
56
  :README.rd(.ja)
59
57
  README file.
60
58
  :HISTORY
@@ -67,6 +65,9 @@ RDtool include files which is copyrighted by somebody elses.
67
65
  Please read these files for those lisence info.
68
66
 
69
67
  = CHANGES
68
+ :0.6.33
69
+ * Typo fixed
70
+ * Remove makerdtool.rb, merge Rake task.
70
71
  :0.6.32
71
72
  * Fix for Ruby 1.9.1. Thanks to Shin-ya Murakami
72
73
  * Update Rakefile to create gem and .tar.gz, no longer needed jeweler.
data/README.html CHANGED
@@ -7,7 +7,7 @@
7
7
  <title>README.rd</title>
8
8
  </head>
9
9
  <body>
10
- <h1><a name="label-0" id="label-0">RDtool 0.6.31</a></h1><!-- RDLabel: "RDtool 0.6.31" -->
10
+ <h1><a name="label-0" id="label-0">RDtool 0.6.33</a></h1><!-- RDLabel: "RDtool 0.6.33" -->
11
11
  <h2><a name="label-1" id="label-1">What is RDtool</a></h2><!-- RDLabel: "What is RDtool" -->
12
12
  <p>RD is Ruby's POD. RDtool is formatter for RD.</p>
13
13
  <h2><a name="label-2" id="label-2">What is Changed</a></h2><!-- RDLabel: "What is Changed" -->
data/README.ja.html CHANGED
@@ -7,7 +7,7 @@
7
7
  <title>README.rd.ja</title>
8
8
  </head>
9
9
  <body>
10
- <h1><a name="label-0" id="label-0">RDtool 0.6.31</a></h1><!-- RDLabel: "RDtool 0.6.31" -->
10
+ <h1><a name="label-0" id="label-0">RDtool 0.6.33</a></h1><!-- RDLabel: "RDtool 0.6.33" -->
11
11
  <h2><a name="label-1" id="label-1">RDってなに?</a></h2><!-- RDLabel: "RDってなに?" -->
12
12
  <p>RDはRubyにおけるPOD(Plain Old Documentation)のようなものです。
13
13
  RDtoolはRDのフォーマッタであり、RDをHTMLなどに変換できます。</p>
data/README.rd CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- mode: rd; coding: utf-8; indent-tabs-mode: nil -*-
2
2
  =begin
3
- = RDtool 0.6.31
3
+ = RDtool 0.6.33
4
4
  == What is RDtool
5
5
 
6
6
  RD is Ruby's POD. RDtool is formatter for RD.
data/README.rd.ja CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- mode: rd; coding: utf-8; indent-tabs-mode: nil -*-
2
2
  =begin
3
- = RDtool 0.6.31
3
+ = RDtool 0.6.33
4
4
  == RDってなに?
5
5
 
6
6
  RDはRubyにおけるPOD(Plain Old Documentation)のようなものです。
data/Rakefile CHANGED
@@ -102,7 +102,7 @@ task :build => [:gemspec, :package] do
102
102
  end
103
103
 
104
104
  desc "Update #{gemspec_file}"
105
- task :gemspec => [:racc, :doc] do
105
+ task :gemspec => [:racc, :doc, :bump_version] do
106
106
  unless File.read('HISTORY') =~ /#{version}/
107
107
  puts "Update HISTORY!!"
108
108
  exit!
@@ -14,7 +14,7 @@ module RD
14
14
 
15
15
  class RDParser < Racc::Parser
16
16
 
17
- module_eval <<'..end lib/rd/rdblockparser.ry modeval..id8f0eb19cd5', 'lib/rd/rdblockparser.ry', 231
17
+ module_eval <<'..end lib/rd/rdblockparser.ry modeval..id889019eb28', 'lib/rd/rdblockparser.ry', 231
18
18
  include ParserUtility
19
19
 
20
20
  TMPFILE = ["rdtmp", $$, 0]
@@ -296,7 +296,7 @@ def format_line_num(*args)
296
296
  end
297
297
  private :format_line_num
298
298
 
299
- ..end lib/rd/rdblockparser.ry modeval..id8f0eb19cd5
299
+ ..end lib/rd/rdblockparser.ry modeval..id889019eb28
300
300
 
301
301
  ##### racc 1.4.5 generates ###
302
302
 
@@ -16,7 +16,7 @@ module RD
16
16
 
17
17
  class RDInlineParser < Racc::Parser
18
18
 
19
- module_eval <<'..end lib/rd/rdinlineparser.ry modeval..idb94166fc78', 'lib/rd/rdinlineparser.ry', 292
19
+ module_eval <<'..end lib/rd/rdinlineparser.ry modeval..id1109c567c8', 'lib/rd/rdinlineparser.ry', 292
20
20
  include ParserUtility
21
21
  extend Forwardable
22
22
 
@@ -219,7 +219,7 @@ def next_words_on_error
219
219
  end
220
220
  end
221
221
 
222
- ..end lib/rd/rdinlineparser.ry modeval..idb94166fc78
222
+ ..end lib/rd/rdinlineparser.ry modeval..id1109c567c8
223
223
 
224
224
  ##### racc 1.4.5 generates ###
225
225
 
data/lib/rd/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module RD
2
2
 
3
- VERSION = '0.6.32'
3
+ VERSION = '0.6.33'
4
4
 
5
5
  class Version
6
6
  attr_reader :name
data/rdtool.gemspec CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = "1.3.5"
5
5
 
6
6
  s.name = 'rdtool'
7
- s.version = '0.6.32'
7
+ s.version = '0.6.33'
8
8
  s.date = '2012-02-15'
9
9
 
10
10
  s.summary = "RDtool is formatter for RD."
@@ -73,7 +73,6 @@ Gem::Specification.new do |s|
73
73
  lib/rd/tree.rb
74
74
  lib/rd/version.rb
75
75
  lib/rd/visitor.rb
76
- makerdtool.rb
77
76
  rdtool.gemspec
78
77
  setup.rb
79
78
  test/data/includee1.html
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdtool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.32
4
+ version: 0.6.33
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: racc
16
- requirement: &14105100 !ruby/object:Gem::Requirement
16
+ requirement: &18909880 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.4.6
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *14105100
24
+ version_requirements: *18909880
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &14103860 !ruby/object:Gem::Requirement
27
+ requirement: &18908640 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *14103860
35
+ version_requirements: *18908640
36
36
  description: RD is multipurpose documentation format created for documentating Ruby
37
37
  and output of Ruby world. You can embed RD into Ruby script. And RD have neat syntax
38
38
  which help you to read document in Ruby script. On the other hand, RD have a feature
@@ -95,7 +95,6 @@ files:
95
95
  - lib/rd/tree.rb
96
96
  - lib/rd/version.rb
97
97
  - lib/rd/visitor.rb
98
- - makerdtool.rb
99
98
  - rdtool.gemspec
100
99
  - setup.rb
101
100
  - test/data/includee1.html
data/makerdtool.rb DELETED
@@ -1,81 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # -*- mode: ruby; coding: utf-8; -*-
3
- # Make for rdtool.
4
- # Copyright (C) 2004 MoonWolf <moonwolf@moonwolf.com>
5
- # Copyright (C) 2011 Youhei SASAKI <uwabami@gfd-dennou.org>
6
-
7
- require 'rbconfig' unless defined? RbConfig
8
- require 'optparse'
9
- require 'find'
10
-
11
- bindir = RbConfig::CONFIG['bindir']
12
- sitelibdir = RbConfig::CONFIG['sitelibdir']
13
- racc = nil
14
- version = ARGV.shift || File.read("VERSION")
15
- $dryrun = false
16
- $force = false
17
- $quiet = false
18
-
19
- opt = OptionParser.new
20
-
21
- opt.on('--bindir=DIR') {|v| bindir = v }
22
- opt.on('--sitelibdir=DIR') {|v| sitelibdir = v }
23
- opt.on('--with-racc=RACC') {|v| racc = v }
24
- opt.on('--version') {|v| version = v }
25
- opt.on('-n', '--dry-run') {$dryrun = true}
26
- opt.on('--force') {$force = true}
27
- opt.on('--quiet') {$quiet = true}
28
-
29
- opt.parse!(ARGV)
30
-
31
- Find.find('.') {|path|
32
- unless path =~ /(\.git.*)|(pkg.*)/
33
- path = File.expand_path(path)
34
- next if FileTest.directory? path
35
- next if path=~/\/(\..+|HISTORY|test-version\.rb)\z/
36
- next unless orig = IO.read(path)
37
- after = orig.gsub(/0\.\d\.\d+/, version)
38
- unless after == orig
39
- open(path,'wb') {|f|
40
- f.write after
41
- }
42
- end
43
- end
44
- }
45
-
46
-
47
- racc ||= 'racc'
48
- rd2 = File.join(File.dirname(File.expand_path(__FILE__)),'bin','rd2')
49
-
50
- def uptodate?(new, old_list)
51
- if !$force and File.exist?(new)
52
- new_time = File.mtime(new)
53
- !old_list.any? {|old| File.exist?(old) and File.mtime(old) > new_time}
54
- else
55
- false
56
- end
57
- end
58
-
59
- def run(*args)
60
- puts args.join(' ') unless $quiet
61
- system(*args) unless $dryrun
62
- end
63
-
64
- def depend(dest, src)
65
- uptodate?(dest, src) or yield(src, dest)
66
- end
67
-
68
- # Parser make
69
- Dir.glob('lib/rd/*.ry') do |ry|
70
- depend(ry.chomp(".ry") + ".tab.rb", [ry]) do
71
- run(racc, ry)
72
- end
73
- end
74
-
75
- # Document make
76
- Dir.glob('**/*.rd{,.*}') do |rd|
77
- depend(rd.sub(/\.rd(.*)\z/, '\1.html'), [rd]) do
78
- html = rd.sub(/\.rd/, '')
79
- run(rd2, "-o", html, rd)
80
- end
81
- end