roi_calculator 0.3.5 → 0.3.6

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
  SHA256:
3
- metadata.gz: 28fdc603ec087be038354ae4b2598066e254839306da2ae5e3ce1f9b9c949c93
4
- data.tar.gz: 3d87f3a27f6b55acc5145cdd6ab1700ab145f338ff31dc695972254816553905
3
+ metadata.gz: d374c0e5a2f5bc8659091bcdb627b31f9da5bada6bc92de1d3334c532eb704dd
4
+ data.tar.gz: d938f830840cbb8cb8de02ac6ebbb092968cf4c912e6b2575aecfe1847ed20e9
5
5
  SHA512:
6
- metadata.gz: 2d3b8f264709e29e71dfccb3fcd1b17e7c88eb363185adf7a8e5d48f573b8e4b7d924e36795ff0988e8953a2b7591ce981ff59c624ad1e1031e2eb24913c5bd6
7
- data.tar.gz: 6358ee37541ea90a0c39134be3134d7ac996dfc50309d82084f19ccaaff4a6deef3cc7e43667b992b4a493a4f48dfdebaaafa679fc35df2a1a5edec4a8871cd2
6
+ metadata.gz: 1be3092e3cb334a65cd96f3763daf591e2c4b57c115ccdded5d4b142849f1bb96c34b420f1f1e78df9a4e8f240bcb73d4f6ddf9a7e7e74dce88de5583e246d49
7
+ data.tar.gz: 2f00910f9eb75e1a6a65058aef5b0c4b87a9b82a89a80c59fdc584f180d3a666ea15c62366a1639f857d9aae8ad85d6c8eb752535d32752161b059a1d2b6a0a1
@@ -13,6 +13,8 @@ module ROI
13
13
  end
14
14
 
15
15
  def month(date = end_date)
16
+ return current_month if date == end_date
17
+
16
18
  scoped_start = WorkDay.last_until((date - 1.month).end_of_month)
17
19
  scoped_end = adjust_end_date(date)
18
20
  check_gaps_and_format(scoped_start, scoped_end)
@@ -1,3 +1,3 @@
1
1
  module ROI
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roi_calculator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adriano Bacha