webflow-rb 1.1.0 → 1.1.1

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: d852e3474323495a131745480bfc148cf44078f844de821e63dd68ad2be95cdd
4
- data.tar.gz: 453f741745af9525e0aabf5f858000a6f071b4fc8362402ee26deb7b29b4e750
3
+ metadata.gz: 2665b14b916cf27c16e8048c0999510e67f78218498c129a5418147b2b7f1fb9
4
+ data.tar.gz: 80a0f625df655493c0ba8bd6f5e56f0941690019bebd83c7d09334c04c92da11
5
5
  SHA512:
6
- metadata.gz: 3109c4f47ff25138a31589490898a2ee43dab15f30ef1eb7db54d1c03385e8c6199b29e9616417f7c965b89575a0dac7f062aed67cd377c67510a89003a91618
7
- data.tar.gz: 7cbe183a18ea55eb8c18ee4fe8a7e09abf4f367fbe16d35f1284b9f7b75911be461518588b2cf917f3565694d1d34f04d4711477ff09e26b9b25d217b44026ff
6
+ metadata.gz: 17f659d54439c3736b0a128dfb63d2e6ad37cc7aa44c2ce76340fd72061e4c1433728d5f6eb515894ab69d8d94c7d36c8a2f809296d19d44ee0520b34023a55e
7
+ data.tar.gz: 3cb940cf715f7660f863ceeb2d8c6ba14e96fa1ed2b3ebced7eac82e439101475df180428086319ffba51527039fa102d5068c85b8462a851c82b9af37ee9d69
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- webflow-rb (1.1.0)
4
+ webflow-rb (1.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -73,7 +73,7 @@ module Webflow
73
73
 
74
74
  def create_item(collection_id, data, is_draft: false, is_archived: false)
75
75
  result = post("/collections/#{collection_id}/items", { isArchived: is_archived, isDraft: is_draft, fieldData: data })
76
- publish_item(collection_id, result.fetch(:id))
76
+ publish_item(collection_id, result.fetch(:id)) unless result[:isDraft]
77
77
  result
78
78
  end
79
79
 
@@ -82,7 +82,7 @@ module Webflow
82
82
  "/collections/#{collection_id}/items/#{item_id}",
83
83
  { isArchived: is_archived, isDraft: is_draft, fieldData: data }.compact
84
84
  )
85
- publish_item(collection_id, item_id)
85
+ publish_item(collection_id, item_id) unless result[:isDraft]
86
86
  result
87
87
  end
88
88
 
@@ -1,3 +1,3 @@
1
1
  module Webflow
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webflow-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - phoet
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-12-18 00:00:00.000000000 Z
12
+ date: 2023-12-21 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Webflow API wrapper
15
15
  email: