hoe 4.2.0 → 4.2.1

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: f90a971c10e26cca85e0d09f976335b416650cff3bc9506097ca24f8788db137
4
- data.tar.gz: c0749e4e4fce9fd2a6292f7dd7811458bb6cd8888bb30abe7f7104c04714169d
3
+ metadata.gz: e1aff934f825d21cfa1e2e93cfb3b3738c9cddabdd138ea163e5a70fdc40b438
4
+ data.tar.gz: 2381f002f14f767241d2813d95117098881055df69e4fa4ab859cfe4783fb3c5
5
5
  SHA512:
6
- metadata.gz: 8f96d1c26d3b518dc00505df72367cbf04ff45db251452c353f50100f7debae72680f48c59650cf18c200cd771f4a8a276b3d7f09ed1315cfbbdd5c57e561ab3
7
- data.tar.gz: 6a66761c592328240b2858f83110db7694074772458028d956c676ab11c43bb163e2b1b2de6d68fd92e2b7b41a9326ba9ac175dd31a28c130d9f946119292584
6
+ metadata.gz: fe44f7837964c036c048f87592a8b68fcb380e55b0cdf2d351575bc0dc00585c7ba71b436df9d043bdf673bda0caa0f0e9905ddf73694f25dc43666954ec73dc
7
+ data.tar.gz: f730e9354aa40fd5a68690a1fc7bf7c8371816a8e086e9a8e4a3d36ab2a99a692b2e27257a7b5fa71dec82daa2f919bbb68b852646d207c28cd0c6a795520232
checksums.yaml.gz.sig CHANGED
Binary file
data/History.rdoc CHANGED
@@ -1,3 +1,13 @@
1
+ === 4.2.1 / 2024-05-21
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Raise error if readme file is improperly structured.
6
+
7
+ * 1 bug fix:
8
+
9
+ * Fix NoMethodError: undefined method 'verbose'. (adangel)
10
+
1
11
  === 4.2.0 / 2024-01-12
2
12
 
3
13
  * 2 minor enhancements:
data/lib/hoe/debug.rb CHANGED
@@ -86,7 +86,7 @@ module Hoe::Debug
86
86
 
87
87
  File.open f, "w" do |fp| fp.puts files end
88
88
 
89
- verbose = { :verbose => Rake.application.options.verbose }
89
+ verbose = { :verbose => Rake.application.options.trace || Rake.verbose }
90
90
 
91
91
  begin
92
92
  sh "#{DIFF} -du Manifest.txt #{f}", verbose
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.0"
90
+ VERSION = "4.2.1"
91
91
 
92
92
  @@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
93
93
  :publish, :gemcutter, :signing, :test]
@@ -676,6 +676,8 @@ class Hoe
676
676
  .map(&:last)
677
677
  .each_slice(2)
678
678
  .to_h { |k, v|
679
+ raise "No body for %p section" % [k[0].strip] \
680
+ unless v
679
681
  kp = k.map { |s|
680
682
  s.strip.chomp(":").sub(/(?:=+|#+)\s*/, '').downcase
681
683
  }.join("\n")
data/test/test_hoe.rb CHANGED
@@ -171,6 +171,20 @@ class TestHoe < Minitest::Test
171
171
  end
172
172
  end
173
173
 
174
+ def test_initialize_intuit__empty
175
+ Dir.mktmpdir do |path|
176
+ Dir.chdir path do
177
+ File.write "README.rdoc", "= blah\n"
178
+
179
+ e = assert_raises RuntimeError do
180
+ hoe
181
+ end
182
+
183
+ assert_equal "No body for \"= blah\" section", e.message
184
+ end
185
+ end
186
+ end
187
+
174
188
  def test_file_read_utf
175
189
  Tempfile.open "BOM" do |io|
176
190
  io.write "\xEF\xBB\xBFBOM"
@@ -7,8 +7,8 @@ class TestHoeDebug < Minitest::Test
7
7
 
8
8
  include Hoe::Debug
9
9
 
10
- # On Rake 0.8.7 verbose_flag is true, causing two tests to fail.
11
- RakeFileUtils.verbose_flag = nil
10
+ # On Rake 0.8.7 verbose_flag is true, causing three tests to fail.
11
+ Rake.verbose(false)
12
12
 
13
13
  attr_accessor :generated_files
14
14
 
data.tar.gz.sig CHANGED
Binary file
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: 4.2.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -29,7 +29,7 @@ cert_chain:
29
29
  S7043fq9EbQdBr2AXdj92+CDwuTfHI6/Hj5FVBDULufrJaan4xUgL70Hvc6pTTeW
30
30
  deKfBjgVAq7EYHu1AczzlUly
31
31
  -----END CERTIFICATE-----
32
- date: 2024-01-12 00:00:00.000000000 Z
32
+ date: 2024-05-22 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rake
metadata.gz.sig CHANGED
Binary file