finapps 0.16.0.pre → 0.16.1.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 +4 -4
- data/lib/finapps/cli/cashflows.rb +1 -1
- data/lib/finapps/rest/cashflows.rb +7 -7
- data/lib/finapps/version.rb +1 -1
- 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: f5be355d397d92647a91a68a9a41290bef6a95e6
|
4
|
+
data.tar.gz: 8d6de342e42aa583e854d22b56e50fc741cf6ac9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48c5022eb2c24ba397fb3ba2fee56333325c2635dfb81fa7b8189e75c9e35aa415a751c2ea15180c210140784f967e1b8d24a4df833ce1f1b65f321871089ea7
|
7
|
+
data.tar.gz: c236ddd899a4566f5c445ffb965bbbf4dd51b98dc0f0c5bdec380bc7e43f2ca5c10394aa31cca3970dd2e66254261eb91c595cccaf74e4c0520891b1f56b7beb
|
@@ -15,7 +15,7 @@ module FinApps
|
|
15
15
|
user_token = '4JZmhcHVf3ODRJ9TMKF7N/1sHDY3M5Q49A9ToAy+TDE='
|
16
16
|
|
17
17
|
client.user_credentials!(user_identifier, user_token)
|
18
|
-
budget, error_messages = client.cashflows.show('2015-
|
18
|
+
budget, error_messages = client.cashflows.show('2015-02-01T00:00:00Z', '2015-02-28T00:00:00Z')
|
19
19
|
if budget.present?
|
20
20
|
puts
|
21
21
|
puts 'cashflow results:'
|
@@ -37,13 +37,13 @@ module FinApps
|
|
37
37
|
raise 'Summary result-set for cashflow is not present.' if summary.nil?
|
38
38
|
raise 'Summary result-set for cashflow is not a hash.' unless summary.respond_to?(:key?)
|
39
39
|
|
40
|
-
raise 'Total
|
41
|
-
cashflow.
|
40
|
+
raise 'Total income (inflow) value for cashflow is not present.' unless summary.key?('inflow')
|
41
|
+
cashflow.total_income_amount = summary['inflow']
|
42
42
|
|
43
|
-
raise 'Total
|
44
|
-
cashflow.
|
43
|
+
raise 'Total expenses (outflow) value for cashflow is not present.' unless summary.key?('outflow')
|
44
|
+
cashflow.total_expenses_amount = summary['outflow']
|
45
45
|
|
46
|
-
raise 'Total left-over value for cashflow is not present.' unless summary.key?('diff')
|
46
|
+
raise 'Total left-over (diff) value for cashflow is not present.' unless summary.key?('diff')
|
47
47
|
cashflow.total_leftover_amount = summary['diff']
|
48
48
|
|
49
49
|
categories = extract_value(result, 'details')
|
@@ -86,11 +86,11 @@ module FinApps
|
|
86
86
|
|
87
87
|
class Cashflow < FinApps::REST::Resource
|
88
88
|
attr_accessor :start_date, :end_date,
|
89
|
-
:
|
89
|
+
:total_income_amount, :total_expenses_amount, :total_leftover_amount, :details
|
90
90
|
end
|
91
91
|
|
92
92
|
class CashflowDetail < FinApps::REST::Resource
|
93
|
-
attr_accessor :category_id, :
|
93
|
+
attr_accessor :category_id, :income_amount, :expenses_amount, :leftover_amount
|
94
94
|
end
|
95
95
|
|
96
96
|
end
|
data/lib/finapps/version.rb
CHANGED
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.16.
|
4
|
+
version: 0.16.1.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: 2015-02-
|
11
|
+
date: 2015-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|