gitcycle 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/gitcycle.gemspec +1 -1
- data/lib/gitcycle.rb +20 -9
- metadata +19 -41
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5c7f99ab182899811bef1a2ddccf6a9b17f45507
|
4
|
+
data.tar.gz: eb2e7410e4a5390cac7dc1cffbaed91f5ea3235b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b6ce77125b594682df4fb4bc5240b731e2f40cd8dc8412522db2be308a0c2def6c0f5e8a862703926a7d032fb8ef4875dec75ef35d2742e0d04a9d2f4b303998
|
7
|
+
data.tar.gz: a02cfe963226ee6b05eb6ae36d812c0cc252561dc3ef3c00f823e626cdd8d54f2f45e9bac1f0a9e0847871a87739da0a865b54e26ed44cecb62ebc271bed74c6
|
data/gitcycle.gemspec
CHANGED
data/lib/gitcycle.rb
CHANGED
@@ -24,7 +24,18 @@ class Gitcycle
|
|
24
24
|
else
|
25
25
|
"http://gitcycle.bleacherreport.com/api"
|
26
26
|
end
|
27
|
-
|
27
|
+
|
28
|
+
ERROR = {
|
29
|
+
:unrecognized_url => 1,
|
30
|
+
:could_not_find_branch => 2,
|
31
|
+
:told_not_to_merge => 3,
|
32
|
+
:cannot_qa => 4,
|
33
|
+
:conflict_when_merging => 5,
|
34
|
+
:something_went_wrong => 6,
|
35
|
+
:git_origin_not_found => 7,
|
36
|
+
:last_command_errored => 8,
|
37
|
+
}
|
38
|
+
|
28
39
|
def initialize(args=nil)
|
29
40
|
$remotes = {}
|
30
41
|
|
@@ -58,7 +69,7 @@ class Gitcycle
|
|
58
69
|
params.merge!('branch[issue_url]' => url)
|
59
70
|
elsif url
|
60
71
|
puts "Gitcycle only supports Lighthouse or Github Issue URLs.".red
|
61
|
-
exit
|
72
|
+
exit ERROR[:unrecognized_url]
|
62
73
|
elsif title
|
63
74
|
params.merge!(
|
64
75
|
'branch[name]' => title,
|
@@ -180,7 +191,7 @@ class Gitcycle
|
|
180
191
|
|
181
192
|
if errored?(output)
|
182
193
|
puts "Could not find branch #{"'#{og_remote}/#{branch}' or " if og_remote}'#{remote}/#{branch}'.\n".red
|
183
|
-
exit
|
194
|
+
exit ERROR[:could_not_find_branch]
|
184
195
|
end
|
185
196
|
end
|
186
197
|
|
@@ -378,7 +389,7 @@ class Gitcycle
|
|
378
389
|
$remotes = {}
|
379
390
|
qa('pass')
|
380
391
|
else
|
381
|
-
exit
|
392
|
+
exit ERROR[:told_not_to_merge]
|
382
393
|
end
|
383
394
|
elsif branch =~ /^qa_/
|
384
395
|
puts "\nRetrieving branch information from gitcycle.\n".green
|
@@ -718,7 +729,7 @@ class Gitcycle
|
|
718
729
|
qa_branch['branches'][range].each do |branch|
|
719
730
|
if source != branch['source']
|
720
731
|
puts "You can only QA issues based on '#{source}'\n".red
|
721
|
-
exit
|
732
|
+
exit ERROR[:cannot_qa]
|
722
733
|
end
|
723
734
|
end
|
724
735
|
|
@@ -794,7 +805,7 @@ class Gitcycle
|
|
794
805
|
get('qa_branch', 'issues' => issues, "conflict_#{type}" => issue)
|
795
806
|
|
796
807
|
puts "Type 'gitc qa resolved' when finished resolving.\n".yellow
|
797
|
-
exit
|
808
|
+
exit ERROR[:conflict_when_merging]
|
798
809
|
end
|
799
810
|
elsif type # from_qa or to_qa
|
800
811
|
branch = branches(:current => true)
|
@@ -841,7 +852,7 @@ class Gitcycle
|
|
841
852
|
puts "\nSomething went wrong :(".red
|
842
853
|
puts "\nEmail error code #{error} to wwelsh@bleacherreport.com.".yellow
|
843
854
|
puts "\nInclude a gist of your terminal output if possible.\n".yellow
|
844
|
-
exit
|
855
|
+
exit ERROR[:something_went_wrong]
|
845
856
|
else
|
846
857
|
Yajl::Parser.parse(json)
|
847
858
|
end
|
@@ -924,7 +935,7 @@ class Gitcycle
|
|
924
935
|
unless @git_url && @git_repo && @git_login
|
925
936
|
puts "\norigin entry within '.git/config' not found!".red
|
926
937
|
puts "Are you sure you are in a git repository?\n".yellow
|
927
|
-
exit
|
938
|
+
exit ERROR[:git_origin_not_found]
|
928
939
|
end
|
929
940
|
true
|
930
941
|
end
|
@@ -940,7 +951,7 @@ class Gitcycle
|
|
940
951
|
puts "Gitcycle encountered an error when running the last command:".red
|
941
952
|
puts " #{cmd}\n"
|
942
953
|
puts "Please copy this session's output and send it to gitcycle@bleacherreport.com.\n".yellow
|
943
|
-
exit
|
954
|
+
exit ERROR[:last_command_errored]
|
944
955
|
else
|
945
956
|
output
|
946
957
|
end
|
metadata
CHANGED
@@ -1,116 +1,102 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitcycle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Winton Welsh
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-21 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: cucumber
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: lighthouse
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: redis
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - '>='
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - '>='
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: rspec
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - '>='
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - '>='
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: simplecov
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - '>='
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: '0'
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- -
|
80
|
+
- - '>='
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: '0'
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: yajl-ruby
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- -
|
87
|
+
- - '>='
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: '0'
|
102
90
|
type: :development
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- -
|
94
|
+
- - '>='
|
108
95
|
- !ruby/object:Gem::Version
|
109
96
|
version: '0'
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
98
|
name: launchy
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
101
|
- - '='
|
116
102
|
- !ruby/object:Gem::Version
|
@@ -118,7 +104,6 @@ dependencies:
|
|
118
104
|
type: :runtime
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
107
|
requirements:
|
123
108
|
- - '='
|
124
109
|
- !ruby/object:Gem::Version
|
@@ -126,7 +111,6 @@ dependencies:
|
|
126
111
|
- !ruby/object:Gem::Dependency
|
127
112
|
name: yajl-ruby
|
128
113
|
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
114
|
requirements:
|
131
115
|
- - '='
|
132
116
|
- !ruby/object:Gem::Version
|
@@ -134,7 +118,6 @@ dependencies:
|
|
134
118
|
type: :runtime
|
135
119
|
prerelease: false
|
136
120
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
121
|
requirements:
|
139
122
|
- - '='
|
140
123
|
- !ruby/object:Gem::Version
|
@@ -142,7 +125,6 @@ dependencies:
|
|
142
125
|
- !ruby/object:Gem::Dependency
|
143
126
|
name: httpclient
|
144
127
|
requirement: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
128
|
requirements:
|
147
129
|
- - '='
|
148
130
|
- !ruby/object:Gem::Version
|
@@ -150,7 +132,6 @@ dependencies:
|
|
150
132
|
type: :runtime
|
151
133
|
prerelease: false
|
152
134
|
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
135
|
requirements:
|
155
136
|
- - '='
|
156
137
|
- !ruby/object:Gem::Version
|
@@ -158,7 +139,6 @@ dependencies:
|
|
158
139
|
- !ruby/object:Gem::Dependency
|
159
140
|
name: httpi
|
160
141
|
requirement: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
142
|
requirements:
|
163
143
|
- - '='
|
164
144
|
- !ruby/object:Gem::Version
|
@@ -166,7 +146,6 @@ dependencies:
|
|
166
146
|
type: :runtime
|
167
147
|
prerelease: false
|
168
148
|
version_requirements: !ruby/object:Gem::Requirement
|
169
|
-
none: false
|
170
149
|
requirements:
|
171
150
|
- - '='
|
172
151
|
- !ruby/object:Gem::Version
|
@@ -203,27 +182,26 @@ files:
|
|
203
182
|
- lib/gitcycle.rb
|
204
183
|
homepage: https://github.com/winton/gitcycle
|
205
184
|
licenses: []
|
185
|
+
metadata: {}
|
206
186
|
post_install_message:
|
207
187
|
rdoc_options: []
|
208
188
|
require_paths:
|
209
189
|
- lib
|
210
190
|
required_ruby_version: !ruby/object:Gem::Requirement
|
211
|
-
none: false
|
212
191
|
requirements:
|
213
|
-
- -
|
192
|
+
- - '>='
|
214
193
|
- !ruby/object:Gem::Version
|
215
194
|
version: '0'
|
216
195
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
|
-
none: false
|
218
196
|
requirements:
|
219
|
-
- -
|
197
|
+
- - '>='
|
220
198
|
- !ruby/object:Gem::Version
|
221
199
|
version: '0'
|
222
200
|
requirements: []
|
223
201
|
rubyforge_project:
|
224
|
-
rubygems_version:
|
202
|
+
rubygems_version: 2.0.3
|
225
203
|
signing_key:
|
226
|
-
specification_version:
|
204
|
+
specification_version: 4
|
227
205
|
summary: Tame your development cycle
|
228
206
|
test_files:
|
229
207
|
- features/branch.feature
|