workhours 0.4.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
- SHA1:
3
- metadata.gz: 192f093a0a53487e7cf5844048d9ede531eef6e4
4
- data.tar.gz: d8cd4eb1b8f48c4996fbb370b749a1fb95fec804
2
+ SHA256:
3
+ metadata.gz: d13cdc45438588f72c515a40bf9a8c839e7f2ba7c6c90af35c9d758b73505d67
4
+ data.tar.gz: af75751cc5ab5c6543e908caa77641c3d77b40a86e931cb5b7c984847ff8abe4
5
5
  SHA512:
6
- metadata.gz: 10c1d291802b346afe6baca24a1899378b2fc3385bda84e1bde769d374642fd526825cd5bef6be4ed6f81389ae3f6df724e7fe0ff2215d0872ab077084d41fe7
7
- data.tar.gz: 7c64c0a8c7eeb4cf37c8fbda1228e5761ae8d69c35b28b7640b98497e300d6f4e899387b1ba8e07faf1b0060a73a03d10d967121cf72f8ce67708e93d3e23b6b
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 CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in buisness_hours.gemspec
3
+ # Specify your gem's dependencies in business_hours.gemspec
4
4
  gemspec
data/Gemfile.lock CHANGED
@@ -1,42 +1,42 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- workhours (0.4.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.1.5)
12
- json (2.0.3)
13
- rake (12.0.0)
14
- rspec (3.5.0)
15
- rspec-core (~> 3.5.0)
16
- rspec-expectations (~> 3.5.0)
17
- rspec-mocks (~> 3.5.0)
18
- rspec-core (3.5.4)
19
- rspec-support (~> 3.5.0)
20
- rspec-expectations (3.5.0)
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.5.0)
23
- rspec-mocks (3.5.0)
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.5.0)
26
- rspec-support (3.5.0)
27
- simplecov (0.14.1)
28
- docile (~> 1.1.0)
29
- json (>= 1.8, < 3)
30
- simplecov-html (~> 0.10.0)
31
- simplecov-html (0.10.0)
32
- timecop (0.8.1)
33
- tod (2.1.0)
24
+ rspec-support (~> 3.13.0)
25
+ rspec-support (3.13.1)
26
+ simplecov (0.22.0)
27
+ docile (~> 1.1)
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.14.6
47
+ 2.5.9
data/README.md CHANGED
@@ -7,9 +7,9 @@
7
7
 
8
8
  # Workhours
9
9
 
10
- Gem to calculate *buisness hours*, things like .is_open?, .is_closed?, .opens_at, .closes_at
10
+ Gem to calculate *business hours*, things like .is_open?, .is_closed?, .opens_at, .closes_at
11
11
 
12
- Some code based on [buisness_time](https://github.com/bokmann/business_time) gem which unfortuanately handles all
12
+ Some code based on [business_time](https://github.com/bokmann/business_time) gem which unfortuanately handles all
13
13
  configs globally and is buggy.
14
14
 
15
15
  Uses ```tod``` gem to properly handle parsing and math with TimeOfDay (time without date).
@@ -1,3 +1,3 @@
1
1
  module Workhours
2
- VERSION = "0.4.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
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Workhours::VERSION
9
9
  spec.authors = ["glebtv"]
10
10
  spec.email = ["glebtv@gmail.com"]
11
- spec.summary = %q{Gem to calculate buisness hours}
11
+ spec.summary = %q{Gem to calculate business hours}
12
12
  spec.description = %q{}
13
13
  spec.homepage = "https://github.com/rs-pro/workhours"
14
14
  spec.license = "MIT"
@@ -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.4.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: 2017-03-21 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,11 +137,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
137
  - !ruby/object:Gem::Version
139
138
  version: '0'
140
139
  requirements: []
141
- rubyforge_project:
142
- rubygems_version: 2.6.10
143
- signing_key:
140
+ rubygems_version: 3.5.9
141
+ signing_key:
144
142
  specification_version: 4
145
- summary: Gem to calculate buisness hours
143
+ summary: Gem to calculate business hours
146
144
  test_files:
147
145
  - spec/spec_helper.rb
148
146
  - spec/workhours_spec.rb
data/.ruby-gemset DELETED
@@ -1 +0,0 @@
1
- workhours