dev_flow 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module DevFlow
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
@@ -1,5 +1,7 @@
1
1
  require 'rspec'
2
2
  require 'dev_flow'
3
+ require "term/ansicolor"
4
+ class String; include Term::ANSIColor end
3
5
 
4
6
  RSpec.configure do |config|
5
7
  config.color_enabled = true
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.1
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-16 00:00:00.000000000 Z
12
+ date: 2013-05-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: term-ansicolor