finapps 0.1.18.pre → 0.1.19.pre

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ad69f21bcdb720364b53650e62bc3771a4941df
4
- data.tar.gz: c7b7cb952bb427c94ac31b525d2e2232be49bd59
3
+ metadata.gz: ecd1420aa819d7075c34b612be8292084a9802d4
4
+ data.tar.gz: 08d46c1ec2f04f7061fb8d18dc73cf5145a77abd
5
5
  SHA512:
6
- metadata.gz: e7d754a4f88ea826240c38438c5c9e49e11207037cc870f0709993cce4054d8b29ed5c7a2c94a2ed72c961de1fb34b3a1a7cf104680e713ac14857adc2c155aa
7
- data.tar.gz: 29d7b2858f2af8010708231c9eb47b367038617eb1d2b5e79c9728696502b09cd95357894360a2966f966537bb7ab5fb1e924e10f3269da48550a45bc29785a0
6
+ metadata.gz: 15d8521cdbb01b8a44f569912b8b8c107e28c1d8976d960a5558077a1d402b9cb438835247a65065dcecfac09399b0c52b4cb7815fca83bfbae594905195dc6f
7
+ data.tar.gz: 48c3f6bdff456cca008d822764b458ea02720e2ae94edab7f1c737396104260e79c676a4de62d127198a940e19310a4e34c660521448168f66307bb5df982da3
@@ -14,7 +14,7 @@ module FinApps
14
14
  path = Defaults::END_POINTS[:transactions_search]
15
15
  logger.debug "##{__method__.to_s} => path: #{path}"
16
16
 
17
- transactions, error_messages = @client.send(path, :post, params) do |r|
17
+ transactions, error_messages = @client.send(path, :post, params.compact) do |r|
18
18
  r.body.transactions.each { |i| Transaction.new(i) }
19
19
  end
20
20
 
@@ -29,29 +29,5 @@ module FinApps
29
29
  :type, :status, :keyword, :merchant_name, :categories, :tags
30
30
  end
31
31
 
32
-
33
- =begin
34
- "transactions": [
35
- {
36
- "_id": "53d69a6f1184140013000006",
37
- "account_id": "53d69a6e1184140013000004",
38
- "date": "2014-07-15T07:00:00Z",
39
- "transaction_date": "0001-01-01T00:00:00Z",
40
- "description": "AUTOMATIC PAYMENT-THANK",
41
- "amount": 25,
42
- "type": "credit",
43
- "status": "posted",
44
- "keyword": "payment - thank",
45
- "merchant_name": "Payment Thank You",
46
- "categories": [
47
- {
48
- "category_id": "",
49
- "amount": 25
50
- }
51
- ],
52
- "tags": []
53
- },
54
- =end
55
-
56
32
  end
57
33
  end
@@ -48,4 +48,8 @@ class Hash
48
48
  raise InvalidArgumentsError.new "Invalid #{key} specified: #{value.inspect} must be a string or symbol." unless value.is_a?(String) || value.is_a?(Symbol)
49
49
  end
50
50
  end
51
+
52
+ def compact
53
+ self.delete_if { |_, v| v.nil? }
54
+ end
51
55
  end
@@ -1,3 +1,3 @@
1
1
  module FinApps
2
- VERSION = '0.1.18.pre'
2
+ VERSION = '0.1.19.pre'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finapps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18.pre
4
+ version: 0.1.19.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erich Quintero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-28 00:00:00.000000000 Z
11
+ date: 2014-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor