hoe 3.0.8 → 3.1.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.
- data.tar.gz.sig +3 -4
- data/History.txt +10 -0
- data/Rakefile +2 -0
- data/lib/hoe.rb +17 -1
- data/template/Rakefile.erb +2 -0
- data/test/test_hoe.rb +48 -0
- data/test/test_hoe_debug.rb +3 -0
- metadata +9 -9
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
3��o���'�WH�A�9�����3��ﯤ��ُNf�FXX|
|
1
|
+
TI����H����
|
2
|
+
��g�3챃���6sn�C�Z��h�̊�Himu����na�O���˟8�~G�3@�r�t�
|
3
|
+
ܴ
|
data/History.txt
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
=== 3.1.0 / 2012-09-21
|
2
|
+
|
3
|
+
* 1 minor enhancement:
|
4
|
+
|
5
|
+
* Added Hoe#licenses and Hoe#license for declaring your gem's license. (flavorjones)
|
6
|
+
|
7
|
+
* 1 bug fix:
|
8
|
+
|
9
|
+
* Rake 0.8.7 sets verbose flag to true, breaking 2 tests. (michelboaventura)
|
10
|
+
|
1
11
|
=== 3.0.8 / 2012-08-20
|
2
12
|
|
3
13
|
* 1 bug fix:
|
data/Rakefile
CHANGED
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.0
|
94
|
+
VERSION = '3.1.0'
|
95
95
|
|
96
96
|
@@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
|
97
97
|
:publish, :gemcutter, :signing, :test]
|
@@ -182,6 +182,11 @@ class Hoe
|
|
182
182
|
|
183
183
|
attr_accessor :history_file
|
184
184
|
|
185
|
+
##
|
186
|
+
# Optional: An array containing the license(s) under which this gem is released.
|
187
|
+
|
188
|
+
attr_accessor :licenses
|
189
|
+
|
185
190
|
##
|
186
191
|
# *MANDATORY*: The name of the release.
|
187
192
|
#
|
@@ -422,6 +427,14 @@ class Hoe
|
|
422
427
|
end
|
423
428
|
end
|
424
429
|
|
430
|
+
##
|
431
|
+
# Specify a license for your gem.
|
432
|
+
# Call it multiple times if you are releasing under multiple licenses.
|
433
|
+
#
|
434
|
+
def license name
|
435
|
+
self.licenses << name
|
436
|
+
end
|
437
|
+
|
425
438
|
##
|
426
439
|
# Add a dependency declaration to your spec. Pass :dev to
|
427
440
|
# +type+ for developer dependencies.
|
@@ -550,6 +563,8 @@ class Hoe
|
|
550
563
|
end
|
551
564
|
end
|
552
565
|
|
566
|
+
spec.licenses = licenses unless licenses.empty?
|
567
|
+
|
553
568
|
# Do any extra stuff the user wants
|
554
569
|
spec_extras.each do |msg, val|
|
555
570
|
case val
|
@@ -593,6 +608,7 @@ class Hoe
|
|
593
608
|
self.extra_deps = []
|
594
609
|
self.extra_dev_deps = []
|
595
610
|
self.extra_rdoc_files = []
|
611
|
+
self.licenses = []
|
596
612
|
self.post_install_message = nil
|
597
613
|
self.rubyforge_name = name.downcase
|
598
614
|
self.spec = nil
|
data/template/Rakefile.erb
CHANGED
@@ -17,6 +17,8 @@ Hoe.spec '<%= project %>' do
|
|
17
17
|
# developer('<%= XIF %>', '<%= XIF %>@example.com')
|
18
18
|
|
19
19
|
# self.rubyforge_name = '<%= project %>x' # if different than '<%= project %>'
|
20
|
+
|
21
|
+
# license 'MIT' # this should match the license in the README
|
20
22
|
end
|
21
23
|
|
22
24
|
# vim: syntax=ruby
|
data/test/test_hoe.rb
CHANGED
@@ -319,6 +319,54 @@ class TestHoe < MiniTest::Unit::TestCase
|
|
319
319
|
# flunk "not yet"
|
320
320
|
end
|
321
321
|
|
322
|
+
def test_no_license
|
323
|
+
hoe = Hoe.spec("blah") do
|
324
|
+
self.version = '1.2.3'
|
325
|
+
developer 'author', 'email'
|
326
|
+
end
|
327
|
+
|
328
|
+
spec = hoe.spec
|
329
|
+
|
330
|
+
assert spec.licenses.empty?
|
331
|
+
end
|
332
|
+
|
333
|
+
def test_license
|
334
|
+
hoe = Hoe.spec("blah") do
|
335
|
+
self.version = '1.2.3'
|
336
|
+
developer 'author', 'email'
|
337
|
+
license 'MIT'
|
338
|
+
end
|
339
|
+
|
340
|
+
spec = hoe.spec
|
341
|
+
|
342
|
+
assert_equal %w(MIT), spec.licenses
|
343
|
+
end
|
344
|
+
|
345
|
+
def test_multiple_calls_to_license
|
346
|
+
hoe = Hoe.spec("blah") do
|
347
|
+
self.version = '1.2.3'
|
348
|
+
developer 'author', 'email'
|
349
|
+
license 'MIT'
|
350
|
+
license 'GPL-2'
|
351
|
+
end
|
352
|
+
|
353
|
+
spec = hoe.spec
|
354
|
+
|
355
|
+
assert_equal %w(MIT GPL-2), spec.licenses
|
356
|
+
end
|
357
|
+
|
358
|
+
def test_setting_licenses
|
359
|
+
hoe = Hoe.spec("blah") do
|
360
|
+
self.version = '1.2.3'
|
361
|
+
developer 'author', 'email'
|
362
|
+
self.licenses = ['MIT', 'GPL-2']
|
363
|
+
end
|
364
|
+
|
365
|
+
spec = hoe.spec
|
366
|
+
|
367
|
+
assert_equal %w(MIT GPL-2), spec.licenses
|
368
|
+
end
|
369
|
+
|
322
370
|
def test_plugins
|
323
371
|
before = Hoe.plugins.dup
|
324
372
|
|
data/test/test_hoe_debug.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 3.0.8
|
10
|
+
version: 3.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Davis
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
FBHgymkyj/AOSqKRIpXPhjC6
|
37
37
|
-----END CERTIFICATE-----
|
38
38
|
|
39
|
-
date: 2012-
|
39
|
+
date: 2012-09-21 00:00:00 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
@@ -61,11 +61,11 @@ dependencies:
|
|
61
61
|
requirements:
|
62
62
|
- - ~>
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
hash:
|
64
|
+
hash: 1
|
65
65
|
segments:
|
66
66
|
- 3
|
67
|
-
-
|
68
|
-
version: "3.
|
67
|
+
- 3
|
68
|
+
version: "3.3"
|
69
69
|
type: :development
|
70
70
|
version_requirements: *id002
|
71
71
|
- !ruby/object:Gem::Dependency
|
@@ -146,8 +146,8 @@ files:
|
|
146
146
|
- test/test_hoe_test.rb
|
147
147
|
- .gemtest
|
148
148
|
homepage: http://www.zenspider.com/projects/hoe.html
|
149
|
-
licenses:
|
150
|
-
|
149
|
+
licenses:
|
150
|
+
- MIT
|
151
151
|
post_install_message:
|
152
152
|
rdoc_options:
|
153
153
|
- --main
|
metadata.gz.sig
CHANGED
Binary file
|