increments-schedule 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 +4 -4
- data/README.md +1 -0
- data/lib/increments/schedule.rb +5 -0
- data/lib/increments/schedule/version.rb +1 -1
- 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: 501eab35a37755a0835d33c702bc318210c03cba
|
4
|
+
data.tar.gz: e3b4f292a2330768e3b339f351b158120e024ec1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3c1f0c47e3dbae0b1274b99135cc9483e2c032feafc39cf6edac3e9b23f38999eb553c85992c8dbab880fe4fa332c38dea45418898a782939de5d129772b2c7
|
7
|
+
data.tar.gz: 1e2a41b3290928493cc03a35cedbaa4d7e044c44da87e3c7b06f8217a9e8e63ca0ceaaeb5b81848e4c7d46c229fc739210375f89ba26f2a1e546cd23125eb9c3
|
data/README.md
CHANGED
data/lib/increments/schedule.rb
CHANGED
@@ -6,6 +6,7 @@ module Increments
|
|
6
6
|
extend self # rubocop:disable ModuleFunction
|
7
7
|
|
8
8
|
[
|
9
|
+
[:each_super_hanakin, :super_hanakin?],
|
9
10
|
[:each_pay_day, :pay_day?],
|
10
11
|
[:each_remote_work_day, :remote_work_day?],
|
11
12
|
[:each_normal_remote_work_day, :normal_remote_work_day?],
|
@@ -22,6 +23,10 @@ module Increments
|
|
22
23
|
end
|
23
24
|
end
|
24
25
|
|
26
|
+
def super_hanakin?(date)
|
27
|
+
pay_day?(date) && date.friday?
|
28
|
+
end
|
29
|
+
|
25
30
|
def pay_day?(date)
|
26
31
|
return !rest_day?(date) if date.day == 25
|
27
32
|
next_basic_pay_day = Date.new(date.year, date.month, 25)
|