shopify_api 3.2.6 → 3.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1e5927ed74df0622bc45489339508c57b37eb21
4
- data.tar.gz: b627aaacb19ff2af728755054308c4508fb65bcd
3
+ metadata.gz: 2428da6b7703c5b237979e5eb938d5c06fff4f87
4
+ data.tar.gz: bfe33434d71835e41dbc829aff4f5b00372b9d04
5
5
  SHA512:
6
- metadata.gz: 1bfee60f5326d52653166545615a09e15e9ecd498aae0a5c0e4e14d1b385b9d739525baf9279d6cdf6189c91d04c00266aabdbc7cc8efa7c6b385ebe18ec88be
7
- data.tar.gz: a7a02acd9edd9fdba3a8f2d71df4685ef338aeca9f098c2c08e66ec4a4d0638ee5983e1989530d253ba9c2dea5c5cf536b9beb9a9c9c81f95f106b846d846fe3
6
+ metadata.gz: 8dc14e3d75bc4bb4201d8316ee76be9e0520fdb6c5558852c7e14c30a941dff4b77e3b7137163e0aa3fc43a18af6c7014e94cfcdecb41cf5042ee181281ce29c
7
+ data.tar.gz: a918fea8cbbdfac6af12f919903c6502d5440cd8980264f736f9c79147074229d157e77b45bf337cb5acb3c515a28da23b8b31ed0267656e311f119bdfa47e3e
Binary file
data.tar.gz.sig CHANGED
Binary file
data/Gemfile CHANGED
@@ -2,4 +2,4 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
- gem "activeresource", "~> 4.0.0"
5
+ gem "activeresource", '~> 4.0.0'
@@ -1,50 +1,48 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shopify_api (3.2.6)
5
- activeresource (>= 3.0.0)
4
+ shopify_api (3.2.7)
5
+ activeresource
6
6
  pry (>= 0.9.12.6)
7
7
  thor (~> 0.18.1)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activemodel (4.0.3)
13
- activesupport (= 4.0.3)
12
+ activemodel (4.0.13)
13
+ activesupport (= 4.0.13)
14
14
  builder (~> 3.1.0)
15
15
  activeresource (4.0.0)
16
16
  activemodel (~> 4.0)
17
17
  activesupport (~> 4.0)
18
18
  rails-observers (~> 0.1.1)
19
- activesupport (4.0.3)
20
- i18n (~> 0.6, >= 0.6.4)
19
+ activesupport (4.0.13)
20
+ i18n (~> 0.6, >= 0.6.9)
21
21
  minitest (~> 4.2)
22
22
  multi_json (~> 1.3)
23
23
  thread_safe (~> 0.1)
24
24
  tzinfo (~> 0.3.37)
25
- atomic (1.1.14)
26
25
  builder (3.1.4)
27
26
  coderay (1.1.0)
28
27
  fakeweb (1.3.0)
29
- i18n (0.6.9)
28
+ i18n (0.7.0)
30
29
  metaclass (0.0.1)
31
30
  method_source (0.8.2)
32
31
  minitest (4.7.5)
33
32
  mocha (0.14.0)
34
33
  metaclass (~> 0.0.1)
35
- multi_json (1.8.4)
36
- pry (0.9.12.6)
37
- coderay (~> 1.0)
38
- method_source (~> 0.8)
34
+ multi_json (1.10.1)
35
+ pry (0.10.1)
36
+ coderay (~> 1.1.0)
37
+ method_source (~> 0.8.1)
39
38
  slop (~> 3.4)
40
39
  rails-observers (0.1.2)
41
40
  activemodel (~> 4.0)
42
41
  rake (10.1.0)
43
- slop (3.5.0)
42
+ slop (3.6.0)
44
43
  thor (0.18.1)
45
- thread_safe (0.1.3)
46
- atomic
47
- tzinfo (0.3.38)
44
+ thread_safe (0.3.4)
45
+ tzinfo (0.3.42)
48
46
 
49
47
  PLATFORMS
50
48
  ruby
@@ -6,4 +6,5 @@ gem "activeresource", "~> 3.1.0"
6
6
 
7
7
  if ENV['OLD_RAKE'] == '1'
8
8
  gem "rake", "~> 0.9.2"
9
+ gem "i18n", "~> 0.6.11"
9
10
  end
@@ -6,4 +6,5 @@ gem "activeresource", "~> 3.2.0"
6
6
 
