url_canonicalize 0.1.13 → 0.1.14

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
  SHA1:
3
- metadata.gz: e75a5d85b5bd2db94efda29128f2c276e292089c
4
- data.tar.gz: 38589707ab4b6e25cafea25235a76d70af018e54
3
+ metadata.gz: 64cf70fdd7f0e97ae3ebdc4b2574c9fd7c4d30bd
4
+ data.tar.gz: f67c306acbfef65af2dbf884fe9ea0fc8219e167
5
5
  SHA512:
6
- metadata.gz: 0b0bfc6d3d1b769b2ac744dca0936c9117038185b1fa1535829800acd2ff81b4c27bc97634d337bea40c19efba4a8cb9173dc35779be16ed2f8fc2dd92837b07
7
- data.tar.gz: 4147f78d538138b564313252ce9517dcd065a1c10d6a45f9e138e8b9fba7d20719db1b6be5ec01b7c82a7fb3b4b4d449dea384a29d35d5f4fa0766c12e34131b
6
+ metadata.gz: 0d9afc04d8050eb1e3cdb43a9fa34953cc2feab0546ad09dc6ec235e058090edbcd46e741a46fca87e0621137f7671bcaf89f19eca8d0b0e2f34e525cde5e25e
7
+ data.tar.gz: 0ee4ab39a5d43fa2a69a8e5ce35b425dcc7a6861ed46899ac0026b5e14cc928c7b4410d3f6212168b377d9b100a662c4c5a63eabb5c1ed7528bf530fdf5363e2
@@ -60,7 +60,7 @@ module URLCanonicalize
60
60
  end
61
61
 
62
62
  def handle_success
63
- @canonical_url = $LAST_MATCH_INFO['url'] if (response['link'] || '').match?(/<(?<url>.+)>\s*;\s*rel="canonical"/i)
63
+ @canonical_url = $LAST_MATCH_INFO['url'] if /<(?<url>.+)>\s*;\s*rel="canonical"/i =~ (response['link'] || '')
64
64
 
65
65
  if http_method == :head
66
66
  self.http_method = :get
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module URLCanonicalize
3
- VERSION = '0.1.13'
3
+ VERSION = '0.1.14'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: url_canonicalize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominic Sayers