git-pivotal 0.2.1 → 0.2.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/VERSION +1 -1
- data/bin/git-chore +8 -0
- data/git-pivotal.gemspec +8 -4
- data/lib/commands/chore.rb +19 -0
- data/lib/commands/pick.rb +3 -3
- data/spec/commands/chore_spec.rb +25 -0
- metadata +53 -29
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/bin/git-chore
ADDED
data/git-pivotal.gemspec
CHANGED
@@ -5,14 +5,14 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{git-pivotal}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jeff Tucker", "Sam Stokes"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-03-11}
|
13
13
|
s.description = %q{A collection of git utilities to ease integration with Pivotal Tracker}
|
14
14
|
s.email = %q{jeff@trydionel.com}
|
15
|
-
s.executables = ["git-bug", "git-feature", "git-finish", "git-pick"]
|
15
|
+
s.executables = ["git-bug", "git-chore", "git-feature", "git-finish", "git-pick"]
|
16
16
|
s.extra_rdoc_files = [
|
17
17
|
"LICENSE"
|
18
18
|
]
|
@@ -23,12 +23,14 @@ Gem::Specification.new do |s|
|
|
23
23
|
"Rakefile",
|
24
24
|
"VERSION",
|
25
25
|
"bin/git-bug",
|
26
|
+
"bin/git-chore",
|
26
27
|
"bin/git-feature",
|
27
28
|
"bin/git-finish",
|
28
29
|
"bin/git-pick",
|
29
30
|
"git-pivotal.gemspec",
|
30
31
|
"lib/commands/base.rb",
|
31
32
|
"lib/commands/bug.rb",
|
33
|
+
"lib/commands/chore.rb",
|
32
34
|
"lib/commands/feature.rb",
|
33
35
|
"lib/commands/finish.rb",
|
34
36
|
"lib/commands/pick.rb",
|
@@ -43,6 +45,7 @@ Gem::Specification.new do |s|
|
|
43
45
|
"readme.markdown",
|
44
46
|
"spec/commands/base_spec.rb",
|
45
47
|
"spec/commands/bug_spec.rb",
|
48
|
+
"spec/commands/chore_spec.rb",
|
46
49
|
"spec/commands/feature_spec.rb",
|
47
50
|
"spec/factories.rb",
|
48
51
|
"spec/factory.rb",
|
@@ -58,11 +61,12 @@ Gem::Specification.new do |s|
|
|
58
61
|
s.homepage = %q{http://github.com/trydionel/git-pivotal}
|
59
62
|
s.rdoc_options = ["--charset=UTF-8"]
|
60
63
|
s.require_paths = ["lib"]
|
61
|
-
s.rubygems_version = %q{1.3.
|
64
|
+
s.rubygems_version = %q{1.3.6}
|
62
65
|
s.summary = %q{A collection of git utilities to ease integration with Pivotal Tracker}
|
63
66
|
s.test_files = [
|
64
67
|
"spec/commands/base_spec.rb",
|
65
68
|
"spec/commands/bug_spec.rb",
|
69
|
+
"spec/commands/chore_spec.rb",
|
66
70
|
"spec/commands/feature_spec.rb",
|
67
71
|
"spec/factories.rb",
|
68
72
|
"spec/factory.rb",
|
data/lib/commands/pick.rb
CHANGED
@@ -25,14 +25,14 @@ module Commands
|
|
25
25
|
story = project.stories.find(:conditions => { :story_type => type, :current_state => :unstarted }, :limit => 1).first
|
26
26
|
|
27
27
|
unless story
|
28
|
-
put "No
|
28
|
+
put "No #{plural_type} available!"
|
29
29
|
return 0
|
30
30
|
end
|
31
31
|
|
32
32
|
put "Story: #{story.name}"
|
33
33
|
put "URL: #{story.url}"
|
34
34
|
|
35
|
-
put "Updating
|
35
|
+
put "Updating #{type} status in Pivotal Tracker..."
|
36
36
|
if story.start!(:owned_by => options[:full_name])
|
37
37
|
|
38
38
|
suffix = branch_suffix
|
@@ -51,7 +51,7 @@ module Commands
|
|
51
51
|
|
52
52
|
return 0
|
53
53
|
else
|
54
|
-
put "Unable to mark
|
54
|
+
put "Unable to mark #{type} as started"
|
55
55
|
|
56
56
|
return 1
|
57
57
|
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'commands/chore'
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe Commands::Chore do
|
5
|
+
|
6
|
+
before(:each) do
|
7
|
+
# stub out git config requests
|
8
|
+
Commands::Chore.any_instance.stubs(:get).with { |v| v =~ /git config/ }.returns("")
|
9
|
+
|
10
|
+
@chore = Commands::Chore.new
|
11
|
+
end
|
12
|
+
|
13
|
+
it "should specify its story type" do
|
14
|
+
@chore.type.should == "chore"
|
15
|
+
end
|
16
|
+
|
17
|
+
it "should specify a plural for its story types" do
|
18
|
+
@chore.plural_type.should == "chores"
|
19
|
+
end
|
20
|
+
|
21
|
+
it "should specify its branch suffix" do
|
22
|
+
@chore.branch_suffix.should == "chore"
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-pivotal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 2
|
8
|
+
- 2
|
9
|
+
version: 0.2.2
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Jeff Tucker
|
@@ -10,73 +15,86 @@ autorequire:
|
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date: 2010-
|
18
|
+
date: 2010-03-11 00:00:00 -05:00
|
14
19
|
default_executable:
|
15
20
|
dependencies:
|
16
21
|
- !ruby/object:Gem::Dependency
|
17
22
|
name: nokogiri
|
18
|
-
|
19
|
-
|
20
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
21
25
|
requirements:
|
22
26
|
- - ">="
|
23
27
|
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 0
|
24
30
|
version: "0"
|
25
|
-
|
31
|
+
type: :runtime
|
32
|
+
version_requirements: *id001
|
26
33
|
- !ruby/object:Gem::Dependency
|
27
34
|
name: rest-client
|
28
|
-
|
29
|
-
|
30
|
-
version_requirements: !ruby/object:Gem::Requirement
|
35
|
+
prerelease: false
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
31
37
|
requirements:
|
32
38
|
- - ">="
|
33
39
|
- !ruby/object:Gem::Version
|
40
|
+
segments:
|
41
|
+
- 0
|
34
42
|
version: "0"
|
35
|
-
|
43
|
+
type: :runtime
|
44
|
+
version_requirements: *id002
|
36
45
|
- !ruby/object:Gem::Dependency
|
37
46
|
name: builder
|
38
|
-
|
39
|
-
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
47
|
+
prerelease: false
|
48
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
49
|
requirements:
|
42
50
|
- - ">="
|
43
51
|
- !ruby/object:Gem::Version
|
52
|
+
segments:
|
53
|
+
- 0
|
44
54
|
version: "0"
|
45
|
-
|
55
|
+
type: :runtime
|
56
|
+
version_requirements: *id003
|
46
57
|
- !ruby/object:Gem::Dependency
|
47
58
|
name: rspec
|
48
|
-
|
49
|
-
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
59
|
+
prerelease: false
|
60
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
51
61
|
requirements:
|
52
62
|
- - ">="
|
53
63
|
- !ruby/object:Gem::Version
|
64
|
+
segments:
|
65
|
+
- 0
|
54
66
|
version: "0"
|
55
|
-
|
67
|
+
type: :development
|
68
|
+
version_requirements: *id004
|
56
69
|
- !ruby/object:Gem::Dependency
|
57
70
|
name: rcov
|
58
|
-
|
59
|
-
|
60
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
prerelease: false
|
72
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
61
73
|
requirements:
|
62
74
|
- - ">="
|
63
75
|
- !ruby/object:Gem::Version
|
76
|
+
segments:
|
77
|
+
- 0
|
64
78
|
version: "0"
|
65
|
-
|
79
|
+
type: :development
|
80
|
+
version_requirements: *id005
|
66
81
|
- !ruby/object:Gem::Dependency
|
67
82
|
name: mocha
|
68
|
-
|
69
|
-
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
83
|
+
prerelease: false
|
84
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
71
85
|
requirements:
|
72
86
|
- - ">="
|
73
87
|
- !ruby/object:Gem::Version
|
88
|
+
segments:
|
89
|
+
- 0
|
74
90
|
version: "0"
|
75
|
-
|
91
|
+
type: :development
|
92
|
+
version_requirements: *id006
|
76
93
|
description: A collection of git utilities to ease integration with Pivotal Tracker
|
77
94
|
email: jeff@trydionel.com
|
78
95
|
executables:
|
79
96
|
- git-bug
|
97
|
+
- git-chore
|
80
98
|
- git-feature
|
81
99
|
- git-finish
|
82
100
|
- git-pick
|
@@ -91,12 +109,14 @@ files:
|
|
91
109
|
- Rakefile
|
92
110
|
- VERSION
|
93
111
|
- bin/git-bug
|
112
|
+
- bin/git-chore
|
94
113
|
- bin/git-feature
|
95
114
|
- bin/git-finish
|
96
115
|
- bin/git-pick
|
97
116
|
- git-pivotal.gemspec
|
98
117
|
- lib/commands/base.rb
|
99
118
|
- lib/commands/bug.rb
|
119
|
+
- lib/commands/chore.rb
|
100
120
|
- lib/commands/feature.rb
|
101
121
|
- lib/commands/finish.rb
|
102
122
|
- lib/commands/pick.rb
|
@@ -111,6 +131,7 @@ files:
|
|
111
131
|
- readme.markdown
|
112
132
|
- spec/commands/base_spec.rb
|
113
133
|
- spec/commands/bug_spec.rb
|
134
|
+
- spec/commands/chore_spec.rb
|
114
135
|
- spec/commands/feature_spec.rb
|
115
136
|
- spec/factories.rb
|
116
137
|
- spec/factory.rb
|
@@ -135,24 +156,27 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
135
156
|
requirements:
|
136
157
|
- - ">="
|
137
158
|
- !ruby/object:Gem::Version
|
159
|
+
segments:
|
160
|
+
- 0
|
138
161
|
version: "0"
|
139
|
-
version:
|
140
162
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
163
|
requirements:
|
142
164
|
- - ">="
|
143
165
|
- !ruby/object:Gem::Version
|
166
|
+
segments:
|
167
|
+
- 0
|
144
168
|
version: "0"
|
145
|
-
version:
|
146
169
|
requirements: []
|
147
170
|
|
148
171
|
rubyforge_project:
|
149
|
-
rubygems_version: 1.3.
|
172
|
+
rubygems_version: 1.3.6
|
150
173
|
signing_key:
|
151
174
|
specification_version: 3
|
152
175
|
summary: A collection of git utilities to ease integration with Pivotal Tracker
|
153
176
|
test_files:
|
154
177
|
- spec/commands/base_spec.rb
|
155
178
|
- spec/commands/bug_spec.rb
|
179
|
+
- spec/commands/chore_spec.rb
|
156
180
|
- spec/commands/feature_spec.rb
|
157
181
|
- spec/factories.rb
|
158
182
|
- spec/factory.rb
|