gds-api-adapters 3.0.0 → 3.1.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.
@@ -13,6 +13,10 @@ module GdsApi
13
13
  @net_http_response = net_http_response
14
14
  end
15
15
 
16
+ def raw_response_body
17
+ @net_http_response.body
18
+ end
19
+
16
20
  def to_hash
17
21
  @parsed ||= JSON.parse(@net_http_response.body)
18
22
  end
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '3.0.0'
2
+ VERSION = '3.1.0'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: gds-api-adapters
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 3.0.0
5
+ version: 3.1.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Stewart
@@ -155,43 +155,43 @@ extra_rdoc_files: []
155
155
 
156
156
  files:
157
157
  - lib/gds_api/version.rb
158
- - lib/gds_api/publisher.rb
159
- - lib/gds_api/panopticon/registerer.rb
160
158
  - lib/gds_api/typhoeus_client.rb
161
- - lib/gds_api/content_api.rb
162
- - lib/gds_api/imminence.rb
159
+ - lib/gds_api/base.rb
160
+ - lib/gds_api/licence_application.rb
163
161
  - lib/gds_api/contactotron.rb
164
- - lib/gds_api/test_helpers/publisher.rb
165
- - lib/gds_api/test_helpers/content_api.rb
166
- - lib/gds_api/test_helpers/imminence.rb
167
- - lib/gds_api/test_helpers/contactotron.rb
162
+ - lib/gds_api/panopticon/registerer.rb
163
+ - lib/gds_api/needotron.rb
164
+ - lib/gds_api/imminence.rb
165
+ - lib/gds_api/rummager.rb
166
+ - lib/gds_api/content_api.rb
167
+ - lib/gds_api/exceptions.rb
168
+ - lib/gds_api/json_client.rb
169
+ - lib/gds_api/core-ext/openstruct.rb
170
+ - lib/gds_api/response.rb
171
+ - lib/gds_api/publisher.rb
168
172
  - lib/gds_api/test_helpers/licence_application.rb
173
+ - lib/gds_api/test_helpers/contactotron.rb
174
+ - lib/gds_api/test_helpers/imminence.rb
175
+ - lib/gds_api/test_helpers/content_api.rb
176
+ - lib/gds_api/test_helpers/publisher.rb
169
177
  - lib/gds_api/test_helpers/panopticon.rb
170
178
  - lib/gds_api/test_helpers/json_client_helper.rb
171
- - lib/gds_api/licence_application.rb
172
- - lib/gds_api/base.rb
173
- - lib/gds_api/json_client.rb
174
- - lib/gds_api/response.rb
175
- - lib/gds_api/rummager.rb
176
- - lib/gds_api/panopticon.rb
177
- - lib/gds_api/core-ext/openstruct.rb
178
179
  - lib/gds_api/part_methods.rb
179
- - lib/gds_api/needotron.rb
180
- - lib/gds_api/exceptions.rb
180
+ - lib/gds_api/panopticon.rb
181
181
  - lib/gds_api/helpers.rb
182
182
  - README.md
183
183
  - Rakefile
184
- - test/contactotron_api_test.rb
185
- - test/panopticon_api_test.rb
186
- - test/publisher_api_test.rb
187
184
  - test/rummager_test.rb
185
+ - test/publisher_api_test.rb
186
+ - test/licence_application_api_test.rb
187
+ - test/panopticon_api_test.rb
188
188
  - test/imminence_api_test.rb
189
- - test/panopticon_registerer_test.rb
190
- - test/content_api_test.rb
191
189
  - test/json_client_test.rb
192
- - test/gds_api_base_test.rb
193
- - test/licence_application_api_test.rb
194
190
  - test/test_helper.rb
191
+ - test/gds_api_base_test.rb
192
+ - test/content_api_test.rb
193
+ - test/panopticon_registerer_test.rb
194
+ - test/contactotron_api_test.rb
195
195
  homepage: http://github.com/alphagov/gds-api-adapters
196
196
  licenses: []
197
197
 
@@ -205,7 +205,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - ">="
207
207
  - !ruby/object:Gem::Version
208
- hash: -4542127059758374490
208
+ hash: -1905661426845411483
209
209
  segments:
210
210
  - 0
211
211
  version: "0"
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  requirements:
215
215
  - - ">="
216
216
  - !ruby/object:Gem::Version
217
- hash: -4542127059758374490
217
+ hash: -1905661426845411483
218
218
  segments:
219
219
  - 0
220
220
  version: "0"
@@ -226,14 +226,14 @@ signing_key:
226
226
  specification_version: 3
227
227
  summary: Adapters to work with GDS APIs
228
228
  test_files:
229
- - test/contactotron_api_test.rb
230
- - test/panopticon_api_test.rb
231
- - test/publisher_api_test.rb
232
229
  - test/rummager_test.rb
230
+ - test/publisher_api_test.rb
231
+ - test/licence_application_api_test.rb
232
+ - test/panopticon_api_test.rb
233
233
  - test/imminence_api_test.rb
234
- - test/panopticon_registerer_test.rb
235
- - test/content_api_test.rb
236
234
  - test/json_client_test.rb
237
- - test/gds_api_base_test.rb
238
- - test/licence_application_api_test.rb
239
235
  - test/test_helper.rb
236
+ - test/gds_api_base_test.rb
237
+ - test/content_api_test.rb
238
+ - test/panopticon_registerer_test.rb
239
+ - test/contactotron_api_test.rb