nap 0.8.0.pre → 0.8.0
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/README.md +3 -3
- data/lib/rest.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71b61158c1ef095f33dade9fc2b400c5727b83c6
|
4
|
+
data.tar.gz: 9698e46e0333da40ee4f6376f11f29bd44417620
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec06e680bbc04eb2689a35bb7e7bfd664f34b2fe7ba35fe1a8f3f38f0cb5db0587f638e150fdc9aa807b599de8793079ec77f18c15ded1bdffe5c3e80f9ce4e3
|
7
|
+
data.tar.gz: 3ee10840ff758c5adfe628dcbc2526b14895a6a553497e54f667a9a72805de9a9b1f0ff14d70546b3fe52788de5c5784bb82b0af0aac3722a4efee2f3ce36557
|
data/README.md
CHANGED
@@ -44,9 +44,9 @@ To enable the proxy settings in Nap, you can either use the HTTP\_PROXY or http\
|
|
44
44
|
Nap defines one top-level and three main error types which allow you to catch a whole range of exceptions thrown by underlying protocol implementations.
|
45
45
|
|
46
46
|
* *REST::Error*: Any type of error
|
47
|
-
* *REST::Timeout*: Read timeouts of various sorts
|
48
|
-
* *REST::Connection*: Connection errors caused by dropped sockets
|
49
|
-
* *REST::Protocol*: Request failed because of a problem when handling the HTTP request or response
|
47
|
+
* *REST::Error::Timeout*: Read timeouts of various sorts
|
48
|
+
* *REST::Error::Connection*: Connection errors caused by dropped sockets
|
49
|
+
* *REST::Error::Protocol*: Request failed because of a problem when handling the HTTP request or response
|
50
50
|
|
51
51
|
In the most basic case you can rescue from the top-level type to warn about fetching problems.
|
52
52
|
|
data/lib/rest.rb
CHANGED
@@ -7,7 +7,7 @@ require 'uri'
|
|
7
7
|
# requests. See REST::Error for a complete discussion of options.
|
8
8
|
module REST
|
9
9
|
# Library version
|
10
|
-
VERSION = '0.8.0
|
10
|
+
VERSION = '0.8.0'
|
11
11
|
|
12
12
|
# Raised when the remote server disconnects when reading the response
|
13
13
|
class DisconnectedError < StandardError; end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.0
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manfred Stienstra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -71,9 +71,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
71
71
|
version: '0'
|
72
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - "
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
76
|
+
version: '0'
|
77
77
|
requirements: []
|
78
78
|
rubyforge_project:
|
79
79
|
rubygems_version: 2.2.0
|