webflow_sync 1.0.0 → 1.1.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: bcafffbd6660e8326dcaeca3a9d08682fbeb0918296645abaceae91611cbdb5c
4
- data.tar.gz: 9a69228ab410a924686763ebec3d15236fb2cb1a657ab15fff43721aa6111217
3
+ metadata.gz: 5e85c49b258ebbde8c6d5984893be9f59acf389505f0af30951d98fccc4b2f0d
4
+ data.tar.gz: '09b216274b17cfd61ff9aa1c2a2cc984b12655302daa4d25e3bb0e37a29b1180'
5
5
  SHA512:
6
- metadata.gz: 78b6c3ca8548563246c4d71c70709443c1eb2c832a71f4365c20b3883f3ddae924b4e8de74f7aacb66fa8cf6811c6815d435131bcbf62df8dc37066b3aec874e
7
- data.tar.gz: '0794032df68c3adda287d964c2eede98d70b21735cc5c736a1cb0b1a9f8f5fff2c03cf192a04caa8063ba0cd2b08b5e18d8cfdbd71940cc229f3fc82e9dc1864'
6
+ metadata.gz: 3bea1e564a550a72cf7164e3cce4fb7710478e3683c8a1067b1dfc790b87679a59f4a03985fdf610628deeb4334d0d5bd540391afb85d4a41cbb85b67f323525
7
+ data.tar.gz: bc6bba426b31b48d20caa8ebbfa88e3ec3237b51faa8ac520e715c73fdedf18c1807eff59932e512200d47ed0fb7e921c0ca10b2cd5531cba5cc0096487f6323
@@ -8,6 +8,11 @@ module WebflowSync
8
8
  @site_id = site_id
9
9
  end
10
10
 
11
+ def get_item(collection_slug, webflow_item_id)
12
+ collection = find_webflow_collection(collection_slug)
13
+ client.item(collection['_id'], webflow_item_id)
14
+ end
15
+
11
16
  def create_item(record, collection_slug) # rubocop:disable Metrics/MethodLength
12
17
  collection = find_webflow_collection(collection_slug)
13
18
  response = client.create_item(
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WebflowSync
4
- VERSION = '1.0.0'
4
+ VERSION = '1.1.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webflow_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Viktor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-06 00:00:00.000000000 Z
11
+ date: 2021-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails