zaui_zapi 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/version.rb +1 -1
  3. data/lib/zaui.rb +2 -0
  4. metadata +12 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18b6cb66e22ec9fca359ba12c411a167230e1ee4
4
- data.tar.gz: 7dbedaa8ec489d1ed8a4de6d0f24e7ed479dad9f
3
+ metadata.gz: 91ba92d5bb9275b15503501bc116e34c66033654
4
+ data.tar.gz: 74fb2879d4f53807f6181e530bb81b6e6f95dd88
5
5
  SHA512:
6
- metadata.gz: 0b2f75d67852783db6345f3006d483bae07d813fef8a83faf1fe80e3f77e4d6dfe41458429308d298fa537de480d8643c7e1cb4b7b1611ab54b071f75edf0527
7
- data.tar.gz: c5c35e66dc9420f499b6af0159ad73a57b482f615ffd591c70e5cbbb00cbd784a5e8131a1391e6756a6810a1f95d0201e375008c7cfd82f91680d04339750a40
6
+ metadata.gz: 9e137f7d9f4640301eaa2f6b80cfbd51db9f4e76e9d648eb4600de9bdc752dcaeb5e9ed0e0727bc97c6a81a7fd0fb4f1fbb600dd9c039e89afc1b775a9b5cb8f
7
+ data.tar.gz: 342bef504dc27a513e761675202a438515241a86b6049d16ed39b2ba59ff145c1a07ac85306f180add4c5e6b8ec3a71b35d5701c5383be662c9ea402d5bcba81
data/lib/version.rb CHANGED
@@ -1 +1 @@
1
- VERSION = '0.2.4'
1
+ VERSION = '0.2.5'
data/lib/zaui.rb CHANGED
@@ -75,11 +75,13 @@ class Zaui
75
75
  raw = _zapi(xml.get_cart_contents)
76
76
  activities = raw.try(:[],'cart').try(:[],'activities').try(:[],'activity')
77
77
  activities = activities.is_a?(Array) ? activities : [activities]
78
+ tax = raw.try(:[],'cart').try(:[],'cartTotals').try(:[],'tax')
78
79
  products = raw.try(:[],'cart').try(:[],'products').try(:[],'product')
79
80
  products = products.is_a?(Array) ? products : [products]
80
81
  {
81
82
  :activities => activities,
82
83
  :products => products,
84
+ :tax => tax,
83
85
  :total => raw['cart']['remainingBalance']['balance']
84
86
  }
85
87
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zaui_zapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Kretzmann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-02 00:00:00.000000000 Z
11
+ date: 2016-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activesupport
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: Provide ruby methods to interact with Zaui zAPI
@@ -59,7 +59,7 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - ".gitignore"
62
+ - .gitignore
63
63
  - LICENSE
64
64
  - README.md
65
65
  - lib/version.rb
@@ -84,17 +84,17 @@ require_paths:
84
84
  - lib
85
85
  required_ruby_version: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - ">="
92
+ - - '>='
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.2.2
97
+ rubygems_version: 2.0.14.1
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Zaui.com zAPI interface gem