parliament-ruby 0.7.6 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parliament/request/base_request.rb +2 -2
- data/lib/parliament/version.rb +1 -1
- data/parliament-ruby.gemspec +1 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f33b65d3bef2bef3178eb8cd8c05b3c0d684a05a
|
4
|
+
data.tar.gz: 24277315d0a9f0e4a155e39b0d7a3897cc40c6c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e703b71e559aa20f4a7e1c1b0f81bd80c35ffb9ad7ee917e2523959827e27d7085eaa5f07597c8a95f349350b13771f10f308ba4b2b6e7f00619d7d20698c979
|
7
|
+
data.tar.gz: 22978ff2753563fc23be57fd6af6b5d51822191be729ba41f1ac7b57d5149eef19322e91b334785a596e69176e8fe5b8bc75829e7f243d9ceb700032b2b42879
|
@@ -132,8 +132,8 @@ module Parliament
|
|
132
132
|
|
133
133
|
def handle_errors(response)
|
134
134
|
case response
|
135
|
-
when Net::
|
136
|
-
exception_class = Parliament::NoContentResponseError if response
|
135
|
+
when Net::HTTPOK # 2xx Status
|
136
|
+
exception_class = Parliament::NoContentResponseError if response['Content-Length'] == '0'
|
137
137
|
when Net::HTTPClientError # 4xx Status
|
138
138
|
exception_class = Parliament::ClientError
|
139
139
|
when Net::HTTPServerError # 5xx Status
|
data/lib/parliament/version.rb
CHANGED
data/parliament-ruby.gemspec
CHANGED
@@ -27,5 +27,6 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_development_dependency 'simplecov', '~> 0.12'
|
28
28
|
spec.add_development_dependency 'vcr', '~> 3.0'
|
29
29
|
spec.add_development_dependency 'webmock', '~> 2.3'
|
30
|
+
spec.add_development_dependency 'i18n', '~> 0.8'
|
30
31
|
spec.add_development_dependency 'parliament-grom-decorators', '~> 0.1'
|
31
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parliament-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Rayner
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '2.3'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: i18n
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.8'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.8'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: parliament-grom-decorators
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -177,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
177
191
|
version: '0'
|
178
192
|
requirements: []
|
179
193
|
rubyforge_project:
|
180
|
-
rubygems_version: 2.6.
|
194
|
+
rubygems_version: 2.6.10
|
181
195
|
signing_key:
|
182
196
|
specification_version: 4
|
183
197
|
summary: Internal parliamentary API wrapper
|