publishing_platform_api_adapters 0.1.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: 9b05ed814403c8e76bb61a31e28e271636a959b364b91790c4db66480814d726
4
- data.tar.gz: a6c23beead962d8c2db6830e3022d7876d783a917fc6d8b468ac00fcd07fd5bb
3
+ metadata.gz: 3dc1965a7fe4e5b519636780d4a6cbd07b0475259d44b49f89128aa80ec3fd13
4
+ data.tar.gz: ef68c7200b15791b97df9da45a7a7264d7b5071d112fda4370308b8ce35285f5
5
5
  SHA512:
6
- metadata.gz: '06587180c50b7e88b24df754c3ace7d7d7202182d28d066736cba648f57260f46c86fa7d1ecb9e5ce5057ee00f3bc7b48f1530cf375161261ae8b621b375edd7'
7
- data.tar.gz: 6dbd74d1d29c65369b5f605d29af19bc6404c901e55164997a70b3b4d74dfe57ad7d06d7e3477e2ae5f08600f366f8ad054902d3d54af9ae99080e3ac40cab12
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.1.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.1.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