dev_flow 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module DevFlow
2
- VERSION = '0.5.3'
2
+ VERSION = '0.5.4'
3
3
  end
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.3
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-26 00:00:00.000000000 Z
12
+ date: 2013-05-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: term-ansicolor