woody-decorators 7.4.0 → 7.5.0
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 +4 -4
- data/lib/woody/decorators.rb +1 -1
- data/lib/woody/decorators/creator_user.rb +8 -0
- data/lib/woody/decorators/user.rb +0 -6
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d7270e383e56b1aaf5375ec4636709eb1ad2bdc5
|
|
4
|
+
data.tar.gz: 49de6871b93bc1b5379197145b51a1796b1f54e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a71e5699de1629967cef78cc30a607d26a037311093e278e004159ef39d1b1219d191b2349603044e70104088366b7f36a143c032efce51f1e40ab3e883b7a30
|
|
7
|
+
data.tar.gz: d78771b66ac9d5b44f18581d3993a7e8f9044062909087add9bf7ceabc0a21961add5a0dde94e1433351ec5ee35250a6cf841ac9b054d666c4b7dba630d380e4
|
data/lib/woody/decorators.rb
CHANGED
|
@@ -15,6 +15,14 @@ module Woody
|
|
|
15
15
|
format('/u/%s', @model.portfolio_username)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
def short_portfolio
|
|
19
|
+
parsed_url = URI.parse(@model.portfolio)
|
|
20
|
+
return parsed_url.host.downcase if parsed_url.host
|
|
21
|
+
parsed_url.path.split('/').first
|
|
22
|
+
rescue URI::InvalidURIError
|
|
23
|
+
'...'
|
|
24
|
+
end
|
|
25
|
+
|
|
18
26
|
protected
|
|
19
27
|
|
|
20
28
|
def default_avatars
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: woody-decorators
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.
|
|
4
|
+
version: 7.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ''
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-09-
|
|
11
|
+
date: 2016-09-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|