tramway-user 2.2 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/decorators/tramway/user/user_decorator.rb +17 -1
- data/lib/tramway/user/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ab62e62b3c9bf621b2d5461f23067a93df16f1ce40c823ccadd8034d2c382e1
|
4
|
+
data.tar.gz: 5574c063e800d986a044d3cf3ca22d487cbb8023ed0289735526a9d5b4cf5028
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cded99e3a822949148c72f1d1d6562bbabe913c6b9a53e0abe15760a3ad970c8466e0b492e40dfdea18d97c36fafb7ffcb2c23794838e284857871bc0d5bbff8
|
7
|
+
data.tar.gz: d601f72dc7a4bf9d0f8491f10a25cd7fdea9365990cd32f2a98349e2d25d1962635730935858a81e51c0156e74944da399bcb15b7cf934148de11ed4bda9cc12
|
@@ -11,7 +11,7 @@ class Tramway::User::UserDecorator < ::Tramway::Core::ApplicationDecorator
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def show_attributes
|
14
|
-
%i[email first_name last_name phone role created_at updated_at]
|
14
|
+
%i[email first_name last_name phone role created_at updated_at credential_text]
|
15
15
|
end
|
16
16
|
|
17
17
|
if defined? Tramway::Conference
|
@@ -28,6 +28,22 @@ class Tramway::User::UserDecorator < ::Tramway::Core::ApplicationDecorator
|
|
28
28
|
def name
|
29
29
|
"#{object&.first_name} #{object&.last_name}"
|
30
30
|
end
|
31
|
+
|
32
|
+
def credential_text
|
33
|
+
content_tag(:pre) do
|
34
|
+
id = "credential_text_#{object.id}"
|
35
|
+
|
36
|
+
concat(content_tag(:span, id: id) do
|
37
|
+
text = "URL: #{ENV['PROJECT_URL']}\n"
|
38
|
+
text += "Email: #{object.email}\n"
|
39
|
+
text += "Password: "
|
40
|
+
end)
|
41
|
+
|
42
|
+
concat(content_tag(:br))
|
43
|
+
|
44
|
+
concat copy_to_clipboard id
|
45
|
+
end
|
46
|
+
end
|
31
47
|
|
32
48
|
alias title name
|
33
49
|
end
|
data/lib/tramway/user/version.rb
CHANGED
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:
|
4
|
+
version: 2.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: 2022-
|
11
|
+
date: 2022-10-04 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.
|
101
|
+
rubygems_version: 3.1.6
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: Engine for users in your Rails app
|