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 +4 -4
- data/lib/woody/decorators/brand.rb +10 -0
- data/lib/woody/decorators/brand_user.rb +5 -1
- data/lib/woody/decorators.rb +1 -1
- data/woody-decorators.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d40fbccc1776bd4af43c54f99acb47763a6e1e7a
|
4
|
+
data.tar.gz: b5f2f4e41ef8b4942d202879f225d91a29c8db9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/woody/decorators.rb
CHANGED
data/woody-decorators.gemspec
CHANGED
@@ -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.
|
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-
|
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
|