@@ -4,3 +4,4 @@ coverage
rdoc
doc
pkg
+.ruby-version
@@ -0,0 +1,32 @@
+language: ruby
+
+rvm:
+ - 2.0.0
+ - 1.9.3
+gemfile:
+ - Gemfile
+ - Gemfile_ar30
+ - Gemfile_ar31
+ - Gemfile_ar32
+install: bundle install
+before_script: echo $OLD_RAKE
+matrix:
+ include:
+ - rvm: 1.9.2
+ gemfile: Gemfile_ar30
+ env: OLD_RAKE=1
+ gemfile: Gemfile_ar31
+ gemfile: Gemfile_ar32
+notifications:
+ flowdock:
+ secure: "RCgSxzMScnqK6bOwkv9sWSdieLBeJla8NcDtM/QmuFW8soTgV6qCTAPAGd4lpjg4vGTaM3DsdHU5GMDbgdWN5dE2Rf09ayFqiZg8OloPMQ63KIwLJyVcw3cVJO5i7smjIpsSjPjBkvAXHIOFcKdsnuYGS4YD8hjl+QrZ3ghi440="
@@ -0,0 +1,9 @@
+source "https://rubygems.org"
+gemspec
+gem "activeresource", "~> 3.0.0"
+if ENV['OLD_RAKE'] == '1'
+ gem "rake", "~> 0.9.2"
+end
+gem "activeresource", "~> 3.1.0"
+gem "activeresource", "~> 3.2.0"
@@ -0,0 +1,10 @@
+# ActiveSupport 3.0 doesn't URL-encode paths with arrays as params properly.
+# Backported from ActiveSupport > 3.0
+if ActiveSupport::VERSION::MAJOR == 3 && ActiveSupport::VERSION::MINOR == 0
+ class Object
+ def to_query(key)
+ require 'cgi' unless defined?(CGI) && defined?(CGI::escape)
+ "#{CGI.escape(key.to_param)}=#{CGI.escape(to_param.to_s)}"
+ end
@@ -11,6 +11,7 @@ require 'shopify_api/json_format'
require 'active_resource/json_errors'
require 'active_resource/disable_prefix_check'
require 'active_resource/base_ext'
+require 'active_resource/to_query'
module ShopifyAPI
include Limits