webflow-rb 1.1.0 → 1.1.2

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: 766979aee69f507ef097b650c3a0c4eb92578f1f9d1bace373336b36c9dcf624
4
+ data.tar.gz: 7decf89633f47f425606b503c36030fde59dd282e3ad4558a0d863341a83e1dc
5
5
  SHA512:
6
- metadata.gz: 3109c4f47ff25138a31589490898a2ee43dab15f30ef1eb7db54d1c03385e8c6199b29e9616417f7c965b89575a0dac7f062aed67cd377c67510a89003a91618
7
- data.tar.gz: 7cbe183a18ea55eb8c18ee4fe8a7e09abf4f367fbe16d35f1284b9f7b75911be461518588b2cf917f3565694d1d34f04d4711477ff09e26b9b25d217b44026ff
6
+ metadata.gz: 7165b1df700ff5d5c2b3d3d23337e881d1571a8f3aab1cbdbfc098fc11fd9747136c33896f1955a45e8b366eb5600256aef08fe107e8ce20c33f38fff487d59a
7
+ data.tar.gz: 2f1b802f0cf280de3d659db3aafc346b33a9a8c875c01071ba173c8f7f7d360a0349b6708d14ee2a4713092f1e3bbeca01128a349187665e8abd8938edbc795a
@@ -8,7 +8,7 @@ jobs:
8
8
  build:
9
9
  strategy:
10
10
  matrix:
11
- ruby: [2.7.2, 3.2.2]
11
+ ruby: [2.7.2, 3.2.2, 3.3.4]
12
12
  runs-on: ubuntu-latest
13
13
  steps:
14
14
  - uses: actions/checkout@v4
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.2.2
1
+ 3.3.4
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.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/LICENSE ADDED
@@ -0,0 +1,18 @@
1
+ Permission is hereby granted, free of charge, to any person obtaining
2
+ a copy of this software and associated documentation files (the
3
+ "Software"), to deal in the Software without restriction, including
4
+ without limitation the rights to use, copy, modify, merge, publish,
5
+ distribute, sublicense, and/or sell copies of the Software, and to
6
+ permit persons to whom the Software is furnished to do so, subject to
7
+ the following conditions:
8
+
9
+ The above copyright notice and this permission notice shall be
10
+ included in all copies or substantial portions of the Software.
11
+
12
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
13
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
14
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
16
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
17
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
18
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -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.2'.freeze
3
3
  end
data/lib/webflow.rb CHANGED
@@ -1 +1,7 @@
1
- require 'webflow/ruby'
1
+ require 'webflow/version'
2
+ require 'webflow/config'
3
+ require 'webflow/client'
4
+ require 'webflow/error'
5
+
6
+ module Webflow
7
+ 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.2
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: 2024-07-17 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Webflow API wrapper
15
15
  email:
@@ -26,7 +26,7 @@ files:
26
26
  - CHANGELOG.md
27
27
  - Gemfile
28
28
  - Gemfile.lock
29
- - LICENSE.txt
29
+ - LICENSE
30
30
  - README.md
31
31
  - Rakefile
32
32
  - bin/console
@@ -35,7 +35,6 @@ files:
35
35
  - lib/webflow/client.rb
36
36
  - lib/webflow/config.rb
37
37
  - lib/webflow/error.rb
38
- - lib/webflow/ruby.rb
39
38
  - lib/webflow/version.rb
40
39
  - webflow.gemspec
41
40
  homepage: https://github.com/vfonic/webflow-rb
@@ -58,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
57
  - !ruby/object:Gem::Version
59
58
  version: '0'
60
59
  requirements: []
61
- rubygems_version: 3.4.22
60
+ rubygems_version: 3.5.15
62
61
  signing_key:
63
62
  specification_version: 4
64
63
  summary: Webflow API wrapper
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2019 phoet
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
data/lib/webflow/ruby.rb DELETED
@@ -1,4 +0,0 @@
1
- require 'webflow/version'
2
- require 'webflow/config'
3
- require 'webflow/client'
4
- require 'webflow/error'