roi_calculator 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/roi/rentability.rb +1 -1
- data/lib/roi/rentability_periods.rb +2 -2
- data/lib/roi/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6a7a0e73a94faee6f8d2baec965a619a1d662d50e86309b2a0bbb033d1e3b894
|
4
|
+
data.tar.gz: 87dae151a9665f8bb89e0072c0c78ce3eb5ec131edf2c4eb0542d7748e099985
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '009d852e1d6ac38aa486eba44a6751ecbd5cfec106bc5c829be44e9d7ee82fc2ab443cfd88c07f9a6c0a3be299fc8f66ff88f3d7712a3bd33be43f350ca9dbd5'
|
7
|
+
data.tar.gz: 8355d8b7edc808d6d5d674ce54500139897b7bd94bcd23c8fdc8c99f5a411e4522e24acfb4d9203f7fd40c9a74bd36cbeeb94b54f850eb31b81b056f89751a23
|
data/lib/roi/rentability.rb
CHANGED
@@ -13,8 +13,8 @@ module ROI
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def months(amount, date = end_date)
|
16
|
-
scoped_start = WorkDay.last_until((date - amount.month).end_of_month)
|
17
|
-
scoped_end = adjust_end_date(date)
|
16
|
+
scoped_start = WorkDay.last_until((date - (amount+1).month).end_of_month)
|
17
|
+
scoped_end = adjust_end_date((date - 1.month).end_of_month)
|
18
18
|
check_gaps_and_format(scoped_start, scoped_end)
|
19
19
|
end
|
20
20
|
|
data/lib/roi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roi_calculator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adriano Bacha
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -123,8 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
|
-
|
127
|
-
rubygems_version: 2.4.8
|
126
|
+
rubygems_version: 3.0.8
|
128
127
|
signing_key:
|
129
128
|
specification_version: 4
|
130
129
|
summary: Rentability and financial calculations
|