shopify_api 4.0.5 → 4.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be2ddfc285851f78ac986c70ebb82b79601fdbcf
4
- data.tar.gz: 2e71f5b7c5c63cfc19ffd0822f114cf816df358d
3
+ metadata.gz: 3b420e3a91512cfad9b08b6f73a6a3b1db3980e1
4
+ data.tar.gz: 5be48b2aafaa9f8185e8e9feb94cb55a593f574a
5
5
  SHA512:
6
- metadata.gz: c16a2590667b6b1ccccf1de2eed1cb00b1dae4858c4a99cb0325060e9c4ebfa50e9a52badea7a23a4264cec65f701cd2dfd6635097034bf9e1039fc4b10053fd
7
- data.tar.gz: e5a2d83e326fb52ce98724152d67956d3c9bc8aa8cd9001aad4044c5da8fcfe8b90e818824656ec8d5cb44bd483cde9ccff1c7ec0bedca117afec11aafd1257a
6
+ metadata.gz: 5e055980f0ba1b5d050b8fa4ca3a15484cafc3daa30ddafecae4d2366df1cb2c67fbb55c214b0da898f5e101dced692a5738b0064fd0a873661a3ad8a222b42b
7
+ data.tar.gz: 7167cbce2c9a198c4d70ae814ea08a94acc37c5b6e5193b86619f868dfc667121d01eed39ba98fbd89e96ff44aae0661dc9a41c25d9ed6249f17a44235d9f85c
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == Version 4.0.6
2
+
3
+ * Replaced `cancelled` with `expired` in `ShopifyAPI::ApplicationCharge`
4
+
1
5
  == Version 4.0.5
2
6
 
3
7
  * Added `pending`, `cancelled`, `accepted`, `declined` helper methods to `ShopifyAPI::ApplicationCharge`
@@ -3,7 +3,7 @@ module ShopifyAPI
3
3
  undef_method :test
4
4
 
5
5
  class << self
6
- [:pending, :cancelled, :accepted, :declined].each do |status|
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
@@ -1,3 +1,3 @@
1
1
  module ShopifyAPI
2
- VERSION = "4.0.5"
2
+ VERSION = "4.0.6"
3
3
  end
@@ -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 test_list_cancelled_application_charges
43
+ def test_list_expired_application_charges
44
44
  fake "application_charges", :method => :get, :status => 201, :body => load_fixture('application_charges')
45
45
 
46
- cancelled_charges = ShopifyAPI::ApplicationCharge.cancelled
46
+ expired_charges = ShopifyAPI::ApplicationCharge.expired
47
47
 
48
- assert_equal 1, cancelled_charges.size
49
- assert_equal "iPod Cleaning", cancelled_charges.first.name
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
@@ -34,7 +34,7 @@
34
34
  "name": "iPod Cleaning",
35
35
  "price": "5.00",
36
36
  "return_url": "http:\/\/google.com",
37
- "status": "cancelled",
37
+ "status": "expired",
38
38
  "test": null,
39
39
  "updated_at": "2015-07-10T15:03:51+10:00",
40
40
  "charge_type": null,
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.5
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-05 00:00:00.000000000 Z
11
+ date: 2015-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeresource