livebuzz-gitx 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +31 -0
- data/.rspec +2 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +6 -0
- data/Gemfile +4 -0
- data/Guardfile +8 -0
- data/LICENSE.txt +22 -0
- data/README.md +84 -0
- data/Rakefile +5 -0
- data/bin/git-buildtag +6 -0
- data/bin/git-cleanup +7 -0
- data/bin/git-integrate +6 -0
- data/bin/git-nuke +6 -0
- data/bin/git-release +6 -0
- data/bin/git-review +6 -0
- data/bin/git-reviewrequest +8 -0
- data/bin/git-share +6 -0
- data/bin/git-start +6 -0
- data/bin/git-track +6 -0
- data/bin/git-update +6 -0
- data/lib/livebuzz/gitx/cli/base_command.rb +58 -0
- data/lib/livebuzz/gitx/cli/buildtag_command.rb +41 -0
- data/lib/livebuzz/gitx/cli/cleanup_command.rb +47 -0
- data/lib/livebuzz/gitx/cli/integrate_command.rb +95 -0
- data/lib/livebuzz/gitx/cli/nuke_command.rb +64 -0
- data/lib/livebuzz/gitx/cli/release_command.rb +41 -0
- data/lib/livebuzz/gitx/cli/review_command.rb +101 -0
- data/lib/livebuzz/gitx/cli/share_command.rb +17 -0
- data/lib/livebuzz/gitx/cli/start_command.rb +39 -0
- data/lib/livebuzz/gitx/cli/track_command.rb +16 -0
- data/lib/livebuzz/gitx/cli/update_command.rb +37 -0
- data/lib/livebuzz/gitx/configuration.rb +47 -0
- data/lib/livebuzz/gitx/extensions/string.rb +12 -0
- data/lib/livebuzz/gitx/extensions/thor.rb +39 -0
- data/lib/livebuzz/gitx/github.rb +177 -0
- data/lib/livebuzz/gitx/version.rb +5 -0
- data/lib/livebuzz/gitx.rb +10 -0
- data/livebuzz-gitx.gemspec +37 -0
- data/spec/fixtures/vcr_cassettes/pull_request_does_exist_with_failure_status.yml +135 -0
- data/spec/fixtures/vcr_cassettes/pull_request_does_exist_with_success_status.yml +149 -0
- data/spec/fixtures/vcr_cassettes/pull_request_does_not_exist.yml +133 -0
- data/spec/livebuzz/gitx/cli/base_command_spec.rb +41 -0
- data/spec/livebuzz/gitx/cli/buildtag_command_spec.rb +70 -0
- data/spec/livebuzz/gitx/cli/cleanup_command_spec.rb +37 -0
- data/spec/livebuzz/gitx/cli/integrate_command_spec.rb +272 -0
- data/spec/livebuzz/gitx/cli/nuke_command_spec.rb +165 -0
- data/spec/livebuzz/gitx/cli/release_command_spec.rb +148 -0
- data/spec/livebuzz/gitx/cli/review_command_spec.rb +307 -0
- data/spec/livebuzz/gitx/cli/share_command_spec.rb +32 -0
- data/spec/livebuzz/gitx/cli/start_command_spec.rb +96 -0
- data/spec/livebuzz/gitx/cli/track_command_spec.rb +31 -0
- data/spec/livebuzz/gitx/cli/update_command_spec.rb +79 -0
- data/spec/spec_helper.rb +86 -0
- data/spec/support/global_config.rb +24 -0
- data/spec/support/home_env.rb +11 -0
- data/spec/support/matchers/meet_expectations_matcher.rb +7 -0
- data/spec/support/pry.rb +1 -0
- data/spec/support/stub_execution.rb +14 -0
- data/spec/support/timecop.rb +9 -0
- data/spec/support/vcr.rb +6 -0
- data/spec/support/webmock.rb +1 -0
- metadata +350 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
# protip to prevent execution of shell commands during testsuite
|
2
|
+
# see http://stackoverflow.com/questions/1628586/mock-system-call-in-ruby
|
3
|
+
module Kernel
|
4
|
+
def execute_with_stub(cmd)
|
5
|
+
if cmd.include?('git')
|
6
|
+
puts "WARNING: stubbing command execution within tests of command: #{cmd}", :red
|
7
|
+
else
|
8
|
+
execute_without_stub(cmd)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
alias_method :execute_without_stub, :`
|
13
|
+
alias_method :`, :execute_with_stub
|
14
|
+
end
|
data/spec/support/vcr.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'webmock/rspec'
|
metadata
ADDED
@@ -0,0 +1,350 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: livebuzz-gitx
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- LiveBuzz, forked from code by Ryan Sonnek
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-03-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rugged
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.21.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.21.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: thor
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: octokit
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.3'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.3'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: pry
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: webmock
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: timecop
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.7.0
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.7.0
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: vcr
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: guard
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: guard-rspec
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: coveralls
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: terminal-notifier
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: terminal-notifier-guard
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
description: Git eXtensions for common development workflow
|
224
|
+
email:
|
225
|
+
- rob.lambell@livebuzz.co.uk
|
226
|
+
executables:
|
227
|
+
- git-buildtag
|
228
|
+
- git-cleanup
|
229
|
+
- git-integrate
|
230
|
+
- git-nuke
|
231
|
+
- git-release
|
232
|
+
- git-review
|
233
|
+
- git-reviewrequest
|
234
|
+
- git-share
|
235
|
+
- git-start
|
236
|
+
- git-track
|
237
|
+
- git-update
|
238
|
+
extensions: []
|
239
|
+
extra_rdoc_files: []
|
240
|
+
files:
|
241
|
+
- ".gitignore"
|
242
|
+
- ".rspec"
|
243
|
+
- ".ruby-gemset"
|
244
|
+
- ".ruby-version"
|
245
|
+
- ".travis.yml"
|
246
|
+
- Gemfile
|
247
|
+
- Guardfile
|
248
|
+
- LICENSE.txt
|
249
|
+
- README.md
|
250
|
+
- Rakefile
|
251
|
+
- bin/git-buildtag
|
252
|
+
- bin/git-cleanup
|
253
|
+
- bin/git-integrate
|
254
|
+
- bin/git-nuke
|
255
|
+
- bin/git-release
|
256
|
+
- bin/git-review
|
257
|
+
- bin/git-reviewrequest
|
258
|
+
- bin/git-share
|
259
|
+
- bin/git-start
|
260
|
+
- bin/git-track
|
261
|
+
- bin/git-update
|
262
|
+
- lib/livebuzz/gitx.rb
|
263
|
+
- lib/livebuzz/gitx/cli/base_command.rb
|
264
|
+
- lib/livebuzz/gitx/cli/buildtag_command.rb
|
265
|
+
- lib/livebuzz/gitx/cli/cleanup_command.rb
|
266
|
+
- lib/livebuzz/gitx/cli/integrate_command.rb
|
267
|
+
- lib/livebuzz/gitx/cli/nuke_command.rb
|
268
|
+
- lib/livebuzz/gitx/cli/release_command.rb
|
269
|
+
- lib/livebuzz/gitx/cli/review_command.rb
|
270
|
+
- lib/livebuzz/gitx/cli/share_command.rb
|
271
|
+
- lib/livebuzz/gitx/cli/start_command.rb
|
272
|
+
- lib/livebuzz/gitx/cli/track_command.rb
|
273
|
+
- lib/livebuzz/gitx/cli/update_command.rb
|
274
|
+
- lib/livebuzz/gitx/configuration.rb
|
275
|
+
- lib/livebuzz/gitx/extensions/string.rb
|
276
|
+
- lib/livebuzz/gitx/extensions/thor.rb
|
277
|
+
- lib/livebuzz/gitx/github.rb
|
278
|
+
- lib/livebuzz/gitx/version.rb
|
279
|
+
- livebuzz-gitx.gemspec
|
280
|
+
- spec/fixtures/vcr_cassettes/pull_request_does_exist_with_failure_status.yml
|
281
|
+
- spec/fixtures/vcr_cassettes/pull_request_does_exist_with_success_status.yml
|
282
|
+
- spec/fixtures/vcr_cassettes/pull_request_does_not_exist.yml
|
283
|
+
- spec/livebuzz/gitx/cli/base_command_spec.rb
|
284
|
+
- spec/livebuzz/gitx/cli/buildtag_command_spec.rb
|
285
|
+
- spec/livebuzz/gitx/cli/cleanup_command_spec.rb
|
286
|
+
- spec/livebuzz/gitx/cli/integrate_command_spec.rb
|
287
|
+
- spec/livebuzz/gitx/cli/nuke_command_spec.rb
|
288
|
+
- spec/livebuzz/gitx/cli/release_command_spec.rb
|
289
|
+
- spec/livebuzz/gitx/cli/review_command_spec.rb
|
290
|
+
- spec/livebuzz/gitx/cli/share_command_spec.rb
|
291
|
+
- spec/livebuzz/gitx/cli/start_command_spec.rb
|
292
|
+
- spec/livebuzz/gitx/cli/track_command_spec.rb
|
293
|
+
- spec/livebuzz/gitx/cli/update_command_spec.rb
|
294
|
+
- spec/spec_helper.rb
|
295
|
+
- spec/support/global_config.rb
|
296
|
+
- spec/support/home_env.rb
|
297
|
+
- spec/support/matchers/meet_expectations_matcher.rb
|
298
|
+
- spec/support/pry.rb
|
299
|
+
- spec/support/stub_execution.rb
|
300
|
+
- spec/support/timecop.rb
|
301
|
+
- spec/support/vcr.rb
|
302
|
+
- spec/support/webmock.rb
|
303
|
+
homepage: ''
|
304
|
+
licenses:
|
305
|
+
- MIT
|
306
|
+
metadata: {}
|
307
|
+
post_install_message:
|
308
|
+
rdoc_options: []
|
309
|
+
require_paths:
|
310
|
+
- lib
|
311
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
312
|
+
requirements:
|
313
|
+
- - ">="
|
314
|
+
- !ruby/object:Gem::Version
|
315
|
+
version: '0'
|
316
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
317
|
+
requirements:
|
318
|
+
- - ">="
|
319
|
+
- !ruby/object:Gem::Version
|
320
|
+
version: '0'
|
321
|
+
requirements: []
|
322
|
+
rubyforge_project:
|
323
|
+
rubygems_version: 2.4.5
|
324
|
+
signing_key:
|
325
|
+
specification_version: 4
|
326
|
+
summary: Utility scripts for Git to increase productivity for common operations
|
327
|
+
test_files:
|
328
|
+
- spec/fixtures/vcr_cassettes/pull_request_does_exist_with_failure_status.yml
|
329
|
+
- spec/fixtures/vcr_cassettes/pull_request_does_exist_with_success_status.yml
|
330
|
+
- spec/fixtures/vcr_cassettes/pull_request_does_not_exist.yml
|
331
|
+
- spec/livebuzz/gitx/cli/base_command_spec.rb
|
332
|
+
- spec/livebuzz/gitx/cli/buildtag_command_spec.rb
|
333
|
+
- spec/livebuzz/gitx/cli/cleanup_command_spec.rb
|
334
|
+
- spec/livebuzz/gitx/cli/integrate_command_spec.rb
|
335
|
+
- spec/livebuzz/gitx/cli/nuke_command_spec.rb
|
336
|
+
- spec/livebuzz/gitx/cli/release_command_spec.rb
|
337
|
+
- spec/livebuzz/gitx/cli/review_command_spec.rb
|
338
|
+
- spec/livebuzz/gitx/cli/share_command_spec.rb
|
339
|
+
- spec/livebuzz/gitx/cli/start_command_spec.rb
|
340
|
+
- spec/livebuzz/gitx/cli/track_command_spec.rb
|
341
|
+
- spec/livebuzz/gitx/cli/update_command_spec.rb
|
342
|
+
- spec/spec_helper.rb
|
343
|
+
- spec/support/global_config.rb
|
344
|
+
- spec/support/home_env.rb
|
345
|
+
- spec/support/matchers/meet_expectations_matcher.rb
|
346
|
+
- spec/support/pry.rb
|
347
|
+
- spec/support/stub_execution.rb
|
348
|
+
- spec/support/timecop.rb
|
349
|
+
- spec/support/vcr.rb
|
350
|
+
- spec/support/webmock.rb
|