woody-decorators 12.1.0 → 12.1.1
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/brief.rb +3 -9
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a5f985211ed28ec6973a598754627667ee91d51
|
4
|
+
data.tar.gz: 21973360ff1ba6dc871e5f5a21cf4e9e19397938
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22f481e034d3291ae26f32252d8a38f72d5f55912e28d832813847dedc29957cbb650677f5d35e9adec07c354e1ecca8ae79930e297611b19189159c21e80040
|
7
|
+
data.tar.gz: f265c8a68edbf028617eebf07493fab5fce6441b553e856f54703b8098966a0cfa937e0bbb3331360dd3d455afae5a5a314e1558005aa4fbbcfb9ca5b86670d2
|
data/lib/woody/decorators.rb
CHANGED
@@ -26,15 +26,9 @@ module Woody
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def brand_status
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
return 'Live' if is_live?
|
33
|
-
purchased_videos > 0 ? 'Complete' : 'Video Review'
|
34
|
-
when 'vidsy', 'squad'
|
35
|
-
return 'In Development' if @model.status == 'draft'
|
36
|
-
return 'Live'
|
37
|
-
end
|
29
|
+
return 'In Development' if @model.status == 'draft' || @model.end_date.nil?
|
30
|
+
return 'Live' if is_live?
|
31
|
+
purchased_videos > 0 ? 'Complete' : 'Video Review'
|
38
32
|
end
|
39
33
|
|
40
34
|
def brand_status_identifier
|
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.
|
4
|
+
version: 12.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-21 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.5.2
|
210
|
+
rubygems_version: 2.5.2.3
|
211
211
|
signing_key:
|
212
212
|
specification_version: 4
|
213
213
|
summary: ''
|