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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0fa81b70d7c1e4d69338c4ee609525317bb1e9226f6cf7cdd7939524f6aa3f1b
4
- data.tar.gz: eab25d6cbf84c54bc19dab742701aebe73705ebf141b579adef59b7d4bbc7887
3
+ metadata.gz: bdbf38f3724fc0c8008428afdfde2009cf340d6a60912a8eb2e8ad8d7ee9120b
4
+ data.tar.gz: 107816ce9cad15ce4dc4ff5fd94c68821ae9511c50de746bead5abe56c834d5d
5
5
  SHA512:
6
- metadata.gz: b592a6202d60185d452036f10c7ef6e9febcfb9eaef67707ef221bb8cc988e8fce39911436b9b2219e5ba58b5437b999a4789243bd32b5d5eb7824493361f950
7
- data.tar.gz: a3972c4b77340980ad5696a994e007fb9cd3646b9b8743f98cc137282498baa6bbe1b45ee5e647550eac78ce1e2100df55ba3457eff9014607d2c2c50e2f610e
6
+ metadata.gz: d8e020648a0a3e6d76cbb2a2f18be076369607eb19fe364d5b4c895eceab91d205ea2bdb39e4165a22bab944f662d009e5dec6ab3ab47731193e461b478fb41a
7
+ data.tar.gz: d63cd16ac13754c3fbb7070ca03bc6d647ea86dc642466793ad5d87a8e2387edf5903017aa265b8edb127f7e235756bcc871be003d791d7c3e22462c05933ff2
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
@@ -18,6 +18,7 @@ Hoe.spec "hoe" do
18
18
 
19
19
  pluggable!
20
20
  require_rubygems_version ">= 1.4"
21
+ require_ruby_version "~> 2.1"
21
22
 
22
23
  dependency "rake", [">= 0.8", "< 15.0"] # FIX: to force it to exist pre-isolate
23
24
  end
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.20.0"
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
  ##
@@ -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"
@@ -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
- spec.signing_key = OpenSSL::PKey::RSA.new File.read signing_key
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
@@ -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
- path = ENV.delete("F")
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 path then
202
+ if file then
203
203
  require "json"
204
- File.open path, "w" do |io|
205
- io.write JSON.pretty_generate times
204
+ File.open file, "w" do |io|
205
+ io.puts JSON.pretty_generate times
206
206
  end
207
207
  end
208
208
 
@@ -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::RubyGemsVersion, spec.rubygems_version
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.20.0
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
- MIIDPjCCAiagAwIBAgIBAzANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
13
+ MIIDPjCCAiagAwIBAgIBBDANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
14
14
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLG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hozuzRr+w46wvT
27
+ fV2yTN6QTVxqbMsJJyjosks4ZdQYov2zdvQpt1HsLi+Qmckmg8SPZsd+T8uiiBCf
28
+ b+1ORSM5eEfBQenPXy83LZcoQz8i6zVB4aAfTGGdhxjoMGUEmSZ6xpkOzmnGa9QK
29
+ m5x9IDiApM+vCELNwDXXGNFEnQBBK+wAe4Pek8o1V1TTOxL1kGPewVOitX1p3xoN
30
+ h7iEjga8iM1LbZUfiISZ+WrB
31
31
  -----END CERTIFICATE-----
32
- date: 2019-11-09 00:00:00.000000000 Z
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: '0'
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.6
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