unavailability 0.1.1 → 0.1.2

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: 0b33f3fd5eb1d2a405c7ffc002b106abcbc43f1ae6b34bafd5c67cd0380b5583
4
- data.tar.gz: 5afe3b74453861c2804305bb30b48a9505d8995b681540d9e72c3473592d7370
3
+ metadata.gz: efeec24f495726bf1cda07fd30e3717296ff041abf189e2d53a8c7c237a35b0a
4
+ data.tar.gz: 290dbdbcabd3c6567beb2fbc76e56eabb1be45bab3e0b4b130ee3095117a8bcb
5
5
  SHA512:
6
- metadata.gz: b53bd70db6f3014f0afda00c3c3e55f2109708f969927da20c917114eb13b62459840f66136a8504e1ecbb9d0d46f608b1fdcc686f34f8a3a69f6658c04e42f2
7
- data.tar.gz: ac0c200dd3f924c47ccc34771541c04ddd0ad0f811a7b527ecf3087e95744c633e80ecae9bd54290352eaf3f339923a8c7862d4580d60040c76f3bd051f7fbff
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.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.2)
90
+ byebug (~> 10.0)
91
91
  railties (~> 5.0)
92
92
  rake (~> 10.0)
93
93
  rspec (~> 3.0)
94
- sqlite3 (~> 1.3.11)
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
- ```
@@ -1,3 +1,3 @@
1
1
  module Unavailability
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -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.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-05 00:00:00.000000000 Z
11
+ date: 2018-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord