url_canonicalize 0.1.12 → 0.1.13

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
  SHA1:
3
- metadata.gz: 32e7e56f0ca646b2543898995ae80b10019bfc3e
4
- data.tar.gz: 18b3062f7973f7de4297b0ba386d4892f3b9b053
3
+ metadata.gz: e75a5d85b5bd2db94efda29128f2c276e292089c
4
+ data.tar.gz: 38589707ab4b6e25cafea25235a76d70af018e54
5
5
  SHA512:
6
- metadata.gz: 59dbcd89984bc5bcbc0677f08b56cdd833803a9236da34d5f3115e88eb078b6a2390c609363501a831b7fa6066d41c3873982f2e5366b3a203ba4b18d29d9e6c
7
- data.tar.gz: a41ea078aef236a3c9ebf65cfbce825f26739d4dc72fb3f8d86d4d2a679852a523a04d655d0e88a4681f819d541fd103e08348e60f65df1c2bc9da14e1bcffe4
6
+ metadata.gz: 0b0bfc6d3d1b769b2ac744dca0936c9117038185b1fa1535829800acd2ff81b4c27bc97634d337bea40c19efba4a8cb9173dc35779be16ed2f8fc2dd92837b07
7
+ data.tar.gz: 4147f78d538138b564313252ce9517dcd065a1c10d6a45f9e138e8b9fba7d20719db1b6be5ec01b7c82a7fb3b4b4d449dea384a29d35d5f4fa0766c12e34131b
data/.rubocop.yml CHANGED
@@ -4,6 +4,9 @@ AllCops:
4
4
  - '*.gemspec'
5
5
  - 'spec/**/*'
6
6
 
7
+ Performance/RegexpMatch:
8
+ Enabled: false # match? is only available in Ruby 2.4+
9
+
7
10
  Style/TrailingCommaInArguments:
8
11
  EnforcedStyleForMultiline: no_comma
9
12
  Enabled: true
@@ -166,7 +166,7 @@ module URLCanonicalize
166
166
  # requester after a few attempts. For these sites we'll use GET requests
167
167
  # only
168
168
  def check_http_method
169
- @http_method = :get if host.match?(/(linkedin|crunchbase).com/)
169
+ @http_method = :get if /(linkedin|crunchbase).com/ =~ host
170
170
  end
171
171
 
172
172
  def relative_to_absolute(partial_url)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module URLCanonicalize
3
- VERSION = '0.1.12'
3
+ VERSION = '0.1.13'
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.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominic Sayers