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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0a24943947c51605b2638b194eac012e7389cc7
4
- data.tar.gz: dbbd7b8e04170cadbd8e85c2e2c5f85db6d95e34
3
+ metadata.gz: 501eab35a37755a0835d33c702bc318210c03cba
4
+ data.tar.gz: e3b4f292a2330768e3b339f351b158120e024ec1
5
5
  SHA512:
6
- metadata.gz: b440916d7672e029446af372f70a8eb171cccda0814d830e909025d1b0566d57c6003bab41fb36446f035fa256c4214ab6c70c453d82f2513c7c4dfa14afa8cf
7
- data.tar.gz: afb13986236c066736d5e8c086a12b0fc0072f5f3b0618f8008556fabf6171b76aa512de17c0befbc018940bfea28456fc221103ff59dd8155d6633f73f16f3c
6
+ metadata.gz: f3c1f0c47e3dbae0b1274b99135cc9483e2c032feafc39cf6edac3e9b23f38999eb553c85992c8dbab880fe4fa332c38dea45418898a782939de5d129772b2c7
7
+ data.tar.gz: 1e2a41b3290928493cc03a35cedbaa4d7e044c44da87e3c7b06f8217a9e8e63ca0ceaaeb5b81848e4c7d46c229fc739210375f89ba26f2a1e546cd23125eb9c3
data/README.md CHANGED
@@ -24,6 +24,7 @@ Or install it yourself as:
24
24
 
25
25
  ## Usage
26
26
 
27
+ * `Increments::Schedule.each_super_hanakin`
27
28
  * `Increments::Schedule.each_pay_day`
28
29
  * `Increments::Schedule.each_remote_work_day`
29
30
  * `Increments::Schedule.each_normal_remote_work_day`
@@ -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)
@@ -1,5 +1,5 @@
1
1
  module Increments
2
2
  module Schedule
3
- VERSION = '0.2.0'
3
+ VERSION = '0.3.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: increments-schedule
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Nakayama