app_store_info 1.0.3 → 1.0.4

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: d9c7794d2e09e0af88bf5c3a46ae5ed6619dac91
4
- data.tar.gz: 3b0f81a0056a95c9484f91ec18c92d542cc94fe2
3
+ metadata.gz: 6e46eeca190e83ced9d9b0e91586fe223f98246c
4
+ data.tar.gz: e1b54aaa1d88343174911285989cb7195de98c05
5
5
  SHA512:
6
- metadata.gz: 455b1df842d12082bc9dffe25b3e74fbfb5029d3d11e9e1c4288228e875f4cd7ddf08b41401d2a20b21393f113736020baa845f3894d0387d9d8387afa3428f2
7
- data.tar.gz: 3e7f52424ae5b54dd5fd692d9d206cd5ef2c96f0ce2404acf1e816336d0020c71166a4e11c8d0f43a1b6e5f1a942a3e86b751ace095c9a058c5052cfcdec7c56
6
+ metadata.gz: 99e63e459ad7ef93d56e9ba7a70157b0b0ede50fc4d2be0b69a382c5768c2370e0a2dc7e5e42429ec381542f72f60e57c8a24a5c467c1ed29e2bc1ed2706b71b
7
+ data.tar.gz: 6507e80b455c2f962cbccb9485f557ad3ba123c1de565dc8b82e3e3b4c5e68eb01b907bdb8828c92fe3b4dfe795e63c1f72b9e52beebfd3e1307320e0f0cfe70
@@ -1,3 +1,3 @@
1
1
  module AppStoreInfo
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
3
3
  end
@@ -20,7 +20,7 @@ module AppStoreInfo
20
20
  def self.read_url(url)
21
21
  match = url.match(%r{\Ahttps://itunes.apple.com/(\w+)/.+/?id=?([\d]+)})
22
22
 
23
- fail ArgumentError, 'Invalid App Store URL' unless match
23
+ fail InvalidURLError, 'Invalid App Store URL' unless match
24
24
 
25
25
  region = match.captures.first
26
26
  id = match.captures.last
@@ -30,6 +30,8 @@ module AppStoreInfo
30
30
 
31
31
  class GenericError < StandardError; end
32
32
 
33
+ class InvalidURLError < GenericError; end
34
+
33
35
  class EntryNotFound < GenericError; end
34
36
 
35
37
  class ConnectionError < GenericError; end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_store_info
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Otero