git-topic 0.1.5 → 0.1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +2 -4
- data/Gemfile.lock +9 -11
- data/Rakefile +17 -0
- data/VERSION.yml +5 -0
- data/bin/git-topic +37 -10
- data/git-topic.gemspec +6 -6
- data/lib/git_topic.rb +0 -2
- metadata +9 -5
- data/VERSION +0 -1
data/Gemfile
CHANGED
@@ -2,17 +2,15 @@
|
|
2
2
|
|
3
3
|
source :gemcutter
|
4
4
|
|
5
|
-
gem 'git-topic'
|
6
|
-
|
7
5
|
group :runtime do
|
8
|
-
gem 'activesupport'
|
6
|
+
gem 'activesupport', '>= 3.0.0.beta4'
|
9
7
|
gem 'trollop'
|
10
8
|
end
|
11
9
|
|
12
10
|
group :development do
|
13
11
|
gem 'jeweler'
|
14
12
|
gem 'rake'
|
15
|
-
gem 'rspec',
|
13
|
+
gem 'rspec', '>= 2.0.0.beta.16'
|
16
14
|
gem 'ZenTest'
|
17
15
|
gem 'yard'
|
18
16
|
gem 'gemcutter'
|
data/Gemfile.lock
CHANGED
@@ -2,26 +2,25 @@ GEM
|
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
4
|
ZenTest (4.3.3)
|
5
|
-
activesupport (
|
5
|
+
activesupport (3.0.0.beta4)
|
6
6
|
diff-lcs (1.1.2)
|
7
7
|
gemcutter (0.5.0)
|
8
8
|
json_pure
|
9
9
|
git (1.2.5)
|
10
|
-
git-topic (0.1.4)
|
11
10
|
jeweler (1.4.0)
|
12
11
|
gemcutter (>= 0.1.0)
|
13
12
|
git (>= 1.2.5)
|
14
13
|
rubyforge (>= 2.0.0)
|
15
14
|
json_pure (1.4.3)
|
16
15
|
rake (0.8.7)
|
17
|
-
rspec (2.0.0.beta.
|
18
|
-
rspec-core (= 2.0.0.beta.
|
19
|
-
rspec-expectations (= 2.0.0.beta.
|
20
|
-
rspec-mocks (= 2.0.0.beta.
|
21
|
-
rspec-core (2.0.0.beta.
|
22
|
-
rspec-expectations (2.0.0.beta.
|
16
|
+
rspec (2.0.0.beta.17)
|
17
|
+
rspec-core (= 2.0.0.beta.17)
|
18
|
+
rspec-expectations (= 2.0.0.beta.17)
|
19
|
+
rspec-mocks (= 2.0.0.beta.17)
|
20
|
+
rspec-core (2.0.0.beta.17)
|
21
|
+
rspec-expectations (2.0.0.beta.17)
|
23
22
|
diff-lcs (>= 1.1.2)
|
24
|
-
rspec-mocks (2.0.0.beta.
|
23
|
+
rspec-mocks (2.0.0.beta.17)
|
25
24
|
rubyforge (2.0.4)
|
26
25
|
json_pure (>= 1.1.7)
|
27
26
|
trollop (1.16.2)
|
@@ -32,9 +31,8 @@ PLATFORMS
|
|
32
31
|
|
33
32
|
DEPENDENCIES
|
34
33
|
ZenTest
|
35
|
-
activesupport
|
34
|
+
activesupport (>= 3.0.0.beta4)
|
36
35
|
gemcutter
|
37
|
-
git-topic
|
38
36
|
jeweler
|
39
37
|
rake
|
40
38
|
rspec (>= 2.0.0.beta.16)
|
data/Rakefile
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
|
1
3
|
require 'rubygems'
|
2
4
|
require 'rake'
|
3
5
|
|
@@ -62,6 +64,21 @@ rescue LoadError
|
|
62
64
|
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
63
65
|
end
|
64
66
|
|
67
|
+
|
68
|
+
desc "Write out build version. You must supply BUILD."
|
69
|
+
task 'version:write:build' do
|
70
|
+
unless ENV.has_key? 'BUILD'
|
71
|
+
abort "Must supply BUILD=<build> to write out build version number."
|
72
|
+
end
|
73
|
+
y = YAML::load_file( "VERSION.yml" )
|
74
|
+
v = {
|
75
|
+
:major => 0, :minor => 0, :patch => 0, :build => 0
|
76
|
+
}
|
77
|
+
v.merge!( y ) if y.is_a? Hash
|
78
|
+
v[ :build ] = ENV['BUILD']
|
79
|
+
File.open( "VERSION.yml", "w" ){|f| f.puts YAML::dump( v )}
|
80
|
+
end
|
81
|
+
|
65
82
|
desc "Run all specs."
|
66
83
|
task :spec do
|
67
84
|
sh "bundle exec rspec spec"
|
data/VERSION.yml
ADDED
data/bin/git-topic
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
3
|
|
4
|
+
require 'yaml'
|
5
|
+
|
4
6
|
require 'rubygems'
|
5
|
-
require 'bundler'
|
6
|
-
Bundler.setup :default, :runtime
|
7
7
|
|
8
8
|
require 'trollop'
|
9
9
|
require 'git_topic'
|
@@ -11,22 +11,33 @@ require 'git_topic'
|
|
11
11
|
|
12
12
|
module GitTopic
|
13
13
|
SubCommands = %w(work-on done status review accept reject install-aliases)
|
14
|
+
Version = lambda {
|
15
|
+
h = YAML::load_file( "#{File.dirname( __FILE__ )}/../VERSION.yml" )
|
16
|
+
if h.is_a? Hash
|
17
|
+
[h[:major], h[:minor], h[:patch], h[:build]].compact.join( "." )
|
18
|
+
end
|
19
|
+
}.call
|
20
|
+
GlobalOptKeys = [ :verbose, :help, :verbose_given, :version ]
|
14
21
|
|
15
22
|
class << self
|
16
23
|
def run
|
17
24
|
global_opts = Trollop::options do
|
18
25
|
banner "
|
26
|
+
git-topic #{Version}
|
19
27
|
Manage a topic/review workflow.
|
20
28
|
|
29
|
+
see <http://github.com/hjdivad/git-topic>
|
30
|
+
|
21
31
|
Commands are:
|
22
32
|
#{SubCommands.join( "
|
23
33
|
" )}
|
24
34
|
|
25
35
|
Global Options:
|
26
36
|
".cleanup
|
37
|
+
version Version
|
27
38
|
|
28
39
|
opt :verbose, "Verbose output, including complete traces on errors."
|
29
|
-
stop_on
|
40
|
+
stop_on SubCommands
|
30
41
|
end
|
31
42
|
|
32
43
|
cmd = ARGV.shift
|
@@ -34,24 +45,31 @@ module GitTopic
|
|
34
45
|
case cmd
|
35
46
|
when "work-on"
|
36
47
|
banner "
|
37
|
-
work-on <topic>
|
48
|
+
git work-on <topic>
|
49
|
+
git-topic work-on <topic>
|
38
50
|
|
39
51
|
Switches to a local work-in-progress (wip) branch for <topic>. The
|
40
52
|
branch (and a matching remote branch) is created if necessary.
|
41
53
|
|
42
54
|
If this is a rejected topic, work will continue from the state of
|
43
55
|
the rejected topic branch.
|
56
|
+
|
57
|
+
Options:
|
44
58
|
".cleanup
|
45
59
|
when /done(-with)?/
|
46
60
|
banner "
|
47
|
-
done
|
61
|
+
git done
|
62
|
+
git-topic done
|
48
63
|
|
49
64
|
Indicate that this topic branch is ready for review. Push to a
|
50
65
|
remote review branch and switch back to master.
|
66
|
+
|
67
|
+
Options:
|
51
68
|
".cleanup
|
52
69
|
when "status"
|
53
70
|
banner "
|
54
|
-
|
71
|
+
git st
|
72
|
+
git-topic status
|
55
73
|
|
56
74
|
Print a status, showing rejected branches to work on and branches
|
57
75
|
that can be reviewed.
|
@@ -66,28 +84,37 @@ module GitTopic
|
|
66
84
|
:default => false
|
67
85
|
when "review"
|
68
86
|
banner "
|
69
|
-
review [<topic>]
|
87
|
+
git review [<topic>]
|
88
|
+
git-topic reivew [<topic>]
|
70
89
|
|
71
90
|
Review <topic>. If <topic> is unspecified, review the oldest (by HEAD) topic.
|
91
|
+
|
92
|
+
Options:
|
72
93
|
".cleanup
|
73
94
|
when "accept"
|
74
95
|
banner "
|
75
|
-
accept
|
96
|
+
git accept
|
97
|
+
git-topic accept
|
76
98
|
|
77
99
|
Accept the current in-review topic, merging it to master and
|
78
100
|
cleaning up the remote branch. This will fail if the branch does
|
79
101
|
not merge as a fast-forward in master. If that happens, the topic
|
80
102
|
should either be rejected, or you can manually rebase.
|
103
|
+
|
104
|
+
Options:
|
81
105
|
".cleanup
|
82
106
|
when "reject"
|
83
107
|
banner "
|
84
|
-
reject
|
108
|
+
git reject
|
109
|
+
git-topic reject
|
85
110
|
|
86
111
|
Reject the current in-review topic.
|
112
|
+
|
113
|
+
Options:
|
87
114
|
".cleanup
|
88
115
|
when "install-aliases"
|
89
116
|
banner "
|
90
|
-
install-aliases
|
117
|
+
git-topic install-aliases
|
91
118
|
|
92
119
|
Install aliases to make git topic nicer to work with. The aliases are as follows:
|
93
120
|
|
data/git-topic.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{git-topic}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.6.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["David J. Hamilton"]
|
12
|
-
s.date = %q{2010-07-
|
12
|
+
s.date = %q{2010-07-14}
|
13
13
|
s.default_executable = %q{git-topic}
|
14
14
|
s.description = %q{
|
15
15
|
gem command around reviewed topic branches. Supports workflow of the form:
|
@@ -53,7 +53,7 @@ Gem::Specification.new do |s|
|
|
53
53
|
"LICENSE",
|
54
54
|
"README.rdoc",
|
55
55
|
"Rakefile",
|
56
|
-
"VERSION",
|
56
|
+
"VERSION.yml",
|
57
57
|
"autotest/discover.rb",
|
58
58
|
"bin/git-topic",
|
59
59
|
"git-topic.gemspec",
|
@@ -112,7 +112,7 @@ Gem::Specification.new do |s|
|
|
112
112
|
s.specification_version = 3
|
113
113
|
|
114
114
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
115
|
-
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
|
115
|
+
s.add_runtime_dependency(%q<activesupport>, [">= 3.0.0.beta4"])
|
116
116
|
s.add_runtime_dependency(%q<trollop>, [">= 0"])
|
117
117
|
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
118
118
|
s.add_development_dependency(%q<rake>, [">= 0"])
|
@@ -121,7 +121,7 @@ Gem::Specification.new do |s|
|
|
121
121
|
s.add_development_dependency(%q<yard>, [">= 0"])
|
122
122
|
s.add_development_dependency(%q<gemcutter>, [">= 0"])
|
123
123
|
else
|
124
|
-
s.add_dependency(%q<activesupport>, [">= 0"])
|
124
|
+
s.add_dependency(%q<activesupport>, [">= 3.0.0.beta4"])
|
125
125
|
s.add_dependency(%q<trollop>, [">= 0"])
|
126
126
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
127
127
|
s.add_dependency(%q<rake>, [">= 0"])
|
@@ -131,7 +131,7 @@ Gem::Specification.new do |s|
|
|
131
131
|
s.add_dependency(%q<gemcutter>, [">= 0"])
|
132
132
|
end
|
133
133
|
else
|
134
|
-
s.add_dependency(%q<activesupport>, [">= 0"])
|
134
|
+
s.add_dependency(%q<activesupport>, [">= 3.0.0.beta4"])
|
135
135
|
s.add_dependency(%q<trollop>, [">= 0"])
|
136
136
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
137
137
|
s.add_dependency(%q<rake>, [">= 0"])
|
data/lib/git_topic.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,9 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
|
8
|
+
- 6
|
9
|
+
- 2
|
10
|
+
version: 0.1.6.2
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- David J. Hamilton
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-07-
|
18
|
+
date: 2010-07-14 00:00:00 -07:00
|
18
19
|
default_executable: git-topic
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
@@ -25,8 +26,11 @@ dependencies:
|
|
25
26
|
- - ">="
|
26
27
|
- !ruby/object:Gem::Version
|
27
28
|
segments:
|
29
|
+
- 3
|
28
30
|
- 0
|
29
|
-
|
31
|
+
- 0
|
32
|
+
- beta4
|
33
|
+
version: 3.0.0.beta4
|
30
34
|
type: :runtime
|
31
35
|
prerelease: false
|
32
36
|
version_requirements: *id001
|
@@ -147,7 +151,7 @@ files:
|
|
147
151
|
- LICENSE
|
148
152
|
- README.rdoc
|
149
153
|
- Rakefile
|
150
|
-
- VERSION
|
154
|
+
- VERSION.yml
|
151
155
|
- autotest/discover.rb
|
152
156
|
- bin/git-topic
|
153
157
|
- git-topic.gemspec
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.1.5
|