gds-api-adapters 7.5.0 → 7.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ class GdsApi::Support < GdsApi::Base
6
6
  end
7
7
 
8
8
  def create_problem_report(request_details, options = {})
9
- post_json!("#{base_url}/problem_reports", { :problem_report => request_details }, options[:headers] || {})
9
+ post_json!("#{base_url}/anonymous_feedback/problem_reports", { :problem_report => request_details }, options[:headers] || {})
10
10
  end
11
11
 
12
12
  private
@@ -10,7 +10,7 @@ module GdsApi
10
10
  end
11
11
 
12
12
  def stub_support_problem_report_creation(request_details = nil)
13
- post_stub = stub_http_request(:post, "#{SUPPORT_ENDPOINT}/problem_reports")
13
+ post_stub = stub_http_request(:post, "#{SUPPORT_ENDPOINT}/anonymous_feedback/problem_reports")
14
14
  post_stub.with(:body => { problem_report: request_details }) unless request_details.nil?
15
15
  post_stub.to_return(:status => 201)
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '7.5.0'
2
+ VERSION = '7.5.1'
3
3
  end
@@ -41,7 +41,7 @@ describe GdsApi::Support do
41
41
  it "can report a problem" do
42
42
  request_details = {certain: "details"}
43
43
 
44
- stub_post = stub_request(:post, "#{@base_api_url}/problem_reports").
44
+ stub_post = stub_request(:post, "#{@base_api_url}/anonymous_feedback/problem_reports").
45
45
  with(:body => {"problem_report" => request_details}.to_json).
46
46
  to_return(:status => 201)
47
47
 
@@ -51,7 +51,7 @@ describe GdsApi::Support do
51
51
  end
52
52
 
53
53
  it "can add a custom header onto the problem_report request to the support app" do
54
- stub_request(:post, "#{@base_api_url}/problem_reports")
54
+ stub_request(:post, "#{@base_api_url}/anonymous_feedback/problem_reports")
55
55
 
56
56
  @api.create_problem_report({}, headers: { "X-Varnish" => "12345"})
57
57
 
@@ -26,7 +26,7 @@ class MiniTest::Unit::TestCase
26
26
  end
27
27
 
28
28
  def load_fixture_file(filename)
29
- File.open( File.join( File.dirname(__FILE__), "fixtures", filename ) )
29
+ File.open( File.join( File.dirname(__FILE__), "fixtures", filename ), :encoding => 'utf-8' )
30
30
  end
31
31
 
32
32
  require 'webmock/minitest'
metadata CHANGED
@@ -1,303 +1,371 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: gds-api-adapters
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 7.5.1
4
5
  prerelease:
5
- version: 7.5.0
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - James Stewart
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2013-09-05 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2013-09-26 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: plek
17
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
18
17
  none: false
19
- requirements:
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
23
22
  type: :runtime
24
23
  prerelease: false
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
27
31
  name: null_logger
28
- requirement: &id002 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
29
33
  none: false
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: "0"
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
34
38
  type: :runtime
35
39
  prerelease: false
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
38
47
  name: link_header
39
- requirement: &id003 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
40
49
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- version: "0"
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
45
54
  type: :runtime
46
55
  prerelease: false
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
49
63
  name: lrucache
50
- requirement: &id004 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
51
65
  none: false
52
- requirements:
66
+ requirements:
53
67
  - - ~>
54
- - !ruby/object:Gem::Version
68
+ - !ruby/object:Gem::Version
55
69
  version: 0.1.1
56
70
  type: :runtime
57
71
  prerelease: false
58
- version_requirements: *id004
59
- - !ruby/object:Gem::Dependency
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 0.1.1
78
+ - !ruby/object:Gem::Dependency
60
79
  name: rest-client
61
- requirement: &id005 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
62
81
  none: false
63
- requirements:
82
+ requirements:
64
83
  - - ~>
65
- - !ruby/object:Gem::Version
84
+ - !ruby/object:Gem::Version
66
85
  version: 1.6.3
67
86
  type: :runtime
68
87
  prerelease: false
69
- version_requirements: *id005
70
- - !ruby/object:Gem::Dependency
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 1.6.3
94
+ - !ruby/object:Gem::Dependency
71
95
  name: rdoc
72
- requirement: &id006 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
73
97
  none: false
74
- requirements:
75
- - - "="
76
- - !ruby/object:Gem::Version
77
- version: "3.12"
98
+ requirements:
99
+ - - '='
100
+ - !ruby/object:Gem::Version
101
+ version: '3.12'
78
102
  type: :development
79
103
  prerelease: false
80
- version_requirements: *id006
81
- - !ruby/object:Gem::Dependency
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - '='
108
+ - !ruby/object:Gem::Version
109
+ version: '3.12'
110
+ - !ruby/object:Gem::Dependency
82
111
  name: rake
