dev_flow 0.4.1 → 0.4.2
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/lib/dev_flow/commands/gantt.rb +10 -0
- data/lib/dev_flow/version.rb +1 -1
- data/spec/spec_helper.rb +2 -0
- metadata +2 -2
@@ -34,6 +34,9 @@ module DevFlow
|
|
34
34
|
|
35
35
|
## create gantt chart from templates
|
36
36
|
def process!
|
37
|
+
error "Not on the develop trunk" unless @git.current_branch == 'develop'
|
38
|
+
# error "Only leader/moderator and supervisor can edit ROADMAP" unless i_have_power?
|
39
|
+
|
37
40
|
docs = @config[:docs]
|
38
41
|
html_file = "#{docs}/gantt.html"
|
39
42
|
FileUtils.mkdir_p "#{docs}" unless File.directory? "#{docs}"
|
@@ -45,6 +48,13 @@ module DevFlow
|
|
45
48
|
wfh = File.open(html_file, "w:utf-8")
|
46
49
|
wfh.puts Erubis::Eruby.new(File.read("#{tpl_dir}/jsgantt.html.erb")).result(:rm => @roadmap, :is_roadmap => true, :git_log => git_log, :resource => nil)
|
47
50
|
wfh.close
|
51
|
+
|
52
|
+
# update to server
|
53
|
+
if sync?
|
54
|
+
`git add .`
|
55
|
+
`git commit -am 'update Gantt chart'`
|
56
|
+
`git push #{@config["git_remote"]} develop`
|
57
|
+
end
|
48
58
|
end
|
49
59
|
|
50
60
|
end
|
data/lib/dev_flow/version.rb
CHANGED
data/spec/spec_helper.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.4.
|
4
|
+
version: 0.4.2
|
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-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: term-ansicolor
|