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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ab8783155352f11f32c97275ef35508aa27d8d4
4
- data.tar.gz: a15871cab7d6e04b6bac22c40d31085545ab3323
3
+ metadata.gz: 0894ef0f3de4c61534ca85eb7dd7c82c6c422d0b
4
+ data.tar.gz: aac9d1fc32b38127c3421b76019c4feaf87b6268
5
5
  SHA512:
6
- metadata.gz: 11c3b21520b1de0e6a0793304b237b8803e2a60866b6a12d13123160457b287e8320995c571b489f1f40344c899ea4ef7b5e9117223bf2c62fb881b92c108935
7
- data.tar.gz: a9ba8f5bfca018a8b2861d3e58f3e752481f876725895863bec0d2d655e1ddd06289415bf5c55b11389fa942ac5fcc260e700a333a266705dac886fb7f874256
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
- stub_request(:post, url).with(body: body).to_return(status: 200, body: '{}', headers: {"Content-Type" => "application/json; charset=utf-8"})
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)
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '30.0.0'
2
+ VERSION = '30.0.1'
3
3
  end
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.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-03-17 00:00:00.000000000 Z
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/support_api_test.rb
464
- - test/mapit_test.rb
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/publishing_api_v2/lookup_test.rb
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/pp_data_in_test.rb
469
- - test/publishing_api/special_route_publisher_test.rb
470
- - test/need_api_test.rb
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/support_test.rb
474
- - test/content_register_test.rb
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/test_helpers/publishing_api_test.rb
477
- - test/test_helpers/pact_helper.rb
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/middleware/govuk_header_sniffer_test.rb
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/test_helper.rb
511
- - test/publishing_api_v2_test.rb
512
- - test/business_support_api_test.rb
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: