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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: c07ea21409c8a207d3af94d0e0987a0407070223a058a469532cf60b81420531
4
- data.tar.gz: e59f96610935a502f604294cb5d2a5b121bfbbad6a6ba8636a7ecb55b2d5c553
2
+ SHA1:
3
+ metadata.gz: 07d08c238986c48c196af06b830d52fba65150b6
4
+ data.tar.gz: 146c853bbe853193c1abd9e74c4bff592dff5508
5
5
  SHA512:
6
- metadata.gz: c47c712464370f5fdbe124c98bad383fb9aa8ec79da010e6e599b3d8ce785e2b2b171c0474166b75f37f52c791c53b59d51dd8baddc05407ea7497e2f5477530
7
- data.tar.gz: 2e9e6f30c57e6742e68c9b2b5cfd930f778a99ff8c2fa3c467677076a82043fc82ab2125b105bac4cc3e39d0f8de9da1ed667328c97109b1e8cd99149446699a
6
+ metadata.gz: 7fa401de75b1326e1054f47af4339120773e5efab6354c4a3dc2f709963eeeecc1d4e70888ea3140de657bee6552c6356acaea967c760eca08e58e7befd27a25
7
+ data.tar.gz: fabb77def65b88ad635bc9941dc682ff602326b80f2044ab01551755c7d5263ffdcaaab7c310fb1af79354369910a07700e78ba4b479115cbb18c95badb21f5f
@@ -1,5 +1,5 @@
1
1
  module Woody
2
2
  module Decorators
3
- VERSION = '12.1.2'.freeze
3
+ VERSION = '12.2.0'.freeze
4
4
  end
5
5
  end
@@ -65,8 +65,7 @@ module Woody
65
65
  end
66
66
 
67
67
  def creator_seats
68
- r = @model.rewards
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
- r = @model.rewards
136
- r ? r.time_payment : 0
134
+ @model.time_payment_per_creator
137
135
  end
138
136
 
139
137
  def time_reward_pool
140
- r = @model.rewards
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.1.2
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: 2018-11-21 00:00:00.000000000 Z
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.7.6
210
+ rubygems_version: 2.6.11
211
211
  signing_key:
212
212
  specification_version: 4
213
213
  summary: ''