git_reflow 0.6.7 → 0.7.0

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.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +11 -9
  3. data/README.rdoc +3 -1
  4. data/bin/git-reflow +0 -11
  5. data/bin/gitreflow-common +1 -1
  6. data/git_reflow.gemspec +3 -2
  7. data/lib/git_reflow.rb +13 -60
  8. data/lib/git_reflow/commands/deliver.rb +1 -2
  9. data/lib/git_reflow/commands/start.rb +0 -6
  10. data/lib/git_reflow/config.rb +15 -14
  11. data/lib/git_reflow/git_server.rb +14 -4
  12. data/lib/git_reflow/git_server/base.rb +0 -39
  13. data/lib/git_reflow/git_server/bit_bucket.rb +15 -80
  14. data/lib/git_reflow/git_server/bit_bucket/pull_request.rb +84 -0
  15. data/lib/git_reflow/git_server/git_hub.rb +18 -75
  16. data/lib/git_reflow/git_server/git_hub/pull_request.rb +108 -0
  17. data/lib/git_reflow/git_server/pull_request.rb +97 -0
  18. data/lib/git_reflow/version.rb +1 -1
  19. data/spec/fixtures/issues/comment.json.erb +27 -0
  20. data/spec/fixtures/issues/comments.json.erb +15 -0
  21. data/spec/fixtures/pull_requests/comment.json.erb +45 -0
  22. data/spec/fixtures/pull_requests/comments.json.erb +15 -0
  23. data/spec/fixtures/pull_requests/commits.json +29 -0
  24. data/spec/fixtures/pull_requests/external_pull_request.json +145 -0
  25. data/spec/fixtures/pull_requests/pull_request.json +19 -0
  26. data/spec/fixtures/pull_requests/pull_request.json.erb +142 -0
  27. data/spec/fixtures/pull_requests/pull_requests.json +19 -0
  28. data/spec/fixtures/repositories/commit.json.erb +53 -0
  29. data/spec/fixtures/repositories/commits.json.erb +13 -0
  30. data/spec/git_reflow_spec.rb +32 -25
  31. data/spec/lib/git_reflow/config_spec.rb +22 -6
  32. data/spec/lib/git_server/bit_bucket_spec.rb +5 -34
  33. data/spec/lib/git_server/git_hub/pull_request_spec.rb +319 -0
  34. data/spec/lib/git_server/git_hub_spec.rb +17 -25
  35. data/spec/lib/git_server/pull_request_spec.rb +93 -0
  36. data/spec/support/command_line_helpers.rb +16 -1
  37. data/spec/support/fake_github.rb +128 -0
  38. data/spec/support/fixtures.rb +52 -6
  39. data/spec/support/github_helpers.rb +22 -12
  40. metadata +47 -6
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_reflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.7
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valentino Stoll
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-09-29 00:00:00.000000000 Z
13
+ date: 2015-10-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: appraisal
@@ -40,6 +40,20 @@ dependencies:
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
+ - !ruby/object:Gem::Dependency
44
+ name: chronic
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ type: :development
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
43
57
  - !ruby/object:Gem::Dependency
44
58
  name: pry-byebug
45
59
  requirement: !ruby/object:Gem::Requirement
@@ -144,14 +158,14 @@ dependencies:
144
158
  requirements:
145
159
  - - '='
146
160
  - !ruby/object:Gem::Version
147
- version: 2.12.2
161
+ version: 2.13.2
148
162
  type: :runtime
149
163
  prerelease: false
150
164
  version_requirements: !ruby/object:Gem::Requirement
151
165
  requirements:
152
166
  - - '='
153
167
  - !ruby/object:Gem::Version
154
- version: 2.12.2
168
+ version: 2.13.2
155
169
  - !ruby/object:Gem::Dependency
156
170
  name: highline
157
171
  requirement: !ruby/object:Gem::Requirement
@@ -200,14 +214,14 @@ dependencies:
200
214
  requirements:
201
215
  - - '='
202
216
  - !ruby/object:Gem::Version
203
- version: 0.12.3
217
+ version: 0.12.4
204
218
  type: :runtime
205
219
  prerelease: false
206
220
  version_requirements: !ruby/object:Gem::Requirement
207
221
  requirements:
208
222
  - - '='
209
223
  - !ruby/object:Gem::Version
210
- version: 0.12.3
224
+ version: 0.12.4
211
225
  - !ruby/object:Gem::Dependency
212
226
  name: reenhanced_bitbucket_api
213
227
  requirement: !ruby/object:Gem::Requirement
@@ -255,26 +269,41 @@ files:
255
269
  - lib/git_reflow/git_server.rb
