hoe 4.1.0 → 4.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 691313d0d49d84ff222eb3e0066ed77cfff112118986ce26b97ce8979a2bdde2
4
- data.tar.gz: b694e6aea1cc2de9eb0a642c94d3f0daab4e8e5c25e88269d44418b93668d521
3
+ metadata.gz: e1aff934f825d21cfa1e2e93cfb3b3738c9cddabdd138ea163e5a70fdc40b438
4
+ data.tar.gz: 2381f002f14f767241d2813d95117098881055df69e4fa4ab859cfe4783fb3c5
5
5
  SHA512:
6
- metadata.gz: e125e97976ca8e52504dffc9f44eb0ff0f29e1616b4af915fdb334a1f1bfae1206212f849f7514cc9e597ea51f2bf33ea7e6469d86858f16501ecc7a9ca8a79a
7
- data.tar.gz: f4909d8991033aa9906bc116d0f00f4f316f7d470fc7a5e2229b0bb3fd7eb5b0e013ef5311e9295bbe7688e877bfa4b9933859be6a053fe9461bb06e8f9df841
6
+ metadata.gz: fe44f7837964c036c048f87592a8b68fcb380e55b0cdf2d351575bc0dc00585c7ba71b436df9d043bdf673bda0caa0f0e9905ddf73694f25dc43666954ec73dc
7
+ data.tar.gz: f730e9354aa40fd5a68690a1fc7bf7c8371816a8e086e9a8e4a3d36ab2a99a692b2e27257a7b5fa71dec82daa2f919bbb68b852646d207c28cd0c6a795520232
checksums.yaml.gz.sig CHANGED
Binary file
data/History.rdoc CHANGED
@@ -1,3 +1,24 @@
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
+
11
+ === 4.2.0 / 2024-01-12
12
+
13
+ * 2 minor enhancements:
14
+
15
+ * Extended hoe/racc to be multitask! ruby_parser goes from 8.5s to 1.2s!
16
+ * Extended hoe/racc to build .yy files to allow for multi-file generation.
17
+
18
+ * 1 bug fix:
19
+
20
+ * Fixed missing dep declaration on oedipus_lex.
21
+
1
22
  === 4.1.0 / 2023-11-16
2
23
 
3
24
  * 1 minor enhancement:
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/racc.rb CHANGED
@@ -51,16 +51,23 @@ module Hoe::Racc
51
51
 
52
52
  def activate_racc_deps
53
53
  dependency "racc", "~> 1.5", :development
54
+ dependency "oedipus_lex", "~> 2.6", :development
54
55
  end
55
56
 
56
57
  ##
57
58
  # Define tasks for racc plugin
58
59
 
59
60
  def define_racc_tasks
60
- racc_files = self.spec.files.grep(/\.y$/)
61
+ y_files = self.spec.files.grep(/\.y$/)
62
+ yy_files = self.spec.files.grep(/\.yy$/)
61
63
  rex_files = self.spec.files.grep(/\.rex$/)
62
64
 
63
- parser_files = racc_files.map { |f| f.sub(/\.y$/, ".rb") }
65
+ yy_re = Regexp.union yy_files.map { |s| s.delete_suffix ".yy" }
66
+
67
+ parser_files =
68
+ y_files.map { |f| f.sub(/\.y$/, ".rb") } +
69
+ spec.files.grep(/(#{yy_re})\d+\.rb$/) -
70
+ yy_files
64
71
  lexer_files = rex_files.map { |f| f.sub(/\.rex$/, ".rex.rb") }
65
72
 
66
73
  self.clean_globs += parser_files
@@ -88,6 +95,9 @@ module Hoe::Racc
88
95
 
89
96
  task :isolate # stub task
90
97
 
98
+ multitask :parser # make them multithreaded!
99
+ multitask :lexer
100
+
91
101
  desc "build the parser" unless parser_files.empty?
92
102
  task :parser => :isolate
93
103
 
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.1.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.1.0
4
+ version: 4.2.1
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
- MIIDPjCCAiagAwIBAgIBBzANBgkqhkiG9w0BAQsFADBFMRMw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G
30
- nsNBRuQJ1UfiCG97a6DNm+Fr
25
+ AQCygvpmncmkiSs9r/Kceo4bBPDszhTv6iBi4LwMReqnFrpNLMOWJw7xi8x+3eL2
26
+ XS09ZPNOt2zm70KmFouBMgOysnDY4k2dE8uF6B8JbZOO8QfalW+CoNBliefOTcn2
27
+ bg5IOP7UoGM5lC174/cbDJrJnRG9bzig5FAP0mvsgA8zgTRXQzIUAZEo92D5K7p4
28
+ B4/O998ho6BSOgYBI9Yk1ttdCtti6Y+8N9+fZESsjtWMykA+WXWeGUScHqiU+gH8
29
+ S7043fq9EbQdBr2AXdj92+CDwuTfHI6/Hj5FVBDULufrJaan4xUgL70Hvc6pTTeW
30
+ deKfBjgVAq7EYHu1AczzlUly
31
31
  -----END CERTIFICATE-----
32
- date: 2023-11-16 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
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  - !ruby/object:Gem::Version
176
176
  version: '3.0'
177
177
  requirements: []
178
- rubygems_version: 3.4.10
178
+ rubygems_version: 3.5.3
179
179
  signing_key:
180
180
  specification_version: 4
181
181
  summary: Hoe is a rake/rubygems helper for project Rakefiles
metadata.gz.sig CHANGED
@@ -1,2 +1 @@
1
- Vn�ժ�����l ��W`�N��)z}� �.~�H3W���,g��}o�Ⱥ����)�{������c��$������R��9]���(9�[�ރAC�4I�8��dJ r�ۋ�� ���
2
- �b�����S\前��GP#�@*e�o5`,�w�J�;�mÑ�UbCx!����e���f���á��ֹ�C�#�b{�Rkk�"hG�/��oP�.�J{Ӕ�q-���Ô�Ny�[�� ���%�H8����A���gX���
1
+ �XHe��u�W��B���VH+sj)-A����|����<^HaSy��^�lZ.��R;�7�D3#ʚ�@;�R��e���[�͹���`�Ce��K���*��������%�^V��h7+�jƹ����#P=�q����חw�<