available_time 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CODE_OF_CONDUCT.md +1 -1
- data/README.md +13 -1
- data/available_time.gemspec +1 -1
- data/lib/available_time/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 674daff190464c3ea1249cbb8a1b92560fbd56f4
|
4
|
+
data.tar.gz: 18a8740ebf9e6bc687f055d1796f5a1e05e63d58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40e56b1043c80ac85223d484b89d700fc3cf60da90f6968b52998b0de22aaf6de6090c100577786aae62540bdf723f98117c0a8300bdba8530560aeaa90a3634
|
7
|
+
data.tar.gz: 2354105c7bf4eae203993597f9e66ff49318586d61c7e210bbfb59ed99bb428085380e960df27f224a9313772028755e98ba100a1e721d010c70124e3d65e8b0
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
|
|
55
55
|
## Enforcement
|
56
56
|
|
57
57
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at
|
58
|
+
reported by contacting the project team at jenorish@gmail.com. All
|
59
59
|
complaints will be reviewed and investigated and will result in a response that
|
60
60
|
is deemed necessary and appropriate to the circumstances. The project team is
|
61
61
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
data/README.md
CHANGED
@@ -32,7 +32,19 @@ Or install it yourself as:
|
|
32
32
|
## Supporting multile time format
|
33
33
|
|
34
34
|
appointments = [["09:00","9:30"],["10:01","11:30"],["14:00","16:30"],["1:01pm","1:30 Pm"],["12:30PM", "01:00PM"]]
|
35
|
-
appointments = [["09:00","9:30"],["10:01","11:30"],["14:00","16:30"],["1:01pm","1:30 Pm"],["12:30 PM", "01:00 PM"]]
|
35
|
+
appointments = [["09:00","9:30"],["10:01","11:30"],["14:00","16:30"],["1:01pm","1:30 Pm"],["12:30 PM", "01:00 PM"]]
|
36
|
+
## Interval
|
37
|
+
Defalut interval is 30 minutes, We can change it by passing
|
38
|
+
|
39
|
+
t = TimeSlot.new(8.30,"5.30pm",:interval => 5.minutes)
|
40
|
+
|
41
|
+
## Rest
|
42
|
+
We can pass rest time as well
|
43
|
+
Ex.
|
44
|
+
t = TimeSlot.new(8.30,"5.30pm",:rest => 5.minutes)
|
45
|
+
So result will generate like 5 mins rest time
|
46
|
+
|
47
|
+
[["08:30 AM", "09:00 AM"], ["09:05 AM", "09:35 AM"], ["09:40 AM", "10:10 AM"], ["10:15 AM", "10:45 AM"], ["11:35 AM", "12:05 PM"], ["12:10 PM", "12:40 PM"], ["12:45 PM", "01:15 PM"], ["01:20 PM", "01:50 PM"], ["01:55 PM", "02:25 PM"], ["02:30 PM", "03:00 PM"], ["03:35 PM", "04:05 PM"], ["04:10 PM", "04:40 PM"], ["04:45 PM", "05:15 PM"]]
|
36
48
|
|
37
49
|
## Contributing
|
38
50
|
|
data/available_time.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "available_time"
|
8
8
|
spec.version = AvailableTime::VERSION
|
9
9
|
spec.authors = ["kingston"]
|
10
|
-
spec.email = ["
|
10
|
+
spec.email = ["jenorish@gmail.com"]
|
11
11
|
|
12
12
|
spec.summary = %q{Gem to find available time in a day}
|
13
13
|
spec.description = %q{Gem to find available time in a day}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: available_time
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kingston
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '3.0'
|
55
55
|
description: Gem to find available time in a day
|
56
56
|
email:
|
57
|
-
-
|
57
|
+
- jenorish@gmail.com
|
58
58
|
executables: []
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|