publishing_platform_api_adapters 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c27ed233993ab4172ab605d12f5b0f3d9a8186c2f5195c51e787fbee896e1ae7
4
- data.tar.gz: 1e1bcf222b956010f9df064385d5c4f66184fea3452cc0cb4b86d8341c7484b8
3
+ metadata.gz: 3dc1965a7fe4e5b519636780d4a6cbd07b0475259d44b49f89128aa80ec3fd13
4
+ data.tar.gz: ef68c7200b15791b97df9da45a7a7264d7b5071d112fda4370308b8ce35285f5
5
5
  SHA512:
6
- metadata.gz: 306199b8e21a09fc9f86edbdc4050e304d92e3ca4598284ba8f0e05a80f214f16eed64b011145f25cee4c242c59eaf81975ebb0899724b93f298ecf6a48b3ff0
7
- data.tar.gz: d13b2599f10934a2e104f6084598bc8481ff7988550ebd8b8e949141782025353d81b2463ff35f1413d87e2529e3f1a6fdc1ebca2203cccbc0c51e5824937fc9
6
+ metadata.gz: 5b16bac63f4f8b91c3574789095996c39eeac770fe15e7cddc057466067d94e3bd5c07ee4b7116a63da6322a2ecb00f1149771bd6c62728deda7acbb7054566e
7
+ data.tar.gz: 1f381f2e20bc0ca385d9f7fc291d8ed00924a124a35ebe272169149be4a41a95245dd4258cb501bc198637ed0c42caf841fa1535abfb671840a6cecfa50ff512
@@ -35,16 +35,11 @@ class PublishingPlatformApi::PublishingApi < PublishingPlatformApi::Base
35
35
  # on the public site.
36
36
  #
37
37
  # @param content_id [UUID]
38
- # @param update_type [String] Either 'major', 'minor' or 'republish'
39
38
  # @param options [Hash]
40
- def publish(content_id, update_type = nil, options = {})
41
- params = {
42
- update_type:,
43
- }
44
-
39
+ def publish(content_id, options = {})
45
40
  optional_keys = %i[previous_version]
46
41
 
47
- params = merge_optional_keys(params, options, optional_keys)
42
+ params = merge_optional_keys({}, options, optional_keys)
48
43
 
49
44
  post_json(publish_url(content_id), params)
50
45
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PublishingPlatformApi
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: publishing_platform_api_adapters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Publishing Platform
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-12 00:00:00.000000000 Z
11
+ date: 2024-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable