github-pivotal-flow 0.0.3 → 0.0.4

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: 6904bbb1190724ba6d161da9cb6f114b179cd078
4
- data.tar.gz: fb2de40e641e806badc7488ec11f754d08258424
3
+ metadata.gz: 9b38470cff4557c6afa68bb23f45635b62cb6fe8
4
+ data.tar.gz: e42db2d90262c0013ab7f38c3ec8d715c0c70c56
5
5
  SHA512:
6
- metadata.gz: f6cac72bf0832ac52005c74e1763918aaa15e2b5bdbc6a13dc92b55fb61afd25d7543dbac00cbedbb4c10ae4b16dc79430bbc62743d5da6e966225ddccb267ff
7
- data.tar.gz: 910860262d23343756f408e6f4a5d086d9bd50c2686eabf0a2e9a0ccc52051e356b13996eb6887a2bc6fecf7a42d71e83b8b171b70c133e5a60d6cea0f50c8f9
6
+ metadata.gz: 3242d0eeefb277fb4a59beb100e1611d865b549376beb2eb7a49011ffe5326d28bdd1e91612bb3a757c092c122709234550cb01651b6e4974f2f4a44be9b6340
7
+ data.tar.gz: 17c35d793ac6f5f3077b191c40444deff07a0e31361064caae1dc113ff9d4942011d89b982041a405d406c77483a46c52c470bfe8d1a498a0e28519347b8fa33
data/bin/git-start CHANGED
@@ -3,4 +3,4 @@ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
3
3
 
4
4
  require 'github_pivotal_flow'
5
5
 
6
- exit GithubPivotalFlow::Start.new(STDIN, STDOUT, *ARGV).run!
6
+ exit GithubPivotalFlow::Start.new(*ARGV).run!
@@ -14,7 +14,7 @@ module GithubPivotalFlow
14
14
  def initialize(*args)
15
15
  @options = {}
16
16
  args = parse_argv(*args)
17
- _, _, @options[:args] = args
17
+ @options[:args] = args
18
18
 
19
19
  @repository_root = Git.repository_root
20
20
  @configuration = Configuration.new(@options)
@@ -2,8 +2,7 @@
2
2
  module GithubPivotalFlow
3
3
  class Start < GithubPivotalFlow::Command
4
4
  def run!
5
- filter = @options[:args]
6
- puts "Filter: #{filter.inspect}"
5
+ filter = [@options[:args]].flatten.first
7
6
  #TODO: Validate the format of the filter argument
8
7
  story = Story.select_story @project, filter
9
8
  Story.pretty_print story
@@ -263,15 +263,13 @@ module GithubPivotalFlow
263
263
  def branch_prefix
264
264
  case self.story_type
265
265
  when 'feature'
266
- 'feature'
266
+ Git.get_config('gitflow.prefix.feature', :inherited)
267
267
  when 'bug'
268
- self.labels.include?('hotfix') ? 'hotfix' : 'feature'
268
+ self.labels.include?('hotfix') ? Git.get_config('gitflow.prefix.hotfix', :inherited) : Git.get_config('gitflow.prefix.feature', :inherited)
269
269
  when 'release'
270
- 'release'
271
- when 'chore'
272
- 'chore'
270
+ Git.get_config('gitflow.prefix.release', :inherited)
273
271
  else
274
- 'misc'
272
+ 'misc/'
275
273
  end
276
274
  end
277
275
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-pivotal-flow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Donald Piret