packnga 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -10
- data/README.textile +5 -2
- data/Rakefile +9 -44
- data/doc/text/news.textile +28 -1
- data/doc/text/release.textile +53 -33
- data/doc/text/tutorial.textile +92 -15
- data/lib/packnga.rb +1 -2
- data/lib/packnga/document-task.rb +49 -15
- data/lib/packnga/reference-task.rb +539 -54
- data/lib/packnga/release-task.rb +7 -7
- data/lib/packnga/version.rb +2 -2
- data/lib/packnga/yard-task.rb +18 -27
- metadata +166 -132
data/lib/packnga/release-task.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
|
-
# Copyright (C) 2011
|
3
|
+
# Copyright (C) 2011 Haruka Yoshihara <yoshihara@clear-code.com>
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -29,27 +29,27 @@ module Packnga
|
|
29
29
|
include Rake::DSL
|
30
30
|
|
31
31
|
# This attribute is path of HTML files written version and release date.
|
32
|
-
# @param [String] path of HTML files
|
32
|
+
# @param [String] value path of HTML files
|
33
33
|
attr_writer :index_html_dir
|
34
34
|
# This attribute is path of base directory of document.
|
35
|
-
# @param [String] path of base directory of document
|
35
|
+
# @param [String] value path of base directory of document
|
36
36
|
attr_writer :base_dir
|
37
37
|
# This attribute is message when tagging in release.
|
38
|
-
# @param [String] message
|
38
|
+
# @param [String] value message
|
39
39
|
attr_writer :tag_message
|
40
40
|
# This attribute is options for uploading RubyForge by rsync.
|
41
|
-
# @param [Hash] options for uploading.
|
41
|
+
# @param [Hash] value options for uploading.
|
42
42
|
attr_writer :publish_options
|
43
43
|
# This attribute is text for changes in new release
|
44
44
|
# to post news to RubyForge.
|
45
|
-
# @param [String] text for changes.
|
45
|
+
# @param [String] value text for changes.
|
46
46
|
attr_writer :changes
|
47
47
|
# Defines task for preparing to release.
|
48
48
|
# Defined tasks update version and release-date in index files
|
49
49
|
# and tag in git.
|
50
50
|
# If you set rubyforge_project of Jeweler::Task.new with its given block,
|
51
51
|
# it also define tasks to update RubyForge.
|
52
|
-
# @param [
|
52
|
+
# @param [Gem::Specification] spec specification for your package
|
53
53
|
def initialize(spec)
|
54
54
|
@spec = spec
|
55
55
|
@index_html_dir = nil
|
data/lib/packnga/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
|
-
# Copyright (C) 2011
|
3
|
+
# Copyright (C) 2011 Haruka Yoshihara <yoshihara@clear-code.com>
|
4
4
|
# Copyright (C) 2011 Kouhei Sutou <kou@clear-code.com>
|
5
5
|
#
|
6
6
|
# This library is free software; you can redistribute it and/or
|
@@ -18,5 +18,5 @@
|
|
18
18
|
|
19
19
|
module Packnga
|
20
20
|
# Packnga version.
|
21
|
-
VERSION = "0.9.
|
21
|
+
VERSION = "0.9.5"
|
22
22
|
end
|
data/lib/packnga/yard-task.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
|
-
# Copyright (C) 2011
|
3
|
+
# Copyright (C) 2011 Haruka Yoshihara <yoshihara@clear-code.com>
|
4
4
|
# Copyright (C) 2011 Kouhei Sutou <kou@clear-code.com>
|
5
5
|
#
|
6
6
|
# This library is free software; you can redistribute it and/or
|
@@ -20,21 +20,29 @@ require "yard"
|
|
20
20
|
|
21
21
|
module Packnga
|
22
22
|
# This class creates YARD task.
|
23
|
-
# YARD task
|
23
|
+
# YARD task generates references by YARD.
|
24
24
|
#
|
25
25
|
# @since 0.9.0
|
26
26
|
class YARDTask
|
27
27
|
include Rake::DSL
|
28
28
|
|
29
|
-
|
29
|
+
# This attribute is used to set README file to yardoc task.
|
30
|
+
# @return [String] path of readme file
|
31
|
+
attr_accessor :readme
|
30
32
|
|
31
|
-
#
|
33
|
+
# This attribute is used to set path of base directory of document.
|
34
|
+
# @return [String] path of base directory of document
|
32
35
|
attr_accessor :base_dir
|
33
36
|
|
34
|
-
#
|
35
|
-
|
37
|
+
# This attribute is used to set source files for document.
|
38
|
+
# @return [Array<String>] target source files
|
39
|
+
attr_accessor :source_files
|
36
40
|
|
37
|
-
#
|
41
|
+
# This attribute is used to set text files for document.
|
42
|
+
# @return [Array<String>] target text files
|
43
|
+
attr_accessor :text_files
|
44
|
+
|
45
|
+
# @return [Array<String>] custom yardoc command line options
|
38
46
|
attr_accessor :options
|
39
47
|
|
40
48
|
# @private
|
@@ -45,19 +53,7 @@ module Packnga
|
|
45
53
|
@text_files = nil
|
46
54
|
@base_dir = nil
|
47
55
|
@options = []
|
48
|
-
@
|
49
|
-
/\Alib\// =~ file and /\.rb\z/ =~ file
|
50
|
-
end
|
51
|
-
if block_given?
|
52
|
-
yield(self)
|
53
|
-
define
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
# This attribute is used to sets README file to yardoc task.
|
58
|
-
# @return [String] path to readme file
|
59
|
-
def readme
|
60
|
-
@readme || Rake::FileList["README*"].to_a.first
|
56
|
+
@source_files = nil
|
61
57
|
end
|
62
58
|
|
63
59
|
# @private
|
@@ -80,11 +76,6 @@ module Packnga
|
|
80
76
|
def set_default_values
|
81
77
|
@base_dir ||= "doc"
|
82
78
|
@base_dir = Pathname.new(@base_dir)
|
83
|
-
if @text_files.nil?
|
84
|
-
@text_files = []
|
85
|
-
text_dir = @base_dir + "text"
|
86
|
-
@text_files << (text_dir + "**/*").to_s if text_dir.directory?
|
87
|
-
end
|
88
79
|
end
|
89
80
|
|
90
81
|
def reference_dir
|
@@ -103,7 +94,7 @@ module Packnga
|
|
103
94
|
def define_yardoc_task
|
104
95
|
YARD::Rake::YardocTask.new do |yardoc_task|
|
105
96
|
yardoc_task.options += ["--title", @spec.name]
|
106
|
-
yardoc_task.options += ["--readme", readme]
|
97
|
+
yardoc_task.options += ["--readme", readme] if readme
|
107
98
|
@text_files.each do |file|
|
108
99
|
yardoc_task.options += ["--files", file]
|
109
100
|
end
|
@@ -111,7 +102,7 @@ module Packnga
|
|
111
102
|
yardoc_task.options += ["--charset", "utf-8"]
|
112
103
|
yardoc_task.options += ["--no-private"]
|
113
104
|
yardoc_task.options += @options
|
114
|
-
yardoc_task.files += @
|
105
|
+
yardoc_task.files += @source_files
|
115
106
|
@hooks.each do |hook|
|
116
107
|
hook.call(yardoc_task)
|
117
108
|
end
|
metadata
CHANGED
@@ -1,181 +1,215 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: packnga
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 9
|
9
|
-
- 4
|
10
|
-
version: 0.9.4
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.5
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Haruka Yoshihara
|
14
9
|
- Kouhei Sutou
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
dependencies:
|
22
|
-
- !ruby/object:Gem::Dependency
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
13
|
+
date: 2012-08-30 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
25
16
|
name: rake
|
26
|
-
|
27
|
-
none: false
|
28
|
-
requirements:
|
29
|
-
- -
|
30
|
-
- !ruby/object:Gem::Version
|
31
|
-
|
32
|
-
segments:
|
33
|
-
- 0
|
34
|
-
version: "0"
|
35
|
-
requirement: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
37
23
|
type: :runtime
|
38
24
|
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '0'
|
31
|
+
- !ruby/object:Gem::Dependency
|
39
32
|
name: yard
|
40
|
-
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
segments:
|
47
|
-
- 0
|
48
|
-
version: "0"
|
49
|
-
requirement: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - ! '>='
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
51
39
|
type: :runtime
|
52
40
|
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
53
48
|
name: rubyforge
|
54
|
-
|
55
|
-
none: false
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
60
|
-
|
61
|
-
- 0
|
62
|
-
version: "0"
|
63
|
-
requirement: *id003
|
64
|
-
- !ruby/object:Gem::Dependency
|
65
|
-
type: :development
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :runtime
|
66
56
|
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: gettext
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ! '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
type: :runtime
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
- !ruby/object:Gem::Dependency
|
67
80
|
name: test-unit
|
68
|
-
|
69
|
-
none: false
|
70
|
-
requirements:
|
71
|
-
- -
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
|
74
|
-
segments:
|
75
|
-
- 0
|
76
|
-
version: "0"
|
77
|
-
requirement: *id004
|
78
|
-
- !ruby/object:Gem::Dependency
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ! '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
79
87
|
type: :development
|
80
88
|
prerelease: false
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ! '>='
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
- !ruby/object:Gem::Dependency
|
81
96
|
name: test-unit-notify
|
82
|
-
|
83
|
-
none: false
|
84
|
-
requirements:
|
85
|
-
- -
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
|
88
|
-
segments:
|
89
|
-
- 0
|
90
|
-
version: "0"
|
91
|
-
requirement: *id005
|
92
|
-
- !ruby/object:Gem::Dependency
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
99
|
+
requirements:
|
100
|
+
- - ! '>='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
93
103
|
type: :development
|
94
104
|
prerelease: false
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
- !
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: test-unit-rr
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ! '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
107
119
|
type: :development
|
108
120
|
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
123
|
+
requirements:
|
124
|
+
- - ! '>='
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: bundler
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
none: false
|
131
|
+
requirements:
|
132
|
+
- - ! '>='
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '0'
|
135
|
+
type: :development
|
136
|
+
prerelease: false
|
137
|
+
version_requirements: !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
139
|
+
requirements:
|
140
|
+
- - ! '>='
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0'
|
143
|
+
- !ruby/object:Gem::Dependency
|
109
144
|
name: RedCloth
|
110
|
-
|
111
|
-
none: false
|
112
|
-
requirements:
|
113
|
-
- -
|
114
|
-
- !ruby/object:Gem::Version
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
145
|
+
requirement: !ruby/object:Gem::Requirement
|
146
|
+
none: false
|
147
|
+
requirements:
|
148
|
+
- - ! '>='
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
151
|
+
type: :development
|
152
|
+
prerelease: false
|
153
|
+
version_requirements: !ruby/object:Gem::Requirement
|
154
|
+
none: false
|
155
|
+
requirements:
|
156
|
+
- - ! '>='
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
description: ! 'Packnga is a library to translate to many languages by YARD.
|
122
160
|
|
123
|
-
|
161
|
+
'
|
162
|
+
email:
|
124
163
|
- yoshihara@clear-code.com
|
125
164
|
- kou@clear-code.com
|
126
165
|
executables: []
|
127
|
-
|
128
166
|
extensions: []
|
129
|
-
|
130
|
-
extra_rdoc_files:
|
167
|
+
extra_rdoc_files:
|
131
168
|
- README.textile
|
132
|
-
files:
|
133
|
-
- Gemfile
|
169
|
+
files:
|
134
170
|
- README.textile
|
135
171
|
- Rakefile
|
136
|
-
-
|
137
|
-
- doc/text/news.textile
|
138
|
-
- doc/text/release.textile
|
139
|
-
- doc/text/tutorial.textile
|
140
|
-
- lib/packnga.rb
|
141
|
-
- lib/packnga/document-task.rb
|
172
|
+
- Gemfile
|
142
173
|
- lib/packnga/reference-task.rb
|
143
|
-
- lib/packnga/
|
144
|
-
- lib/packnga/version.rb
|
174
|
+
- lib/packnga/document-task.rb
|
145
175
|
- lib/packnga/yard-task.rb
|
146
|
-
|
176
|
+
- lib/packnga/version.rb
|
177
|
+
- lib/packnga/release-task.rb
|
178
|
+
- lib/packnga.rb
|
179
|
+
- doc/text/tutorial.textile
|
180
|
+
- doc/text/release.textile
|
181
|
+
- doc/text/lgpl.txt
|
182
|
+
- doc/text/news.textile
|
147
183
|
homepage: http://groonga.rubyforge.org/
|
148
|
-
licenses:
|
184
|
+
licenses:
|
149
185
|
- LGPLv2
|
150
186
|
post_install_message:
|
151
187
|
rdoc_options: []
|
152
|
-
|
153
|
-
require_paths:
|
188
|
+
require_paths:
|
154
189
|
- lib
|
155
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
190
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
156
191
|
none: false
|
157
|
-
requirements:
|
158
|
-
- -
|
159
|
-
- !ruby/object:Gem::Version
|
160
|
-
|
161
|
-
segments:
|
192
|
+
requirements:
|
193
|
+
- - ! '>='
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: '0'
|
196
|
+
segments:
|
162
197
|
- 0
|
163
|
-
|
164
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
198
|
+
hash: -2327966079894861645
|
199
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
200
|
none: false
|
166
|
-
requirements:
|
167
|
-
- -
|
168
|
-
- !ruby/object:Gem::Version
|
169
|
-
|
170
|
-
segments:
|
201
|
+
requirements:
|
202
|
+
- - ! '>='
|
203
|
+
- !ruby/object:Gem::Version
|
204
|
+
version: '0'
|
205
|
+
segments:
|
171
206
|
- 0
|
172
|
-
|
207
|
+
hash: -2327966079894861645
|
173
208
|
requirements: []
|
174
|
-
|
175
209
|
rubyforge_project: groonga
|
176
|
-
rubygems_version: 1.
|
210
|
+
rubygems_version: 1.8.23
|
177
211
|
signing_key:
|
178
212
|
specification_version: 3
|
179
213
|
summary: An utility library to package i18n-ed library.
|
180
214
|
test_files: []
|
181
|
-
|
215
|
+
has_rdoc:
|