256
270
  - lib/git_reflow/git_server/base.rb
257
271
  - lib/git_reflow/git_server/bit_bucket.rb
272
+ - lib/git_reflow/git_server/bit_bucket/pull_request.rb
258
273
  - lib/git_reflow/git_server/git_hub.rb
274
+ - lib/git_reflow/git_server/git_hub/pull_request.rb
275
+ - lib/git_reflow/git_server/pull_request.rb
259
276
  - lib/git_reflow/os_detector.rb
260
277
  - lib/git_reflow/sandbox.rb
261
278
  - lib/git_reflow/version.rb
262
279
  - spec/fixtures/git/git_config
280
+ - spec/fixtures/issues/comment.json.erb
263
281
  - spec/fixtures/issues/comments.json
282
+ - spec/fixtures/issues/comments.json.erb
283
+ - spec/fixtures/pull_requests/comment.json.erb
264
284
  - spec/fixtures/pull_requests/comments.json
285
+ - spec/fixtures/pull_requests/comments.json.erb
286
+ - spec/fixtures/pull_requests/commits.json
287
+ - spec/fixtures/pull_requests/external_pull_request.json
265
288
  - spec/fixtures/pull_requests/pull_request.json
289
+ - spec/fixtures/pull_requests/pull_request.json.erb
266
290
  - spec/fixtures/pull_requests/pull_request_exists_error.json
267
291
  - spec/fixtures/pull_requests/pull_requests.json
268
292
  - spec/fixtures/repositories/commit.json
293
+ - spec/fixtures/repositories/commit.json.erb
294
+ - spec/fixtures/repositories/commits.json.erb
269
295
  - spec/fixtures/repositories/statuses.json
270
296
  - spec/git_reflow_spec.rb
271
297
  - spec/lib/git_reflow/config_spec.rb
272
298
  - spec/lib/git_reflow/git_helpers_spec.rb
273
299
  - spec/lib/git_reflow/git_server_spec.rb
274
300
  - spec/lib/git_server/bit_bucket_spec.rb
301
+ - spec/lib/git_server/git_hub/pull_request_spec.rb
275
302
  - spec/lib/git_server/git_hub_spec.rb
303
+ - spec/lib/git_server/pull_request_spec.rb
276
304
  - spec/spec_helper.rb
277
305
  - spec/support/command_line_helpers.rb
306
+ - spec/support/fake_github.rb
278
307
  - spec/support/fixtures.rb
279
308
  - spec/support/github_helpers.rb
280
309
  - spec/support/rspec_stub_helpers.rb
@@ -313,21 +342,33 @@ specification_version: 4
313
342
  summary: A better git process
314
343
  test_files:
315
344
  - spec/fixtures/git/git_config
345
+ - spec/fixtures/issues/comment.json.erb
316
346
  - spec/fixtures/issues/comments.json
347
+ - spec/fixtures/issues/comments.json.erb
348
+ - spec/fixtures/pull_requests/comment.json.erb
317
349
  - spec/fixtures/pull_requests/comments.json
350
+ - spec/fixtures/pull_requests/comments.json.erb
351
+ - spec/fixtures/pull_requests/commits.json
352
+ - spec/fixtures/pull_requests/external_pull_request.json
318
353
  - spec/fixtures/pull_requests/pull_request.json
354
+ - spec/fixtures/pull_requests/pull_request.json.erb
319
355
  - spec/fixtures/pull_requests/pull_request_exists_error.json
320
356
  - spec/fixtures/pull_requests/pull_requests.json
321
357
  - spec/fixtures/repositories/commit.json
358
+ - spec/fixtures/repositories/commit.json.erb
359
+ - spec/fixtures/repositories/commits.json.erb
322
360
  - spec/fixtures/repositories/statuses.json
323
361
  - spec/git_reflow_spec.rb
324
362
  - spec/lib/git_reflow/config_spec.rb
325
363
  - spec/lib/git_reflow/git_helpers_spec.rb
326
364
  - spec/lib/git_reflow/git_server_spec.rb
327
365
  - spec/lib/git_server/bit_bucket_spec.rb
366
+ - spec/lib/git_server/git_hub/pull_request_spec.rb
328
367
  - spec/lib/git_server/git_hub_spec.rb
368
+ - spec/lib/git_server/pull_request_spec.rb
329
369
  - spec/spec_helper.rb
330
370
  - spec/support/command_line_helpers.rb
371
+ - spec/support/fake_github.rb
331
372
  - spec/support/fixtures.rb
332
373
  - spec/support/github_helpers.rb
333
374
  - spec/support/rspec_stub_helpers.rb