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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: acbff7e9ed2d5615c2298a6b8802fe20920b594a19292fdff70d933100610a4d
4
- data.tar.gz: 71b01103cb94ebfd73733135d95758bbc4fbd0c4936d2199f7917d3f9be06904
3
+ metadata.gz: 715d134793c1f26305a5164c6c721bdf4f0510ddb4ee6c5f1258e814cdc824a0
4
+ data.tar.gz: 1a82abd42dcf27249f3fe97aba5096f03c312c9cd455b53a3f4e6fa21b0ad03a
5
5
  SHA512:
6
- metadata.gz: b5658fb8a5aae7db823d0767b6eff6ecd65fc305258e2e79ec483df63d8bed008fdca0a54ec1ccdb1a0079fabdc1887262f130401e77a716f297d959ef5fbe64
7
- data.tar.gz: 5c0bf3d49fd0064b597cbfd5d83eccbebe6bfebf2a78c265904bb9e9ea044d00fb027e6588e38337bf61c6884faa41340851185089b426c3d3897cddcecae0a4
6
+ metadata.gz: c3b92e1d464397f046002d023d794ef444d57c652d57ce03ea1bc7dd83a70a2449c12a13e1c207b809296d63a1d4d183ce94a2ade3cca7c3c877e60e400fdb6c
7
+ data.tar.gz: 4646bd05745196473b307616db09056d11f1b7cb8840064a345dd6a33bddb2f8772a4eb64af78827f40adc24909ab9fa68ee6492d7b14cf80c1aca1472c711ec
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
  - Easy integration in Rails
3
3
  - Allow to pick your own infinity format
4
4
 
5
+ ## 1.0.1
6
+ - Fix options validator bug
7
+ - Modify gem description
8
+
5
9
  ## 1.0.0
6
10
 
7
11
  - Adds support for Time and Unix timestamps
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.
@@ -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 = "Availabiliter calculates availabilities for ruby ranges within a given time frame."
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")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Availabiliter
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
data/lib/availabiliter.rb CHANGED
@@ -41,6 +41,6 @@ class Availabiliter
41
41
  end
42
42
 
43
43
  def validate_options
44
- OptionsValidator.new(options).call
44
+ OptionsValidator.new(**options).call
45
45
  end
46
46
  end
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.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: Availabiliter calculates availabilities for ruby ranges within a given time
140
- frame.
139
+ summary: A pure ruby library that simplifies calculation of gaps between time slots.
141
140
  test_files: []