workhours 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.ruby-version +1 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +26 -26
- data/README.md +2 -2
- data/lib/workhours/version.rb +1 -1
- data/lib/workhours.rb +1 -1
- data/workhours.gemspec +3 -3
- metadata +15 -17
- data/.ruby-gemset +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: d13cdc45438588f72c515a40bf9a8c839e7f2ba7c6c90af35c9d758b73505d67
|
|
4
|
+
data.tar.gz: af75751cc5ab5c6543e908caa77641c3d77b40a86e931cb5b7c984847ff8abe4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0178ed21bad2afb02c85cc8f7d23d11ea7f79b993f6267d7dc09adb68265ff5dbf299139060f72a0d41d27bedb07f47d8f4079aeca70759ce0896eb5cebd090f'
|
|
7
|
+
data.tar.gz: a2d6326a0afde445d376eec49bc3feb7bf6b3252b771fbcc30d42a43269737bbd6f8683e4e751468ace9e67ef1324d702d1a216549ef0db9f945c39fb9f080ae
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
3.3.1
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
workhours (0.
|
|
5
|
-
tod
|
|
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.
|
|
11
|
-
docile (1.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
rspec-
|
|
16
|
-
rspec-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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.
|
|
23
|
-
rspec-mocks (3.
|
|
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.
|
|
26
|
-
rspec-support (3.
|
|
27
|
-
simplecov (0.
|
|
28
|
-
docile (~> 1.1
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
simplecov-html (0.
|
|
32
|
-
|
|
33
|
-
|
|
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
|
|
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
|
-
|
|
47
|
+
2.5.9
|
data/README.md
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
# Workhours
|
|
9
9
|
|
|
10
|
-
Gem to calculate *
|
|
10
|
+
Gem to calculate *business hours*, things like .is_open?, .is_closed?, .opens_at, .closes_at
|
|
11
11
|
|
|
12
|
-
Some code based on [
|
|
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).
|
data/lib/workhours/version.rb
CHANGED
data/lib/workhours.rb
CHANGED
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
|
|
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"
|
|
21
|
+
spec.add_dependency "tod"
|
|
22
22
|
|
|
23
|
-
spec.add_development_dependency "bundler"
|
|
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
|
+
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:
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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
|
-
|
|
142
|
-
|
|
143
|
-
signing_key:
|
|
140
|
+
rubygems_version: 3.5.9
|
|
141
|
+
signing_key:
|
|
144
142
|
specification_version: 4
|
|
145
|
-
summary: Gem to calculate
|
|
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
|