devise_multiple_token_auth 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0652e7b27d19beac62f50003596ea4d5e9ac2578
4
- data.tar.gz: fd1aaeee214de807e0cc024fdde86be78d59e06a
3
+ metadata.gz: 6cca55cb2747d081ac95812600ef98c9ee21be3b
4
+ data.tar.gz: bb7d9c60ea3f07bc61b5d0d7b16cf93830501255
5
5
  SHA512:
6
- metadata.gz: 29c9332183223550bfac7525ad9dadc27583b857be2687a154ac0992bb39f2b963e9eb07a4649035597b7063b3fdf9d73dd29d668fdfe9349d0dfea3e96833dd
7
- data.tar.gz: 43fcaf005241af12ed57fc59dfb61c3dc158e0cba24f21e3200597681433b69e3d9231a5e9d5d7c5f4061ce24378c8430d56eb40319c996befcbba9c39ffaa8e
6
+ metadata.gz: ec4e29c955d6aa160759ef45b1b703332b667c311596fbdb9e8fef49b2b45614f99a69275d3ae1cc3b126c0dd4d6ab013cc96cc5f59de6a343fb6b7e5eea22b4
7
+ data.tar.gz: dfc26f32f60c7e6a4af43a3f538e488107ae040dc000913e612811f1aa50f9c62abaaddc54f858e91dd60cb1a0ea365a7b1d584fa90806f3bd049c86724c1e35
@@ -2,6 +2,7 @@ class DeviseMultipleTokenAuth::Device < ActiveRecord::Base
2
2
  belongs_to :user
3
3
 
4
4
  scope :expired, -> {where("expires_at < ?",Time.now)}
5
+ scope :with_push_tokens, -> {where("push_token IS NOT NULL")}
5
6
 
6
7
  def self.destroy_expired
7
8
  DeviseMultipleTokenAuth::Device.expired.destroy_all
@@ -1,3 +1,3 @@
1
1
  module DeviseMultipleTokenAuth
2
- VERSION = "0.0.18"
2
+ VERSION = "0.0.19"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_multiple_token_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Juncker