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 +4 -4
- data/lib/app_store_info/version.rb +1 -1
- data/lib/app_store_info.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e46eeca190e83ced9d9b0e91586fe223f98246c
|
4
|
+
data.tar.gz: e1b54aaa1d88343174911285989cb7195de98c05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99e63e459ad7ef93d56e9ba7a70157b0b0ede50fc4d2be0b69a382c5768c2370e0a2dc7e5e42429ec381542f72f60e57c8a24a5c467c1ed29e2bc1ed2706b71b
|
7
|
+
data.tar.gz: 6507e80b455c2f962cbccb9485f557ad3ba123c1de565dc8b82e3e3b4c5e68eb01b907bdb8828c92fe3b4dfe795e63c1f72b9e52beebfd3e1307320e0f0cfe70
|
data/lib/app_store_info.rb
CHANGED
@@ -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
|
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
|