hoe 3.22.1 → 3.23.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: 69eb52f789ca0e73f0f01309c3dd352806e63a713773aea6d09955c984295f02
4
- data.tar.gz: '0487307e9e24a090ecc203fcb9e5b007e372c5f8e14c8a0b23d82eb5bef1514a'
3
+ metadata.gz: af9f27074a88867b02f53c746bd5d307c79c44b07fa493d1369676b16143710f
4
+ data.tar.gz: ca66d5bf6295b18b08e16b2b028c58dd8cb9221b5ef311d2d8f5149d58194450
5
5
  SHA512:
6
- metadata.gz: 836aaf372c6ae54f1dea26be3e73c94dae7a808d0badc021f16f48372b54f3ee4f87509ee0bcb8cfeb239c533a47ccee0b164d1473a7d20eea381d0c5c46ed6f
7
- data.tar.gz: 47723d9e00789e9788b199e0dcfa30d7bcde008cd667dabb3ebe2d4a26ae2160f9a5d7517024bd5d8636b643ad70a92582353ff6dc0761d42a83c8a18b415a1b
6
+ metadata.gz: 04525fdaa980c9844c37c63e309026914f5a32d7e8ec31b0e85476d26306b3da543c07c69488138cd5a11061bab37546c07d9733898306ce104a04bc1650ffc7
7
+ data.tar.gz: 5b5952a69f70f270f86ddb86a69332f41bd8cc5bcf8861dcb56c568639524977e1b56748f7ab1d8d185db9f188b64b5eb75054c69c0f75b7e8a78e2cbc7bf666
checksums.yaml.gz.sig CHANGED
Binary file
data/History.rdoc CHANGED
@@ -1,3 +1,28 @@
1
+ === 3.23.1 / 2022-01-04
2
+
3
+ * 1 bug fix:
4
+
5
+ * Fixed loading config files for ruby 3.1's now default YAML.safe_load_file.
6
+
7
+ === 3.23.0 / 2021-05-29
8
+
9
+ * 2 minor enhancements:
10
+
11
+ * Bump racc (plugin) dependency.
12
+ * Removed ruby18! and ruby19! methods. ugh
13
+
14
+ === 3.22.3 / 2021-01-10
15
+
16
+ * 1 bug fix:
17
+
18
+ * Bumped ruby version to include < 4 (trunk).
19
+
20
+ === 3.22.2 / 2020-08-31
21
+
22
+ * 1 bug fix:
23
+
24
+ * Bumped ruby version to include 3.0 (trunk).
25
+
1
26
  === 3.22.1 / 2020-02-12
2
27
 
3
28
  * 1 bug fix:
data/Rakefile CHANGED
@@ -18,7 +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
+ require_ruby_version [">= 2.1", "< 4"]
22
22
 
23
23
  dependency "rake", [">= 0.8", "< 15.0"] # FIX: to force it to exist pre-isolate
24
24
  end
data/lib/hoe/publish.rb CHANGED
@@ -145,7 +145,7 @@ module Hoe::Publish
145
145
 
146
146
  desc "Generate email announcement file."
147
147
  task :debug_email do
148
- puts generate_email
148
+ puts generate_email ENV["FULL"]
149
149
  end
150
150
 
151
151
  desc 'Post announcement to blog. Uses the "blogs" array in your hoerc.'
data/lib/hoe/racc.rb CHANGED
@@ -50,7 +50,7 @@ module Hoe::Racc
50
50
  # Activate the racc dependencies
51
51
 
52
52
  def activate_racc_deps
53
- dependency "racc", "~> 1.4.6", :development
53
+ dependency "racc", "~> 1.5", :development
54
54
  end
55
55
 
56
56
  ##
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 = "3.22.1"
90
+ VERSION = "3.23.1"
91
91
 
92
92
  @@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
93
93
  :publish, :gemcutter, :signing, :test]
@@ -475,7 +475,7 @@ class Hoe
475
475
 
476
476
  case name
477
477
  when "hoe" then
478
- dependency "rake", [">= 0.8", "< 13.0"]
478
+ # do nothing? these deps are already in the hoe spec in the Rakefile
479
479
  else
480
480
  version = VERSION.split(/\./).first(2).join(".")
481
481
  dependency "hoe", "~> #{version}", :development
@@ -840,20 +840,6 @@ class Hoe
840
840
  spec_extras[:required_ruby_version] = versions
841
841
  end
842
842
 
843
- ##
844
- # Declare that this gem requires ruby to be in the 1.8+ family.
845
-
846
- def ruby18!
847
- require_ruby_version "~> 1.8"
848
- end
849
-
850
- ##
851
- # Declare that this gem requires ruby to be in the 1.9 family.
852
-
853
- def ruby19!
854
- require_ruby_version "~> 1.9"
855
- end
856
-
857
843
  ##
858
844
  # Declare that this gem requires ruby to be in the 2.0+ family.
859
845
 
@@ -882,6 +868,9 @@ class Hoe
882
868
  require_ruby_version "~> 2.3"
883
869
  end
884
870
 
871
+ # I don't care for these methods (eg 3.0 is out) ... so I'm not
872
+ # continuing them.
873
+
885
874
  ##
886
875
  # Provide a linear degrading value from n to m over start to finis
887
876
  # dates. If not provided, start and finis will default to 1/1 and
@@ -915,19 +904,29 @@ class Hoe
915
904
  config = Hoe::DEFAULT_CONFIG
916
905
 
917
906
  rc = File.expand_path("~/.hoerc")
918
- exists = File.exist? rc
919
- homeconfig = exists ? YAML.load_file(rc) : {}
907
+ homeconfig = maybe_load_yaml rc
920
908
 
921
909
  config = config.merge homeconfig
922
910
 
923
911
  localrc = File.join Dir.pwd, ".hoerc"
924
- exists = File.exist? localrc
925
- localconfig = exists ? YAML.load_file(localrc) : {}
912
+ localconfig = maybe_load_yaml(localrc)
926
913
 
927
914
  config = config.merge localconfig
928
915
 
929
916
  yield config, rc
930
917
  end
918
+
919
+ def maybe_load_yaml path
920
+ if File.exist? path then
921
+ if YAML.respond_to? :safe_load_file then
922
+ YAML.safe_load_file path, permitted_classes: [Regexp, Symbol]
923
+ else
924
+ YAML.load_file path
925
+ end
926
+ else
927
+ {}
928
+ end
929
+ end
931
930
  end
932
931
 
933
932
  class File
@@ -14,6 +14,10 @@ class TestHoePublish < Minitest::Test
14
14
 
15
15
  make_my_diffs_pretty!
16
16
 
17
+ def linux? platform = RUBY_PLATFORM # TODO: push up to minitest?
18
+ /linux/ =~ platform
19
+ end
20
+
17
21
  def test_make_rdoc_cmd
18
22
  expected = %W[
19
23
  #{Gem.ruby}
@@ -25,6 +29,7 @@ class TestHoePublish < Minitest::Test
25
29
  History.rdoc Manifest.txt README.rdoc
26
30
  ]
27
31
 
32
+ skip if linux?
28
33
  assert_equal expected, @hoe.make_rdoc_cmd
29
34
  end
