dev_flow 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZDNlM2Q4YTViNGU5OTQ0ZTE5YmM5ZTVkMWQwYjJhZmUxMzlmZmZmNw==
5
- data.tar.gz: !binary |-
6
- OTk1ZjYwYmMxOGNjMTk4ZmFiYjQ0N2QxZTI5MGI4ZWY1N2MyZWZkNA==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- MzhkYzliZWI3MmY5NjJmM2JhMTI1NTRlM2NmNjM2M2U0YWY0MmQ3NmJjZTI4
10
- MzhkOWExYzdjYjMzNGE2MGY2MjVjYWNkNDQ0Njk2YzI4ZmY1M2U2NGZjNGIz
11
- YjBmODM5ZDk0ZWJiNGMxZTQzY2Y2YjMxZTI5NWU3OTQ5MTFhOTg=
12
- data.tar.gz: !binary |-
13
- NWMwYWZjZDc0ZTM3ZDIzMjU4NDA1M2Q5OTNjODljYmI3ZTA3ZDFkMDNiMDY2
14
- NWEwYmQxNWUzMmI1MTJkMzYyZGIyYzUyNGNjOTY2ZjdmZjljZGM2Y2Y4ZThk
15
- YmEwODY3MzU5MWNmODlhNGE4MDgxMDVhYTk2OWNhOWQ3ZWVhMTU=
2
+ SHA1:
3
+ metadata.gz: 43474932a2b9c6c828c89ae83a611fc5e68a9173
4
+ data.tar.gz: 956f76c1f12bb3b382efdaa9739eb97389f93340
5
+ SHA512:
6
+ metadata.gz: 7f81610410cfdf8741cfbaf9272d83ac7d0d62155c03e4c8fc05933d0f30c8fa3110df9d7089362dcda9d2be74f498785eabbfd7e5cb975c2e1dea934d79b0d4
7
+ data.tar.gz: bdb9c134b97fddd39801790c8bf08b3a16ccbc6f24f2493de364a2ee963bb10d680408d202669f766066f557a63c35c5b1a05be34d57f094e8147b09b6bc2c46
data/bin/dw CHANGED
@@ -42,6 +42,7 @@ optparse = OptionParser.new do |opts|
42
42
 
43
43
  options[:members_file] = 'members.yml' if File.exists? ('members.yml')
44
44
  options[:members_file] = 'config/members.yml' if File.exists? ('config/members.yml')
45
+ options[:members_file] = '../members.yml' if File.exists? ('../members.yml')
45
46
  opts.on('-m FILE', '--members_file FILE', 'use an other members file') do |mf|
46
47
  options[:members_file] = mf
47
48
  raise "the specified members file #{mf} is not exists." unless File.exists? mf
data/dev_flow.gemspec CHANGED
@@ -15,4 +15,3 @@ Gem::Specification.new 'dev_flow', DevFlow::VERSION do |s|
15
15
  s.add_dependency 'term-ansicolor' # for colorful command line display
16
16
  s.add_development_dependency 'rspec', '~> 2.5'
17
17
  end
18
-
@@ -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.0'
2
+ VERSION = '0.6.1'
3
3
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev_flow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
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-02-07 00:00:00.000000000 Z
11
+ date: 2014-05-29 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
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '2.5'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.5'
41
41
  description: dev_flow is a bundle of tools for ROADMAP/git based development flow
@@ -91,28 +91,28 @@ licenses: []
91
91
  metadata: {}
92
92
  post_install_message:
93
93
  rdoc_options:
94
- - --line-numbers
95
- - --inline-source
96
- - --title
94
+ - "--line-numbers"
95
+ - "--inline-source"
96
+ - "--title"
97
97
  - DevFlow
98
- - --main
98
+ - "--main"
99
99
  - README.rdoc
100
- - --encoding=UTF-8
100
+ - "--encoding=UTF-8"
101
101
  require_paths:
102
102
  - lib
103
103
  required_ruby_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - ! '>='
105
+ - - ">="
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - ! '>='
110
+ - - ">="
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.0.6
115
+ rubygems_version: 2.2.2
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: a bundle of tools for ROADMAP/git based development flow control.