83
- requirement: &id007 !ruby/object:Gem::Requirement
112
+ requirement: !ruby/object:Gem::Requirement
84
113
  none: false
85
- requirements:
114
+ requirements:
86
115
  - - ~>
87
- - !ruby/object:Gem::Version
116
+ - !ruby/object:Gem::Version
88
117
  version: 0.9.2.2
89
118
  type: :development
90
119
  prerelease: false
91
- version_requirements: *id007
92
- - !ruby/object:Gem::Dependency
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: 0.9.2.2
126
+ - !ruby/object:Gem::Dependency
93
127
  name: webmock
94
- requirement: &id008 !ruby/object:Gem::Requirement
128
+ requirement: !ruby/object:Gem::Requirement
95
129
  none: false
96
- requirements:
130
+ requirements:
97
131
  - - ~>
98
- - !ruby/object:Gem::Version
99
- version: "1.8"
132
+ - !ruby/object:Gem::Version
133
+ version: '1.8'
100
134
  type: :development
101
135
  prerelease: false
102
- version_requirements: *id008
103
- - !ruby/object:Gem::Dependency
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: '1.8'
142
+ - !ruby/object:Gem::Dependency
104
143
  name: mocha
105
- requirement: &id009 !ruby/object:Gem::Requirement
144
+ requirement: !ruby/object:Gem::Requirement
106
145
  none: false
107
- requirements:
146
+ requirements:
108
147
  - - ~>
109
- - !ruby/object:Gem::Version
148
+ - !ruby/object:Gem::Version
110
149
  version: 0.12.4
111
150
  type: :development
112
151
  prerelease: false
113
- version_requirements: *id009
114
- - !ruby/object:Gem::Dependency
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ~>
156
+ - !ruby/object:Gem::Version
157
+ version: 0.12.4
158
+ - !ruby/object:Gem::Dependency
115
159
  name: minitest
116
- requirement: &id010 !ruby/object:Gem::Requirement
160
+ requirement: !ruby/object:Gem::Requirement
117
161
  none: false
118
- requirements:
162
+ requirements:
119
163
  - - ~>
120
- - !ruby/object:Gem::Version
164
+ - !ruby/object:Gem::Version
121
165
  version: 3.4.0
122
166
  type: :development
123
167
  prerelease: false
124
- version_requirements: *id010
125
- - !ruby/object:Gem::Dependency
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ~>
172
+ - !ruby/object:Gem::Version
173
+ version: 3.4.0
174
+ - !ruby/object:Gem::Dependency
126
175
  name: rack
127
- requirement: &id011 !ruby/object:Gem::Requirement
176
+ requirement: !ruby/object:Gem::Requirement
128
177
  none: false
129
- requirements:
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: "0"
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
133
182
  type: :development
134
183
  prerelease: false
135
- version_requirements: *id011
136
- - !ruby/object:Gem::Dependency
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ - !ruby/object:Gem::Dependency
137
191
  name: simplecov
138
- requirement: &id012 !ruby/object:Gem::Requirement
192
+ requirement: !ruby/object:Gem::Requirement
139
193
  none: false
140
- requirements:
194
+ requirements:
141
195
  - - ~>
142
- - !ruby/object:Gem::Version
196
+ - !ruby/object:Gem::Version
143
197
  version: 0.5.4
144
198
  type: :development
145
199
  prerelease: false
146
- version_requirements: *id012
147
- - !ruby/object:Gem::Dependency
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ~>
204
+ - !ruby/object:Gem::Version
205
+ version: 0.5.4
206
+ - !ruby/object:Gem::Dependency
148
207
  name: simplecov-rcov
149
- requirement: &id013 !ruby/object:Gem::Requirement
208
+ requirement: !ruby/object:Gem::Requirement
150
209
  none: false
151
- requirements:
152
- - - ">="
153
- - !ruby/object:Gem::Version
154
- version: "0"
210
+ requirements:
211
+ - - ! '>='
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
155
214
  type: :development
156
215
  prerelease: false
157
- version_requirements: *id013
158
- - !ruby/object:Gem::Dependency
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
218
+ requirements:
219
+ - - ! '>='
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ - !ruby/object:Gem::Dependency
159
223
  name: gem_publisher
160
- requirement: &id014 !ruby/object:Gem::Requirement
224
+ requirement: !ruby/object:Gem::Requirement
161
225
  none: false
162
- requirements:
226
+ requirements:
163
227
  - - ~>
164
- - !ruby/object:Gem::Version
228
+ - !ruby/object:Gem::Version
165
229
  version: 1.1.1
166
230
  type: :development
167
231
  prerelease: false
