availabiliter 1.0.0 → 1.0.1
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +9 -0
- data/availabiliter.gemspec +1 -1
- data/lib/availabiliter/version.rb +1 -1
- data/lib/availabiliter.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 715d134793c1f26305a5164c6c721bdf4f0510ddb4ee6c5f1258e814cdc824a0
|
4
|
+
data.tar.gz: 1a82abd42dcf27249f3fe97aba5096f03c312c9cd455b53a3f4e6fa21b0ad03a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3b92e1d464397f046002d023d794ef444d57c652d57ce03ea1bc7dd83a70a2449c12a13e1c207b809296d63a1d4d183ce94a2ade3cca7c3c877e60e400fdb6c
|
7
|
+
data.tar.gz: 4646bd05745196473b307616db09056d11f1b7cb8840064a345dd6a33bddb2f8772a4eb64af78827f40adc24909ab9fa68ee6492d7b14cf80c1aca1472c711ec
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -14,6 +14,8 @@ Availabiter is a tested and documented Ruby libary which provides an easy way of
|
|
14
14
|
For this given array of time slots...
|
15
15
|
|
16
16
|
```ruby
|
17
|
+
require "availabiliter"
|
18
|
+
|
17
19
|
shift_1 = [Time.new(2021, 1, 1, 8), Time.new(2021, 1, 1, 12)]
|
18
20
|
shift_2 = [Time.new(2021, 1, 1, 14), Time.new(2021, 1, 1, 18)]
|
19
21
|
working_hours = [shift_1, shift_2]
|
@@ -173,6 +175,13 @@ Or install it yourself as:
|
|
173
175
|
|
174
176
|
$ gem install availabiliter
|
175
177
|
|
178
|
+
And require it at the top of a file to run your calculations
|
179
|
+
|
180
|
+
```ruby
|
181
|
+
# some_file.rb
|
182
|
+
require "availabiliter
|
183
|
+
```
|
184
|
+
|
176
185
|
## Development
|
177
186
|
|
178
187
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/availabiliter.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.authors = ["lioneldebauge"]
|
9
9
|
spec.email = ["lionel@livecolonies.com"]
|
10
10
|
|
11
|
-
spec.summary = "
|
11
|
+
spec.summary = "A pure ruby library that simplifies calculation of gaps between time slots."
|
12
12
|
spec.homepage = "https://github.com/lioneldebauge/availabiliter.git"
|
13
13
|
spec.license = "MIT"
|
14
14
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.2")
|
data/lib/availabiliter.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: availabiliter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lioneldebauge
|
@@ -136,6 +136,5 @@ requirements: []
|
|
136
136
|
rubygems_version: 3.1.4
|
137
137
|
signing_key:
|
138
138
|
specification_version: 4
|
139
|
-
summary:
|
140
|
-
frame.
|
139
|
+
summary: A pure ruby library that simplifies calculation of gaps between time slots.
|
141
140
|
test_files: []
|