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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f7c72843760a0a7ffcc31310727662c43485bcc
4
- data.tar.gz: 7dd774ebfea58532b530f8c09dd3684b2ca8cbc7
3
+ metadata.gz: 5c89435ad919e28bd9aac089199b364729410eeb
4
+ data.tar.gz: 30f5fc090856aa6156c177f96cff0e7b35efc3ec
5
5
  SHA512:
6
- metadata.gz: 8e7bf97243fc7cae11475fa83e05128e114f734c8a67272c7b9e5ecee85f4e80ead74e77b9402e34514bae607e7fabc1916bb9cbf4d3dc9f888ae333a63eb46e
7
- data.tar.gz: 96ee66daecd9ac0b8af310f31aab52d122790b2489d09ed7c5a87c4b14cf5af9fc9068016ca751d31b0ee0b1320aee43a3aa9c70bdbbee54a8fbdb939f6c7c6e
6
+ metadata.gz: e2ba480c2f88ebe2dc0e73b6668bc20bc57914f8de908388c326d12135aceb186dc1ee27907c21aefbb34516057f5a62ad1d9f8c161cb1a56c82a0e3ba8fe69b
7
+ data.tar.gz: f24162fd6498d1f8d6b301b9e626af278d62a07527c96a7308769627dfce6161687baa14ca9a0ab38c5a27cc8f4220f12a28ffbab766e5769cab492fbab76ef4
@@ -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|
@@ -1,5 +1,5 @@
1
1
  module Increments
2
2
  module Schedule
3
- VERSION = '0.13.0'
3
+ VERSION = '0.13.1'
4
4
  end
5
5
  end
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.0
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-07-05 00:00:00.000000000 Z
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.5.1
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: