hoe 3.11.0 → 3.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3251bee8b5911625503a164e773771b3eeb40fa4
4
- data.tar.gz: 966d4265745c68b161b1939cfa72bbdd51ea6522
3
+ metadata.gz: ee1d3d6ffd8fd70a7e19aee46734bea87baab077
4
+ data.tar.gz: f96744188c3ef4d36e2284fd6386af32df95fbc2
5
5
  SHA512:
6
- metadata.gz: 687670ec310325dcc104a14a1b3d6380c2897bcb8ad79883a29b3ee2d82f2624db7aa54503b117057a72d7deffef6b10f8e0c76228ece44ed07e33282264d126
7
- data.tar.gz: 47360e66f0bb7d039b9218ce5b079b9f7b07c8154cecc442199b40fa016c79a9fa0f9ca8030237f312b784e26fdbf2ff4a7a29f8ac604e56f1de62cdd9f6aa1a
6
+ metadata.gz: e8bf5f95f325ddfe80fc24f9d92516deed7fc5b7297b63f3ee845b03a8b8b3cc8fcb38ecd2d0e8ff81362e22e424a7fc98c3970e855443313863b1e581fba997
7
+ data.tar.gz: b82f90381fb8caf87b512dec7e3e2a79148e90978ae63a5d77fa51cdf622ae70cda11c0eff69267f233227303bafcdd806e46ab2b4ccabf0df99f42898ae5bdb
@@ -1 +1,4 @@
1
- ���!���k��6ڍL��k����լ��_��̿>`�;�8�i,3N�صO6Q ���v��x���qd6���m��+�m����g�$��x?�H�@�\��迦�}��-ux�@_H(P�J�$TB=�U4���T���%Wc[�R>��,Z�ϣ� ���W�-Lx��›ԉ)=��6ܜRs �c�Ӿ)�Xsّz��{�w jy�Y�ռ-�$�f����7�a?%A��AkAX��^���� ��b�-ɂ���r/���C
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
@@ -1,3 +1,11 @@
1
+ === 3.12.0 / 2014-04-23
2
+
3
+ * 3 minor enhancements:
4
+
5
+ * Added :rdoc plugin.
6
+ * Renamed History.txt to History.rdoc.
7
+ * Renamed README.txt to README.rdoc.
8
+
1
9
  === 3.11.0 / 2014-04-02
2
10
 
3
11
  * 1 minor enhancement:
@@ -1,8 +1,8 @@
1
1
  .autotest
2
- History.txt
2
+ History.rdoc
3
3
  Hoe.pdf
4
4
  Manifest.txt
5
- README.txt
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
@@ -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
- [:redocs, :docs].each do |t|
43
- task t do
44
- cp "Hoe.pdf", "doc"
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
@@ -91,7 +91,7 @@ class Hoe
91
91
  include Rake::DSL if defined?(Rake::DSL)
92
92
 
93
93
  # duh
94
- VERSION = "3.11.0"
94
+ VERSION = "3.12.0"
95
95
 
96
96
  @@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
97
97
  :publish, :gemcutter, :signing, :test]
@@ -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
@@ -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("blah") do
16
- developer 'author', 'email'
17
- license 'MIT'
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
- hoe = Hoe.spec 'blah' do
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
- hoe = Hoe.spec("blah") do
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.txt'], spec.rdoc_options
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
- hoe = Hoe.spec("blah") do
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
- hoe = Hoe.spec("blah") do
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 = Hoe.spec("blah") do
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 = Hoe.spec("blah") do
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 = Hoe.spec("blah") do
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
@@ -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.txt
22
+ --main README.rdoc
21
23
  lib
22
- History.txt Manifest.txt README.txt
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.11.0
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-02 00:00:00.000000000 Z
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.txt
99
+ - History.rdoc
100
100
  - Manifest.txt
101
- - README.txt
101
+ - README.rdoc
102
102
  files:
103
103
  - .autotest
104
104
  - .gemtest
105
- - History.txt
105
+ - History.rdoc
106
106
  - Hoe.pdf
107
107
  - Manifest.txt
108
- - README.txt
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.txt
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
- ^��I��?��v975&mX����%�>\`g�t��/�Ժ�����A��gn���F=~����L|ϗ_{��L_{R@5_���|p�ܜ'2�*�SaT����6���8i��E��備��e-�}o����~m���Ɖ�zF�:S�m�xf��龥V�n8K�(ܝ�1!��ʐÅ�ߪ��a&� ��q�;~��>)���
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��.�ۡ�"ؔKs�3k{����u�~�m���ax36O�'����W, U���ے