woody-decorators 2.4.1 → 2.5.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: d5ba837248243b84256adc7d8ebb722514e762aa
4
- data.tar.gz: 35ae895665ec6f1599648e682346e717f25f495b
3
+ metadata.gz: 916926f37a5e91d2bea8b35ce35228c7664a5343
4
+ data.tar.gz: add9e0ba06c1694db3a507e9d5f2f5039c2c2b89
5
5
  SHA512:
6
- metadata.gz: 61458a1d1cb1ba8ac550ad8b343f54342541ee023ed528a8a08d3d88d3d14579d9dd435e53425e29f7e2f75bcda3e114d4960148a86e7953818f60bdce9198a2
7
- data.tar.gz: 4f30f50ceba87ac4ebca72c330c3be3ba05669d34cb347645c1ff4f1ef541f82791d585ae8225447751779892220179c4a3f29cf38d87f489549e8e9bdc5bd0f
6
+ metadata.gz: b19af240f1440f3f70b4ef25b44aa96d2ec3e96235cd21d020993ee530827bbc9840d612d20635bca707ba17549c033fdb6c1a233e3cb6b6de9756f480b68df6
7
+ data.tar.gz: 836688605591d42db75e1c5d4614e8832ff711126d84b068c4c4b2682d6a631ecf69c8e9be2d5222f49687e428f9ecd67c09e0fd9d486e2bec65e8bd0185a786
@@ -1,5 +1,5 @@
1
1
  module Woody
2
2
  module Decorators
3
- VERSION = "2.4.1".freeze
3
+ VERSION = "2.5.0".freeze
4
4
  end
5
5
  end
@@ -32,6 +32,10 @@ module Woody
32
32
  !@model.nil?
33
33
  end
34
34
 
35
+ def image_exists?
36
+ @model.image_exists
37
+ end
38
+
35
39
  def reward_total
36
40
  @model.rewards.inject(0) do |total, reward|
37
41
  total + (reward.quantity * reward.amount)
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: 2.4.1
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-25 00:00:00.000000000 Z
11
+ date: 2016-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler