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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d7819f8bbe6e234344d9b01e486309bfac37d632
4
- data.tar.gz: 6d6c75e5fdc5291b8345160bf65fe3405efdec7b
3
+ metadata.gz: 330f89c9ad7fb694db1004204254e8e6d2a4e005
4
+ data.tar.gz: 22c7f49cb89ace82a0a322f24f481261f93b4a0b
5
5
  SHA512:
6
- metadata.gz: 133a13dd9e97641e5bc75361bf48f674309b477d55dfb06b450b71045234b64627a7434f6e2ade91696124298e0e29eeb1118d6f6746da21f0419f3ca6b188f7
7
- data.tar.gz: feda99f6e20df5a90fe4873caea9bd43b3a6c16e22ce647e15942fcbc04eeb3125685ee7142f74e3359747018319806951f74a614a197a3a52d328fed328e9f5
6
+ metadata.gz: fa02a275e77b1d4984700f4b3c847d6fbcfec9eab6a38e2f2c91c93ca1fa28cea543018d1285f220c9997183342bfb14815c79da8437b6b8e8df4c4942da1227
7
+ data.tar.gz: 95c3650c96fbf9c352c6de044cff643b1e1c9321e73ee0ef066f8a740be0a174c827c1b8057b6f277b460a112b2899ddd1d13f714a95feca1f44f0ce124c3ff1
@@ -1,3 +1,3 @@
1
1
  module BankWorkingDay
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bank_working_day
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Morioka Shuhei