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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +14 -16
- data/Gemfile_ar31 +1 -0
- data/Gemfile_ar32 +1 -0
- data/Gemfile_ar40threadsafe +1 -1
- data/Gemfile_ar42threadsafe +7 -0
- data/README.md +2 -2
- data/lib/shopify_api/version.rb +1 -1
- data/shopify_api.gemspec +1 -1
- data/test/recurring_application_charge_test.rb +7 -1
- metadata +5 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2428da6b7703c5b237979e5eb938d5c06fff4f87
|
|
4
|
+
data.tar.gz: bfe33434d71835e41dbc829aff4f5b00372b9d04
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8dc14e3d75bc4bb4201d8316ee76be9e0520fdb6c5558852c7e14c30a941dff4b77e3b7137163e0aa3fc43a18af6c7014e94cfcdecb41cf5042ee181281ce29c
|
|
7
|
+
data.tar.gz: a918fea8cbbdfac6af12f919903c6502d5440cd8980264f736f9c79147074229d157e77b45bf337cb5acb3c515a28da23b8b31ed0267656e311f119bdfa47e3e
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,50 +1,48 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
shopify_api (3.2.
|
|
5
|
-
activeresource
|
|
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.
|
|
13
|
-
activesupport (= 4.0.
|
|
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.
|
|
20
|
-
i18n (~> 0.6, >= 0.6.
|
|
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.
|
|
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.
|
|
36
|
-
pry (0.
|
|
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.
|
|
42
|
+
slop (3.6.0)
|
|
44
43
|
thor (0.18.1)
|
|
45
|
-
thread_safe (0.
|
|
46
|
-
|
|
47
|
-
tzinfo (0.3.38)
|
|
44
|
+
thread_safe (0.3.4)
|
|
45
|
+
tzinfo (0.3.42)
|
|
48
46
|
|
|
49
47
|
PLATFORMS
|
|
50
48
|
ruby
|
data/Gemfile_ar31
CHANGED
data/Gemfile_ar32
CHANGED
data/Gemfile_ar40threadsafe
CHANGED
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',
|
|
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
|
|
data/lib/shopify_api/version.rb
CHANGED
data/shopify_api.gemspec
CHANGED
|
@@ -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"
|
|
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
|
-
|
|
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.
|
|
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:
|
|
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:
|
|
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:
|
|
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
|