webflow_sync 6.1.0 → 6.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/services/webflow_sync/api.rb +3 -3
- data/lib/webflow_sync/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acaae64b1e573657f4983a9dc387f22da9be1f4c03a3d3475179cf9dcb288ab9
|
4
|
+
data.tar.gz: f169ae62d45a2136607438bd7c329939f3459126a7e27fd62ff26bbfd713ee74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 752e7ad6219a4f5062bf7ef970cf48117aa33a1ab8beb25df0630154f3e3cfc8bd997430753f4ea2731545072254e8c1e20ac73539246e00e4038709a23faae8
|
7
|
+
data.tar.gz: ac6ac22d798f4dca3ac516be03a2877d9da52f0c3e4256fafa09b544a74ba7327ef183b17cf18a7e607f4ad8ff95c754ed659ea0d90f37504e6cc689da4e4473
|
@@ -4,7 +4,7 @@ module WebflowSync
|
|
4
4
|
class Api
|
5
5
|
attr_reader :site_id
|
6
6
|
|
7
|
-
def initialize(site_id)
|
7
|
+
def initialize(site_id = nil)
|
8
8
|
@site_id = site_id
|
9
9
|
end
|
10
10
|
|
@@ -21,8 +21,7 @@ module WebflowSync
|
|
21
21
|
items = result['items']
|
22
22
|
|
23
23
|
(2..total_pages).each do |page_number|
|
24
|
-
next_page_items = make_request(:paginate_items, collection_id,
|
25
|
-
page: page_number, per_page: max_items_per_page)['items']
|
24
|
+
next_page_items = make_request(:paginate_items, collection_id, page: page_number, per_page: max_items_per_page)['items']
|
26
25
|
puts "Get all items from WebFlow for #{collection_slug} page: #{page_number}"
|
27
26
|
|
28
27
|
items.concat next_page_items
|
@@ -81,6 +80,7 @@ module WebflowSync
|
|
81
80
|
end
|
82
81
|
|
83
82
|
def sites = make_request(:sites)
|
83
|
+
def self.sites = new.sites
|
84
84
|
|
85
85
|
private
|
86
86
|
|
data/lib/webflow_sync/version.rb
CHANGED