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 +4 -4
- data/.github/workflows/build.yaml +1 -1
- data/.ruby-version +1 -1
- data/Gemfile.lock +1 -1
- data/LICENSE +18 -0
- data/lib/webflow/client.rb +2 -2
- data/lib/webflow/version.rb +1 -1
- data/lib/webflow.rb +7 -1
- metadata +4 -5
- data/LICENSE.txt +0 -21
- data/lib/webflow/ruby.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 766979aee69f507ef097b650c3a0c4eb92578f1f9d1bace373336b36c9dcf624
|
4
|
+
data.tar.gz: 7decf89633f47f425606b503c36030fde59dd282e3ad4558a0d863341a83e1dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7165b1df700ff5d5c2b3d3d23337e881d1571a8f3aab1cbdbfc098fc11fd9747136c33896f1955a45e8b366eb5600256aef08fe107e8ce20c33f38fff487d59a
|
7
|
+
data.tar.gz: 2f1b802f0cf280de3d659db3aafc346b33a9a8c875c01071ba173c8f7f7d360a0349b6708d14ee2a4713092f1e3bbeca01128a349187665e8abd8938edbc795a
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.3.4
|
data/Gemfile.lock
CHANGED
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.
|
data/lib/webflow/client.rb
CHANGED
@@ -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
|
|
data/lib/webflow/version.rb
CHANGED
data/lib/webflow.rb
CHANGED
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.
|
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:
|
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
|
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.
|
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