maia 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjUwMmY4YjUwNzE4YmU2ZWZkNjUxNTA2MWUyZTllYTE2MTI3OTI4Nw==
4
+ NDViYjEwNDU1ZjA4MGM3NGEwZGIyODc3YjJjYjQ3MmI3MTQwOTI2OQ==
5
5
  data.tar.gz: !binary |-
6
- NGZlYzZmODgwYjAxNTQzOWU5ZDk5MWQ5NDJmNjU2ZjY4M2IyOWNkOA==
6
+ NmM0ODUwMDlhZDFjN2FhMGMxNzRhNDY2ZmFjNDIwYTNlZjdlNDcyMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjQ2ODJjNWY1NzkxMDZjY2I2MzMxMDhjYjZjM2JlMTBiZWI2M2NlN2ZjMDIx
10
- ZWJmNGEwZTUwNGEzODU3ZmEzNDQ0NDBjYjNkYzYxNmE4NmI4MDJjMWVjZDQ4
11
- MmU5ZWYxOTRmNjFlMzFiNzhkZDFmNzBmYTRmOTk3NDBmNTNhNmE=
9
+ ZTk2OWU1Y2U5N2JkYzgzODRhODEwYTMwMjQ5NGFkZGI5YjUyZDNmZGQyZDBk
10
+ NmEzMjA4ZjE0OTcxZDNiM2ZhMDBiZjA4N2I2MTNkYjBlZDJmMWI0YmJhZjE2
11
+ YTNhMzgwZjgwODhmMDkzOGNmNWY5MDllOWRlOTg4YWIwNWM0NjA=
12
12
  data.tar.gz: !binary |-
13
- N2JhMDJiMzYwNDQ3MWI1NWMyZGI1MTAyNWRjMzhjNjFiNDM0NmU4ODFkMjQz
14
- ODliOTE0NmY0OTYzNTllMjhhYzlkYzBiZDZiY2RjYjY0ZTY3ZjMxNDc1MzBl
15
- YWVkMGJmNGM2NTEzMzIyN2IzMjc3YTA1YzMxZTU2MTI1ODQ4Yzk=
13
+ YmRiOWY1NWJlOGE1NTYwYzlmNGQ3NDc5NGJmZmZhOTY1YzhjN2UyYTdkMWZh
14
+ M2I4MWE4NzM5YTU3NjI1NDBkOGM5YTIzNjFiMDlhMGY1MDY0NmEyZTBkOWQ5
15
+ YTkwMDZhNmU2NTU2NTU4YmQzZjNiNWM3NDVmYjhmYzFkOTEwODE=
@@ -5,7 +5,7 @@ module Maia
5
5
  def create
6
6
  if device_exists?
7
7
  @device = find_device
8
- update_token_expiration @device
8
+ update_device @device
9
9
  else
10
10
  @device = create_device_token
11
11
  send_dry_run_to current_user
@@ -28,7 +28,8 @@ module Maia
28
28
  current_user.devices.find_by token: token
29
29
  end
30
30
 
31
- def update_token_expiration(device)
31
+ def update_device(device)
32
+ device.attributes = permitted_params
32
33
  device.reset_token_expiry
33
34
  device.save
34
35
  end
data/lib/maia/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Maia
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maia
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
  - Logan Serman