dev_flow 0.3.1 → 0.4.0
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.
- data/bin/dw +7 -1
- data/lib/dev_flow/app.rb +1 -3
- data/lib/dev_flow/commands/clean.rb +0 -0
- data/lib/dev_flow/commands/gantt.rb +51 -0
- data/lib/dev_flow/roadmap.rb +1 -1
- data/lib/dev_flow/task_js.rb +71 -0
- data/lib/dev_flow/version.rb +1 -1
- data/lib/dev_flow.rb +1 -0
- data/tags +0 -0
- data/templates/css/jsgantt.css +53 -0
- data/templates/js/jsgantt.js +1681 -0
- data/templates/jsgantt.html.erb +50 -0
- metadata +9 -3
@@ -0,0 +1,50 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
5
|
+
<link rel="stylesheet" type="text/css" href="./css/jsgantt.css" />
|
6
|
+
<script language="javascript" src="./js/jsgantt.js"></script>
|
7
|
+
<title>Gantt Chart | <%= rm.title %></title>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<h2><%= rm.title %>
|
11
|
+
<% if rm.file %>
|
12
|
+
<% unless rm.file.match(/ROADMAP$/) %> (<span style="color: #999999"><%= rm.file.gsub(/^.*ROADMAP\_/, "ROADMAP_") %></span>) <% end %>
|
13
|
+
<% end %>
|
14
|
+
</h2>
|
15
|
+
|
16
|
+
<div style="position:relative" class="gantt" id="GanttChartDIV"></div>
|
17
|
+
<script>
|
18
|
+
var g = new JSGantt.GanttChart('g',document.getElementById('GanttChartDIV'), 'day');
|
19
|
+
g.setShowRes(1); // Show/Hide Responsible (0/1)
|
20
|
+
g.setShowDur(1); // Show/Hide Duration (0/1)
|
21
|
+
g.setShowComp(0); //
|
22
|
+
g.setCaptionType('Caption'); // Set to Show Caption
|
23
|
+
g.setShowStartDate(0); // Show/Hide Start Date(0/1)
|
24
|
+
g.setShowEndDate(0); // Show/Hide End Date(0/1)
|
25
|
+
//g.setDateDisplayFormat('yyyy-mm-dd') // Set format to display dates ('mm/dd/yyyy', 'dd/mm/yyyy', 'yyyy-mm-dd')
|
26
|
+
g.setFormatArr("day","week","month") // Set format options (up to 4 : "minute","hour","day","week","month","quarter")
|
27
|
+
|
28
|
+
if( g ) {
|
29
|
+
<% rm.tasks.each do |task| %>
|
30
|
+
<%= task.as_js resource %>
|
31
|
+
<% end %>
|
32
|
+
g.Draw();
|
33
|
+
g.DrawDependencies();
|
34
|
+
}
|
35
|
+
else
|
36
|
+
{
|
37
|
+
alert("not defined");
|
38
|
+
}
|
39
|
+
</script>
|
40
|
+
|
41
|
+
|
42
|
+
<% if is_roadmap %>
|
43
|
+
<h3>Recent Git Log</h3>
|
44
|
+
<pre><code>
|
45
|
+
<%= git_log %>
|
46
|
+
</code></pre>
|
47
|
+
<% end %>
|
48
|
+
|
49
|
+
</body>
|
50
|
+
</html>
|
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.
|
4
|
+
version: 0.4.0
|
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-
|
12
|
+
date: 2013-05-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: term-ansicolor
|
@@ -63,6 +63,7 @@ files:
|
|
63
63
|
- lib/dev_flow/commands/clean.rb
|
64
64
|
- lib/dev_flow/commands/close.rb
|
65
65
|
- lib/dev_flow/commands/complete.rb
|
66
|
+
- lib/dev_flow/commands/gantt.rb
|
66
67
|
- lib/dev_flow/commands/info.rb
|
67
68
|
- lib/dev_flow/commands/init.rb
|
68
69
|
- lib/dev_flow/commands/progress.rb
|
@@ -73,6 +74,7 @@ files:
|
|
73
74
|
- lib/dev_flow/roadmap.rb
|
74
75
|
- lib/dev_flow/task.rb
|
75
76
|
- lib/dev_flow/task_console.rb
|
77
|
+
- lib/dev_flow/task_js.rb
|
76
78
|
- lib/dev_flow/version.rb
|
77
79
|
- spec/app_spec.rb
|
78
80
|
- spec/date_name_spec.rb
|
@@ -81,6 +83,9 @@ files:
|
|
81
83
|
- spec/task_spec.rb
|
82
84
|
- spec/version_spec.rb
|
83
85
|
- tags
|
86
|
+
- templates/css/jsgantt.css
|
87
|
+
- templates/js/jsgantt.js
|
88
|
+
- templates/jsgantt.html.erb
|
84
89
|
homepage: https://github.com/huangw/dev_flow-gem
|
85
90
|
licenses: []
|
86
91
|
post_install_message:
|
@@ -108,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
113
|
version: '0'
|
109
114
|
requirements: []
|
110
115
|
rubyforge_project:
|
111
|
-
rubygems_version: 1.8.
|
116
|
+
rubygems_version: 1.8.24
|
112
117
|
signing_key:
|
113
118
|
specification_version: 3
|
114
119
|
summary: a bundle of tools for ROADMAP/git based development flow control.
|
@@ -119,3 +124,4 @@ test_files:
|
|
119
124
|
- spec/spec_helper.rb
|
120
125
|
- spec/task_spec.rb
|
121
126
|
- spec/version_spec.rb
|
127
|
+
has_rdoc:
|