소스 검색

Merge pull request #228 from Shopify/default-timeout

Add default timeout to ShopifyAPI::Base
Alex Coco 9 년 전
부모
커밋
09709e97f7
3개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 0
      CHANGELOG
  2. 1 0
      lib/shopify_api/resources/base.rb
  3. 1 1
      lib/shopify_api/version.rb

+ 4 - 0
CHANGELOG

@@ -1,3 +1,7 @@
+== Version 4.1.1
+
+* Added explicit 90 second timeout to `ShopifyAPI::Base`
+
 == Version 4.0.7
 
 * Added `ShippingAPI::ShippingZone`

+ 1 - 0
lib/shopify_api/resources/base.rb

@@ -4,6 +4,7 @@ module ShopifyAPI
   class Base < ActiveResource::Base
     class InvalidSessionError < StandardError; end
     extend Countable
+    self.timeout = 90
     self.include_root_in_json = false
     self.headers['User-Agent'] = ["ShopifyAPI/#{ShopifyAPI::VERSION}",
                                   "ActiveResource/#{ActiveResource::VERSION::STRING}",

+ 1 - 1
lib/shopify_api/version.rb

@@ -1,3 +1,3 @@
 module ShopifyAPI
-  VERSION = "4.1.0"
+  VERSION = "4.1.1"
 end