From 48cfefe0d5460d525121a4d0172c913b8dd17c0f Mon Sep 17 00:00:00 2001 From: Fabian Zitter Date: Tue, 13 Dec 2016 17:45:41 +0900 Subject: [PATCH 1/3] Sleep before uploading assets if necessary --- lib/shopify_theme.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/shopify_theme.rb b/lib/shopify_theme.rb index 19adad4..9b041a0 100644 --- a/lib/shopify_theme.rb +++ b/lib/shopify_theme.rb @@ -73,6 +73,7 @@ def self.get_asset(asset) end def self.send_asset(data) + shopify.sleep response = shopify.put(path, :body =>{:asset => data}) manage_timer(response) response From 59016caa9ca4cd6805eea168a36f86993ae515ee Mon Sep 17 00:00:00 2001 From: Fabian Zitter Date: Tue, 13 Dec 2016 18:05:10 +0900 Subject: [PATCH 2/3] Update changelog --- CHANGELOG.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1871ccb..7458aaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ -# v0.0.23 (Unreleased) +# v0.0.26 (Unreleased) + +* Add conditional sleep to assets upload to avoid running into request limits errors + +# v0.0.23 * Adds support for OAuth access token based authentication -- gavinballard @@ -19,7 +23,7 @@ # v0.0.19 * Fixes issue with incorrectly detecting binary assets -- csaunders -* Properly handle unknown event types -- +* Properly handle unknown event types -- # v0.0.12 From e614093aba438619cfd7c6f2395486107a16594c Mon Sep 17 00:00:00 2001 From: Fabian Zitter Date: Tue, 13 Dec 2016 18:06:22 +0900 Subject: [PATCH 3/3] Bump Version --- lib/shopify_theme/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shopify_theme/version.rb b/lib/shopify_theme/version.rb index 5806a6d..1b0182e 100644 --- a/lib/shopify_theme/version.rb +++ b/lib/shopify_theme/version.rb @@ -1,3 +1,3 @@ module ShopifyTheme - VERSION = "0.0.25" + VERSION = "0.0.26" end