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 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 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