hoe 3.20.0 → 3.21.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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.rdoc +15 -0
- data/Rakefile +1 -0
- data/lib/hoe.rb +3 -1
- data/lib/hoe/debug.rb +16 -1
- data/lib/hoe/signing.rb +7 -1
- data/lib/minitest/test_task.rb +4 -4
- data/test/test_hoe.rb +25 -1
- metadata +13 -13
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdbf38f3724fc0c8008428afdfde2009cf340d6a60912a8eb2e8ad8d7ee9120b
|
4
|
+
data.tar.gz: 107816ce9cad15ce4dc4ff5fd94c68821ae9511c50de746bead5abe56c834d5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8e020648a0a3e6d76cbb2a2f18be076369607eb19fe364d5b4c895eceab91d205ea2bdb39e4165a22bab944f662d009e5dec6ab3ab47731193e461b478fb41a
|
7
|
+
data.tar.gz: d63cd16ac13754c3fbb7070ca03bc6d647ea86dc642466793ad5d87a8e2387edf5903017aa265b8edb127f7e235756bcc871be003d791d7c3e22462c05933ff2
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.rdoc
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
=== 3.21.0 / 2020-01-11
|
2
|
+
|
3
|
+
* 2 minor enhancements:
|
4
|
+
|
5
|
+
* Added support for wiki_uri and mailing_list_uri. (JuanitoFatas)
|
6
|
+
* Load encrypted private key using ENV['GEM_PRIVATE_KEY_PASSPHRASE'] as passphrase. (larskanis)
|
7
|
+
|
8
|
+
* 5 bug fixes:
|
9
|
+
|
10
|
+
* Add require_ruby_version for 2.1+. (MSP-Greg)
|
11
|
+
* Fix a ruby 2.7 keyword arg deprecation. (anatol)
|
12
|
+
* Fix debug_gem task when you have a signing_key and broken rubygems (< 3.1.0).
|
13
|
+
* Fixed shadowed variable and json output for minitest's test:isolated task.
|
14
|
+
* Minor tweak to make hoe load when openssl isn't available.
|
15
|
+
|
1
16
|
=== 3.20.0 / 2019-11-09
|
2
17
|
|
3
18
|
* 2 minor enhancements:
|
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.
|
94
|
+
VERSION = "3.21.0"
|
95
95
|
|
96
96
|
@@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
|
97
97
|
:publish, :gemcutter, :signing, :test]
|
@@ -121,6 +121,8 @@ class Hoe
|
|
121
121
|
"doco" => "documentation_uri",
|
122
122
|
"home" => "homepage_uri",
|
123
123
|
"code" => "source_code_uri",
|
124
|
+
"wiki" => "wiki_uri",
|
125
|
+
"mail" => "mailing_list_uri",
|
124
126
|
}
|
125
127
|
|
126
128
|
##
|
data/lib/hoe/debug.rb
CHANGED
@@ -91,8 +91,23 @@ module Hoe::Debug
|
|
91
91
|
begin
|
92
92
|
sh "#{DIFF} -du Manifest.txt #{f}", verbose
|
93
93
|
ensure
|
94
|
-
rm f, verbose
|
94
|
+
rm f, **verbose
|
95
95
|
end
|
96
96
|
end
|
97
97
|
end
|
98
98
|
end
|
99
|
+
|
100
|
+
class Gem::Specification < Gem::BasicSpecification
|
101
|
+
alias old_ruby_code ruby_code
|
102
|
+
|
103
|
+
def ruby_code(obj)
|
104
|
+
old_ruby_code obj
|
105
|
+
rescue Gem::Exception => e
|
106
|
+
case e.message
|
107
|
+
when /OpenSSL/
|
108
|
+
"nil"
|
109
|
+
else
|
110
|
+
raise
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end unless Gem::VERSION >= "3.1.0"
|
data/lib/hoe/signing.rb
CHANGED
@@ -24,6 +24,9 @@
|
|
24
24
|
#
|
25
25
|
# Keep your private key secret! Keep your private key safe!
|
26
26
|
#
|
27
|
+
# You can provide your private key passphrase via the
|
28
|
+
# GEM_PRIVATE_KEY_PASSPHRASE environment variable.
|
29
|
+
#
|
27
30
|
# To make sure your gems are signed run:
|
28
31
|
#
|
29
32
|
# rake package; tar tf pkg/yourproject-1.2.3.gem
|
@@ -54,6 +57,8 @@ module Hoe::Signing
|
|
54
57
|
task :check_key do
|
55
58
|
check_key_task
|
56
59
|
end
|
60
|
+
rescue NameError
|
61
|
+
warn "Couldn't set up signing (openssl error?). Skipping."
|
57
62
|
end
|
58
63
|
|
59
64
|
def set_up_signing # :nodoc:
|
@@ -70,7 +75,8 @@ module Hoe::Signing
|
|
70
75
|
end
|
71
76
|
|
72
77
|
if signing_key and cert_chain then
|
73
|
-
|
78
|
+
passphrase = ENV['GEM_PRIVATE_KEY_PASSPHRASE']
|
79
|
+
spec.signing_key = OpenSSL::PKey::RSA.new(File.read(signing_key), passphrase)
|
74
80
|
spec.cert_chain = cert_chain
|
75
81
|
end
|
76
82
|
end
|
data/lib/minitest/test_task.rb
CHANGED
@@ -175,7 +175,7 @@ module Minitest # :nodoc:
|
|
175
175
|
|
176
176
|
# 3 seems to be the magic number... (tho not by that much)
|
177
177
|
bad, good, n = {}, [], (ENV.delete("K") || 3).to_i
|
178
|
-
|
178
|
+
file = ENV.delete("F")
|
179
179
|
times = {}
|
180
180
|
|
181
181
|
tt0 = Time.now
|
@@ -199,10 +199,10 @@ module Minitest # :nodoc:
|
|
199
199
|
puts "done"
|
200
200
|
puts "Ran in %.2f seconds" % [ Time.now - tt0 ]
|
201
201
|
|
202
|
-
if
|
202
|
+
if file then
|
203
203
|
require "json"
|
204
|
-
File.open
|
205
|
-
io.
|
204
|
+
File.open file, "w" do |io|
|
205
|
+
io.puts JSON.pretty_generate times
|
206
206
|
end
|
207
207
|
end
|
208
208
|
|
data/test/test_hoe.rb
CHANGED
@@ -217,6 +217,30 @@ class TestHoe < Minitest::Test
|
|
217
217
|
assert_equal exp, hoe.parse_urls(hash)
|
218
218
|
end
|
219
219
|
|
220
|
+
def test_metadata
|
221
|
+
hash = [
|
222
|
+
"home :: https://github.com/seattlerb/hoe",
|
223
|
+
"doco :: http://docs.seattlerb.org/hoe/Hoe.pdf",
|
224
|
+
"clog :: https://github.com/seattlerb/hoe/master/History.rdoc",
|
225
|
+
"bugs :: https://github.com/seattlerb/hoe/issues",
|
226
|
+
"code :: https://github.com/seattlerb/hoe",
|
227
|
+
"wiki :: https://github.com/seattlerb/hoe/wiki",
|
228
|
+
"mail :: https://github.com/seattlerb/hoe/wiki#mailing_list",
|
229
|
+
].join "\n"
|
230
|
+
|
231
|
+
exp = {
|
232
|
+
"home" => "https://github.com/seattlerb/hoe",
|
233
|
+
"doco" => "http://docs.seattlerb.org/hoe/Hoe.pdf",
|
234
|
+
"clog" => "https://github.com/seattlerb/hoe/master/History.rdoc",
|
235
|
+
"bugs" => "https://github.com/seattlerb/hoe/issues",
|
236
|
+
"code" => "https://github.com/seattlerb/hoe",
|
237
|
+
"wiki" => "https://github.com/seattlerb/hoe/wiki",
|
238
|
+
"mail" => "https://github.com/seattlerb/hoe/wiki#mailing_list",
|
239
|
+
}
|
240
|
+
|
241
|
+
assert_equal exp, hoe.parse_urls(hash)
|
242
|
+
end
|
243
|
+
|
220
244
|
def test_possibly_better
|
221
245
|
t = Gem::Specification::TODAY
|
222
246
|
|
@@ -256,7 +280,7 @@ class TestHoe < Minitest::Test
|
|
256
280
|
assert_equal urls["home"], spec.homepage
|
257
281
|
assert_equal ["--main", "README.rdoc"], spec.rdoc_options
|
258
282
|
assert_equal ["lib"], spec.require_paths
|
259
|
-
assert_equal Gem::
|
283
|
+
assert_equal Gem::VERSION, spec.rubygems_version
|
260
284
|
assert_match(/^Hoe.*Rakefiles$/, spec.summary)
|
261
285
|
|
262
286
|
deps = spec.dependencies.sort_by(&:name)
|
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.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -10,9 +10,9 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
13
|
+
MIIDPjCCAiagAwIBAgIBBDANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
|
14
14
|
ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
|
15
|
-
|
15
|
+
GRYDY29tMB4XDTE5MTIxMzAwMDIwNFoXDTIwMTIxMjAwMDIwNFowRTETMBEGA1UE
|
16
16
|
AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
|
17
17
|
JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
|
18
18
|
b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
|
@@ -22,14 +22,14 @@ cert_chain:
|
|
22
22
|
qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
|
23
23
|
gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
24
24
|
HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBCwUAA4IB
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
25
|
+
AQCkkcHqAa6IKLYGl93rn78J3L+LnqyxaA059n4IGMHWN5bv9KBQnIjOrpLadtYZ
|
26
|
+
vhWkunWDKdfVapBEq5+T4HzqnsEXC3aCv6JEKJY6Zw7iSzl0M8hozuzRr+w46wvT
|
27
|
+
fV2yTN6QTVxqbMsJJyjosks4ZdQYov2zdvQpt1HsLi+Qmckmg8SPZsd+T8uiiBCf
|
28
|
+
b+1ORSM5eEfBQenPXy83LZcoQz8i6zVB4aAfTGGdhxjoMGUEmSZ6xpkOzmnGa9QK
|
29
|
+
m5x9IDiApM+vCELNwDXXGNFEnQBBK+wAe4Pek8o1V1TTOxL1kGPewVOitX1p3xoN
|
30
|
+
h7iEjga8iM1LbZUfiISZ+WrB
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date:
|
32
|
+
date: 2020-01-11 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: rake
|
@@ -150,16 +150,16 @@ require_paths:
|
|
150
150
|
- lib
|
151
151
|
required_ruby_version: !ruby/object:Gem::Requirement
|
152
152
|
requirements:
|
153
|
-
- - "
|
153
|
+
- - "~>"
|
154
154
|
- !ruby/object:Gem::Version
|
155
|
-
version: '
|
155
|
+
version: '2.1'
|
156
156
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
157
|
requirements:
|
158
158
|
- - ">="
|
159
159
|
- !ruby/object:Gem::Version
|
160
160
|
version: '1.4'
|
161
161
|
requirements: []
|
162
|
-
rubygems_version: 3.0.
|
162
|
+
rubygems_version: 3.0.3
|
163
163
|
signing_key:
|
164
164
|
specification_version: 4
|
165
165
|
summary: Hoe is a rake/rubygems helper for project Rakefiles
|
metadata.gz.sig
CHANGED
Binary file
|