maia 3.0.0 → 4.0.0

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
- SHA256:
3
- metadata.gz: 0488f6eedbd5744aca88a83f2ca88ab998c344c1167763666131bf41efc2c125
4
- data.tar.gz: 447418fdd6afddf14bb3930b5f5018d682f8887ed02a0d0a44208f1e99c1bb5c
2
+ SHA1:
3
+ metadata.gz: 1f16e5e9cba3546a3653e1fd2e3f87d19fa46784
4
+ data.tar.gz: aa5f6350dd17689e8dd01c999c3f509680b73e80
5
5
  SHA512:
6
- metadata.gz: 774d0601da88c5c4691fe7fa340f3441a966c6809e0bc2aed600bea81aa77d35ff202b83bc846af8c00a3d93a82f0a2871b78f55f3a8596cdf863dea94e6427c
7
- data.tar.gz: 4b373e3f67d00fba8b924bf4f64eca9444b96341e203fae92d47cdbe03718f96c47cd9acb274ce0298528bffb63a164a72bdd999558858a5073bf4fbaa72289d
6
+ metadata.gz: 51ae47908f1ae0e3a1e0b04eb3812023a20db60276b07fa2156583b325191ea7c3231057d0f461c36832dcfd9db6d37c831b10f1a58f5e2cd304431197f4ad71
7
+ data.tar.gz: 1bbdf160cdeaefebd160966ad92c39ec18d795af55a2e0e4ec291b91e8af91dd199e0d1374cda1bea091f29f150a8f523584221c505274d12cd1ad72f9c82a9c
@@ -25,7 +25,7 @@ module Maia
25
25
  end
26
26
 
27
27
  def find_device(token = params[:device][:token])
28
- current_user.devices.find_by! token: token
28
+ current_user.devices.find_by token: token
29
29
  end
30
30
 
31
31
  def update_device(device)
@@ -10,8 +10,8 @@ module Maia
10
10
  end
11
11
 
12
12
  def enqueue(worker, devices)
13
- devices.find_in_batches(batch_size: Maia::BATCH_SIZE) do |devices|
14
- worker.perform_later devices.collect(&:token), to_h.deep_stringify_keys
13
+ devices.in_batches(of: Maia::BATCH_SIZE) do |devices|
14
+ worker.perform_later devices.pluck(:token), to_h.deep_stringify_keys
15
15
  end
16
16
  end
17
17
 
@@ -1,3 +1,3 @@
1
1
  module Maia
2
- VERSION = '3.0.0'.freeze
2
+ VERSION = '4.0.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maia
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Logan Serman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-20 00:00:00.000000000 Z
11
+ date: 2017-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,40 +16,40 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.2'
19
+ version: '5'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '5'
22
+ version: '6'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '4.2'
29
+ version: '5'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '5'
32
+ version: '6'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: activejob
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '4.2'
39
+ version: '5'
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '5'
42
+ version: '6'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: '4.2'
49
+ version: '5'
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '5'
52
+ version: '6'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: responders
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -216,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
216
  version: '0'
217
217
  requirements: []
218
218
  rubyforge_project:
219
- rubygems_version: 2.7.6
219
+ rubygems_version: 2.6.11
220
220
  signing_key:
221
221
  specification_version: 4
222
222
  summary: Manage device tokens and push messaging with Rails and FCM.