woody-decorators 7.3.0 → 7.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/woody/decorators/user.rb +7 -0
- data/lib/woody/decorators.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64f4534418a1069d51a3d2e8c9cca631338234bc
|
4
|
+
data.tar.gz: 2fd339f0d9740a47ba3abd525f894d87d6ca3e2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 436163cc85485e3ab945fb7d7594466c71b0bd12f91c1d2ddf03dbbb1f115b778904e47eb525387378617409eb16bce2837858ffbcaeb45146597e21fb838c41
|
7
|
+
data.tar.gz: 5c8cd722746c79d53cee5f951f064c405d6abf8c5b21b56813321ce145aa82f9bf2566eb8eeffa95d0c6ec5bca5581eb2eabbe3cd2e678ff5edee9947d1f9caa
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'woody/decorators/base'
|
2
|
+
require 'uri'
|
2
3
|
|
3
4
|
module Woody
|
4
5
|
module Decorators
|
@@ -36,6 +37,12 @@ module Woody
|
|
36
37
|
].join(' ')
|
37
38
|
end
|
38
39
|
|
40
|
+
def short_portfolio
|
41
|
+
URI.parse(@model.portfolio).host.downcase
|
42
|
+
rescue URI::InvalidURIError
|
43
|
+
'...'
|
44
|
+
end
|
45
|
+
|
39
46
|
def id
|
40
47
|
@model.auth0_id
|
41
48
|
end
|
data/lib/woody/decorators.rb
CHANGED