30
35
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,18 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoe
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.22.1
4
+ version: 3.23.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDPjCCAiagAwIBAgIBBDANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
13
+ MIIDPjCCAiagAwIBAgIBBjANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
14
14
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
- GRYDY29tMB4XDTE5MTIxMzAwMDIwNFoXDTIwMTIxMjAwMDIwNFowRTETMBEGA1UE
15
+ GRYDY29tMB4XDTIxMTIyMzIzMTkwNFoXDTIyMTIyMzIzMTkwNFowRTETMBEGA1UE
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
- AQCkkcHqAa6IKLYGl93rn78J3L+LnqyxaA059n4IGMHWN5bv9KBQnIjOrpLadtYZ
26
- vhWkunWDKdfVapBEq5+T4HzqnsEXC3aCv6JEKJY6Zw7iSzl0M8hozuzRr+w46wvT
27
- fV2yTN6QTVxqbMsJJyjosks4ZdQYov2zdvQpt1HsLi+Qmckmg8SPZsd+T8uiiBCf
28
- b+1ORSM5eEfBQenPXy83LZcoQz8i6zVB4aAfTGGdhxjoMGUEmSZ6xpkOzmnGa9QK
29
- m5x9IDiApM+vCELNwDXXGNFEnQBBK+wAe4Pek8o1V1TTOxL1kGPewVOitX1p3xoN
30
- h7iEjga8iM1LbZUfiISZ+WrB
25
+ AQCKB5jfsuSnKb+t/Wrh3UpdkmX7TrEsjVmERC0pPqzQ5GQJgmEXDD7oMgaKXaAq
26
+ x2m+KSZDrqk7c8uho5OX6YMqg4KdxehfSLqqTZGoeV78qwf/jpPQZKTf+W9gUSJh
27
+ zsWpo4K50MP+QtdSbKXZwjAafpQ8hK0MnnZ/aeCsW9ov5vdXpYbf3dpg6ADXRGE7
28
+ lQY2y1tJ5/chqu6h7dQmnm2ABUqx9O+JcN9hbCYoA5i/EeubUEtFIh2w3SpO6YfB
29
+ JFmxn4h9YO/pVdB962BdBNNDia0kgIjI3ENnkLq0dKpYU3+F3KhEuTksLO0L6X/V
30
+ YsuyUzsMz6GQA4khyaMgKNSD
31
31
  -----END CERTIFICATE-----
32
- date: 2020-02-13 00:00:00.000000000 Z
32
+ date: 2022-01-05 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rake
@@ -142,7 +142,7 @@ metadata:
142
142
  bug_tracker_uri: https://github.com/seattlerb/hoe/issues
143
143
  documentation_uri: http://docs.seattlerb.org/hoe/Hoe.pdf
144
144
  changelog_uri: https://github.com/seattlerb/hoe/blob/master/History.rdoc
145
- post_install_message:
145
+ post_install_message:
146
146
  rdoc_options:
147
147
  - "--main"
148
148
  - README.rdoc
@@ -150,17 +150,20 @@ 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
155
  version: '2.1'
156
+ - - "<"
157
+ - !ruby/object:Gem::Version
158
+ version: '4'
156
159
  required_rubygems_version: !ruby/object:Gem::Requirement
157
160
  requirements:
158
161
  - - ">="
159
162
  - !ruby/object:Gem::Version
160
163
  version: '1.4'
161
164
  requirements: []
162
- rubygems_version: 3.0.3
163
- signing_key:
165
+ rubygems_version: 3.3.3
166
+ signing_key:
164
167
  specification_version: 4
165
168
  summary: Hoe is a rake/rubygems helper for project Rakefiles
166
169
  test_files: []
metadata.gz.sig CHANGED
@@ -1,2 +1,4 @@
1
- �]Q�sl>(��̔�n؉��=��h��)&�KG�N��ٝ��o}ё�������s�QS��3Cu�<��F8G���/f��q�I,_�`���'��Bf$��Cx7����AH'<�h��ZF���+v<����?^gT��Dw�fa��zB����/��<����z&�W (L�������o&�apn�T{
2
- ���-=�A*��iH��b��~����)e?X��JɃҿ��jQ�8��[�T�'h�u@Ù*>
1
+ O��V|):�$���g��� ��B.�Dv�V��9udB^?IQI����d��o'���)z r��sE�����Q}B
2
+ ��m^GI�ڔ6WP .���8����T-
3
+ yK��<����^w$v��r��C���M�M����S;}:��L ��H7$1�^�r��O��mt�]��P�}���Oe��ȍShA�����U�)�m�D[L
4
+ :�X�]ϕ9&��:��~���uM�Ҝ�Z�/��F�5�L��ӧv