packnga 0.9.8 → 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/text/news.textile +7 -1
- data/lib/packnga/reference-task.rb +2 -1
- data/lib/packnga/release-task.rb +2 -1
- data/lib/packnga/version.rb +1 -1
- data/test/test-document-task.rb +8 -7
- data/test/test-release-task.rb +6 -5
- metadata +8 -14
data/doc/text/news.textile
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
h1. NEWS
|
2
2
|
|
3
|
+
h2. 0.9.9: 2013-08-29
|
4
|
+
|
5
|
+
h3. Improvements
|
6
|
+
|
7
|
+
* Added missing dependencies for "release:references:upload" task.
|
8
|
+
|
3
9
|
h2. 0.9.8: 2013-06-07
|
4
10
|
|
5
11
|
h3. Improvements
|
@@ -15,7 +21,7 @@ h3. Improvements
|
|
15
21
|
copy generated references to a HTML directory.
|
16
22
|
A HTML directory, for example, is a repository of GitHub Pages. In
|
17
23
|
this case, this task is used to commit references to GitHub Pages.
|
18
|
-
* [
|
24
|
+
* [ReferenceTask] Dropped support to upload .htaccess.
|
19
25
|
* [ReleaseTask] Used the version in your gemspec as a new version
|
20
26
|
when no version is specified as an argument by "release:info:update"
|
21
27
|
task. A new version is used to replace HTML index files.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
3
|
# Copyright (C) 2011-2013 Haruka Yoshihara <yoshihara@clear-code.com>
|
4
|
-
# Copyright (C) 2012 Kouhei Sutou <kou@clear-code.com>
|
4
|
+
# Copyright (C) 2012-2013 Kouhei Sutou <kou@clear-code.com>
|
5
5
|
#
|
6
6
|
# This library is free software; you can redistribute it and/or
|
7
7
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -128,6 +128,7 @@ module Packnga
|
|
128
128
|
define_generate_task
|
129
129
|
define_publication_task
|
130
130
|
end
|
131
|
+
task html_reference_dir.to_s => "reference:publication:generate"
|
131
132
|
end
|
132
133
|
|
133
134
|
def define_pot_tasks
|
data/lib/packnga/release-task.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
3
|
# Copyright (C) 2011 Haruka Yoshihara <yoshihara@clear-code.com>
|
4
|
+
# Copyright (C) 2013 Kouhei Sutou <kou@clear-code.com>
|
4
5
|
#
|
5
6
|
# This library is free software; you can redistribute it and/or
|
6
7
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -122,7 +123,7 @@ module Packnga
|
|
122
123
|
def define_reference_upload_task
|
123
124
|
namespace :references do
|
124
125
|
desc "Copy references to reference html directory."
|
125
|
-
task :upload do
|
126
|
+
task :upload => html_reference_dir do
|
126
127
|
cp_r(html_reference_dir, @index_html_dir)
|
127
128
|
end
|
128
129
|
end
|
data/lib/packnga/version.rb
CHANGED
data/test/test-document-task.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
3
|
# Copyright (C) 2012 Haruka Yoshihara <yoshihara@clear-code.com>
|
4
|
+
# Copyright (C) 2013 Kouhei Sutou <kou@clear-code.com>
|
4
5
|
#
|
5
6
|
# This library is free software; you can redistribute it and/or
|
6
7
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -21,7 +22,7 @@ class DocumentTaskTest < Test::Unit::TestCase
|
|
21
22
|
end
|
22
23
|
|
23
24
|
def test_base_directory_set
|
24
|
-
spec = Gem::Specification.new
|
25
|
+
spec = Gem::Specification.new("test")
|
25
26
|
base_dir = Pathname("base_directory")
|
26
27
|
document_task = Packnga::DocumentTask.new(spec) do |task|
|
27
28
|
task.base_dir = base_dir.to_s
|
@@ -62,7 +63,7 @@ class DocumentTaskTest < Test::Unit::TestCase
|
|
62
63
|
translate_languages = options[:translate_languages]
|
63
64
|
translate_language = options[:translate_language]
|
64
65
|
|
65
|
-
spec = Gem::Specification.new
|
66
|
+
spec = Gem::Specification.new("test")
|
66
67
|
Packnga::DocumentTask.new(spec) do |task|
|
67
68
|
if translate_languages.nil?
|
68
69
|
task.translate_language = translate_language
|
@@ -75,7 +76,7 @@ class DocumentTaskTest < Test::Unit::TestCase
|
|
75
76
|
|
76
77
|
def test_original_language
|
77
78
|
original_language = "original_language"
|
78
|
-
spec = Gem::Specification.new
|
79
|
+
spec = Gem::Specification.new("test")
|
79
80
|
document_task = Packnga::DocumentTask.new(spec) do |task|
|
80
81
|
task.original_language = original_language
|
81
82
|
end
|
@@ -88,7 +89,7 @@ class DocumentTaskTest < Test::Unit::TestCase
|
|
88
89
|
class ReadmeTest < self
|
89
90
|
def setup
|
90
91
|
@readme = "README.textile"
|
91
|
-
spec = Gem::Specification.new do |_spec|
|
92
|
+
spec = Gem::Specification.new("test") do |_spec|
|
92
93
|
_spec.files = [@readme]
|
93
94
|
end
|
94
95
|
document_task = Packnga::DocumentTask.new(spec)
|
@@ -120,7 +121,7 @@ class DocumentTaskTest < Test::Unit::TestCase
|
|
120
121
|
source_c_files = ["ext/packnga.c", "ext/packnga/version.c"]
|
121
122
|
other_c_files = ["other1.c", "lib/other2.c"]
|
122
123
|
|
123
|
-
spec = Gem::Specification.new do |_spec|
|
124
|
+
spec = Gem::Specification.new("test") do |_spec|
|
124
125
|
_spec.files = [
|
125
126
|
source_ruby_files,
|
126
127
|
other_ruby_files,
|
@@ -156,7 +157,7 @@ class DocumentTaskTest < Test::Unit::TestCase
|
|
156
157
|
@source_text_files = ["doc/text/tutorial.textile", "doc/text/new.md"]
|
157
158
|
other_text_files = ["other1.textile", "doc/other2.md", "Rakefile"]
|
158
159
|
|
159
|
-
spec = Gem::Specification.new do |_spec|
|
160
|
+
spec = Gem::Specification.new("test") do |_spec|
|
160
161
|
_spec.files = [
|
161
162
|
@source_text_files,
|
162
163
|
other_text_files,
|
@@ -185,7 +186,7 @@ class DocumentTaskTest < Test::Unit::TestCase
|
|
185
186
|
|
186
187
|
class NoFilesTest < self
|
187
188
|
def setup
|
188
|
-
spec = Gem::Specification.new
|
189
|
+
spec = Gem::Specification.new("test")
|
189
190
|
document_task = Packnga::DocumentTask.new(spec)
|
190
191
|
@yard_task = extract_yard_task(document_task)
|
191
192
|
@reference_task = extract_reference_task(document_task)
|
data/test/test-release-task.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
3
|
# Copyright (C) 2013 Haruka Yoshihara <yoshihara@clear-code.com>
|
4
|
+
# Copyright (C) 2013 Kouhei Sutou <kou@clear-code.com>
|
4
5
|
#
|
5
6
|
# This library is free software; you can redistribute it and/or
|
6
7
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -28,7 +29,7 @@ class ReleaseTaskTest < Test::Unit::TestCase
|
|
28
29
|
Dir.mktmpdir do |base_dir|
|
29
30
|
index_dir = File.join(base_dir, "index_dir")
|
30
31
|
|
31
|
-
spec = Gem::Specification.new
|
32
|
+
spec = Gem::Specification.new("test")
|
32
33
|
|
33
34
|
Packnga::ReleaseTask.new(spec) do |task|
|
34
35
|
task.index_html_dir = index_dir
|
@@ -58,7 +59,7 @@ class ReleaseTaskTest < Test::Unit::TestCase
|
|
58
59
|
index_dir = File.join(base_dir, "index_dir")
|
59
60
|
|
60
61
|
spec = nil
|
61
|
-
Gem::Specification.new do |_spec|
|
62
|
+
Gem::Specification.new("test") do |_spec|
|
62
63
|
spec = _spec
|
63
64
|
spec.version = "1.0.1"
|
64
65
|
end
|
@@ -91,7 +92,7 @@ class ReleaseTaskTest < Test::Unit::TestCase
|
|
91
92
|
Dir.mktmpdir do |base_dir|
|
92
93
|
index_dir = File.join(base_dir, "index_dir")
|
93
94
|
|
94
|
-
spec = Gem::Specification.new
|
95
|
+
spec = Gem::Specification.new("test")
|
95
96
|
Packnga::ReleaseTask.new(spec) do |task|
|
96
97
|
task.index_html_dir = index_dir
|
97
98
|
task.base_dir = base_dir
|
@@ -122,7 +123,7 @@ class ReleaseTaskTest < Test::Unit::TestCase
|
|
122
123
|
Dir.mktmpdir do |base_dir|
|
123
124
|
index_dir = File.join(base_dir, "index_dir")
|
124
125
|
|
125
|
-
Packnga::ReleaseTask.new(Gem::Specification.new) do |task|
|
126
|
+
Packnga::ReleaseTask.new(Gem::Specification.new("test")) do |task|
|
126
127
|
task.index_html_dir = index_dir
|
127
128
|
task.base_dir = base_dir
|
128
129
|
end
|
@@ -171,7 +172,7 @@ class ReleaseTaskTest < Test::Unit::TestCase
|
|
171
172
|
reference_dir = File.join(base_dir, "html", package_name)
|
172
173
|
reference_filename = "file.html"
|
173
174
|
|
174
|
-
spec = Gem::Specification.new do |_spec|
|
175
|
+
spec = Gem::Specification.new("test") do |_spec|
|
175
176
|
_spec.name = package_name
|
176
177
|
end
|
177
178
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: packnga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-08-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -156,20 +156,20 @@ files:
|
|
156
156
|
- Gemfile
|
157
157
|
- .yardopts
|
158
158
|
- packnga.gemspec
|
159
|
-
- lib/packnga/document-task.rb
|
160
|
-
- lib/packnga/reference-task.rb
|
161
|
-
- lib/packnga/release-task.rb
|
162
159
|
- lib/packnga/version.rb
|
160
|
+
- lib/packnga/release-task.rb
|
161
|
+
- lib/packnga/reference-task.rb
|
162
|
+
- lib/packnga/document-task.rb
|
163
163
|
- lib/packnga/yard-task.rb
|
164
164
|
- lib/packnga.rb
|
165
|
+
- doc/text/tutorial.textile
|
165
166
|
- doc/text/lgpl.txt
|
166
167
|
- doc/text/news.textile
|
167
168
|
- doc/text/release.textile
|
168
|
-
- doc/text/tutorial.textile
|
169
|
-
- test/run-test.rb
|
170
169
|
- test/test-document-task.rb
|
171
170
|
- test/test-reference-task.rb
|
172
171
|
- test/test-release-task.rb
|
172
|
+
- test/run-test.rb
|
173
173
|
homepage: http://ranguba.org/packnga/en/
|
174
174
|
licenses:
|
175
175
|
- LGPLv2
|
@@ -183,18 +183,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
183
183
|
- - ! '>='
|
184
184
|
- !ruby/object:Gem::Version
|
185
185
|
version: '0'
|
186
|
-
segments:
|
187
|
-
- 0
|
188
|
-
hash: -2492821662086626858
|
189
186
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
190
187
|
none: false
|
191
188
|
requirements:
|
192
189
|
- - ! '>='
|
193
190
|
- !ruby/object:Gem::Version
|
194
191
|
version: '0'
|
195
|
-
segments:
|
196
|
-
- 0
|
197
|
-
hash: -2492821662086626858
|
198
192
|
requirements: []
|
199
193
|
rubyforge_project:
|
200
194
|
rubygems_version: 1.8.23
|
@@ -202,8 +196,8 @@ signing_key:
|
|
202
196
|
specification_version: 3
|
203
197
|
summary: An utility library to package i18n-ed library.
|
204
198
|
test_files:
|
205
|
-
- test/run-test.rb
|
206
199
|
- test/test-document-task.rb
|
207
200
|
- test/test-reference-task.rb
|
208
201
|
- test/test-release-task.rb
|
202
|
+
- test/run-test.rb
|
209
203
|
has_rdoc:
|