workhours 0.4.0 → 0.5.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/Gemfile +1 -1
- data/Gemfile.lock +21 -21
- data/README.md +2 -2
- data/lib/workhours/version.rb +1 -1
- data/workhours.gemspec +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: bd2f9f31356e237d4369e1accb289764a2d8bde6a5d359f9911559845a8adcc3
|
|
4
|
+
data.tar.gz: 7556638dea5992cdeec91d0eff429dc31fc3856fb29699d0bf5e37b37937d384
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fc924816ce1d519012a4be217bdfa8767e13160e00e12e3e0561db9005b6c44d69bb05391a9707ebe380a82dac97f201c8d994e24ccc533a019440764e0873bb
|
|
7
|
+
data.tar.gz: 9b957726a1934ec80bde0bb91932d09c9aef5d47038c5fac902f01a8c4b2fff53c4e727332d3c3a81b24ef314412904ed4d10e4b4fe2ec4640fddbf95fee3894
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
workhours (0.
|
|
4
|
+
workhours (0.5.0)
|
|
5
5
|
tod (~> 2.1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
10
|
diff-lcs (1.3)
|
|
11
|
-
docile (1.
|
|
12
|
-
json (2.0
|
|
13
|
-
rake (
|
|
14
|
-
rspec (3.
|
|
15
|
-
rspec-core (~> 3.
|
|
16
|
-
rspec-expectations (~> 3.
|
|
17
|
-
rspec-mocks (~> 3.
|
|
18
|
-
rspec-core (3.
|
|
19
|
-
rspec-support (~> 3.
|
|
20
|
-
rspec-expectations (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)
|
|
21
21
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
22
|
-
rspec-support (~> 3.
|
|
23
|
-
rspec-mocks (3.
|
|
22
|
+
rspec-support (~> 3.8.0)
|
|
23
|
+
rspec-mocks (3.8.1)
|
|
24
24
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
25
|
-
rspec-support (~> 3.
|
|
26
|
-
rspec-support (3.
|
|
27
|
-
simplecov (0.
|
|
28
|
-
docile (~> 1.1
|
|
25
|
+
rspec-support (~> 3.8.0)
|
|
26
|
+
rspec-support (3.8.2)
|
|
27
|
+
simplecov (0.17.1)
|
|
28
|
+
docile (~> 1.1)
|
|
29
29
|
json (>= 1.8, < 3)
|
|
30
30
|
simplecov-html (~> 0.10.0)
|
|
31
|
-
simplecov-html (0.10.
|
|
32
|
-
timecop (0.
|
|
33
|
-
tod (2.
|
|
31
|
+
simplecov-html (0.10.2)
|
|
32
|
+
timecop (0.9.1)
|
|
33
|
+
tod (2.2.0)
|
|
34
34
|
|
|
35
35
|
PLATFORMS
|
|
36
36
|
ruby
|
|
@@ -44,4 +44,4 @@ DEPENDENCIES
|
|
|
44
44
|
workhours!
|
|
45
45
|
|
|
46
46
|
BUNDLED WITH
|
|
47
|
-
1.
|
|
47
|
+
1.17.3
|
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/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"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: workhours
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- glebtv
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-09-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tod
|
|
@@ -138,11 +138,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
138
138
|
- !ruby/object:Gem::Version
|
|
139
139
|
version: '0'
|
|
140
140
|
requirements: []
|
|
141
|
-
|
|
142
|
-
rubygems_version: 2.6.10
|
|
141
|
+
rubygems_version: 3.0.6
|
|
143
142
|
signing_key:
|
|
144
143
|
specification_version: 4
|
|
145
|
-
summary: Gem to calculate
|
|
144
|
+
summary: Gem to calculate business hours
|
|
146
145
|
test_files:
|
|
147
146
|
- spec/spec_helper.rb
|
|
148
147
|
- spec/workhours_spec.rb
|