woody-decorators 12.1.2 → 12.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/woody/decorators.rb +1 -1
- data/lib/woody/decorators/brief.rb +3 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 07d08c238986c48c196af06b830d52fba65150b6
|
4
|
+
data.tar.gz: 146c853bbe853193c1abd9e74c4bff592dff5508
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fa401de75b1326e1054f47af4339120773e5efab6354c4a3dc2f709963eeeecc1d4e70888ea3140de657bee6552c6356acaea967c760eca08e58e7befd27a25
|
7
|
+
data.tar.gz: fabb77def65b88ad635bc9941dc682ff602326b80f2044ab01551755c7d5263ffdcaaab7c310fb1af79354369910a07700e78ba4b479115cbb18c95badb21f5f
|
data/lib/woody/decorators.rb
CHANGED
@@ -65,8 +65,7 @@ module Woody
|
|
65
65
|
end
|
66
66
|
|
67
67
|
def creator_seats
|
68
|
-
|
69
|
-
r ? r.creator_seats : 0
|
68
|
+
@model.number_of_creators
|
70
69
|
end
|
71
70
|
|
72
71
|
def draft?
|
@@ -132,13 +131,11 @@ module Woody
|
|
132
131
|
end
|
133
132
|
|
134
133
|
def time_reward
|
135
|
-
|
136
|
-
r ? r.time_payment : 0
|
134
|
+
@model.time_payment_per_creator
|
137
135
|
end
|
138
136
|
|
139
137
|
def time_reward_pool
|
140
|
-
|
141
|
-
r ? (r.time_payment * r.creator_seats) : 0
|
138
|
+
time_reward == nil || creator_seats == nil ? 0 : time_reward * creator_seats
|
142
139
|
end
|
143
140
|
|
144
141
|
def title(truncate: false, size: 15)
|
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: 12.
|
4
|
+
version: 12.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -207,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
207
207
|
version: '0'
|
208
208
|
requirements: []
|
209
209
|
rubyforge_project:
|
210
|
-
rubygems_version: 2.
|
210
|
+
rubygems_version: 2.6.11
|
211
211
|
signing_key:
|
212
212
|
specification_version: 4
|
213
213
|
summary: ''
|