workhours 0.5.0 → 0.6.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
  SHA256:
3
- metadata.gz: bd2f9f31356e237d4369e1accb289764a2d8bde6a5d359f9911559845a8adcc3
4
- data.tar.gz: 7556638dea5992cdeec91d0eff429dc31fc3856fb29699d0bf5e37b37937d384
3
+ metadata.gz: d13cdc45438588f72c515a40bf9a8c839e7f2ba7c6c90af35c9d758b73505d67
4
+ data.tar.gz: af75751cc5ab5c6543e908caa77641c3d77b40a86e931cb5b7c984847ff8abe4
5
5
  SHA512:
6
- metadata.gz: fc924816ce1d519012a4be217bdfa8767e13160e00e12e3e0561db9005b6c44d69bb05391a9707ebe380a82dac97f201c8d994e24ccc533a019440764e0873bb
7
- data.tar.gz: 9b957726a1934ec80bde0bb91932d09c9aef5d47038c5fac902f01a8c4b2fff53c4e727332d3c3a81b24ef314412904ed4d10e4b4fe2ec4640fddbf95fee3894
6
+ metadata.gz: '0178ed21bad2afb02c85cc8f7d23d11ea7f79b993f6267d7dc09adb68265ff5dbf299139060f72a0d41d27bedb07f47d8f4079aeca70759ce0896eb5cebd090f'
7
+ data.tar.gz: a2d6326a0afde445d376eec49bc3feb7bf6b3252b771fbcc30d42a43269737bbd6f8683e4e751468ace9e67ef1324d702d1a216549ef0db9f945c39fb9f080ae
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.1.5
1
+ 3.3.1
data/Gemfile.lock CHANGED
@@ -1,42 +1,42 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- workhours (0.5.0)
5
- tod (~> 2.1)
4
+ workhours (0.6.0)
5
+ tod
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- diff-lcs (1.3)
11
- docile (1.3.2)
12
- json (2.2.0)
13
- rake (13.0.0)
14
- rspec (3.8.0)
15
- rspec-core (~> 3.8.0)
16
- rspec-expectations (~> 3.8.0)
17
- rspec-mocks (~> 3.8.0)
18
- rspec-core (3.8.2)
19
- rspec-support (~> 3.8.0)
20
- rspec-expectations (3.8.4)
10
+ diff-lcs (1.5.1)
11
+ docile (1.4.0)
12
+ rake (13.2.1)
13
+ rspec (3.13.0)
14
+ rspec-core (~> 3.13.0)
15
+ rspec-expectations (~> 3.13.0)
16
+ rspec-mocks (~> 3.13.0)
17
+ rspec-core (3.13.0)
18
+ rspec-support (~> 3.13.0)
19
+ rspec-expectations (3.13.0)
21
20
  diff-lcs (>= 1.2.0, < 2.0)
22
- rspec-support (~> 3.8.0)
23
- rspec-mocks (3.8.1)
21
+ rspec-support (~> 3.13.0)
22
+ rspec-mocks (3.13.1)
24
23
  diff-lcs (>= 1.2.0, < 2.0)
25
- rspec-support (~> 3.8.0)
26
- rspec-support (3.8.2)
27
- simplecov (0.17.1)
24
+ rspec-support (~> 3.13.0)
25
+ rspec-support (3.13.1)
26
+ simplecov (0.22.0)
28
27
  docile (~> 1.1)
29
- json (>= 1.8, < 3)
30
- simplecov-html (~> 0.10.0)
31
- simplecov-html (0.10.2)
32
- timecop (0.9.1)
33
- tod (2.2.0)
28
+ simplecov-html (~> 0.11)
29
+ simplecov_json_formatter (~> 0.1)
30
+ simplecov-html (0.12.3)
31
+ simplecov_json_formatter (0.1.4)
32
+ timecop (0.9.8)
33
+ tod (3.1.2)
34
34
 
35
35
  PLATFORMS
36
36
  ruby
37
37
 
38
38
  DEPENDENCIES
39
- bundler (~> 1.14)
39
+ bundler
40
40
  rake
41
41
  rspec
42
42
  simplecov
@@ -44,4 +44,4 @@ DEPENDENCIES
44
44
  workhours!
45
45
 
46
46
  BUNDLED WITH
47
- 1.17.3
47
+ 2.5.9
@@ -1,3 +1,3 @@
1
1
  module Workhours
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
data/lib/workhours.rb CHANGED
@@ -7,7 +7,7 @@ require "workhours/period"
7
7
  require "workhours/util"
8
8
 
9
9
  module Workhours
10
- ALL_DAYS = ::Time::RFC2822_DAY_NAME.map(&:downcase)
10
+ ALL_DAYS = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"]
11
11
 
12
12
  extend Util
13
13
 
data/workhours.gemspec CHANGED
@@ -18,9 +18,9 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "tod", '~> 2.1'
21
+ spec.add_dependency "tod"
22
22
 
23
- spec.add_development_dependency "bundler", "~> 1.14"
23
+ spec.add_development_dependency "bundler"
24
24
  spec.add_development_dependency "rake"
25
25
 
26
26
  spec.add_development_dependency "rspec"
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workhours
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-27 00:00:00.000000000 Z
11
+ date: 2024-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tod
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '2.1'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '2.1'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.14'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.14'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -103,7 +103,6 @@ extra_rdoc_files: []
103
103
  files:
104
104
  - ".gitignore"
105
105
  - ".rspec"
106
- - ".ruby-gemset"
107
106
  - ".ruby-version"
108
107
  - ".travis.yml"
109
108
  - Gemfile
@@ -123,7 +122,7 @@ homepage: https://github.com/rs-pro/workhours
123
122
  licenses:
124
123
  - MIT
125
124
  metadata: {}
126
- post_install_message:
125
+ post_install_message:
127
126
  rdoc_options: []
128
127
  require_paths:
129
128
  - lib
@@ -138,8 +137,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
137
  - !ruby/object:Gem::Version
139
138
  version: '0'
140
139
  requirements: []
141
- rubygems_version: 3.0.6
142
- signing_key:
140
+ rubygems_version: 3.5.9
141
+ signing_key:
143
142
  specification_version: 4
144
143
  summary: Gem to calculate business hours
145
144
  test_files:
data/.ruby-gemset DELETED
@@ -1 +0,0 @@
1
- workhours