url_reader 0.2.0 → 0.2.1
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 +4 -4
- data/Gemfile.lock +7 -7
- data/lib/url_reader/read_error.rb +4 -1
- data/url_reader.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b747696e13a0b4788c453a84409afcb835d36fcf
|
|
4
|
+
data.tar.gz: 21f82e519a75be794bc68520b0e12a9f093a39db
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 243127228518c2d15612e084f8834fa21467d747a3aa0c0cad2917e105cc70d0103d5b635451beba9ffc47b0c8e52fcad98179ecfc65e8c6d88d1258bdb46137
|
|
7
|
+
data.tar.gz: 01048270d89facf1dbd517884707a88334dcdff835de6f4a35318d956e6426cbdb0bb3f11cde3e2433b78da7a2e5c0737f07b8cbad7b3c5fe2733d56324419c0
|
data/Gemfile.lock
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
url_reader (0.2.
|
|
4
|
+
url_reader (0.2.1)
|
|
5
5
|
activesupport (>= 4)
|
|
6
6
|
rest-client
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
activesupport (4.
|
|
12
|
-
i18n (~> 0.
|
|
11
|
+
activesupport (4.2.0)
|
|
12
|
+
i18n (~> 0.7)
|
|
13
13
|
json (~> 1.7, >= 1.7.7)
|
|
14
14
|
minitest (~> 5.1)
|
|
15
|
-
thread_safe (~> 0.
|
|
15
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
|
16
16
|
tzinfo (~> 1.1)
|
|
17
17
|
addressable (2.3.6)
|
|
18
18
|
crack (0.4.2)
|
|
19
19
|
safe_yaml (~> 1.0.0)
|
|
20
20
|
diff-lcs (1.2.5)
|
|
21
|
-
i18n (0.
|
|
22
|
-
json (1.8.
|
|
21
|
+
i18n (0.7.0)
|
|
22
|
+
json (1.8.2)
|
|
23
23
|
mime-types (2.4.3)
|
|
24
|
-
minitest (5.
|
|
24
|
+
minitest (5.5.1)
|
|
25
25
|
netrc (0.8.0)
|
|
26
26
|
rest-client (1.7.2)
|
|
27
27
|
mime-types (>= 1.16, < 3.0)
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
class UrlReader::ReadError < UrlReader::BaseError
|
|
2
2
|
PageNotFound = 0
|
|
3
3
|
RequestTimeout = 1
|
|
4
|
-
|
|
4
|
+
InternalServerError = 2
|
|
5
|
+
UnidentifiedError = 3
|
|
5
6
|
|
|
6
7
|
attr_reader :type
|
|
7
8
|
|
|
@@ -13,6 +14,8 @@ class UrlReader::ReadError < UrlReader::BaseError
|
|
|
13
14
|
PageNotFound
|
|
14
15
|
elsif inner.is_a?(RestClient::RequestTimeout)
|
|
15
16
|
RequestTimeout
|
|
17
|
+
elsif inner.is_a?(RestClient::InternalServerError)
|
|
18
|
+
InternalServerError
|
|
16
19
|
else
|
|
17
20
|
UnidentifiedError
|
|
18
21
|
end
|
data/url_reader.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: url_reader
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tetsuri Moriya
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-04-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -114,3 +114,4 @@ signing_key:
|
|
|
114
114
|
specification_version: 4
|
|
115
115
|
summary: Url reader
|
|
116
116
|
test_files: []
|
|
117
|
+
has_rdoc:
|