woody-decorators 0.11.0 → 0.11.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36b86280fbe3d84441f7c4b0e51edafb1f1d627e
4
- data.tar.gz: 30baaa67c7e571ec1b6d30ee0e0a9a8454c812ef
3
+ metadata.gz: ba13d55aab729f28b6badada387a56da0fc028d2
4
+ data.tar.gz: b3cf84152fc18c9ef048a02594a1618767bb274d
5
5
  SHA512:
6
- metadata.gz: ea384ab46dda118aadb52ac0ce16faf7da0c2efc543554675a27d93fc08e2761d085e285d82f4d771ec1d6e64853536cbc89408785a9ab43c349d8a717938bc7
7
- data.tar.gz: ed4776ddb72f58bc58d7838922aa986298448f9f76e5c68bbc52fa027c419215e32936011d54ca13fb2b29ef36cf5cee3b88e3ba85df3252a03c09be11ecb606
6
+ metadata.gz: 5b2c511ac8b470111fe1c7924173aacc27d40e4d809f2a96ff1597fefb8977b9f51626815d83a040d4b1b49fcec56a0883619f45e3f20b0c92de643dd3cf8c5c
7
+ data.tar.gz: 4a052ac13fc2442ad8d7f4ef9914472b484a70edf5c2f81f41b192814d4ed3b8154c7307a81a54296b6898af15b0096d5ab64c53c8af3f019b670aee5f9bf48b
@@ -1,5 +1,5 @@
1
1
  module Woody
2
2
  module Decorators
3
- VERSION = "0.11.0".freeze
3
+ VERSION = "0.11.1".freeze
4
4
  end
5
5
  end
@@ -3,11 +3,13 @@ require "woody/decorators/user"
3
3
  module Woody
4
4
  module Decorators
5
5
  class BrandUser < User
6
- DEFAULT_AVATARS = 1
7
-
8
6
  def avatar
9
7
  default_avatar
10
8
  end
9
+
10
+ def default_avatars
11
+ 1
12
+ end
11
13
  end
12
14
  end
13
15
  end
@@ -3,7 +3,9 @@ require "woody/decorators/user"
3
3
  module Woody
4
4
  module Decorators
5
5
  class CreatorUser < User
6
- DEFAULT_AVATARS = 5
6
+ def default_avatars
7
+ 5
8
+ end
7
9
 
8
10
  def location
9
11
  @model.location.capitalize
@@ -35,7 +35,7 @@ module Woody
35
35
  private
36
36
 
37
37
  def default_avatar
38
- r = rand(1..DEFAULT_AVATARS)
38
+ r = rand(1..default_avatars)
39
39
  format(
40
40
  "%s/%s/%s/00%d.png",
41
41
  @config.s3_domain, @config.s3_bucket, @config.s3_avatar_path, r
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: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''