tramway-user 2.1.2 → 2.1.2.1

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
  SHA256:
3
- metadata.gz: 4c4c3e4491f8bf09b03dd8e7d8e8f42c818aa4a89f515e0f8b640bf797986632
4
- data.tar.gz: 53d0883e613a9031541734c47006a3ae108598742137d7004ab84a99dd6c7844
3
+ metadata.gz: 65dcd579b3667528952d39244f05286c10d1ba15d7507dd0d4d0f22668b05b87
4
+ data.tar.gz: d7d91db795dbb6fb59279f061b773b13d4acfaef203a57a5011948a2f5366c76
5
5
  SHA512:
6
- metadata.gz: 46c1aca9f8b97823e7439e5aaffe5fdc146577d39cec30b659270887189bbae6c0484028d8b0887be1598330b3ea555b706208c3620eed0b8a110a034adc81c0
7
- data.tar.gz: ea30de2a287014f22da83aaba388f8de43acefc6b7cfe176f4ac6ecbb040a13863e2972b1fa17f182988f6eb3990a90325e95d496b3ab068f2a6bb32f713ed6a
6
+ metadata.gz: 9da675f04b2fff2caf9abfc760dc7d1da6b31cdf79b47a0a63f51ed5ba12b1eea2b895cd2705ed6ddb83473dfb93704c7f6accc7ea37f90eafc272b4b8d7418c
7
+ data.tar.gz: 90c37693bd15facba4ceebe8ccb6ab330398ac0d2cfc5c7eea9cddd74fc0c7502f5bbdc5350c0c42e7a29d8a25e006c0c45f4b3d227be2ba51c2d885f84b622a
@@ -11,17 +11,11 @@ class Tramway::User::UserDecorator < ::Tramway::Core::ApplicationDecorator
11
11
  end
12
12
 
13
13
  def show_attributes
14
- [:email, :first_name, :last_name, :phone, :role, :created_at, :updated_at]
14
+ %i[email first_name last_name phone role created_at updated_at]
15
15
  end
16
16
  end
17
17
 
18
- delegate :first_name, to: :object
19
- delegate :last_name, to: :object
20
- delegate :email, to: :object
21
- delegate :phone, to: :object
22
- delegate :role, to: :object
23
- delegate :created_at, to: :object
24
- delegate :updated_at, to: :object
18
+ delegate_attributes :first_name, :last_name, :email, :phone, :role, :created_at, :updated_at
25
19
 
26
20
  def name
27
21
  "#{object.first_name} #{object.last_name}"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class AddPhoneToTramwayUserUsers < ActiveRecord::Migration[5.1]
2
4
  def change
3
5
  add_column :tramway_user_users, :phone, :text
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module User
5
- VERSION = '2.1.2'
5
+ VERSION = '2.1.2.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,33 +1,33 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-user
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.2.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: 2020-02-17 00:00:00.000000000 Z
11
+ date: 2020-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.1.11
20
- - - "~>"
20
+ - - ">="
21
21
  - !ruby/object:Gem::Version
22
22
  version: 3.1.11
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ">="
27
+ - - "~>"
28
28
  - !ruby/object:Gem::Version
29
29
  version: 3.1.11
30
- - - "~>"
30
+ - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 3.1.11
33
33
  - !ruby/object:Gem::Dependency
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
- rubygems_version: 3.0.3
101
+ rubygems_version: 3.1.2
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Engine for users in your Rails app