dev_flow 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dev_flow/task_js.rb +6 -5
- data/lib/dev_flow/version.rb +1 -1
- metadata +2 -2
data/lib/dev_flow/task_js.rb
CHANGED
@@ -28,17 +28,18 @@ module DevFlow
|
|
28
28
|
hex = "FFFF00" if self.progress > 0 and self.progress < 100 # blue for working
|
29
29
|
hex = "FFD700" if start_day == today and progress == 0 # gold for must start now
|
30
30
|
hex = "FFA500" if end_day == today and self.progress < 100 # orange for master complete today
|
31
|
-
|
32
|
-
if resource_
|
33
|
-
hex = "CCCCCC" unless self.resources.include? resource_
|
34
|
-
end
|
35
|
-
|
31
|
+
|
36
32
|
hex = "008000" if self.is_completed? # green for completed
|
37
33
|
hex = "FF0000" if self.progress < 100 and today > end_day # red for not completed on time
|
38
34
|
hex = "FF0000" if self.progress == 0 and today > start_day # red for late start
|
39
35
|
hex = "EEE8AA" if self.is_deleted?
|
40
36
|
hex = "C0C0C0" if self.is_pending?
|
41
37
|
# puts hex + ":" + self.progress.to_s + ";" + DateTime.now.strftime("%Y%m%d") + ":" + self.start_date.strftime("%Y%m%d")
|
38
|
+
|
39
|
+
if resource_
|
40
|
+
hex = "CCCCCC" unless self.resources.include? resource_
|
41
|
+
end
|
42
|
+
|
42
43
|
hex
|
43
44
|
end
|
44
45
|
|
data/lib/dev_flow/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dev_flow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: term-ansicolor
|