restify 1.8.0 → 1.9.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/restify/context.rb +1 -1
- data/lib/restify/response.rb +9 -0
- data/lib/restify/version.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56819d6525aa39551a5d638f500585ca7c06ed931ceb0e272bed65cd823db3c8
|
4
|
+
data.tar.gz: 803ddcde2d84ceb8b860f73a016844aa2aa08cceeeeec307aa6bc9fde87cf0bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5e62bcb309b29872ac78da6d4cb3ea489da01fd4501c7fadc6beaa299a4fc6d23e9428eef49d82032c055598bc763a006d3d91c4e102c2f98d22db4d9f7c5c0
|
7
|
+
data.tar.gz: a5e4ade033f7f83fa5d195dd7d034399e96c561121a756dc995577f8e345a9e5aaac9272818902a4f3b9c742d1018c35ee7a39cee1292f2320eece3ce69810a6
|
data/lib/restify/context.rb
CHANGED
data/lib/restify/response.rb
CHANGED
@@ -123,6 +123,15 @@ module Restify
|
|
123
123
|
(200...300).cover? code
|
124
124
|
end
|
125
125
|
|
126
|
+
# Check if response is erroneous e.g. the status code
|
127
|
+
# is one of 4XX or 5XX.
|
128
|
+
#
|
129
|
+
# @return [Boolean] True if status code is 2XX otherwise false.
|
130
|
+
#
|
131
|
+
def errored?
|
132
|
+
(400...600).cover? code
|
133
|
+
end
|
134
|
+
|
126
135
|
# @api private
|
127
136
|
def decoded_body
|
128
137
|
@decoded_body ||= begin
|
data/lib/restify/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: restify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Graichen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -215,9 +215,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
215
215
|
version: '0'
|
216
216
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
217
|
requirements:
|
218
|
-
- - "
|
218
|
+
- - ">"
|
219
219
|
- !ruby/object:Gem::Version
|
220
|
-
version:
|
220
|
+
version: 1.3.1
|
221
221
|
requirements: []
|
222
222
|
rubyforge_project:
|
223
223
|
rubygems_version: 2.7.7
|