tramway-user 1.0 → 1.0.1

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
  SHA256:
3
- metadata.gz: bd161a1ebaa9e050b73c14c89d72885994e5c9636db3b47f8d9900cd2a9bbd7d
4
- data.tar.gz: 6761c8078f2eb5cc827363d29450f5fa1f00021983d66cec281269f6c59f5dee
3
+ metadata.gz: 55a7b8be4a3acc69e6e0e78d44cfc4d21d1b3a54cfc5aa75ec6febb9c689bb39
4
+ data.tar.gz: f547e3e83264ee3d55fa3f63eedd6ae4b2864021665a2c44a5d526e6c976e569
5
5
  SHA512:
6
- metadata.gz: b7ad23a8b1f4ee39782ee4084302b4157f9363ced279330957443e0dd18b931c75194c5ec9a9c7b3aedf5596bc4dda5473f856c297a158c80ad00a8a2e27f140
7
- data.tar.gz: ca889eea417826c2e8c9d906e0307aee4dab01d7cff9d6028559718de1ce0e01ce5cc2a2eb8248e6a22a2198b73cf0f20519d75585f0265321049bdd2b7837d3
6
+ metadata.gz: 5ca5c9c1df0ba53bea807ef65472065c412200e9124b093fc928e6ed7fe47abdaf9bf35ef8bd344c4fe5797973ef262dd9caff94f56d4075212765bd3a3055dc
7
+ data.tar.gz: f1579cf1eafffb5ac7e4659710d636f2830cea8470e1b175c72e1703f595dc955f51f8487554c6bb1337d7ec0464b4a83d60beaf7d3239d90f6e9f6ce419d5f4
@@ -0,0 +1,17 @@
1
+ class Tramway::User::UserDecorator < ::Tramway::Core::ApplicationDecorator
2
+ class << self
3
+ def collections
4
+ [ :all ]
5
+ end
6
+
7
+ def list_attributes
8
+ [ :email ]
9
+ end
10
+ end
11
+
12
+ def name
13
+ "#{object.first_name} #{object.last_name}"
14
+ end
15
+
16
+ delegate :email, to: :object
17
+ end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module User
3
- VERSION = '1.0'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-user
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-21 00:00:00.000000000 Z
11
+ date: 2018-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg
@@ -70,6 +70,7 @@ files:
70
70
  - app/controllers/tramway/user/application_controller.rb
71
71
  - app/controllers/tramway/user/web/application_controller.rb
72
72
  - app/controllers/tramway/user/web/sessions_controller.rb
73
+ - app/decorators/tramway/user/user_decorator.rb
73
74
  - app/forms/tramway/user/session_form.rb
74
75
  - app/helpers/tramway/user/application_helper.rb
75
76
  - app/helpers/tramway/user/web/application_helper.rb