increments-schedule 0.13.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/increments/schedule.rb +1 -0
- data/lib/increments/schedule/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c89435ad919e28bd9aac089199b364729410eeb
|
4
|
+
data.tar.gz: 30f5fc090856aa6156c177f96cff0e7b35efc3ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2ba480c2f88ebe2dc0e73b6668bc20bc57914f8de908388c326d12135aceb186dc1ee27907c21aefbb34516057f5a62ad1d9f8c161cb1a56c82a0e3ba8fe69b
|
7
|
+
data.tar.gz: f24162fd6498d1f8d6b301b9e626af278d62a07527c96a7308769627dfce6161687baa14ca9a0ab38c5a27cc8f4220f12a28ffbab766e5769cab492fbab76ef4
|
data/lib/increments/schedule.rb
CHANGED
@@ -18,6 +18,7 @@ module Increments
|
|
18
18
|
|
19
19
|
def pay_day?(date = Date.today)
|
20
20
|
return work_day?(date) if date.day == 25
|
21
|
+
return false if rest_day?(date)
|
21
22
|
next_basic_pay_day = Date.new(date.year, date.month, 25)
|
22
23
|
next_basic_pay_day = next_basic_pay_day.next_month if date > next_basic_pay_day
|
23
24
|
date.next_day.upto(next_basic_pay_day).all? do |date_until_basic_pay_day|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: increments-schedule
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuji Nakayama
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: holiday_japan
|
@@ -79,9 +79,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
79
|
version: '0'
|
80
80
|
requirements: []
|
81
81
|
rubyforge_project:
|
82
|
-
rubygems_version: 2.
|
82
|
+
rubygems_version: 2.6.8
|
83
83
|
signing_key:
|
84
84
|
specification_version: 4
|
85
85
|
summary: Increments' schedule
|
86
86
|
test_files: []
|
87
|
-
has_rdoc:
|