woody-decorators 4.2.0 → 4.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.rb +1 -1
- data/lib/woody/decorators/challenge.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6108426414e26796201d5ddb20bcfe7aa30c79f6
|
4
|
+
data.tar.gz: 4e070065bd712ec9d40fd26aab5071689d5cfcef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9be12d26dac3fbd506cdd7a9703e37c8cd4afd5a69ccc5a5edc356bd70f873e302a5ee56f2ea77eb6a3be33dfceded22f4d3dd93b8118e4d96d34c5a1c0e7405
|
7
|
+
data.tar.gz: 84354771b339ffca91a993fbd4e782553576f827dc22539497d71e4850f6565777fc7c389b0d4efb07cf2a1b91e42f82490ea41b36b9804029cec1f921131a46
|
data/lib/woody/decorators.rb
CHANGED
@@ -49,9 +49,11 @@ module Woody
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def reward_total
|
52
|
-
@model.rewards.
|
52
|
+
return 'SWAG 😎' if @model.rewards.empty?
|
53
|
+
t = @model.rewards.inject(0) do |total, reward|
|
53
54
|
total + (reward.quantity * reward.amount)
|
54
55
|
end
|
56
|
+
format('£%d', t)
|
55
57
|
end
|
56
58
|
|
57
59
|
def status
|
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: 4.
|
4
|
+
version: 4.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|