7
7
  if ENV['OLD_RAKE'] == '1'
8
8
  gem "rake", "~> 0.9.2"
9
+ gem "i18n", "~> 0.6.11"
9
10
  end
@@ -2,6 +2,6 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'activeresource', :git => 'git://github.com/Shopify/activeresource', :ref => 'e9dc76b4aa'
5
+ gem 'activeresource', :git => 'git://github.com/Shopify/activeresource', tag: '4.0-threadsafe'
6
6
 
7
7
  gem 'minitest', "~> 4.2"
@@ -0,0 +1,7 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
4
+
5
+ gem 'activeresource', :git => 'git://github.com/Shopify/activeresource', tag: '4.2-threadsafe'
6
+
7
+ gem 'minitest', "~> 4.2"
data/README.md CHANGED
@@ -175,10 +175,10 @@ ActiveResource is inherently non-threadsafe, because class variables like Active
175
175
 
176
176
  We have a forked version of ActiveResource that stores these class variables in threadlocal variables. Using this forked version will allow ShopifyAPI to be used in a threaded environment.
177
177
 
178
- To enable threadsafety with ShopifyAPI, add the following to your Gemfile:
178
+ To enable threadsafety with ShopifyAPI, add the following to your Gemfile. There are various threadsafe tags that you can use, [depending on which version of rails you are using](https://github.com/shopify/activeresource/tags).
179
179
 
180
180
  ```
181
- gem 'activeresource', git: 'git://github.com/Shopify/activeresource', branch: 'threadsafe'
181
+ gem 'activeresource', git: 'git://github.com/Shopify/activeresource', tag: '4.2-threadsafe'
182
182
  gem 'shopify_api', '>= 3.2.1'
183
183
  ```
184
184
 
@@ -1,3 +1,3 @@
1
1
  module ShopifyAPI
2
- VERSION = "3.2.6"
2
+ VERSION = "3.2.7"
3
3
  end
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
24
24
  s.summary = %q{ShopifyAPI is a lightweight gem for accessing the Shopify admin REST web services}
25
25
  s.license = 'MIT'
26
26
 
27
- s.add_dependency("activeresource", [">= 3.0.0"])
27
+ s.add_dependency("activeresource")
28
28
  s.add_dependency("thor", ["~> 0.18.1"])
29
29
  s.add_dependency("pry", [">= 0.9.12.6"])
30
30
 
@@ -107,7 +107,13 @@ class RecurringApplicationChargeTest < Test::Unit::TestCase
107
107
  def test_recurring_application_charge_not_found_error
108
108
  fake "recurring_application_charges", :body => '{"errors":"Not Found"}', :status => 404
109
109
 
110
- assert_equal nil, ShopifyAPI::RecurringApplicationCharge.all
110
+ all_application_charges = ShopifyAPI::RecurringApplicationCharge.all
111
+ if ActiveResource::VERSION::MAJOR >= 4 && ActiveResource::VERSION::MINOR >= 2
112
+ assert_equal [], all_application_charges
113
+ else
114
+ assert_equal nil, all_application_charges
115
+ end
116
+
111
117
  assert_equal nil, ShopifyAPI::RecurringApplicationCharge.current
112
118
  assert_equal [], ShopifyAPI::RecurringApplicationCharge.pending
113
119
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.6
4
+ version: 3.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
@@ -30,7 +30,7 @@ cert_chain:
30
30
  fl3hbtVFTqbOlwL9vy1fudXcolIE/ZTcxQ+er07ZFZdKCXayR9PPs64heamfn0fp
31
31
  TConQSX2BnZdhIEYW+cKzEC/bLc=
32
32
  -----END CERTIFICATE-----
33
- date: 2014-12-11 00:00:00.000000000 Z
33
+ date: 2015-01-15 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: activeresource
@@ -38,14 +38,14 @@ dependencies:
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: 3.0.0
41
+ version: '0'
42
42
  type: :runtime
43
43
  prerelease: false
44
44
  version_requirements: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: 3.0.0
48
+ version: '0'
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: thor
51
51
  requirement: !ruby/object:Gem::Requirement
@@ -153,6 +153,7 @@ files:
153
153
  - Gemfile_ar31
154
154
  - Gemfile_ar32
155
155
  - Gemfile_ar40threadsafe
156
+ - Gemfile_ar42threadsafe
156
157
  - LICENSE
157
158
  - README.md
158
159
  - RELEASING
metadata.gz.sig CHANGED
Binary file