ctws 0.1.7.alpha → 0.1.8.alpha

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: 9d999a0fdeae91a6f66fff66e500e55cba37d901
4
- data.tar.gz: 49804146ff19f72da8b3ae50ad2dfcf84fb6b0dd
3
+ metadata.gz: 18d98ae978de2abf64ad9cadba41ce8ae009b4ea
4
+ data.tar.gz: 4d21f57fd365a1ea926b545c4755515958c01ff6
5
5
  SHA512:
6
- metadata.gz: 121277c534d49ef71da41a9a322b3e772d67c438a6286e285d2bfef34a635971832deacfd0366c667d950f9d2ca2bb2d69b0ef9d94f215f2fff89b82cf82c2a3
7
- data.tar.gz: 2ce36318842960dcf50d49ed38a13fa4bb1f1e1c7e55f33ff8086a193153aab51d0a19a7376e303eb5a674d31094ceddde53ad30b9a2cfb6b275050d30b480f9
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
@@ -1,3 +1,3 @@
1
1
  module Ctws
2
- VERSION = '0.1.7.alpha'
2
+ VERSION = '0.1.8.alpha'
3
3
  end
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.7.alpha
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-13 00:00:00.000000000 Z
11
+ date: 2017-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails