hoe 4.2.2 → 4.3.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: b1caffe4de853c06f44ba220005bb20f58ca4ff64bf5515b5b15bc52cd686237
4
- data.tar.gz: 8f6f5f4290acab3525a0fd829667dba318d36a77ea5f79149a2dffc9c3a0633a
3
+ metadata.gz: 232664e1c18f9f6b79de0bab5fcf3688f2b8a4e15678b64ade007348e0a4ea79
4
+ data.tar.gz: 3e0f8ee572a3d43d264a9d73deadf9cdcc56fe1e8afe3debe9c584316f8bc0ce
5
5
  SHA512:
6
- metadata.gz: 9ea85683ff2fd2da1db5c2b4922f78a2b22fba2023343cf33ca53cbe623bd9ffdb45c93c0b4d546b3f062f352e9dd8ea996913c3206a9a8f310ea1a36db3059c
7
- data.tar.gz: 2c07b145f1af121ea20e36a779659b4d981fdb88b27aefc5675e17d5c1bf3c83cce47bca296d118b46376596ffad72d5597acc23927f79f272e29bb3b4fd75c2
6
+ metadata.gz: c4c79031e28176a1975dca3b1631b0d31db90ee56abea92a37f7038095a9f102f4cdf36025917a93a8e9ad77ccbaf21178d324f53e6495f52be11c7a9599dcea
7
+ data.tar.gz: 8a5ceb14b19e6eb056f279c0b7240b4654b2fca73b8fc0ae35bd69a5b39240fe83e26c7e3f5ca527bdec61a0b15963c89c73a3336f15cd81d4c6dc6b3a38548d
checksums.yaml.gz.sig CHANGED
Binary file
data/History.rdoc CHANGED
@@ -1,3 +1,19 @@
1
+ === 4.3.0 / 2025-06-17
2
+
3
+ * 4 bug fixes:
4
+
5
+ * Fix Gem index inflation. (halostatue)
6
+ * Fix known_plugins task for Gem::SpecFetcher API changes. (segiddins)
7
+ * Removed defunct deps:email task.
8
+ * Update list of known plugins. (segiddins)
9
+
10
+ === 4.2.3 / 2025-03-25
11
+
12
+ * 2 minor enhancements:
13
+
14
+ * Added alias required_rubygems_version to spec.
15
+ * Added clean as a prepended prerequisite to task gem.
16
+
1
17
  === 4.2.2 / 2024-06-29
2
18
 
3
19
  * 1 bug fix:
data/README.rdoc CHANGED
@@ -178,30 +178,35 @@ Again, this must be done before the Hoe spec, or it won't be useful.
178
178
 
179
179
  === Known 3rd-Party Plugins:
180
180
 
181
- * hoe-bundler - Generates a Gemfile based on a Hoe's declared dependencies.
182
- * hoe-debugging - A Hoe plugin to help you debug your codes.
183
- * hoe-deveiate - A collection of Rake tasks and utility functions.
184
- * hoe-doofus - A Hoe plugin that helps me keep from messing up gem releases.
185
- * hoe-gemcutter - Adds gemcutter release automation to Hoe.
186
- * hoe-geminabox - Allows you to push your gems to geminabox
187
- * hoe-gemspec - Generate a prerelease gemspec based on a Hoe spec.
188
- * hoe-gemspec2 - ??? submit a PR to add description
189
- * hoe-git - A set of Hoe plugins for tighter Git integration.
190
- * hoe-heroku - Helps you get your stuff on Heroku.
191
- * hoe-hg - A Hoe plugin for Mercurial integration.
192
- * hoe-highline - A Hoe plugin for building interactive Rake tasks
193
- * hoe-ignore - ??? submit a PR to add description
194
- * hoe-manifest - ??? submit a PR to add description
195
- * hoe-manualgen - A manual-generation plugin for Hoe
196
- * hoe-mercurial - A Hoe plugin for Mercurial integration.
197
- * hoe-reek - Integrates the reek code smell engine into your hoe projects.
198
- * hoe-roodi - Integrates the roodi code smell tool into your hoe projects.
199
- * hoe-rubygems - Additional RubyGems tasks.
200
- * hoe-seattlerb - Minitest, email announcements, release branching.
201
- * hoe-telicopter - Provides tasks used by hotelicopter.
202
- * hoe-travis - Allows your gem to gain maximum benefit from <http://travis-ci.org>.
203
- * hoe-version - ??? submit a PR to add description
204
- * hoe-yard - A Hoe plugin for generating YARD documentation.
181
+ * hoe-bundler - Generate a Gemfile based on a Hoe spec's declared dependencies. (Mike Dalessio)
182
+ * hoe-debugging - A Hoe plugin to help you debug your C extensions (John Barnette)
183
+ * hoe-deveiate - A collection of Rake tasks and utility functions I use to maintain my Open Source projects (Michael Granger)
184
+ * hoe-doofus - A Hoe plugin that helps me (and you, maybe?) keep from messing up gem releases (John Barnette)
185
+ * hoe-gemcutter - Adds gemcutter release automation to Hoe. (James Tucker)
186
+ * hoe-geminabox - A small hoe plugin that allows you to push your gems to geminabox (Ben Bleything)
187
+ * hoe-gemspec - Generate a prerelease gemspec based on a Hoe spec. (Mike Dalessio)
188
+ * hoe-gemspec2 - Adds support for generation of gemspec files to Hoe (raggi)
189
+ * hoe-git - A set of Hoe plugins for tighter Git integration (John Barnette)
190
+ * hoe-git2 - A set of Hoe plugins for tighter Git integration (John Barnette)
191
+ * hoe-halostatue - Hoe::Halostatue is a Hoe meta-plugin that provides improved support for Markdown README files, provides features from other plugins, and enables improved support for trusted publishing. (Austin Ziegler)
192
+ * hoe-heroku - A Hoe plugin that helps you get your stuff on Heroku (Ben Bleything)
193
+ * hoe-hg - A Hoe plugin for Mercurial integration (McClain Looney)
194
+ * hoe-highline - A Hoe plugin for building interactive Rake tasks (Michael Granger)
195
+ * hoe-ignore - FIX (describe your package) (Evan Phoenix)
196
+ * hoe-manns - Collection of some personal used tasks (Sascha Manns)
197
+ * hoe-manualgen - A manual-generation plugin for Hoe (Michael Granger)
198
+ * hoe-markdown - Hoe plugin with helpers for markdown documentation files. (Mike Dalessio)
199
+ * hoe-mercurial - This is a fork of the hoe-hg plugin (Michael Granger)
200
+ * hoe-packaging - Collection of some personal used tasks for creating and deploying RPM and DEB packages. (Sascha Manns)
201
+ * hoe-reek - Tasks to integrate the reek code smell engine into your hoe projects (Sascha Manns)
202
+ * hoe-roodi - hoe-roodi is a Hoe plugin to integrate the roodi code smell tool into your hoe projects. (Erik Hollensbe)
203
+ * hoe-rubocop - This hoe plugin extends hoe for using some rake tasks to control rubocop. (Sascha Manns)
204
+ * hoe-rubygems - A Hoe plugin with additional RubyGems tasks (John Barnette)
205
+ * hoe-seattlerb - Hoe plugins providing tasks used by seattle.rb including minitest, perforce, and email providing full front-to-back release/announce automation. (Ryan Davis)
206
+ * hoe-telicopter - Hoe plugin providing tasks used by hotelicopter, currently just the email plugin from the seattlerb plugin by Ryan Davis (jim nist)
207
+ * hoe-travis - hoe-travis is a Hoe plugin that allows your gem to gain maximum benefit from http://travis-ci.org (Eric Hodel)
208
+ * hoe-version - Hoe plugin to provide rake tasks to bump version (bhenderson)
209
+ * hoe-yard - A Hoe plugin for generating YARD documentation (Postmodern)
205
210
 
206
211
  === Writing Plugins:
207
212
 
data/Rakefile CHANGED
@@ -32,13 +32,17 @@ end
32
32
  task :known_plugins do
33
33
  dep = Gem::Dependency.new(/^hoe-/, Gem::Requirement.default)
34
34
  fetcher = Gem::SpecFetcher.fetcher
35
- spec_tuples = fetcher.find_matching dep
35
+ spec_tuples = fetcher.search_for_dependency(dep).flatten(1)
36
36
 
