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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a3fa6198562f8454a8461794397b7d773d2707d
4
- data.tar.gz: 46a8a52b9331657340079ba05880582e0698ad0f
3
+ metadata.gz: 64f4534418a1069d51a3d2e8c9cca631338234bc
4
+ data.tar.gz: 2fd339f0d9740a47ba3abd525f894d87d6ca3e2c
5
5
  SHA512:
6
- metadata.gz: 49d43497edfe86276eb385f1da96e7fa8e6052edf2aa0af640f273a00e490f9352703518a94ed6aa22caa8e8e89d86cc8c342e642231e8b1e29927691c948737
7
- data.tar.gz: 6fefce2f48d8d27a3e33d79426411ab5d5002bc0f36b28be71789129d3b02120f5c527e027da233c1407327408046e9aef12d955487597b8e6cd3974024febf3
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
@@ -1,5 +1,5 @@
1
1
  module Woody
2
2
  module Decorators
3
- VERSION = '7.3.0'.freeze
3
+ VERSION = '7.4.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: woody-decorators
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.3.0
4
+ version: 7.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''