roi_calculator 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/roi/rentability_periods.rb +2 -0
- data/lib/roi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 742359729479af856a33099a99aad954d50fe7445e6fbb8f221008272c1bd8cd
|
4
|
+
data.tar.gz: 39eea60eeb06a848aab1a260a7e875354e040d272176cfd166f2996ae1dfc930
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b26f8058b6e6fcaf18ceacc8e2d75e0acc9be863860a4a566c534a4eba18098e4f17e2825155b7fc820cfba5bbaa0ab82d242990990ed8203a88ae422a6136d2
|
7
|
+
data.tar.gz: '08f8270cfb4213c09ef019c951ba873f39003242c3d2ae147680211acb95b3061516b12c2f02668ddbfed97b114d9419f4fef435dc791bdc282a6bad9247585b'
|
@@ -13,6 +13,8 @@ module ROI
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def months(amount, date = end_date)
|
16
|
+
return current_month if amount == 1 && date == end_date
|
17
|
+
|
16
18
|
scoped_start = WorkDay.last_until((date - (amount+1).month).end_of_month)
|
17
19
|
scoped_end = adjust_end_date((date - 1.month).end_of_month)
|
18
20
|
check_gaps_and_format(scoped_start, scoped_end)
|
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.3.
|
4
|
+
version: 0.3.4
|
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: 2021-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|