huginn_xero_agent 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/huginn_xero_agent/xero_agent.rb +2 -2
- 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: 65d7f2d2ad42d868f38995a033ec343fb75255ea
|
4
|
+
data.tar.gz: 8c247c79cba5adbbbe22db79cd73dcbb3156eaa7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 111b9c59478ad63e71db7374613aca7182fff64ecb2afb7d48165b49198a328309038a4be10b31cee39bea31605521dd40bbe4de8d8b995bf4a9c941665d6aa1
|
7
|
+
data.tar.gz: 595c3af8c2ae6b5b22c166b5d214d5aa4297843669aaf06ab03a8e2c50d811b8bf69486cfc0f53d6103bb0da44a39797157d3eb7242d9c5202a6d13edb3cda0d
|
@@ -73,7 +73,7 @@ module Agents
|
|
73
73
|
invoice.contact.address.country = interpolated['contact_address_country'].presence
|
74
74
|
invoice.contact.address.post_code = interpolated['contact_address_post_code'].presence
|
75
75
|
|
76
|
-
[Utils.value_at(event.payload, interpolated['item_path']) || {}].flatten.each do |item|
|
76
|
+
[Utils.value_at(event.payload, interpolated['item_path'].presence || '.') || {}].flatten.each do |item|
|
77
77
|
line_item = XeroGateway::LineItem.new(
|
78
78
|
:description => interpolated(item)['item_description'],
|
79
79
|
:account_code => interpolated(item)['item_account_code'].presence,
|
@@ -87,4 +87,4 @@ module Agents
|
|
87
87
|
end
|
88
88
|
end
|
89
89
|
end
|
90
|
-
end
|
90
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: huginn_xero_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Cantino
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|