normalize_url 0.0.5 → 0.0.6

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: 7aaea38f5f19347a15ea18728ae96f405c81ce03
4
- data.tar.gz: 73a549a8aaf2941a3ad7e9f477e13dbb10fa2eb7
3
+ metadata.gz: c3001b9627da83ae1bca72ef7ddf0dffb239346b
4
+ data.tar.gz: f46db59997818c95a413e6c29d15bdb07e01785a
5
5
  SHA512:
6
- metadata.gz: 8d522e53f691736bb59295b06de9a6278b50394a77043c57a3b6291a22665185942ee4d68bc7658b2ca50ab7a2ba1eae67a52a1c6a6fe0fd2838ec038f5ef7e5
7
- data.tar.gz: 4bfc571d1283e71f67cd2db0ce577a4f036e8e663cb1b6c54e3e9060236692cd13b7a3cc8a00f8ec6e27856c2af21391903ff150536c6f6aa773fb62e632fd3a
6
+ metadata.gz: ff3b0927a2d59721dfe8b8e2579c3ecf8f341bdc0869171b937442c888997eadd0d2a20e7501e7605651dafe6ab0e31d9cd84c1f612ad878010cd866f77936a8
7
+ data.tar.gz: d7c9339dd5dd4cbfdf802e8073a641f8d08e8bb191af25bc0357a42cb28df7772e941886d1a7ab4425b71858be0819c56b1e5496361451d0cc1bb0002ac48626
@@ -2,6 +2,8 @@ module NormalizeUrl
2
2
  autoload :VERSION, "normalize_url/version"
3
3
  autoload :Normalizer, "normalize_url/normalizer"
4
4
 
5
+ class InvalidURIError < ArgumentError; end
6
+
5
7
  extend self
6
8
 
7
9
  def process(url, **options)
@@ -72,7 +72,7 @@ module NormalizeUrl
72
72
  end
73
73
 
74
74
  def fail_uri(message)
75
- fail ArgumentError, message
75
+ fail InvalidURIError, message
76
76
  end
77
77
 
78
78
  def params_to_remove
@@ -1,3 +1,3 @@
1
1
  module NormalizeUrl
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: normalize_url
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Pravosud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-23 00:00:00.000000000 Z
11
+ date: 2014-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  version: '0'
57
57
  requirements: []
58
58
  rubyforge_project:
59
- rubygems_version: 2.2.2
59
+ rubygems_version: 2.4.3
60
60
  signing_key:
61
61
  specification_version: 4
62
62
  summary: Normalizing URLs like a Boss