unavailability 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +0 -4
- data/lib/unavailability/version.rb +1 -1
- data/lib/unavailability.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efeec24f495726bf1cda07fd30e3717296ff041abf189e2d53a8c7c237a35b0a
|
4
|
+
data.tar.gz: 290dbdbcabd3c6567beb2fbc76e56eabb1be45bab3e0b4b130ee3095117a8bcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f9766c8e578ab85b46059bf3168e118ec1bf8d4af713061401020e4d3433dfc328d76ad53d7c197f027aa841abc44bb2c907629c075c1665c97b723b8eedd0c
|
7
|
+
data.tar.gz: 3d2e64a5e0b1ef818bb9f12878815a97db84e8a01905c0ca3b16696887adcc769b7c473d54b594f5f6502b430dfdb467146e0603fe711d6332ab5373251fe7a0
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
unavailability (0.1.
|
4
|
+
unavailability (0.1.2)
|
5
5
|
activerecord (~> 5.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -87,11 +87,11 @@ PLATFORMS
|
|
87
87
|
|
88
88
|
DEPENDENCIES
|
89
89
|
bundler (~> 1.16)
|
90
|
-
byebug (~> 10.0
|
90
|
+
byebug (~> 10.0)
|
91
91
|
railties (~> 5.0)
|
92
92
|
rake (~> 10.0)
|
93
93
|
rspec (~> 3.0)
|
94
|
-
sqlite3 (~> 1.3
|
94
|
+
sqlite3 (~> 1.3)
|
95
95
|
unavailability!
|
96
96
|
|
97
97
|
BUNDLED WITH
|
data/README.md
CHANGED
@@ -79,7 +79,3 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
79
79
|
## Code of Conduct
|
80
80
|
|
81
81
|
Everyone interacting in the Unavailability project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/unavailability/blob/master/CODE_OF_CONDUCT.md).
|
82
|
-
|
83
|
-
```
|
84
|
-
|
85
|
-
```
|
data/lib/unavailability.rb
CHANGED
@@ -16,7 +16,7 @@ module Unavailability
|
|
16
16
|
u_table = Unavailability::UnavailableDate.arel_table
|
17
17
|
u_condition = u_table[:dateable_id].eq(user_table[:id]).and(u_table[:from].lteq(date)).and(u_table[:to].gteq(date))
|
18
18
|
|
19
|
-
where(Unavailability::UnavailableDate.where(u_condition).exists.not)
|
19
|
+
where(Unavailability::UnavailableDate.where(u_condition).arel.exists.not)
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unavailability
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Khiet Le
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|