versacommerce_api 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OGRhOWQxMzZjZWE0ZDcyMTFlODA0MTFjMjk2OTdlODhmZDM3YmFkYg==
4
+ NzBjODFiM2EzZThjZWYwYjFjNDJiMmY2OWU3YmRjNzRjOGEwODFjMw==
5
5
  data.tar.gz: !binary |-
6
- Mzg0ZDVlZDA0ZGNjMTUxN2MwMjhmMDQ5YzBmYWYzOTQ4OTQwY2E0Yg==
6
+ YzM4ZWQyOGQzNjMwYWUwOGVlZTg0MjA5M2Q3NmFlNDQwNzA1Yzg4OQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NGYyODkxNjM3NjJjZGM4OWI5MGJiZjMwZTlhODA5MGI0M2I3NjI3MDk2MWI4
10
- MzA3NjcxZDkwZTY5OGFmNjdiNDczODMxNzBlZTI3MTZkNmFjODNkMTNiZTdj
11
- OTg1Y2ViMjNlMjY4MTgyYWJjZGVhY2E4ZTlkOTA5MDA4MjJlZjc=
9
+ YzgzZGQzMzE0ZGU5NTRhN2JiOTk5ZjljZmExZWY2NDIzMzYzMWZhMDFkY2Uz
10
+ ZDlmY2UwNmY4NTRlN2Y1NmNmMGFjMWMyYmM0ZDVjZTZmMDgxNmQ4YTA4YzNk
11
+ ZDliYTFhMWYzMzNjYjZiOGRkNGNjYTQxZmExYTQ2YTQxOThlZTA=
12
12
  data.tar.gz: !binary |-
13
- ODE2OGEzNzZkNGYzNDA2YmEyMzUyYWFlODZlZjY3ZWRkNDVlYjVkMzk3NWE5
14
- ZjI2MjhmZGM5MmFkNzNmYmRjOTg5OTJhMjFmOGNhMzZhYzY5MWYwNzM4MmE4
15
- Y2IzYWViZjM3ZGFmNmU3N2VhZTk0YzY3ODdlNmNkZDk4ZDA2ZTY=
13
+ NmZkOTUzNTZkOGEzZWJkMWRlZmE3OWE0ODVmMzViOWJhNTY3NmQxYzhmNDQ5
14
+ MTcwY2Q5Y2M0MTk5MGNkYTNjM2E2OWUwMTA4YjI3MmJlYmM0ZWE2OWYwNWI0
15
+ YmFhY2YzOTg5MzQwNTZjYTg3NjZiNGU5NDYzMTM0YTM1N2Q5NWE=
data/CHANGELOG CHANGED
@@ -1,5 +1,6 @@
1
- 1.0.9 - Added PaymentMethod resource
2
- 1.0.8 - Added Carrier resource
3
- 1.0.7 - Fixed YAML load bug
4
- 1.0.6 - Added Account resource
5
- 1.0.1 - First public release
1
+ 1.0.10 - Associate items with order
2
+ 1.0.9 - Added PaymentMethod resource
3
+ 1.0.8 - Added Carrier resource
4
+ 1.0.7 - Fixed YAML load bug
5
+ 1.0.6 - Added Account resource
6
+ 1.0.1 - First public release
data/Gemfile.lock CHANGED
@@ -1,38 +1,37 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- versacommerce_api (1.0.6)
4
+ versacommerce_api (1.0.10)
5
5
  activeresource (>= 3.2.14)
6
6
  thor (>= 0.14.4)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activemodel (4.0.4)
12
- activesupport (= 4.0.4)
13
- builder (~> 3.1.0)
11
+ activemodel (4.2.1)
12
+ activesupport (= 4.2.1)
13
+ builder (~> 3.1)
14
14
  activeresource (4.0.0)
15
15
  activemodel (~> 4.0)
16
16
  activesupport (~> 4.0)
17
17
  rails-observers (~> 0.1.1)
18
- activesupport (4.0.4)
19
- i18n (~> 0.6, >= 0.6.9)
20
- minitest (~> 4.2)
21
- multi_json (~> 1.3)
22
- thread_safe (~> 0.1)
23
- tzinfo (~> 0.3.37)
24
- atomic (1.1.16)
25
- builder (3.1.4)
18
+ activesupport (4.2.1)
19
+ i18n (~> 0.7)
20
+ json (~> 1.7, >= 1.7.7)
21
+ minitest (~> 5.1)
22
+ thread_safe (~> 0.3, >= 0.3.4)
23
+ tzinfo (~> 1.1)
24
+ builder (3.2.2)
26
25
  coderay (1.0.9)
27
26
  diff-lcs (1.2.4)
28
27
  fakeweb (1.3.0)
29
- i18n (0.6.9)
28
+ i18n (0.7.0)
29
+ json (1.8.2)
30
30
  metaclass (0.0.1)
31
31
  method_source (0.8.2)
32
- minitest (4.7.5)
32
+ minitest (5.5.1)
33
33
  mocha (0.14.0)
34
34
  metaclass (~> 0.0.1)
35
- multi_json (1.9.2)
36
35
  pry (0.9.12.2)
37
36
  coderay (~> 1.0.5)
38
37
  method_source (~> 0.8)
@@ -52,9 +51,9 @@ GEM
52
51
  rspec-mocks (2.14.3)
53
52
  slop (3.4.6)
54
53
  thor (0.19.1)
55
- thread_safe (0.3.1)
56
- atomic (>= 1.1.7, < 2)
57
- tzinfo (0.3.39)
54
+ thread_safe (0.3.5)
55
+ tzinfo (1.2.2)
56
+ thread_safe (~> 0.1)
58
57
 
59
58
  PLATFORMS
60
59
  ruby
@@ -6,18 +6,22 @@ module VersacommerceAPI
6
6
  # VersaCommerceShopApi::Order.find(:all, :params => {:include => 'items', :limit => 10})
7
7
  class Order < Base
8
8
  include Associatable
9
-
9
+
10
+ def items
11
+ associated_resource "items"
12
+ end
13
+
10
14
  def payments
11
15
  associated_resource "payment"
12
16
  end
13
-
17
+
14
18
  def shipping_address
15
19
  associated_resource "shipping_address", false
16
20
  end
17
-
21
+
18
22
  def billing_address
19
23
  associated_resource "billing_address", false
20
24
  end
21
25
  end
22
-
26
+
23
27
  end
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module VersacommerceAPI
3
- VERSION = "1.0.9"
3
+ VERSION = "1.0.10"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: versacommerce_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - VersaCommerce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-24 00:00:00.000000000 Z
11
+ date: 2015-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler