gplan 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/gplan +5 -4
  2. metadata +19 -3
data/bin/gplan CHANGED
@@ -66,19 +66,20 @@ def setup_repository
66
66
  conf_file =Dir.pwd+"/.gplan"
67
67
  if File.exists?(conf_file)
68
68
  File.open(conf_file, "r") do |f|
69
- @prod_branch = f.each_line.first.chomp
69
+ #target should be repository/branch
70
+ @target = f.each_line.first.chomp
70
71
  end
71
72
  end
72
73
  # Set the default branch if one is not set
73
- @prod_branch = "production/master" unless @prod_branch
74
- @repo = @prod_branch.split("/").first
74
+ @target = "production/master" unless @target
75
+ @repo = @target.split("/").first
75
76
  end
76
77
 
77
78
  # MAIN
78
79
 
79
80
  setup_repository
80
81
  `git fetch #{@repo}`
81
- list= `git log #{@prod_branch}..`
82
+ list= `git log #{@target}..`
82
83
 
83
84
  pb_story_ids = list.scan(PB_STORY_REGEX).flatten.uniq
84
85
  gh_pr_ids = list.scan(GH_PR_REGEX).flatten.uniq
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gplan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,24 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-14 00:00:00.000000000 Z
13
- dependencies: []
12
+ date: 2014-08-12 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: httparty
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 0.13.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 0.13.0
14
30
  description: Creates release notes from the git log and planbox
15
31
  email: jkoenig311@gmail.com
16
32
  executables: