sitemap_generator 6.1.1 → 6.1.2

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: 4bad56ec68535f010d3e9b119f5da875f73f7686deb6f8893b96c945f389f80b
4
- data.tar.gz: 951764f5c067836cb0a1d63c6ea4d0e431a3bbbd029572c331b7293c0bb5e5c5
3
+ metadata.gz: 07d190381c5aae66acc3b6eaa43d61444f3280e1ff76fd0dadf49d6c730d9b7a
4
+ data.tar.gz: dc61f7ff02926247d30ead18d71b16068e14a01ed36bb0694f0615febef6000a
5
5
  SHA512:
6
- metadata.gz: 372bc48c5160589d87ce184f7f749418e17d89812cdf978de33864636685ff4a11e18464b7f2556c095224526682c39b3526e5d1da91f1d718a2907ae31529a2
7
- data.tar.gz: 708074cc61da80d13270bf822c3b60a480354cd6d102cb8f714e22a06cac67a6a2b4a6962d5d7f3420e9a73c08e57475932a9720b7bf72411dcaed57617c35a0
6
+ metadata.gz: ee8f86311c174e2b9b01514d48325f6d824bcabfaf8e5a711ff7e83442bc9f5adf4bbbe1ddc990d292c8ffc73138e7244b840a38aaeccef6f26bb55adee8cae6
7
+ data.tar.gz: 1049e27acaa1dafee38153d4faa1b51de61e67162a792a525269090e51f85e1c5c919c9755cc301543e6cd97dd8f18f5d914685cc7e3a23c49a494d3abdb21d9
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 6.1.2
2
+
3
+ * Resolve NoMethodError using URI#open for Ruby less than 2.5.0 [#353](https://github.com/kjvarga/sitemap_generator/pull/353)
4
+
1
5
  ### 6.1.1
2
6
 
3
7
  * Resolve deprecation warning on using Kernel#open in Ruby 2.7 (use URI.open instead) [#342](https://github.com/kjvarga/sitemap_generator/pull/342)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.1.1
1
+ 6.1.2
@@ -295,7 +295,11 @@ module SitemapGenerator
295
295
  name = Utilities.titleize(engine.to_s)
296
296
  begin
297
297
  Timeout::timeout(10) {
298
- URI.open(link)
298
+ if URI.respond_to?(:open) # Available since Ruby 2.5
299
+ URI.open(link)
300
+ else
301
+ open(link) # using Kernel#open became deprecated since Ruby 2.7. See https://bugs.ruby-lang.org/issues/15893
302
+ end
299
303
  }
300
304
  output(" Successful ping of #{name}")
301
305
  rescue Timeout::Error, StandardError => e
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sitemap_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.1
4
+ version: 6.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Varga
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-26 00:00:00.000000000 Z
11
+ date: 2020-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder