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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8fa7c298f35b0481e97e5444162566836ee87b6
4
- data.tar.gz: e0906c462cc539d1a8433864578547f21f3a5804
3
+ metadata.gz: 65d7f2d2ad42d868f38995a033ec343fb75255ea
4
+ data.tar.gz: 8c247c79cba5adbbbe22db79cd73dcbb3156eaa7
5
5
  SHA512:
6
- metadata.gz: 882691fc0a528cc67425e87d6ba14b1be81b2828b995f8112435233c41020f8b6027ec3d1a9baa502d7e216a892d09e4fe3037895c1e0efdc12adab63559ea7d
7
- data.tar.gz: 1e983e090c697b4ebfd4934493c4aa970d4437aa1fba77536b04075593bc8ea15f8801f1dbeaed72fae41d09064e6fa83fd6fc8c2a90ad9117ca3204e0444a3d
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: '0.1'
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-15 00:00:00.000000000 Z
11
+ date: 2017-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler