gds-api-adapters 57.2.2 → 57.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gds_api/support_api.rb +4 -0
- data/lib/gds_api/test_helpers/support_api.rb +6 -0
- data/lib/gds_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdf50d9974acdcfdfd5ad1d517abd007598a86f7a811cfa7cc7852f8ef4ad7af
|
4
|
+
data.tar.gz: eb23da4637a18a3b049af473929cba6c27ad4beb27a1c3b3c0c39f2ca01eb6b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 270ebb6f01941b807ccda0e9b7f77b0e8d97f09e116d4137633319266a5473005daf79049b5669a8a0b0e1375f4b967e1a7fc49c39067230a6b9a3f30607dee8
|
7
|
+
data.tar.gz: 94e63c8caa8917f9441ddf4340079a5aea7fdcf5f585629d813e01857570ca5d870c3423d97a732ae6ec6b459cc45dd510705fb9e7e7c886a08b5924c4be3fbf
|
data/lib/gds_api/support_api.rb
CHANGED
@@ -47,6 +47,10 @@ class GdsApi::SupportApi < GdsApi::Base
|
|
47
47
|
get_json("#{endpoint}/anonymous-feedback/problem-reports/#{date_string}/totals")
|
48
48
|
end
|
49
49
|
|
50
|
+
def create_business_finder_feedback(params)
|
51
|
+
post_json("#{endpoint}/anonymous-feedback/business-finder", params)
|
52
|
+
end
|
53
|
+
|
50
54
|
def anonymous_feedback(options = {})
|
51
55
|
uri = "#{endpoint}/anonymous-feedback" + query_string(options)
|
52
56
|
get_json(uri)
|
@@ -48,6 +48,12 @@ module GdsApi
|
|
48
48
|
post_stub.to_return(status: 201)
|
49
49
|
end
|
50
50
|
|
51
|
+
def stub_support_api_create_business_finder_feedback(params)
|
52
|
+
post_stub = stub_http_request(:post, "#{SUPPORT_API_ENDPOINT}/anonymous-feedback/business-finder")
|
53
|
+
post_stub.with(body: params)
|
54
|
+
post_stub.to_return(status: 201)
|
55
|
+
end
|
56
|
+
|
51
57
|
def stub_support_api_problem_report_daily_totals_for(date, expected_results = nil)
|
52
58
|
date_string = date.strftime("%Y-%m-%d")
|
53
59
|
get_stub = stub_http_request(:get, "#{SUPPORT_API_ENDPOINT}/anonymous-feedback/problem-reports/#{date_string}/totals")
|
data/lib/gds_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gds-api-adapters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 57.2.
|
4
|
+
version: 57.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|