gds-api-adapters 30.0.0 → 30.0.1
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.
- checksums.yaml +4 -4
- data/lib/gds_api/test_helpers/publishing_api_v2.rb +7 -2
- data/lib/gds_api/version.rb +1 -1
- metadata +39 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0894ef0f3de4c61534ca85eb7dd7c82c6c422d0b
|
4
|
+
data.tar.gz: aac9d1fc32b38127c3421b76019c4feaf87b6268
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7b0c1cfd3bcd4ec5076ab4ddebcda7b8c825caf5d6185a9e9aa0c8068740810e22ad9f7e59bb4685b57c9a95f5c02ec43b25c0b45b17b197e233be879d42e80
|
7
|
+
data.tar.gz: 2f044b2df6c847766ac17be5bce711decc187c145f1ef01af7dd64e2486e721b538918ddf1e15e3aa3584ba99cd38bb2f203cb791a93502506f28f612d09dae5
|
@@ -30,9 +30,14 @@ module GdsApi
|
|
30
30
|
stub_publishing_api_patch(content_id, body, '/links')
|
31
31
|
end
|
32
32
|
|
33
|
-
def stub_publishing_api_publish(content_id, body)
|
33
|
+
def stub_publishing_api_publish(content_id, body, response_hash = {})
|
34
34
|
url = PUBLISHING_API_V2_ENDPOINT + "/content/#{content_id}/publish"
|
35
|
-
|
35
|
+
response = {
|
36
|
+
status: 200,
|
37
|
+
body: '{}',
|
38
|
+
headers: {"Content-Type" => "application/json; charset=utf-8"}
|
39
|
+
}.merge(response_hash)
|
40
|
+
stub_request(:post, url).with(body: body).to_return(response)
|
36
41
|
end
|
37
42
|
|
38
43
|
def stub_publishing_api_discard_draft(content_id)
|
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: 30.0.
|
4
|
+
version: 30.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Stewart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: plek
|
@@ -460,54 +460,54 @@ signing_key:
|
|
460
460
|
specification_version: 4
|
461
461
|
summary: Adapters to work with GDS APIs
|
462
462
|
test_files:
|
463
|
-
- test/
|
464
|
-
- test/
|
463
|
+
- test/content_api_test.rb
|
464
|
+
- test/json_client_test.rb
|
465
|
+
- test/content_store_test.rb
|
465
466
|
- test/publishing_api_test.rb
|
466
|
-
- test/
|
467
|
+
- test/business_support_api_test.rb
|
468
|
+
- test/middleware/govuk_header_sniffer_test.rb
|
467
469
|
- test/whitehall_admin_api_test.rb
|
468
|
-
- test/
|
469
|
-
- test/
|
470
|
-
- test/
|
470
|
+
- test/list_response_test.rb
|
471
|
+
- test/maslow_test.rb
|
472
|
+
- test/panopticon_registerer_test.rb
|
473
|
+
- test/support_test.rb
|
474
|
+
- test/asset_manager_test.rb
|
475
|
+
- test/helpers_test.rb
|
476
|
+
- test/licence_application_api_test.rb
|
477
|
+
- test/test_helper.rb
|
471
478
|
- test/publisher_api_test.rb
|
479
|
+
- test/mapit_test.rb
|
472
480
|
- test/rummager_helpers_test.rb
|
473
|
-
- test/
|
474
|
-
- test/
|
481
|
+
- test/publishing_api_v2_test.rb
|
482
|
+
- test/publishing_api_v2/lookup_test.rb
|
483
|
+
- test/support_api_test.rb
|
484
|
+
- test/organisations_api_test.rb
|
485
|
+
- test/gds_api_base_test.rb
|
486
|
+
- test/router_test.rb
|
487
|
+
- test/publishing_api/special_route_publisher_test.rb
|
488
|
+
- test/external_link_tracker_test.rb
|
475
489
|
- test/fact_cave_test.rb
|
476
|
-
- test/
|
477
|
-
- test/
|
478
|
-
- test/test_helpers/panopticon_test.rb
|
479
|
-
- test/test_helpers/email_alert_api_test.rb
|
480
|
-
- test/test_helpers/publishing_api_v2_test.rb
|
481
|
-
- test/licence_application_api_test.rb
|
482
|
-
- test/gov_uk_delivery_test.rb
|
483
|
-
- test/maslow_test.rb
|
484
|
-
- test/helpers_test.rb
|
485
|
-
- test/panopticon_registerer_test.rb
|
490
|
+
- test/need_api_test.rb
|
491
|
+
- test/content_register_test.rb
|
486
492
|
- test/panopticon_test.rb
|
487
|
-
- test/
|
488
|
-
- test/rummager_test.rb
|
489
|
-
- test/json_client_test.rb
|
490
|
-
- test/email_alert_api_test.rb
|
491
|
-
- test/content_api_test.rb
|
492
|
-
- test/response_test.rb
|
493
|
-
- test/organisations_api_test.rb
|
494
|
-
- test/imminence_api_test.rb
|
495
|
-
- test/content_store_test.rb
|
496
|
-
- test/asset_manager_test.rb
|
493
|
+
- test/pp_data_in_test.rb
|
497
494
|
- test/fixtures/hello.txt
|
498
495
|
- test/fixtures/new_policies_for_dwp.json
|
499
|
-
- test/fixtures/world_organisations_australia.json
|
500
496
|
- test/fixtures/no_services_and_info_data_found_fixture.json
|
501
|
-
- test/fixtures/old_policies_for_dwp.json
|
502
497
|
- test/fixtures/services_and_info_fixture.json
|
498
|
+
- test/fixtures/old_policies_for_dwp.json
|
499
|
+
- test/fixtures/world_organisations_australia.json
|
503
500
|
- test/fixtures/sub_sector_organisations.json
|
504
501
|
- test/fixtures/finder_api/cma-case-schema.json
|
505
|
-
- test/router_test.rb
|
506
|
-
- test/list_response_test.rb
|
507
|
-
- test/external_link_tracker_test.rb
|
508
|
-
- test/gds_api_base_test.rb
|
509
502
|
- test/worldwide_api_test.rb
|
510
|
-
- test/
|
511
|
-
- test/publishing_api_v2_test.rb
|
512
|
-
- test/
|
503
|
+
- test/test_helpers/publishing_api_test.rb
|
504
|
+
- test/test_helpers/publishing_api_v2_test.rb
|
505
|
+
- test/test_helpers/pact_helper.rb
|
506
|
+
- test/test_helpers/panopticon_test.rb
|
507
|
+
- test/test_helpers/email_alert_api_test.rb
|
508
|
+
- test/gov_uk_delivery_test.rb
|
509
|
+
- test/imminence_api_test.rb
|
510
|
+
- test/email_alert_api_test.rb
|
511
|
+
- test/response_test.rb
|
512
|
+
- test/rummager_test.rb
|
513
513
|
has_rdoc:
|