shopify_api 4.3.1 → 4.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +4 -0
- data/CHANGELOG +4 -0
- data/Gemfile +1 -0
- data/Gemfile_ar30 +1 -0
- data/Gemfile_ar31 +1 -0
- data/Gemfile_ar32 +1 -0
- data/Gemfile_ar40 +1 -0
- data/Gemfile_ar_master +1 -0
- data/lib/shopify_api/resources/base.rb +2 -0
- data/lib/shopify_api/version.rb +1 -1
- data/shopify_api.gemspec +1 -1
- data/test/base_test.rb +13 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24e19e9fbb84f843138e83e0f0ba8ce3b0bf2f61
|
4
|
+
data.tar.gz: c09a186d959fff8e964e2ed1b67baf2060ec3337
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a542d767f044cd1cd2c3b6cea86859588f418f375992f919a448e25b7ee2a234c50300485050306cac60c5bd1ac480e18ba3523ed64d0392ff3959010beb30c
|
7
|
+
data.tar.gz: ef47467053c8344df5ac1d948028a5bf72b7515a75ec59dfe639d7b5414db51088a4e332977864d127be201b67d2e92d10005b8a01862db073e457e575d3b0f6
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -2,6 +2,7 @@ language: ruby
|
|
2
2
|
sudo: false
|
3
3
|
|
4
4
|
rvm:
|
5
|
+
- '2.0'
|
5
6
|
- 2.3.1
|
6
7
|
- 2.4.0-preview1
|
7
8
|
|
@@ -14,6 +15,9 @@ gemfile:
|
|
14
15
|
- Gemfile_ar_master
|
15
16
|
|
16
17
|
matrix:
|
18
|
+
exclude:
|
19
|
+
- rvm: '2.0'
|
20
|
+
gemfile: Gemfile_ar_master
|
17
21
|
fast_finish: true
|
18
22
|
allow_failures:
|
19
23
|
- rvm: 2.4.0-preview1
|
data/CHANGELOG
CHANGED
data/Gemfile
CHANGED
data/Gemfile_ar30
CHANGED
data/Gemfile_ar31
CHANGED
data/Gemfile_ar32
CHANGED
data/Gemfile_ar40
CHANGED
data/Gemfile_ar_master
CHANGED
data/lib/shopify_api/version.rb
CHANGED
data/shopify_api.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.summary = %q{ShopifyAPI is a lightweight gem for accessing the Shopify admin REST web services}
|
24
24
|
s.license = "MIT"
|
25
25
|
|
26
|
-
s.required_ruby_version = ">= 2.
|
26
|
+
s.required_ruby_version = ">= 2.0"
|
27
27
|
|
28
28
|
s.add_runtime_dependency("activeresource", ">= 3.0.0")
|
29
29
|
s.add_runtime_dependency("rack")
|
data/test/base_test.rb
CHANGED
@@ -24,6 +24,19 @@ class BaseTest < Test::Unit::TestCase
|
|
24
24
|
assert_equal 'token1', ShopifyAPI::Shop.headers['X-Shopify-Access-Token']
|
25
25
|
end
|
26
26
|
|
27
|
+
test '#clear_session should clear base site settings from Base' do
|
28
|
+
ShopifyAPI::Base.site = "https://foo:bar@www.zombo.com"
|
29
|
+
|
30
|
+
assert_equal "foo", ShopifyAPI::Base.user
|
31
|
+
assert_equal "bar", ShopifyAPI::Base.password
|
32
|
+
|
33
|
+
ShopifyAPI::Base.clear_session
|
34
|
+
|
35
|
+
assert_equal nil, ShopifyAPI::Base.user
|
36
|
+
assert_equal nil, ShopifyAPI::Base.password
|
37
|
+
assert_equal nil, ShopifyAPI::Base.site
|
38
|
+
end
|
39
|
+
|
27
40
|
test '#clear_session should clear site and headers from Base' do
|
28
41
|
ShopifyAPI::Base.activate_session @session1
|
29
42
|
ShopifyAPI::Base.clear_session
|
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: 4.3.
|
4
|
+
version: 4.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
@@ -324,7 +324,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
324
324
|
requirements:
|
325
325
|
- - ">="
|
326
326
|
- !ruby/object:Gem::Version
|
327
|
-
version: '2.
|
327
|
+
version: '2.0'
|
328
328
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
329
329
|
requirements:
|
330
330
|
- - ">="
|