gitx 3.0.2.ci.213.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/gitx.gemspec +7 -5
- data/lib/gitx/cli/integrate_command.rb +1 -1
- data/lib/gitx/cli/review_command.rb +6 -6
- data/lib/gitx/cli/update_command.rb +1 -1
- data/lib/gitx/github.rb +2 -2
- data/spec/gitx/cli/integrate_command_spec.rb +2 -2
- data/spec/gitx/cli/update_command_spec.rb +2 -2
- metadata +28 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1077ebb26e155a2ddaeca39eaa8afc89a5a6cd09
|
4
|
+
data.tar.gz: eabb5c99e9bdaac5512bfca7714a245cfb8d9b1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f0b0ade0d34b6d74cb77e6a3d49be8cea9fd1dfaffaf09038f8dec08bf21509263e3251cbbb9e35380a474851a0361884af6914e32de99b3fd88c5b74b324a9
|
7
|
+
data.tar.gz: fc1c96391e0ccecc7269ae3bb752ce8693f2f8788cde9f6336b1a225a9f9048d22d298f7425e526ca0a3f275ccd9b91ef5c50f8018fc5a433c761535b95c6375
|
data/gitx.gemspec
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
1
3
|
lib = File.expand_path('../lib', __FILE__)
|
2
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
5
|
require 'gitx/version'
|
@@ -17,19 +19,19 @@ Gem::Specification.new do |spec|
|
|
17
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
20
|
spec.require_paths = ['lib']
|
19
21
|
|
20
|
-
spec.add_runtime_dependency 'octokit'
|
21
22
|
spec.add_runtime_dependency 'rugged', '~> 0.26.0'
|
22
23
|
spec.add_runtime_dependency 'thor'
|
24
|
+
spec.add_runtime_dependency 'octokit'
|
23
25
|
|
24
26
|
spec.add_development_dependency 'bundler'
|
25
|
-
spec.add_development_dependency 'coveralls'
|
26
|
-
spec.add_development_dependency 'pry'
|
27
27
|
spec.add_development_dependency 'rake'
|
28
28
|
spec.add_development_dependency 'rspec', '>= 3.0'
|
29
|
-
spec.add_development_dependency '
|
29
|
+
spec.add_development_dependency 'pry'
|
30
|
+
spec.add_development_dependency 'webmock'
|
30
31
|
spec.add_development_dependency 'timecop'
|
31
32
|
spec.add_development_dependency 'vcr'
|
32
|
-
spec.add_development_dependency '
|
33
|
+
spec.add_development_dependency 'coveralls'
|
34
|
+
spec.add_development_dependency 'rubocop'
|
33
35
|
|
34
36
|
# configure gem version for continuous integration builds
|
35
37
|
if ENV['TRAVIS_JOB_NUMBER']
|
@@ -41,7 +41,7 @@ module Gitx
|
|
41
41
|
fetch_remote_branch(integration_branch)
|
42
42
|
begin
|
43
43
|
run_git_cmd 'merge', '--no-ff', '--message', commit_message(branch, integration_branch, pull_request), branch
|
44
|
-
rescue
|
44
|
+
rescue
|
45
45
|
raise MergeError, "Merge conflict occurred. Please fix merge conflict and rerun command with --resume #{branch} flag"
|
46
46
|
end
|
47
47
|
run_git_cmd 'push', 'origin', 'HEAD'
|
@@ -9,28 +9,28 @@ module Gitx
|
|
9
9
|
include Gitx::Github
|
10
10
|
|
11
11
|
BUMP_COMMENT_PREFIX = '[gitx] review bump :tada:'.freeze
|
12
|
-
BUMP_COMMENT_FOOTER = <<-
|
12
|
+
BUMP_COMMENT_FOOTER = <<-EOS.dedent
|
13
13
|
# Bump comments should include:
|
14
14
|
# * Summary of what changed
|
15
15
|
#
|
16
16
|
# This footer will automatically be stripped from the created comment
|
17
|
-
|
17
|
+
EOS
|
18
18
|
APPROVAL_COMMENT_PREFIX = '[gitx] review approved :shipit:'.freeze
|
19
|
-
APPROVAL_COMMENT_FOOTER = <<-
|
19
|
+
APPROVAL_COMMENT_FOOTER = <<-EOS.dedent
|
20
20
|
# Approval comments can include:
|
21
21
|
# * Feedback
|
22
22
|
# * Follow-up items for after release
|
23
23
|
#
|
24
24
|
# This footer will automatically be stripped from the created comment
|
25
|
-
|
25
|
+
EOS
|
26
26
|
REJECTION_COMMENT_PREFIX = '[gitx] review rejected'.freeze
|
27
|
-
REJECTION_COMMENT_FOOTER = <<-
|
27
|
+
REJECTION_COMMENT_FOOTER = <<-EOS.dedent
|
28
28
|
# Rejection comments should include:
|
29
29
|
# * Feedback
|
30
30
|
# * Required changes before approved
|
31
31
|
#
|
32
32
|
# This footer will automatically be stripped from the created comment
|
33
|
-
|
33
|
+
EOS
|
34
34
|
|
35
35
|
desc 'review', 'Create or update a pull request on github'
|
36
36
|
method_option :title, type: :string, aliases: '-t', desc: 'pull request title'
|
data/lib/gitx/github.rb
CHANGED
@@ -7,7 +7,7 @@ module Gitx
|
|
7
7
|
GLOBAL_CONFIG_FILE = '~/.config/gitx/github.yml'.freeze
|
8
8
|
REVIEW_CONTEXT = 'peer_review'.freeze
|
9
9
|
CLIENT_URL = 'https://github.com/wireframe/gitx'.freeze
|
10
|
-
PULL_REQUEST_FOOTER = <<-
|
10
|
+
PULL_REQUEST_FOOTER = <<-EOS.dedent
|
11
11
|
# Pull Request Protips(tm):
|
12
12
|
# * Describe how this change accomplishes the task at hand
|
13
13
|
# * Use GitHub flavored Markdown http://github.github.com/github-flavored-markdown/
|
@@ -16,7 +16,7 @@ module Gitx
|
|
16
16
|
# * Review CONTRIBUTING.md for relevant workflow requirements
|
17
17
|
#
|
18
18
|
# This footer will automatically be stripped from the pull request description
|
19
|
-
|
19
|
+
EOS
|
20
20
|
|
21
21
|
def find_or_create_pull_request(branch)
|
22
22
|
pull_request = find_pull_request(branch)
|
@@ -159,10 +159,10 @@ describe Gitx::Cli::IntegrateCommand do
|
|
159
159
|
expect(executor).to receive(:execute).with('git', 'branch', '--delete', '--force', 'staging').ordered
|
160
160
|
expect(executor).to receive(:execute).with('git', 'checkout', 'staging').ordered
|
161
161
|
expect(executor).to receive(:execute).with('git', 'merge', '--no-ff', '--message', "[gitx] Integrate feature-branch into staging\n\nConnected to #10", 'feature-branch')
|
162
|
-
.and_raise(
|
162
|
+
.and_raise('git merge feature-branch failed').ordered
|
163
163
|
|
164
164
|
VCR.use_cassette('pull_request_does_exist_with_success_status') do
|
165
|
-
expect { cli.integrate }.to raise_error(
|
165
|
+
expect { cli.integrate }.to raise_error(/Merge conflict occurred. Please fix merge conflict and rerun command with --resume feature-branch flag/)
|
166
166
|
end
|
167
167
|
end
|
168
168
|
it 'raises a helpful error' do
|
@@ -41,7 +41,7 @@ describe Gitx::Cli::UpdateCommand do
|
|
41
41
|
before do
|
42
42
|
allow(cli).to receive(:say)
|
43
43
|
|
44
|
-
expect(executor).to receive(:execute).with('git', 'pull', 'origin', 'feature-branch').and_raise(
|
44
|
+
expect(executor).to receive(:execute).with('git', 'pull', 'origin', 'feature-branch').and_raise('merge error').ordered
|
45
45
|
|
46
46
|
expect { cli.update }.to raise_error(Gitx::Cli::BaseCommand::MergeError, 'Merge conflict occurred. Please fix merge conflict and rerun the command')
|
47
47
|
end
|
@@ -54,7 +54,7 @@ describe Gitx::Cli::UpdateCommand do
|
|
54
54
|
allow(cli).to receive(:say)
|
55
55
|
|
56
56
|
expect(executor).to receive(:execute).with('git', 'pull', 'origin', 'feature-branch').ordered
|
57
|
-
expect(executor).to receive(:execute).with('git', 'pull', 'origin', 'master').and_raise(
|
57
|
+
expect(executor).to receive(:execute).with('git', 'pull', 'origin', 'master').and_raise('merge error occurred').ordered
|
58
58
|
|
59
59
|
expect { cli.update }.to raise_error(Gitx::Cli::BaseCommand::MergeError, 'Merge conflict occurred. Please fix merge conflict and rerun the command')
|
60
60
|
end
|
metadata
CHANGED
@@ -1,45 +1,45 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.2
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Sonnek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: rugged
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.26.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.26.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: thor
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: octokit
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
@@ -81,21 +81,21 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
89
|
+
version: '3.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
96
|
+
version: '3.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: pry
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
@@ -109,21 +109,21 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: webmock
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
117
|
+
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
124
|
+
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: timecop
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
@@ -137,7 +137,7 @@ dependencies:
|
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: vcr
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
@@ -151,7 +151,7 @@ dependencies:
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: coveralls
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - ">="
|
@@ -165,7 +165,7 @@ dependencies:
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
168
|
+
name: rubocop
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - ">="
|
@@ -277,12 +277,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
277
277
|
version: '0'
|
278
278
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
279
279
|
requirements:
|
280
|
-
- - "
|
280
|
+
- - ">="
|
281
281
|
- !ruby/object:Gem::Version
|
282
|
-
version:
|
282
|
+
version: '0'
|
283
283
|
requirements: []
|
284
284
|
rubyforge_project:
|
285
|
-
rubygems_version: 2.
|
285
|
+
rubygems_version: 2.6.6
|
286
286
|
signing_key:
|
287
287
|
specification_version: 4
|
288
288
|
summary: Utility scripts for Git to increase productivity for common operations
|