hoe 3.11.0 → 3.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +4 -1
- data.tar.gz.sig +0 -0
- data/{History.txt → History.rdoc} +8 -0
- data/Manifest.txt +3 -2
- data/{README.txt → README.rdoc} +4 -0
- data/Rakefile +4 -5
- data/lib/hoe.rb +1 -1
- data/lib/hoe/rdoc.rb +13 -0
- data/test/test_hoe.rb +18 -52
- data/test/test_hoe_publish.rb +5 -2
- metadata +8 -7
- metadata.gz.sig +1 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee1d3d6ffd8fd70a7e19aee46734bea87baab077
|
4
|
+
data.tar.gz: f96744188c3ef4d36e2284fd6386af32df95fbc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8bf5f95f325ddfe80fc24f9d92516deed7fc5b7297b63f3ee845b03a8b8b3cc8fcb38ecd2d0e8ff81362e22e424a7fc98c3970e855443313863b1e581fba997
|
7
|
+
data.tar.gz: b82f90381fb8caf87b512dec7e3e2a79148e90978ae63a5d77fa51cdf622ae70cda11c0eff69267f233227303bafcdd806e46ab2b4ccabf0df99f42898ae5bdb
|
checksums.yaml.gz.sig
CHANGED
@@ -1 +1,4 @@
|
|
1
|
-
|
1
|
+
���P��VCIWy1'�JM�I�c0)(�~�?39����IB:����A�P�
|
2
|
+
�'&��<<�z����aZ��S}[�z';
|
3
|
+
$�=�Hv�c��}9ͥ��C(��$0�l�<�
|
4
|
+
O�J^
|
data.tar.gz.sig
CHANGED
Binary file
|
data/Manifest.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
.autotest
|
2
|
-
History.
|
2
|
+
History.rdoc
|
3
3
|
Hoe.pdf
|
4
4
|
Manifest.txt
|
5
|
-
README.
|
5
|
+
README.rdoc
|
6
6
|
Rakefile
|
7
7
|
bin/sow
|
8
8
|
lib/hoe.rb
|
@@ -21,6 +21,7 @@ lib/hoe/publish.rb
|
|
21
21
|
lib/hoe/racc.rb
|
22
22
|
lib/hoe/rake.rb
|
23
23
|
lib/hoe/rcov.rb
|
24
|
+
lib/hoe/rdoc.rb
|
24
25
|
lib/hoe/signing.rb
|
25
26
|
lib/hoe/test.rb
|
26
27
|
template/.autotest.erb
|
data/{README.txt → README.rdoc}
RENAMED
@@ -184,10 +184,13 @@ Again, this must be done before the Hoe spec, or it won't be useful.
|
|
184
184
|
* hoe-gemcutter - Adds gemcutter release automation to Hoe.
|
185
185
|
* hoe-geminabox - Allows you to push your gems to geminabox
|
186
186
|
* hoe-gemspec - Generate a prerelease gemspec based on a Hoe spec.
|
187
|
+
* hoe-gemspec2 - ??? submit a PR to add description
|
187
188
|
* hoe-git - A set of Hoe plugins for tighter Git integration.
|
188
189
|
* hoe-heroku - Helps you get your stuff on Heroku.
|
189
190
|
* hoe-hg - A Hoe plugin for Mercurial integration.
|
190
191
|
* hoe-highline - A Hoe plugin for building interactive Rake tasks
|
192
|
+
* hoe-ignore - ??? submit a PR to add description
|
193
|
+
* hoe-manifest - ??? submit a PR to add description
|
191
194
|
* hoe-manualgen - A manual-generation plugin for Hoe
|
192
195
|
* hoe-mercurial - A Hoe plugin for Mercurial integration.
|
193
196
|
* hoe-reek - Integrates the reek code smell engine into your hoe projects.
|
@@ -196,6 +199,7 @@ Again, this must be done before the Hoe spec, or it won't be useful.
|
|
196
199
|
* hoe-seattlerb - Minitest, email announcements, release branching.
|
197
200
|
* hoe-telicopter - Provides tasks used by hotelicopter.
|
198
201
|
* hoe-travis - Allows your gem to gain maximum benefit from <http://travis-ci.org>.
|
202
|
+
* hoe-version - ??? submit a PR to add description
|
199
203
|
* hoe-yard - A Hoe plugin for generating YARD documentation.
|
200
204
|
|
201
205
|
=== Writing Plugins:
|
data/Rakefile
CHANGED
@@ -5,6 +5,7 @@ require './lib/hoe.rb'
|
|
5
5
|
|
6
6
|
Hoe.plugin :seattlerb
|
7
7
|
Hoe.plugin :isolate
|
8
|
+
Hoe.plugin :rdoc
|
8
9
|
|
9
10
|
Hoe.spec "hoe" do
|
10
11
|
developer "Ryan Davis", "ryand-ruby@zenspider.com"
|
@@ -39,11 +40,9 @@ task :known_plugins do
|
|
39
40
|
end
|
40
41
|
end
|
41
42
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
sh "chmod ug+w doc/Hoe.pdf"
|
46
|
-
end
|
43
|
+
task :docs do
|
44
|
+
cp "Hoe.pdf", "doc"
|
45
|
+
sh "chmod ug+w doc/Hoe.pdf"
|
47
46
|
end
|
48
47
|
|
49
48
|
# vim: syntax=ruby
|
data/lib/hoe.rb
CHANGED
data/lib/hoe/rdoc.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
##
|
2
|
+
# RDoc plugin for hoe. Switches default text files to rdoc.
|
3
|
+
|
4
|
+
module Hoe::Rdoc
|
5
|
+
def initialize_rdoc
|
6
|
+
self.readme_file = self.readme_file.sub(/\.txt$/, ".rdoc")
|
7
|
+
self.history_file = self.history_file.sub(/\.txt$/, ".rdoc")
|
8
|
+
end
|
9
|
+
|
10
|
+
def define_rdoc_tasks
|
11
|
+
# do nothing
|
12
|
+
end
|
13
|
+
end
|
data/test/test_hoe.rb
CHANGED
@@ -11,10 +11,14 @@ end
|
|
11
11
|
$rakefile = nil # shuts up a warning in rdoctask.rb
|
12
12
|
|
13
13
|
class TestHoe < Minitest::Test
|
14
|
-
def hoe
|
15
|
-
@hoe ||= Hoe.spec
|
16
|
-
developer
|
17
|
-
license
|
14
|
+
def hoe(*skips, &b)
|
15
|
+
@hoe ||= Hoe.spec "blah" do
|
16
|
+
developer "author", "email"
|
17
|
+
license "MIT" unless skips.include? :skip_license
|
18
|
+
self.version = "1.0" unless skips.include? :skip_version
|
19
|
+
self.readme_file = "README.rdoc" unless skips.include? :skip_files
|
20
|
+
self.history_file = "History.rdoc" unless skips.include? :skip_files
|
21
|
+
self.instance_eval(&b) if b
|
18
22
|
end
|
19
23
|
end
|
20
24
|
|
@@ -151,12 +155,6 @@ class TestHoe < Minitest::Test
|
|
151
155
|
open 'README.rdoc', 'w' do |io| io.puts '= blah' end
|
152
156
|
open 'History.rdoc', 'w' do |io| io.puts '=== 1.0' end
|
153
157
|
|
154
|
-
hoe = Hoe.spec 'blah' do
|
155
|
-
self.version = '1.0'
|
156
|
-
developer 'nobody', 'nobody@example'
|
157
|
-
license 'MIT'
|
158
|
-
end
|
159
|
-
|
160
158
|
assert_equal 'History.rdoc', hoe.history_file
|
161
159
|
assert_equal 'README.rdoc', hoe.readme_file
|
162
160
|
assert_equal %w[FAQ.rdoc History.rdoc README.rdoc],
|
@@ -178,13 +176,7 @@ class TestHoe < Minitest::Test
|
|
178
176
|
open 'README.ja.rdoc', 'w' do |io| io.puts '= blah' end
|
179
177
|
open 'History.rdoc', 'w' do |io| io.puts '=== 1.0' end
|
180
178
|
|
181
|
-
|
182
|
-
self.version = '1.0'
|
183
|
-
developer 'nobody', 'nobody@example'
|
184
|
-
license 'MIT'
|
185
|
-
end
|
186
|
-
|
187
|
-
assert_equal 'README.ja.rdoc', hoe.readme_file
|
179
|
+
assert_equal 'README.ja.rdoc', hoe(:skip_files).readme_file
|
188
180
|
end
|
189
181
|
end
|
190
182
|
end
|
@@ -237,10 +229,9 @@ class TestHoe < Minitest::Test
|
|
237
229
|
|
238
230
|
def test_possibly_better
|
239
231
|
t = Gem::Specification::TODAY
|
240
|
-
|
232
|
+
|
233
|
+
hoe = self.hoe do
|
241
234
|
self.version = '1.2.3'
|
242
|
-
developer 'author', 'email'
|
243
|
-
license 'MIT'
|
244
235
|
end
|
245
236
|
|
246
237
|
files = File.read("Manifest.txt").split(/\n/) + [".gemtest"]
|
@@ -258,7 +249,7 @@ class TestHoe < Minitest::Test
|
|
258
249
|
|
259
250
|
assert_equal urls, hoe.urls
|
260
251
|
|
261
|
-
text_files = files.grep(/txt$/).reject { |f| f =~ /template/ }
|
252
|
+
text_files = files.grep(/(txt|rdoc)$/).reject { |f| f =~ /template/ }
|
262
253
|
|
263
254
|
assert_equal 'blah', spec.name
|
264
255
|
assert_equal '1.2.3', spec.version.to_s
|
@@ -272,7 +263,7 @@ class TestHoe < Minitest::Test
|
|
272
263
|
assert_equal text_files, spec.extra_rdoc_files
|
273
264
|
assert_equal files.sort, spec.files.sort
|
274
265
|
assert_equal urls["home"], spec.homepage
|
275
|
-
assert_equal ['--main', 'README.
|
266
|
+
assert_equal ['--main', 'README.rdoc'], spec.rdoc_options
|
276
267
|
assert_equal ['lib'], spec.require_paths
|
277
268
|
assert_equal Gem::RubyGemsVersion, spec.rubygems_version
|
278
269
|
assert_match(/^Hoe.*Rakefiles$/, spec.summary)
|
@@ -292,12 +283,7 @@ class TestHoe < Minitest::Test
|
|
292
283
|
|
293
284
|
def test_no_license
|
294
285
|
out, err = capture_io do
|
295
|
-
|
296
|
-
self.version = '1.2.3'
|
297
|
-
developer 'author', 'email'
|
298
|
-
end
|
299
|
-
|
300
|
-
assert_equal ["MIT"], hoe.spec.licenses
|
286
|
+
assert_equal ["MIT"], self.hoe(:skip_license).spec.licenses
|
301
287
|
end
|
302
288
|
|
303
289
|
assert_equal "", out
|
@@ -305,21 +291,13 @@ class TestHoe < Minitest::Test
|
|
305
291
|
end
|
306
292
|
|
307
293
|
def test_license
|
308
|
-
|
309
|
-
self.version = '1.2.3'
|
310
|
-
developer 'author', 'email'
|
311
|
-
license 'MIT'
|
312
|
-
end
|
313
|
-
|
314
|
-
spec = hoe.spec
|
294
|
+
spec = self.hoe.spec
|
315
295
|
|
316
296
|
assert_equal %w(MIT), spec.licenses
|
317
297
|
end
|
318
298
|
|
319
299
|
def test_multiple_calls_to_license
|
320
|
-
hoe =
|
321
|
-
self.version = '1.2.3'
|
322
|
-
developer 'author', 'email'
|
300
|
+
hoe = self.hoe :skip_license do
|
323
301
|
license 'MIT'
|
324
302
|
license 'GPL-2'
|
325
303
|
end
|
@@ -330,9 +308,7 @@ class TestHoe < Minitest::Test
|
|
330
308
|
end
|
331
309
|
|
332
310
|
def test_setting_licenses
|
333
|
-
hoe =
|
334
|
-
self.version = '1.2.3'
|
335
|
-
developer 'author', 'email'
|
311
|
+
hoe = self.hoe :skip_license do
|
336
312
|
self.licenses = ['MIT', 'GPL-2']
|
337
313
|
end
|
338
314
|
|
@@ -352,11 +328,6 @@ class TestHoe < Minitest::Test
|
|
352
328
|
end
|
353
329
|
|
354
330
|
def test_read_manifest
|
355
|
-
hoe = Hoe.spec 'blah' do
|
356
|
-
developer 'author', 'email'
|
357
|
-
license 'MIT'
|
358
|
-
end
|
359
|
-
|
360
331
|
expected = File.read_utf('Manifest.txt').split
|
361
332
|
|
362
333
|
assert_equal expected, hoe.read_manifest
|
@@ -374,11 +345,7 @@ class TestHoe < Minitest::Test
|
|
374
345
|
end
|
375
346
|
|
376
347
|
def test_nosudo
|
377
|
-
hoe =
|
378
|
-
self.version = '1.2.3'
|
379
|
-
developer 'author', 'email'
|
380
|
-
license 'MIT'
|
381
|
-
|
348
|
+
hoe = self.hoe do
|
382
349
|
def system cmd
|
383
350
|
cmd
|
384
351
|
end
|
@@ -433,5 +400,4 @@ class TestHoe < Minitest::Test
|
|
433
400
|
File.delete overrides_rcfile if File.exist?( overrides_rcfile )
|
434
401
|
ENV['HOME'] = home
|
435
402
|
end
|
436
|
-
|
437
403
|
end
|
data/test/test_hoe_publish.rb
CHANGED
@@ -12,15 +12,18 @@ class TestHoePublish < Minitest::Test
|
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
15
|
+
make_my_diffs_pretty!
|
16
|
+
|
15
17
|
def test_make_rdoc_cmd
|
16
18
|
expected = %W[
|
17
19
|
#{Gem.bin_wrapper "rdoc"}
|
18
20
|
--title blah-1.0\ Documentation
|
19
21
|
-o doc
|
20
|
-
--main README.
|
22
|
+
--main README.rdoc
|
21
23
|
lib
|
22
|
-
History.
|
24
|
+
History.rdoc Manifest.txt README.rdoc
|
23
25
|
]
|
26
|
+
|
24
27
|
assert_equal expected, @hoe.make_rdoc_cmd
|
25
28
|
end
|
26
29
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
Y4evBVezr3SjXz08vPqRO5YRdO3zfeMT8gBjRqZjWJGMZ2lD4XNfrs7eky74CyZw
|
30
30
|
xx3n58i0lQkBE1EpKE0lFu/y
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2014-04-
|
32
|
+
date: 2014-04-23 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: rake
|
@@ -96,16 +96,16 @@ executables:
|
|
96
96
|
- sow
|
97
97
|
extensions: []
|
98
98
|
extra_rdoc_files:
|
99
|
-
- History.
|
99
|
+
- History.rdoc
|
100
100
|
- Manifest.txt
|
101
|
-
- README.
|
101
|
+
- README.rdoc
|
102
102
|
files:
|
103
103
|
- .autotest
|
104
104
|
- .gemtest
|
105
|
-
- History.
|
105
|
+
- History.rdoc
|
106
106
|
- Hoe.pdf
|
107
107
|
- Manifest.txt
|
108
|
-
- README.
|
108
|
+
- README.rdoc
|
109
109
|
- Rakefile
|
110
110
|
- bin/sow
|
111
111
|
- lib/hoe.rb
|
@@ -124,6 +124,7 @@ files:
|
|
124
124
|
- lib/hoe/racc.rb
|
125
125
|
- lib/hoe/rake.rb
|
126
126
|
- lib/hoe/rcov.rb
|
127
|
+
- lib/hoe/rdoc.rb
|
127
128
|
- lib/hoe/signing.rb
|
128
129
|
- lib/hoe/test.rb
|
129
130
|
- template/.autotest.erb
|
@@ -146,7 +147,7 @@ metadata: {}
|
|
146
147
|
post_install_message:
|
147
148
|
rdoc_options:
|
148
149
|
- --main
|
149
|
-
- README.
|
150
|
+
- README.rdoc
|
150
151
|
require_paths:
|
151
152
|
- lib
|
152
153
|
required_ruby_version: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
J�R�虃�[-�Jz6���
|
1
|
+
� ����=1�~vM�u�{�<0%�~�`�;�ωO�G�>ӣ}#���mg�|�ֈ��I�k�w��y��wC��|��Ӡ��Z���M��x��p�O��ǁ:sv���ZW}|�+z�%��'���%_|��cX�\��3�.oߺo��gg�5��ӱ��2��wԚ�V5���~k/T�aʅ(���r<��^Q� S�d��.�ۡ�"ؔK�s�3k{����u�~�m���ax3�6�O�'����W,U���ے
|