gds-api-adapters 10.6.1 → 10.6.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,14 @@
|
|
1
1
|
require_relative '../base'
|
2
2
|
|
3
3
|
module GdsApi
|
4
|
+
class PerformancePlatformDatasetNotConfigured < BaseError; end
|
5
|
+
|
4
6
|
module PerformancePlatform
|
5
7
|
class DataIn < GdsApi::Base
|
6
8
|
def submit_service_feedback_day_aggregate(slug, request_details)
|
7
9
|
post_json!("#{endpoint}/data/#{slug}/customer-satisfaction", request_details)
|
10
|
+
rescue GdsApi::HTTPNotFound
|
11
|
+
raise PerformancePlatformDatasetNotConfigured, "Dataset for slug [#{slug}] not set up"
|
8
12
|
end
|
9
13
|
end
|
10
14
|
end
|
data/lib/gds_api/version.rb
CHANGED
data/test/pp_data_in_test.rb
CHANGED
@@ -27,6 +27,6 @@ describe GdsApi::PerformancePlatform::DataIn do
|
|
27
27
|
|
28
28
|
it "throws an exception when the the bucket for that slug hasn't been defined" do
|
29
29
|
stub_service_feedback_bucket_unavailable_for("some_transaction")
|
30
|
-
assert_raises(GdsApi::
|
30
|
+
assert_raises(GdsApi::PerformancePlatformDatasetNotConfigured) { @api.submit_service_feedback_day_aggregate("some_transaction", {}) }
|
31
31
|
end
|
32
32
|
end
|
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: 10.6.
|
4
|
+
version: 10.6.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-04-
|
12
|
+
date: 2014-04-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: plek
|
@@ -376,7 +376,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
376
376
|
version: '0'
|
377
377
|
segments:
|
378
378
|
- 0
|
379
|
-
hash:
|
379
|
+
hash: 2318323185419183875
|
380
380
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
381
381
|
none: false
|
382
382
|
requirements:
|
@@ -385,7 +385,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
385
385
|
version: '0'
|
386
386
|
segments:
|
387
387
|
- 0
|
388
|
-
hash:
|
388
|
+
hash: 2318323185419183875
|
389
389
|
requirements: []
|
390
390
|
rubyforge_project:
|
391
391
|
rubygems_version: 1.8.23
|