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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eda45191ecdf7c3e64b4c4e09fb44db78e09f730
4
- data.tar.gz: ef87dbefc78f70e36e6fa5334bf527e8bc6726f5
3
+ metadata.gz: f33b65d3bef2bef3178eb8cd8c05b3c0d684a05a
4
+ data.tar.gz: 24277315d0a9f0e4a155e39b0d7a3897cc40c6c5
5
5
  SHA512:
6
- metadata.gz: a38175fa37f64948d1ad2691967b42fd47c3cf70186100f0fa55489d21c77e6552d03dce6818470fbe3e1b9a4941defc133cf94f5defed71f7d43ee5d6b566ad
7
- data.tar.gz: 07156cafb96f86844e3de83af2b67e5ae9b9c597d587e67b7e586e9cddcf7074ec531f1f11c8e14c7633b2a8048a6d31a480708f4c5500a47630f888bad5e0f5
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::HTTPSuccess # 2xx Status
136
- exception_class = Parliament::NoContentResponseError if response.body.nil?
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
@@ -1,3 +1,3 @@
1
1
  module Parliament
2
- VERSION = '0.7.6'.freeze
2
+ VERSION = '0.7.7'.freeze
3
3
  end
@@ -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.6
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-04-20 00:00:00.000000000 Z
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.6
194
+ rubygems_version: 2.6.10
181
195
  signing_key:
182
196
  specification_version: 4
183
197
  summary: Internal parliamentary API wrapper