hoe 3.6.3 → 3.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/History.txt +6 -0
- data/lib/hoe.rb +10 -2
- data/test/test_hoe.rb +15 -8
- data/test/test_hoe_publish.rb +1 -0
- metadata +5 -5
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
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.
|
94
|
+
VERSION = "3.7.0"
|
95
95
|
|
96
96
|
@@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
|
97
97
|
:publish, :gemcutter, :signing, :test]
|
@@ -184,6 +184,8 @@ class Hoe
|
|
184
184
|
|
185
185
|
##
|
186
186
|
# Optional: An array containing the license(s) under which this gem is released.
|
187
|
+
#
|
188
|
+
# Warns and defaults to "MIT" if not set.
|
187
189
|
|
188
190
|
attr_accessor :licenses
|
189
191
|
|
@@ -557,7 +559,13 @@ class Hoe
|
|
557
559
|
|
558
560
|
check_for_version
|
559
561
|
|
560
|
-
|
562
|
+
if licenses.empty?
|
563
|
+
warn "Defaulting gemspec to MIT license."
|
564
|
+
warn "Call license in hoe spec to change."
|
565
|
+
license "MIT"
|
566
|
+
end
|
567
|
+
|
568
|
+
spec.licenses = licenses
|
561
569
|
|
562
570
|
run_spec_extras
|
563
571
|
end
|
data/test/test_hoe.rb
CHANGED
@@ -14,6 +14,7 @@ class TestHoe < Minitest::Test
|
|
14
14
|
def hoe
|
15
15
|
@hoe ||= Hoe.spec("blah") do
|
16
16
|
developer 'author', 'email'
|
17
|
+
license 'MIT'
|
17
18
|
end
|
18
19
|
end
|
19
20
|
|
@@ -153,6 +154,7 @@ class TestHoe < Minitest::Test
|
|
153
154
|
hoe = Hoe.spec 'blah' do
|
154
155
|
self.version = '1.0'
|
155
156
|
developer 'nobody', 'nobody@example'
|
157
|
+
license 'MIT'
|
156
158
|
end
|
157
159
|
|
158
160
|
assert_equal 'History.rdoc', hoe.history_file
|
@@ -179,6 +181,7 @@ class TestHoe < Minitest::Test
|
|
179
181
|
hoe = Hoe.spec 'blah' do
|
180
182
|
self.version = '1.0'
|
181
183
|
developer 'nobody', 'nobody@example'
|
184
|
+
license 'MIT'
|
182
185
|
end
|
183
186
|
|
184
187
|
assert_equal 'README.ja.rdoc', hoe.readme_file
|
@@ -237,6 +240,7 @@ class TestHoe < Minitest::Test
|
|
237
240
|
hoe = Hoe.spec("blah") do
|
238
241
|
self.version = '1.2.3'
|
239
242
|
developer 'author', 'email'
|
243
|
+
license 'MIT'
|
240
244
|
end
|
241
245
|
|
242
246
|
files = File.read("Manifest.txt").split(/\n/) + [".gemtest"]
|
@@ -288,19 +292,20 @@ class TestHoe < Minitest::Test
|
|
288
292
|
assert_equal expected, deps.map { |dep|
|
289
293
|
[dep.name, dep.type, dep.requirement.to_s]
|
290
294
|
}
|
291
|
-
|
292
|
-
# flunk "not yet"
|
293
295
|
end
|
294
296
|
|
295
297
|
def test_no_license
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
298
|
+
out, err = capture_io do
|
299
|
+
hoe = Hoe.spec("blah") do
|
300
|
+
self.version = '1.2.3'
|
301
|
+
developer 'author', 'email'
|
302
|
+
end
|
300
303
|
|
301
|
-
|
304
|
+
assert_equal ["MIT"], hoe.spec.licenses
|
305
|
+
end
|
302
306
|
|
303
|
-
|
307
|
+
assert_equal "", out
|
308
|
+
assert_match "Defaulting gemspec to MIT", err
|
304
309
|
end
|
305
310
|
|
306
311
|
def test_license
|
@@ -353,6 +358,7 @@ class TestHoe < Minitest::Test
|
|
353
358
|
def test_read_manifest
|
354
359
|
hoe = Hoe.spec 'blah' do
|
355
360
|
developer 'author', 'email'
|
361
|
+
license 'MIT'
|
356
362
|
end
|
357
363
|
|
358
364
|
expected = File.read_utf('Manifest.txt').split
|
@@ -375,6 +381,7 @@ class TestHoe < Minitest::Test
|
|
375
381
|
hoe = Hoe.spec("blah") do
|
376
382
|
self.version = '1.2.3'
|
377
383
|
developer 'author', 'email'
|
384
|
+
license 'MIT'
|
378
385
|
|
379
386
|
def system cmd
|
380
387
|
cmd
|
data/test/test_hoe_publish.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: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 3.
|
8
|
+
- 7
|
9
|
+
- 0
|
10
|
+
version: 3.7.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: 2013-
|
39
|
+
date: 2013-07-24 00:00:00 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
metadata.gz.sig
CHANGED
Binary file
|