37
- max = spec_tuples.map { |(tuple, _source)| tuple.first.size }.max
37
+ max = spec_tuples.map { |(tuple, _source)| tuple.name.size }.max
38
38
 
39
- spec_tuples.each do |(tuple, source)|
40
- spec = Gem::SpecFetcher.fetcher.fetch_spec(tuple, URI.parse(source))
41
- puts "* %-#{max}s - %s (%s)" % [spec.name, spec.summary, spec.authors.first]
39
+ spec_tuples.sort_by { |(tuple, _source)| tuple.name }.each do |(tuple, source)|
40
+ spec = source.fetch_spec(tuple)
41
+ summary = spec
42
+ .summary
43
+ .gsub(/\[([^\]]+)\](?:[\[\(].*?[\]\)])?/, '\1')
44
+
45
+ puts "* %-#{max}s - %s (%s)" % [spec.name, summary, spec.authors.first]
42
46
  end
43
47
  end
44
48
 
data/lib/hoe/deps.rb CHANGED
@@ -82,30 +82,6 @@ module Hoe::Deps
82
82
  end
83
83
  end
84
84
 
85
- def deps_email_task # :nodoc:
86
- gems = self.get_gems_by_name
87
- gem = gems[self.name]
88
-
89
- abort "Couldn't find gem: #{self.name}" unless gem
90
-
91
- deps = self.dependent_upon self.name
92
- email = deps.map(&:email).compact.flatten.sort.uniq
93
- email = email.map { |s| s.split(/,\s*/) }.flatten.sort.uniq
94
-
95
- email.map! { |s| # don't you people realize how easy this is?
96
- s.gsub(/ at | _at_ |\s*(atmark|@nospam@|-at?-|@at?@|<at?>|\[at?\]|\(at?\))\s*/i, "@").gsub(/\s*(dot|\[d(ot)?\]|\.dot\.)\s*/i, ".").gsub(/\s+com$/, ".com")
97
- }
98
-
99
- bad, good = email.partition { |e| e !~ /^[\w.+-]+\@[\w.+-]+$/ }
100
-
101
- warn "Rejecting #{bad.size} email. I couldn't unmunge them." unless
102
- bad.empty?
103
-
104
- puts good.join(", ")
105
-
106
- warn "Warning: couldn't extract any email addresses" if good.empty?
107
- end
108
-
109
85
  def deps_fetch_task # :nodoc:
110
86
  deps = self.dependent_upon self.name
111
87
 
@@ -154,7 +130,7 @@ module Hoe::Deps
154
130
  warn "Fetching full index and caching. This can take a while."
155
131
  url = GEMURL + "Marshal.#{Gem.marshal_version}.Z"
156
132
  dump = Gem::RemoteFetcher.fetcher.fetch_path url
157
- dump = Gem.inflate dump
133
+ dump = Gem::Util.inflate dump
158
134
 
159
135
  warn "stripping index to latest gems"
160
136
  ary = Marshal.load dump
data/lib/hoe/package.rb CHANGED
@@ -47,6 +47,8 @@ module Hoe::Package
47
47
  pkg.need_zip = @need_zip
48
48
  end
49
49
 
50
+ task(:gem).prerequisites.prepend :clean
51
+
50
52
  desc "Install the package as a gem. (opt. NOSUDO=1)"
51
53
  task :install_gem => [:clean, :package, :check_extra_deps] do
52
54
  install_gem Dir["pkg/*.gem"].first
data/lib/hoe.rb CHANGED
@@ -87,7 +87,7 @@ class Hoe
87
87
  include Rake::DSL if defined?(Rake::DSL)
88
88
 
89
89
  # duh
90
- VERSION = "4.2.2"
90
+ VERSION = "4.3.0"
91
91
 
92
92
  @@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
93
93
  :publish, :gemcutter, :signing, :test]
@@ -848,6 +848,8 @@ class Hoe
848
848
  spec_extras[:required_rubygems_version] = versions
849
849
  end
850
850
 
851
+ alias required_rubygems_version require_rubygems_version
852
+
851
853
  ##
852
854
  # Declare that your gem requires a specific ruby version. Last one wins.
