hoe 3.22.0 → 3.22.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: 5ae2cfa50c993889a68ef66dba42a8b5e17a4ffac2b98dfafc05c311a00e1fd2
4
- data.tar.gz: 7b4b54d605a96d82705a246a106a5edab83be01569eb01a7ecee967e3e949362
3
+ metadata.gz: 69eb52f789ca0e73f0f01309c3dd352806e63a713773aea6d09955c984295f02
4
+ data.tar.gz: '0487307e9e24a090ecc203fcb9e5b007e372c5f8e14c8a0b23d82eb5bef1514a'
5
5
  SHA512:
6
- metadata.gz: 7df4729a57c68240bb10095bbc540206e6a3d48768586f077f2a31f7bee24ab78bfe7e3dac06a349c6a6e310e2c47c7e6243ffbcdbcfc6fe6fcd9fb198d95fd3
7
- data.tar.gz: 3f540d937cd32cf73607008a8d04af1613bcaa482ec265ac7e864396f4e26e0c3bdf0fa9e7f82d894bb0dde2f535d8b6f90051b72f10f53ac4f7feddb341c53c
6
+ metadata.gz: 836aaf372c6ae54f1dea26be3e73c94dae7a808d0badc021f16f48372b54f3ee4f87509ee0bcb8cfeb239c533a47ccee0b164d1473a7d20eea381d0c5c46ed6f
7
+ data.tar.gz: 47723d9e00789e9788b199e0dcfa30d7bcde008cd667dabb3ebe2d4a26ae2160f9a5d7517024bd5d8636b643ad70a92582353ff6dc0761d42a83c8a18b415a1b
Binary file
data.tar.gz.sig CHANGED
@@ -1,3 +1 @@
1
- r,��7�� v�#R{��&.��uExׅ
2
- ;�/s�j�<��s� ��č�(_r�9+SKH��N��r +^t����s���&bK
3
- 91��Z��=�O,/�4���qy6a��cc%W:��<���f�@��l�y1nU/���/$���s�����Asx�J!��oy�93\��rN�`��������i�*/<��Am�
1
+ E��B(�Y���>�%���TU!�HY�*��B^|���� $COU(��j�$���mR(4�A
@@ -1,3 +1,9 @@
1
+ === 3.22.1 / 2020-02-12
2
+
3
+ * 1 bug fix:
4
+
5
+ * Avoid calling parse_urls if URL metadata are already set. (flavorjones)
6
+
1
7
  === 2.22.0 / 2020-02-09
2
8
 
3
9
  * 4 minor enhancements:
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.0"
90
+ VERSION = "3.22.1"
91
91
 
92
92
  @@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
93
93
  :publish, :gemcutter, :signing, :test]
@@ -672,9 +672,8 @@ class Hoe
672
672
  unless readme.empty? then
673
673
  desc = readme.values_at(*description_sections).join("\n\n")
674
674
  summ = desc.split(/\.\s+/).first(summary_sentences).join(". ")
675
- urls = parse_urls(readme.values.first)
676
675
 
677
- self.urls ||= urls
676
+ self.urls ||= parse_urls(readme.values.first)
678
677
  self.description ||= desc
679
678
  self.summary ||= summ
680
679
  else
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require "minitest/autorun"
2
3
  require "hoe"
3
4
  require "tempfile"
@@ -260,6 +261,42 @@ class TestHoe < Minitest::Test
260
261
  assert_equal urls, h.urls
261
262
  end
262
263
 
264
+ def test_intuit_values_should_be_silent_if_urls_are_already_set
265
+ h = nil
266
+ nokogiri_readme = <<~EOM
267
+ ## Links
268
+
269
+ * https://nokogiri.org
270
+ * [Installation Help](https://nokogiri.org/tutorials/installing_nokogiri.html)
271
+ * [Tutorials](https://nokogiri.org/tutorials/toc.html)
272
+ * [Cheat Sheet](https://github.com/sparklemotion/nokogiri/wiki/Cheat-sheet)
273
+ * [GitHub](https://github.com/sparklemotion/nokogiri)
274
+ * [Mailing List](https://groups.google.com/group/nokogiri-talk)
275
+ * [Chat/Gitter](https://gitter.im/sparklemotion/nokogiri)
276
+
277
+ EOM
278
+
279
+ exp = {
280
+ "home" => "https://nokogiri.org",
281
+ "bugs" => "https://github.com/sparklemotion/nokogiri/issues",
282
+ "doco" => "https://nokogiri.org/rdoc/index.html",
283
+ "clog" => "https://nokogiri.org/CHANGELOG.html",
284
+ "code" => "https://github.com/sparklemotion/nokogiri",
285
+ }
286
+
287
+ assert_silent do
288
+ h = Hoe.spec "blah" do
289
+ developer "author", "email"
290
+ license "MIT"
291
+
292
+ self.urls = exp
293
+ self.intuit_values nokogiri_readme
294
+ end
295
+ end
296
+
297
+ assert_equal exp, h.urls
298
+ end
299
+
263
300
  def test_metadata
264
301
  hash = [
265
302
  "home :: https://github.com/seattlerb/hoe",
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.22.0
4
+ version: 3.22.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -29,7 +29,7 @@ cert_chain:
29
29
  m5x9IDiApM+vCELNwDXXGNFEnQBBK+wAe4Pek8o1V1TTOxL1kGPewVOitX1p3xoN
30
30
  h7iEjga8iM1LbZUfiISZ+WrB
31
31
  -----END CERTIFICATE-----
32
- date: 2020-02-09 00:00:00.000000000 Z
32
+ date: 2020-02-13 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rake
metadata.gz.sig CHANGED
Binary file