gitmine 0.1.4.pre → 0.1.4.pre.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/gitmine.gemspec +6 -6
- data/lib/gitmine/gitmine.rb +7 -4
- metadata +7 -6
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.4.pre
|
1
|
+
0.1.4.pre.1
|
data/gitmine.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{gitmine}
|
8
|
-
s.version = "0.1.4.pre"
|
8
|
+
s.version = "0.1.4.pre.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Philippe Creux"]
|
12
|
-
s.date = %q{2010-11-
|
12
|
+
s.date = %q{2010-11-16}
|
13
13
|
s.default_executable = %q{gitmine}
|
14
14
|
s.description = %q{Git log with status of associated redmine tickets}
|
15
15
|
s.email = %q{pcreux@gmail.com}
|
@@ -49,11 +49,11 @@ Gem::Specification.new do |s|
|
|
49
49
|
s.rubygems_version = %q{1.3.7}
|
50
50
|
s.summary = %q{Git log with status of associated redmine tickets}
|
51
51
|
s.test_files = [
|
52
|
-
"spec/
|
53
|
-
"spec/
|
52
|
+
"spec/commit_msg_to_issue_id_spec.rb",
|
53
|
+
"spec/commit_spec.rb",
|
54
|
+
"spec/gitmine_spec.rb",
|
54
55
|
"spec/issue_spec.rb",
|
55
|
-
"spec/
|
56
|
-
"spec/commit_spec.rb"
|
56
|
+
"spec/spec_helper.rb"
|
57
57
|
]
|
58
58
|
|
59
59
|
if s.respond_to? :specification_version then
|
data/lib/gitmine/gitmine.rb
CHANGED
@@ -27,11 +27,14 @@ module Gitmine
|
|
27
27
|
|
28
28
|
raise "Invalid branch name. It should start with the issue number" unless issue_id
|
29
29
|
|
30
|
-
puts "
|
30
|
+
puts "Create the branch #{branch_name}"
|
31
|
+
run_cmd("git checkout -b #{branch_name}")
|
31
32
|
|
32
|
-
|
33
|
-
run_cmd("git
|
33
|
+
puts "Push it to origin"
|
34
|
+
run_cmd("git push origin #{branch_name}")
|
34
35
|
|
36
|
+
puts "Make the local branch tracking the remote"
|
37
|
+
run_cmd("git branch --set-upstream #{branch_name} origin/#{branch_name}")
|
35
38
|
|
36
39
|
puts "Adding a note to the Issue ##{issue_id}"
|
37
40
|
note = "Branch *#{branch_name}* created from #{original_branch}"
|
@@ -45,7 +48,7 @@ module Gitmine
|
|
45
48
|
|
46
49
|
def self.run_cmd(cmd)
|
47
50
|
puts cmd
|
48
|
-
system
|
51
|
+
exit! unless system(cmd)
|
49
52
|
end
|
50
53
|
end
|
51
54
|
end
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitmine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1923831963
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
9
|
- 4
|
10
10
|
- pre
|
11
|
-
|
11
|
+
- 1
|
12
|
+
version: 0.1.4.pre.1
|
12
13
|
platform: ruby
|
13
14
|
authors:
|
14
15
|
- Philippe Creux
|
@@ -16,7 +17,7 @@ autorequire:
|
|
16
17
|
bindir: bin
|
17
18
|
cert_chain: []
|
18
19
|
|
19
|
-
date: 2010-11-
|
20
|
+
date: 2010-11-16 00:00:00 -08:00
|
20
21
|
default_executable: gitmine
|
21
22
|
dependencies:
|
22
23
|
- !ruby/object:Gem::Dependency
|
@@ -133,8 +134,8 @@ signing_key:
|
|
133
134
|
specification_version: 3
|
134
135
|
summary: Git log with status of associated redmine tickets
|
135
136
|
test_files:
|
136
|
-
- spec/gitmine_spec.rb
|
137
|
-
- spec/spec_helper.rb
|
138
|
-
- spec/issue_spec.rb
|
139
137
|
- spec/commit_msg_to_issue_id_spec.rb
|
140
138
|
- spec/commit_spec.rb
|
139
|
+
- spec/gitmine_spec.rb
|
140
|
+
- spec/issue_spec.rb
|
141
|
+
- spec/spec_helper.rb
|