woody-decorators 3.0.0 → 4.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1bb25f40b3a57d527127709e8b50a8ce1faafa21
4
- data.tar.gz: 10b464d1910aeaa4e0d4c8be6c6b9d3405c6c4b9
3
+ metadata.gz: 0b3f9dba4775befa948687f87961c0afbc41f433
4
+ data.tar.gz: fba8016a63ed664582531eee9fa47468c8b97ec1
5
5
  SHA512:
6
- metadata.gz: 3aff26447d61dff8b6e8779918ecf6848eef5ecbf07dee226cf28a9e2606aef04886614303a8c202cd07f07b00585b440dd5eb88acbf485a84cab96a93f8db50
7
- data.tar.gz: 8d23027f22ad98c7c05a88305a174afd4c969cf0512f5d7e4b5355ae547f6698e46d21d9060133d3cb7e16896143f695a06e8e841bad952ae010f317ad4bdcae
6
+ metadata.gz: ee8579977ba0f6e3d5b6bf6042ce72e9fff12cce179a9c961dbea6760b618e79f80cf5ba2cdd203900e1777da9394909886ecdff931889733eb2c95e9dea1bb3
7
+ data.tar.gz: a13528cf9dbecb4e30fe4ba2619f09994de5d8ff5d9f5fef29c1850cf2fa213c77d301abb856d5bb7e9098c783e9e0493abba730d2e7f512827a86fa539da2e9
@@ -4,9 +4,14 @@ require "woody/decorators/challenge"
4
4
  module Woody
5
5
  module Decorators
6
6
  class Brand < Base
7
+ def initialize(model, config)
8
+ @config = config
9
+ super(model)
10
+ end
11
+
7
12
  def challenges
8
13
  @model.challenges.map do |c|
9
- Challenge.new(c)
14
+ Challenge.new(c, @config)
10
15
  end
11
16
  end
12
17
  end
@@ -1,5 +1,5 @@
1
1
  module Woody
2
2
  module Decorators
3
- VERSION = "3.0.0".freeze
3
+ VERSION = "4.0.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: 3.0.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''