bank_working_day 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bank_working_day/version.rb +1 -1
- data/lib/bank_working_day.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 330f89c9ad7fb694db1004204254e8e6d2a4e005
|
4
|
+
data.tar.gz: 22c7f49cb89ace82a0a322f24f481261f93b4a0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa02a275e77b1d4984700f4b3c847d6fbcfec9eab6a38e2f2c91c93ca1fa28cea543018d1285f220c9997183342bfb14815c79da8437b6b8e8df4c4942da1227
|
7
|
+
data.tar.gz: 95c3650c96fbf9c352c6de044cff643b1e1c9321e73ee0ef066f8a740be0a174c827c1b8057b6f277b460a112b2899ddd1d13f714a95feca1f44f0ce124c3ff1
|
data/lib/bank_working_day.rb
CHANGED
@@ -4,6 +4,8 @@ require 'bank_working_day/version'
|
|
4
4
|
require 'bank_working_day/holidays'
|
5
5
|
|
6
6
|
module BankWorkingDay
|
7
|
+
class InvalidArgumentError < StandardError; end
|
8
|
+
|
7
9
|
def self.end_of_month_without_holiday(date)
|
8
10
|
date.end_of_month.day.downto(1) do |last_day|
|
9
11
|
last_day = Date.new(date.year, date.month, last_day)
|