gds-api-adapters 8.3.1 → 8.3.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ module GdsApi
|
|
4
4
|
module PerformancePlatform
|
5
5
|
class DataIn < GdsApi::Base
|
6
6
|
def submit_service_feedback_day_aggregate(slug, request_details)
|
7
|
-
post_json!("#{endpoint}/#{slug
|
7
|
+
post_json!("#{endpoint}/data/#{slug}/customer-satisfaction", request_details)
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
@@ -5,23 +5,18 @@ module GdsApi
|
|
5
5
|
PP_DATA_IN_ENDPOINT = "http://www.performance.dev.gov.uk"
|
6
6
|
|
7
7
|
def stub_service_feedback_day_aggregate_submission(slug, request_body = nil)
|
8
|
-
post_stub = stub_http_request(:post, "#{PP_DATA_IN_ENDPOINT}/#{
|
8
|
+
post_stub = stub_http_request(:post, "#{PP_DATA_IN_ENDPOINT}/data/#{slug}/customer-satisfaction")
|
9
9
|
post_stub.with(body: request_body) unless request_body.nil?
|
10
10
|
post_stub.to_return(:status => 200)
|
11
11
|
end
|
12
12
|
|
13
13
|
def stub_service_feedback_bucket_unavailable_for(slug)
|
14
|
-
stub_request(:post, "#{PP_DATA_IN_ENDPOINT}/#{
|
14
|
+
stub_request(:post, "#{PP_DATA_IN_ENDPOINT}/data/#{slug}/customer-satisfaction").to_return(:status => 404)
|
15
15
|
end
|
16
16
|
|
17
17
|
def stub_pp_isnt_available
|
18
18
|
stub_request(:post, /#{PP_DATA_IN_ENDPOINT}\/.*/).to_return(:status => 503)
|
19
19
|
end
|
20
|
-
|
21
|
-
private
|
22
|
-
def adjusted(slug)
|
23
|
-
slug.gsub("-", "_")
|
24
|
-
end
|
25
20
|
end
|
26
21
|
end
|
27
22
|
end
|
data/lib/gds_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gds-api-adapters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.3.
|
4
|
+
version: 8.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-02-
|
12
|
+
date: 2014-02-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: plek
|
@@ -367,7 +367,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
367
367
|
version: '0'
|
368
368
|
segments:
|
369
369
|
- 0
|
370
|
-
hash: -
|
370
|
+
hash: -3713981339256915174
|
371
371
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
372
372
|
none: false
|
373
373
|
requirements:
|
@@ -376,7 +376,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
376
376
|
version: '0'
|
377
377
|
segments:
|
378
378
|
- 0
|
379
|
-
hash: -
|
379
|
+
hash: -3713981339256915174
|
380
380
|
requirements: []
|
381
381
|
rubyforge_project:
|
382
382
|
rubygems_version: 1.8.23
|