woody-decorators 11.2.2 → 11.3.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: 39f1d608a4c0312994eae3bd40bdbff2fee818e6
4
- data.tar.gz: 5a5129911677530e56705f32728d23fd12d1acf7
3
+ metadata.gz: d40fbccc1776bd4af43c54f99acb47763a6e1e7a
4
+ data.tar.gz: b5f2f4e41ef8b4942d202879f225d91a29c8db9d
5
5
  SHA512:
6
- metadata.gz: aec7c58e29aca2ee6aae8ba787f969aa8cd5709d6175f1b93f4bde8fae7299305d35169452a5449f1a82466321f34a814291fde8c83664c3b8f29833f9bbaae7
7
- data.tar.gz: c9e33cf80432f37b2f9388c441d22968011f4feff1470ca928ff64d16cdfa7e22c41b7580deda87e3e92c1f9489d414b9c52fe13ca0a15e7d4f7ce865d957d84
6
+ metadata.gz: 288e4313e3dbc00152534c89096538baa3da7608a20834e0c935f5c7d9cb9ebaea03aefce0bdff2e63eeec3c4ca9586dd54a6b486bb41c11afaa05dc64188c5e
7
+ data.tar.gz: 336a44d33ad5bdfb230dd7e21b6bb4005c13429c8492bf1dd8320395245b04297321a218cac3202fc56cc5226127f4e79b01d304a6e6a7e9a6f082c4ed0cec7e
@@ -23,6 +23,16 @@ module Woody
23
23
  !facebook_account.nil?
24
24
  end
25
25
 
26
+ def logo_url
27
+ base_path = format(
28
+ '%s/%s/brands/logos/%s_%s',
29
+ @config.s3_domain,
30
+ @config.public_s3_bucket,
31
+ id,
32
+ @model.avatar_guid,
33
+ )
34
+ end
35
+
26
36
  def partner_accounts
27
37
  @partner_accounts = @model.partner_accounts
28
38
  end
@@ -4,7 +4,11 @@ module Woody
4
4
  module Decorators
5
5
  class BrandUser < User
6
6
  def avatar
7
- super('brands')
7
+ base_path = format(
8
+ '%s/%s/brands/avatars',
9
+ @config.s3_domain, @config.public_s3_bucket,
10
+ )
11
+ format('%s/%s_%s', base_path, id, @model.avatar_guid)
8
12
  end
9
13
  end
10
14
  end
@@ -1,5 +1,5 @@
1
1
  module Woody
2
2
  module Decorators
3
- VERSION = '11.2.2'.freeze
3
+ VERSION = '11.3.0'.freeze
4
4
  end
5
5
  end
@@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency "rake", "~> 10.0"
23
23
  spec.add_development_dependency "rspec", "~> 3.0"
24
24
  spec.add_development_dependency "timecop", "~> 0"
25
+ spec.add_development_dependency "activesupport", "5.1.1"
25
26
 
26
27
  spec.add_dependency "json", "~> 1"
27
28
  spec.add_dependency "time_diff", "~> 0"
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: 11.2.2
4
+ version: 11.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-01 00:00:00.000000000 Z
11
+ date: 2017-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: activesupport
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '='
88
+ - !ruby/object:Gem::Version
89
+ version: 5.1.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '='
95
+ - !ruby/object:Gem::Version
96
+ version: 5.1.1
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: json
85
99
  requirement: !ruby/object:Gem::Requirement