Permalink
Browse files

Merge branch 'master' of github.com:Shopify/shopify_api

  • Loading branch information...
2 parents 7a25f99 + cbe5b16 commit 855fe5d8f95bb7f4361f2c5b0d85e9ab1710aebd @garethson garethson committed Oct 5, 2012
Showing with 6 additions and 41 deletions.
  1. +4 −0 CHANGELOG
  2. +1 −40 lib/shopify_api/resources.rb
  3. +1 −1 lib/shopify_api/version.rb
View
@@ -1,3 +1,7 @@
+== Version 3.0.2
+
+* Brevity in require statements
+
== Version 3.0.1
* Fix saving nested resources in ActiveResource 3.1+
@@ -1,41 +1,2 @@
require 'shopify_api/resources/base'
-require 'shopify_api/resources/address'
-require 'shopify_api/resources/application_charge'
-require 'shopify_api/resources/article'
-require 'shopify_api/resources/asset'
-require 'shopify_api/resources/billing_address'
-require 'shopify_api/resources/blog'
-require 'shopify_api/resources/cart'
-require 'shopify_api/resources/collect'
-require 'shopify_api/resources/comment'
-require 'shopify_api/resources/country'
-require 'shopify_api/resources/custom_collection'
-require 'shopify_api/resources/customer_group'
-require 'shopify_api/resources/customer'
-require 'shopify_api/resources/event'
-require 'shopify_api/resources/fulfillment'
-require 'shopify_api/resources/image'
-require 'shopify_api/resources/line_item'
-require 'shopify_api/resources/metafield'
-require 'shopify_api/resources/note_attribute'
-require 'shopify_api/resources/option'
-require 'shopify_api/resources/order'
-require 'shopify_api/resources/page'
-require 'shopify_api/resources/payment_details'
-require 'shopify_api/resources/product'
-require 'shopify_api/resources/product_search_engine'
-require 'shopify_api/resources/province'
-require 'shopify_api/resources/receipt'
-require 'shopify_api/resources/recurring_application_charge'
-require 'shopify_api/resources/redirect'
-require 'shopify_api/resources/rule'
-require 'shopify_api/resources/script_tag'
-require 'shopify_api/resources/shipping_address'
-require 'shopify_api/resources/shipping_line'
-require 'shopify_api/resources/shop'
-require 'shopify_api/resources/smart_collection'
-require 'shopify_api/resources/tax_line'
-require 'shopify_api/resources/theme'
-require 'shopify_api/resources/transaction'
-require 'shopify_api/resources/variant'
-require 'shopify_api/resources/webhook'
+Dir.glob "#{File.dirname(__FILE__)}/resources/*", &method(:require)
@@ -1,3 +1,3 @@
module ShopifyAPI
- VERSION = "3.0.1"
+ VERSION = "3.0.2"
end

0 comments on commit 855fe5d

Please sign in to comment.