853
855
 
data/test/test_hoe.rb CHANGED
@@ -365,6 +365,7 @@ class TestHoe < Minitest::Test
365
365
  files = File.read("Manifest.txt").split(/\n/)
366
366
 
367
367
  spec = hoe.spec
368
+ spec.date = nil # forces Date.today. default switched to 1980 for some reason
368
369
 
369
370
  urls = {
370
371
  "home" => "http://www.zenspider.com/projects/hoe.html",
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,18 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoe
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.2
4
+ version: 4.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain:
11
10
  - |
12
11
  -----BEGIN CERTIFICATE-----
13
- MIIDPjCCAiagAwIBAgIBCDANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
12
+ MIIDPjCCAiagAwIBAgIBCTANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
14
13
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
- GRYDY29tMB4XDTI0MDEwMjIxMjEyM1oXDTI1MDEwMTIxMjEyM1owRTETMBEGA1UE
14
+ GRYDY29tMB4XDTI1MDEwNjIzMjcwMVoXDTI2MDEwNjIzMjcwMVowRTETMBEGA1UE
16
15
  AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
17
16
  JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
18
17
  b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
@@ -22,14 +21,14 @@ cert_chain:
22
21
  qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
23
22
  gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
24
23
  HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBCwUAA4IB
25
- AQCygvpmncmkiSs9r/Kceo4bBPDszhTv6iBi4LwMReqnFrpNLMOWJw7xi8x+3eL2
26
- XS09ZPNOt2zm70KmFouBMgOysnDY4k2dE8uF6B8JbZOO8QfalW+CoNBliefOTcn2
27
- bg5IOP7UoGM5lC174/cbDJrJnRG9bzig5FAP0mvsgA8zgTRXQzIUAZEo92D5K7p4
28
- B4/O998ho6BSOgYBI9Yk1ttdCtti6Y+8N9+fZESsjtWMykA+WXWeGUScHqiU+gH8
29
- S7043fq9EbQdBr2AXdj92+CDwuTfHI6/Hj5FVBDULufrJaan4xUgL70Hvc6pTTeW
30
- deKfBjgVAq7EYHu1AczzlUly
24
+ AQAC0WQJcPOWPFwkojhzweilRVjTJ19UiLhiBTw3C1wJO3LVdBkWDmnnhAmKuX4D
25
+ r7vjQvESlABGIPdutI1Yl7mrHQzTkfLfXvNN6MT0nLChPyIYauT6SZZxubwJrUfA
26
+ 7R0c2CJTIboZ0XaGpLsXqHEF1c29H7TV1QvVuqKAN2mCjh4N82QVn+ZKtys28AwT
27
+ 6GfQX2fqLoi4KSc7xIzHKaNzqxeOICmJofk9w5VZ2rRN6yes8jvFYwz9HR41wdj8
28
+ bwfinv7Yp5fA6AysuZLhCykyfDuZVRrUp0Vb68YCKsLjJly/Theak+euNTxvHsB+
29
+ al9oSgPPHICMEX65qvLywitx
31
30
  -----END CERTIFICATE-----
32
- date: 2024-06-29 00:00:00.000000000 Z
31
+ date: 1980-01-02 00:00:00.000000000 Z
33
32
  dependencies:
34
33
  - !ruby/object:Gem::Dependency
35
34
  name: rake
@@ -155,7 +154,6 @@ metadata:
155
154
  bug_tracker_uri: https://github.com/seattlerb/hoe/issues
156
155
  documentation_uri: http://docs.seattlerb.org/hoe/Hoe.pdf
157
156
  changelog_uri: https://github.com/seattlerb/hoe/blob/master/History.rdoc
158
- post_install_message:
159
157
  rdoc_options:
160
158
  - "--main"
161
159
  - README.rdoc
@@ -175,8 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
173
  - !ruby/object:Gem::Version
176
174
  version: '3.0'
177
175
  requirements: []
178
- rubygems_version: 3.5.14
179
- signing_key:
176
+ rubygems_version: 3.7.1
180
177
  specification_version: 4
181
178
  summary: Hoe is a rake/rubygems helper for project Rakefiles
182
179
  test_files: []
metadata.gz.sig CHANGED
Binary file