168
- version_requirements: *id014
169
- - !ruby/object:Gem::Dependency
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
234
+ requirements:
235
+ - - ~>
236
+ - !ruby/object:Gem::Version
237
+ version: 1.1.1
238
+ - !ruby/object:Gem::Dependency
170
239
  name: timecop
171
- requirement: &id015 !ruby/object:Gem::Requirement
240
+ requirement: !ruby/object:Gem::Requirement
172
241
  none: false
173
- requirements:
242
+ requirements:
174
243
  - - ~>
175
- - !ruby/object:Gem::Version
244
+ - !ruby/object:Gem::Version
176
245
  version: 0.5.1
177
246
  type: :development
178
247
  prerelease: false
179
- version_requirements: *id015
248
+ version_requirements: !ruby/object:Gem::Requirement
249
+ none: false
250
+ requirements:
251
+ - - ~>
252
+ - !ruby/object:Gem::Version
253
+ version: 0.5.1
180
254
  description: A set of adapters providing easy access to the GDS GOV.UK APIs
181
- email:
255
+ email:
182
256
  - jystewart@gmail.com
183
257
  executables: []
184
-
185
258
  extensions: []
186
-
187
259
  extra_rdoc_files: []
188
-
189
- files:
190
- - lib/gds_api/version.rb
191
- - lib/gds_api/base.rb
192
- - lib/gds_api/gov_uk_delivery.rb
193
- - lib/gds_api/licence_application.rb
194
- - lib/gds_api/null_cache.rb
195
- - lib/gds_api/panopticon/registerer.rb
196
- - lib/gds_api/needotron.rb
197
- - lib/gds_api/imminence.rb
260
+ files:
261
+ - lib/gds_api/support.rb
198
262
  - lib/gds_api/rummager.rb
199
- - lib/gds_api/content_api.rb
200
- - lib/gds_api/mapit.rb
263
+ - lib/gds_api/part_methods.rb
201
264
  - lib/gds_api/exceptions.rb
202
- - lib/gds_api/list_response.rb
203
- - lib/gds_api/fact_cave.rb
204
265
  - lib/gds_api/json_client.rb
205
- - lib/gds_api/core-ext/openstruct.rb
206
- - lib/gds_api/response.rb
207
- - lib/gds_api/publisher.rb
208
- - lib/gds_api/support.rb
209
- - lib/gds_api/test_helpers/gov_uk_delivery.rb
266
+ - lib/gds_api/base.rb
267
+ - lib/gds_api/licence_application.rb
268
+ - lib/gds_api/list_response.rb
269
+ - lib/gds_api/version.rb
270
+ - lib/gds_api/panopticon/registerer.rb
271
+ - lib/gds_api/test_helpers/support.rb
272
+ - lib/gds_api/test_helpers/content_api/artefact_stub.rb
210
273
  - lib/gds_api/test_helpers/licence_application.rb
211
- - lib/gds_api/test_helpers/common_responses.rb
212
274
  - lib/gds_api/test_helpers/imminence.rb
213
- - lib/gds_api/test_helpers/content_api.rb
275
+ - lib/gds_api/test_helpers/worldwide.rb
214
276
  - lib/gds_api/test_helpers/mapit.rb
215
- - lib/gds_api/test_helpers/fact_cave.rb
216
- - lib/gds_api/test_helpers/content_api/artefact_stub.rb
217
- - lib/gds_api/test_helpers/publisher.rb
218
- - lib/gds_api/test_helpers/support.rb
219
- - lib/gds_api/test_helpers/asset_manager.rb
220
277
  - lib/gds_api/test_helpers/panopticon.rb
221
278
  - lib/gds_api/test_helpers/json_client_helper.rb
222
- - lib/gds_api/test_helpers/worldwide.rb
223
- - lib/gds_api/part_methods.rb
224
- - lib/gds_api/asset_manager.rb
225
- - lib/gds_api/panopticon.rb
279
+ - lib/gds_api/test_helpers/asset_manager.rb
280
+ - lib/gds_api/test_helpers/gov_uk_delivery.rb
281
+ - lib/gds_api/test_helpers/fact_cave.rb
282
+ - lib/gds_api/test_helpers/publisher.rb
283
+ - lib/gds_api/test_helpers/common_responses.rb
284
+ - lib/gds_api/test_helpers/content_api.rb
285
+ - lib/gds_api/needotron.rb
286
+ - lib/gds_api/null_cache.rb
287
+ - lib/gds_api/imminence.rb
226
288
  - lib/gds_api/worldwide.rb
289
+ - lib/gds_api/mapit.rb
227
290
  - lib/gds_api/helpers.rb
