shopify_api 4.0.5 → 4.0.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b420e3a91512cfad9b08b6f73a6a3b1db3980e1
|
4
|
+
data.tar.gz: 5be48b2aafaa9f8185e8e9feb94cb55a593f574a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e055980f0ba1b5d050b8fa4ca3a15484cafc3daa30ddafecae4d2366df1cb2c67fbb55c214b0da898f5e101dced692a5738b0064fd0a873661a3ad8a222b42b
|
7
|
+
data.tar.gz: 7167cbce2c9a198c4d70ae814ea08a94acc37c5b6e5193b86619f868dfc667121d01eed39ba98fbd89e96ff44aae0661dc9a41c25d9ed6249f17a44235d9f85c
|
data/CHANGELOG
CHANGED
@@ -3,7 +3,7 @@ module ShopifyAPI
|
|
3
3
|
undef_method :test
|
4
4
|
|
5
5
|
class << self
|
6
|
-
[:pending, :
|
6
|
+
[:pending, :expired, :accepted, :declined].each do |status|
|
7
7
|
define_method(status) { (all || []).select { |c| c.status == status.to_s } }
|
8
8
|
end
|
9
9
|
end
|
data/lib/shopify_api/version.rb
CHANGED
@@ -40,13 +40,13 @@ class ApplicationChargeTest < Test::Unit::TestCase
|
|
40
40
|
assert_equal "Screen Replacement", pending_charges.first.name
|
41
41
|
end
|
42
42
|
|
43
|
-
def
|
43
|
+
def test_list_expired_application_charges
|
44
44
|
fake "application_charges", :method => :get, :status => 201, :body => load_fixture('application_charges')
|
45
45
|
|
46
|
-
|
46
|
+
expired_charges = ShopifyAPI::ApplicationCharge.expired
|
47
47
|
|
48
|
-
assert_equal 1,
|
49
|
-
assert_equal "iPod Cleaning",
|
48
|
+
assert_equal 1, expired_charges.size
|
49
|
+
assert_equal "iPod Cleaning", expired_charges.first.name
|
50
50
|
end
|
51
51
|
|
52
52
|
def test_list_accepted_application_charges
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopify_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeresource
|