maia 0.0.3 → 0.0.4
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 +8 -8
- data/app/controllers/concerns/maia/controller.rb +10 -4
- data/lib/maia/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmJjNjA4NDhmYTE0YjI2OWY0NTQ5NjNjNmRkNmM4NjkxNmNkYjhiNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDFiNzMzNmM5MDllOThjMTQ2NmI0Y2Q5OTY3MzNiZDlkMzExOTIzMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzJlOWYwNzM1MjYwNDAxZjgxMjlkMTYyMjcyNzhiNjk1OGE5Nzk5NmQ2N2U4
|
10
|
+
MGIxYzY0OTJiZTJmYjM0YzI5MDViODExOGU4ZjY4MjY5ZmMyMGM0MmQ1N2Q4
|
11
|
+
NThhMTYzMzI5YTE0ODkwM2UxNzFkYzUzMDZkMzExNWMwODM0YmQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmFlYjU4OWNhYmU1YjczMTJkZTAxMmE4NWM0NGE3MzMyZDBlMzFmMGQwZjhh
|
14
|
+
ODg5MWEzYzI0YTg3OTAxOGFkYzliNTdhZjY2MTIyNTQyYjcwOWUyZGVlMjU2
|
15
|
+
NmNiMjBkYzEyN2ZhN2FiZmQ3ZDJiOGIxODRlNmIxY2JhZTZiNzM=
|
@@ -13,13 +13,19 @@ module Maia
|
|
13
13
|
respond_with @device
|
14
14
|
end
|
15
15
|
|
16
|
+
def destroy
|
17
|
+
@device = find_device params[:id]
|
18
|
+
@device.destroy
|
19
|
+
respond_with @device
|
20
|
+
end
|
21
|
+
|
16
22
|
private
|
17
|
-
def device_exists?
|
18
|
-
current_user.devices.exists? token:
|
23
|
+
def device_exists?(token = params[:device][:token])
|
24
|
+
current_user.devices.exists? token: token
|
19
25
|
end
|
20
26
|
|
21
|
-
def find_device
|
22
|
-
current_user.devices.find_by token:
|
27
|
+
def find_device(token = params[:device][:token])
|
28
|
+
current_user.devices.find_by token: token
|
23
29
|
end
|
24
30
|
|
25
31
|
def update_token_expiration(device)
|
data/lib/maia/version.rb
CHANGED
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: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Logan Serman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|