dev_flow 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43474932a2b9c6c828c89ae83a611fc5e68a9173
4
- data.tar.gz: 956f76c1f12bb3b382efdaa9739eb97389f93340
3
+ metadata.gz: d7791fdfde222c09b5a4515b2a57b51d9d6e2e6d
4
+ data.tar.gz: 74d52336d059d806c1c22cb55f07c51c25ebd140
5
5
  SHA512:
6
- metadata.gz: 7f81610410cfdf8741cfbaf9272d83ac7d0d62155c03e4c8fc05933d0f30c8fa3110df9d7089362dcda9d2be74f498785eabbfd7e5cb975c2e1dea934d79b0d4
7
- data.tar.gz: bdb9c134b97fddd39801790c8bf08b3a16ccbc6f24f2493de364a2ee963bb10d680408d202669f766066f557a63c35c5b1a05be34d57f094e8147b09b6bc2c46
6
+ metadata.gz: 76915eade96f68228719819fedf84f67176d564432575b588d4fcc4ec43746272a2d1b310600fe11c714862be5133efde8b01f730c7622a75e207e6b60bee1a9
7
+ data.tar.gz: 297f7d6372408f2f847950d8a6f28f2382fb9f55159313e8ab12b699c42e2768315b27bf666cc9dd02d0408705c182d43e36f8c1f2c7bf2d96be0e021ab56c44
data/bin/dw CHANGED
@@ -40,9 +40,10 @@ optparse = OptionParser.new do |opts|
40
40
  options[:local_config] = lc
41
41
  end
42
42
 
43
+ options[:members_file] = '../members.yml' if File.exists? ('../members.yml')
43
44
  options[:members_file] = 'members.yml' if File.exists? ('members.yml')
44
45
  options[:members_file] = 'config/members.yml' if File.exists? ('config/members.yml')
45
- options[:members_file] = '../members.yml' if File.exists? ('../members.yml')
46
+
46
47
  opts.on('-m FILE', '--members_file FILE', 'use an other members file') do |mf|
47
48
  options[:members_file] = mf
48
49
  raise "the specified members file #{mf} is not exists." unless File.exists? mf
@@ -12,6 +12,8 @@ Gem::Specification.new 'dev_flow', DevFlow::VERSION do |s|
12
12
  s.test_files = Dir.glob("{spec,test}/**/*.rb")
13
13
  s.rdoc_options = %w[--line-numbers --inline-source --title DevFlow --main README.rdoc --encoding=UTF-8]
14
14
 
15
- s.add_dependency 'term-ansicolor' # for colorful command line display
15
+ s.add_dependency 'term-ansicolor', '~> 1.3' # for colorful command line display
16
+ s.add_dependency 'erubis', '~> 2.7'
16
17
  s.add_development_dependency 'rspec', '~> 2.5'
17
18
  end
19
+
@@ -44,7 +44,7 @@ module DevFlow
44
44
  tpl_dir = File.expand_path(File.dirname(__FILE__) + "/../../../templates")
45
45
  FileUtils.cp_r "#{tpl_dir}/css", docs
46
46
  FileUtils.cp_r "#{tpl_dir}/js", docs
47
-
47
+
48
48
  wfh = File.open(html_file, "w:utf-8")
49
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)
50
50
  wfh.close
@@ -53,7 +53,7 @@ module DevFlow
53
53
  if sync?
54
54
  `git add .`
55
55
  `git commit -am 'update Gantt chart'`
56
- `git push #{@config["git_remote"]} develop`
56
+ `git push #{@config["git_remote"]} develop`
57
57
  end
58
58
  end
59
59
 
@@ -1,5 +1,5 @@
1
1
  module DevFlow
2
- # a road map represents a list of tasks
2
+ ## a road map represents a list of tasks
3
3
  class RoadMap
4
4
  attr_accessor :file, :config, :tasks,
5
5
  :branch_tasks, # branch name to task hash
@@ -17,7 +17,7 @@ module DevFlow
17
17
  def last_task
18
18
  @tasks.last
19
19
  end
20
-
20
+
21
21
  def title
22
22
  @config["title"]
23
23
  end
@@ -42,7 +42,7 @@ module DevFlow
42
42
  in_header += 1
43
43
  next
44
44
  end
45
-
45
+
46
46
  # before any task defined, parse line begin with % as head field:
47
47
  if in_header == 1 and @tasks.size == 0
48
48
  head_part += line
@@ -50,7 +50,7 @@ module DevFlow
50
50
 
51
51
  if /^\s*\[(?<plus_>[\+\s]+)\]\s(?<contents_>.+)/ =~ line
52
52
  if @tasks.size == 0 and head_part.size > 0
53
- hhash = YAML.load(head_part)
53
+ hhash = YAML.load(head_part)
54
54
  members = @config["members"] || {}
55
55
  members.merge!(hhash["members"]) if hhash["members"] and hhash["members"].is_a?(Hash)
56
56
  @config = @config.merge hhash
@@ -119,7 +119,7 @@ module DevFlow
119
119
  com_date = DateTime.now.strftime("%m/%d") if DateTime.now.year == @config["year"]
120
120
  progress = com_date
121
121
  end
122
-
122
+
123
123
  new_line = line
124
124
  if /(?<resource_>\@[a-z\@\;]+)(\:[PD\d\/]+)?/ =~ line
125
125
  new_line.gsub!(/(?<resource_>\@[a-z\@\;]+)(\:[PD\d\/]+)?/, resource_ + ":" + progress.to_s)
@@ -1,3 +1,3 @@
1
1
  module DevFlow
2
- VERSION = '0.6.1'
2
+ VERSION = '0.6.2'
3
3
  end
metadata CHANGED
@@ -1,29 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev_flow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Huang Wei
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-29 00:00:00.000000000 Z
11
+ date: 2015-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: term-ansicolor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: erubis
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.7'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
25
39
  - !ruby/object:Gem::Version
26
- version: '0'
40
+ version: '2.7'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rspec
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -112,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
126
  version: '0'
113
127
  requirements: []
114
128
  rubyforge_project:
115
- rubygems_version: 2.2.2
129
+ rubygems_version: 2.4.6
116
130
  signing_key:
117
131
  specification_version: 4
118
132
  summary: a bundle of tools for ROADMAP/git based development flow control.
@@ -123,3 +137,4 @@ test_files:
123
137
  - spec/spec_helper.rb
124
138
  - spec/task_spec.rb
125
139
  - spec/version_spec.rb
140
+ has_rdoc: