ctws 0.1.7.alpha → 0.1.8.alpha
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 18d98ae978de2abf64ad9cadba41ce8ae009b4ea
|
|
4
|
+
data.tar.gz: 4d21f57fd365a1ea926b545c4755515958c01ff6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b521896ae6168fd5cab4a3a11e902e5fbe283b7db72b746f5237b7a384184ff3d40e53bf80fe42c7ff5e26f847095f95086d10818f7b55175030aaaf66fb49dd
|
|
7
|
+
data.tar.gz: 28aeba35b95f5cd8ec64ba02fd304c4e54c4fa7e9d944138fd06f133d7d2e55ca9032a15bbd2d4bd37105f7207bfbe6c96710b5768e5a434adcc6c9d70abf645
|
|
@@ -12,13 +12,13 @@ module Ctws
|
|
|
12
12
|
private
|
|
13
13
|
|
|
14
14
|
def auth_as_jsonapi auth_token
|
|
15
|
-
{
|
|
15
|
+
[{
|
|
16
16
|
type: controller_name,
|
|
17
17
|
attributes: {
|
|
18
18
|
message: Ctws::Message.authenticated_user_success,
|
|
19
19
|
auth_token: auth_token,
|
|
20
20
|
}
|
|
21
|
-
}
|
|
21
|
+
}]
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def auth_params
|
|
@@ -21,7 +21,7 @@ module Ctws
|
|
|
21
21
|
private
|
|
22
22
|
|
|
23
23
|
def user_as_jsonapi user, auth_token
|
|
24
|
-
{
|
|
24
|
+
[{
|
|
25
25
|
type: ActiveModel::Naming.param_key(Ctws.user_class),
|
|
26
26
|
id: user.id,
|
|
27
27
|
attributes: {
|
|
@@ -29,7 +29,7 @@ module Ctws
|
|
|
29
29
|
auth_token: auth_token,
|
|
30
30
|
created_at: user.created_at
|
|
31
31
|
}
|
|
32
|
-
}
|
|
32
|
+
}]
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
def ctws_user_params
|
data/lib/ctws/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ctws
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.8.alpha
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Agustí B.R.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-07-
|
|
11
|
+
date: 2017-07-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|