291
+ - lib/gds_api/panopticon.rb
292
+ - lib/gds_api/asset_manager.rb
293
+ - lib/gds_api/gov_uk_delivery.rb
294
+ - lib/gds_api/fact_cave.rb
295
+ - lib/gds_api/core-ext/openstruct.rb
296
+ - lib/gds_api/response.rb
297
+ - lib/gds_api/publisher.rb
298
+ - lib/gds_api/content_api.rb
228
299
  - README.md
229
300
  - Rakefile
230
- - test/rummager_test.rb
301
+ - test/support_api_test.rb
302
+ - test/mapit_test.rb
231
303
  - test/publisher_api_test.rb
304
+ - test/fact_cave_test.rb
232
305
  - test/licence_application_api_test.rb
233
- - test/mapit_test.rb
234
306
  - test/gov_uk_delivery_test.rb
235
307
  - test/panopticon_api_test.rb
236
- - test/imminence_api_test.rb
308
+ - test/panopticon_registerer_test.rb
309
+ - test/rummager_test.rb
237
310
  - test/json_client_test.rb
238
- - test/test_helper.rb
239
- - test/list_response_test.rb
240
- - test/worldwide_api_test.rb
241
- - test/fact_cave_test.rb
242
- - test/support_api_test.rb
243
- - test/fixtures/world_organisations_australia.json
244
- - test/fixtures/hello.txt
311
+ - test/content_api_test.rb
245
312
  - test/response_test.rb
313
+ - test/imminence_api_test.rb
246
314
  - test/asset_manager_test.rb
315
+ - test/fixtures/hello.txt
316
+ - test/fixtures/world_organisations_australia.json
317
+ - test/list_response_test.rb
247
318
  - test/gds_api_base_test.rb
248
- - test/content_api_test.rb
249
- - test/panopticon_registerer_test.rb
319
+ - test/worldwide_api_test.rb
320
+ - test/test_helper.rb
250
321
  homepage: http://github.com/alphagov/gds-api-adapters
251
322
  licenses: []
252
-
253
323
  post_install_message:
254
324
  rdoc_options: []
255
-
256
- require_paths:
325
+ require_paths:
257
326
  - lib
258
- required_ruby_version: !ruby/object:Gem::Requirement
327
+ required_ruby_version: !ruby/object:Gem::Requirement
259
328
  none: false
260
- requirements:
261
- - - ">="
262
- - !ruby/object:Gem::Version
263
- hash: -3019861468380170636
264
- segments:
329
+ requirements:
330
+ - - ! '>='
331
+ - !ruby/object:Gem::Version
332
+ version: '0'
333
+ segments:
265
334
  - 0
266
- version: "0"
267
- required_rubygems_version: !ruby/object:Gem::Requirement
335
+ hash: -3343041246316571110
336
+ required_rubygems_version: !ruby/object:Gem::Requirement
268
337
  none: false
269
- requirements:
270
- - - ">="
271
- - !ruby/object:Gem::Version
272
- hash: -3019861468380170636
273
- segments:
338
+ requirements:
339
+ - - ! '>='
340
+ - !ruby/object:Gem::Version
341
+ version: '0'
342
+ segments:
274
343
  - 0
275
- version: "0"
344
+ hash: -3343041246316571110
276
345
  requirements: []
277
-
278
346
  rubyforge_project:
279
- rubygems_version: 1.8.24
347
+ rubygems_version: 1.8.23
280
348
  signing_key:
281
349
  specification_version: 3
282
350
  summary: Adapters to work with GDS APIs
283
- test_files:
284
- - test/rummager_test.rb
351
+ test_files:
352
+ - test/support_api_test.rb
353
+ - test/mapit_test.rb
285
354
  - test/publisher_api_test.rb
355
+ - test/fact_cave_test.rb
286
356
  - test/licence_application_api_test.rb
287
- - test/mapit_test.rb
288
357
  - test/gov_uk_delivery_test.rb
289
358
  - test/panopticon_api_test.rb
290
- - test/imminence_api_test.rb
359
+ - test/panopticon_registerer_test.rb
360
+ - test/rummager_test.rb
291
361
  - test/json_client_test.rb
292
- - test/test_helper.rb
293
- - test/list_response_test.rb
294
- - test/worldwide_api_test.rb
295
- - test/fact_cave_test.rb
296
- - test/support_api_test.rb
297
- - test/fixtures/world_organisations_australia.json
298
- - test/fixtures/hello.txt
362
+ - test/content_api_test.rb
299
363
  - test/response_test.rb
364
+ - test/imminence_api_test.rb
300
365
  - test/asset_manager_test.rb
366
+ - test/fixtures/hello.txt
367
+ - test/fixtures/world_organisations_australia.json
368
+ - test/list_response_test.rb
301
369
  - test/gds_api_base_test.rb
302
- - test/content_api_test.rb
303
- - test/panopticon_registerer_test.rb
370
+ - test/worldwide_api_test.rb
371
+ - test/test_helper.rb