git_helper 1.3.1 → 2.0.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +17 -13
- data/README.md +24 -38
- data/bin/git-helper +12 -23
- data/lib/git_helper/change_remote.rb +56 -40
- data/lib/git_helper/checkout_default.rb +3 -1
- data/lib/git_helper/clean_branches.rb +3 -4
- data/lib/git_helper/code_request.rb +100 -0
- data/lib/git_helper/empty_commit.rb +3 -1
- data/lib/git_helper/forget_local_commits.rb +9 -0
- data/lib/git_helper/highline_cli.rb +20 -15
- data/lib/git_helper/local_code.rb +67 -19
- data/lib/git_helper/merge_request.rb +44 -70
- data/lib/git_helper/new_branch.rb +2 -10
- data/lib/git_helper/pull_request.rb +33 -65
- data/lib/git_helper/version.rb +1 -1
- data/spec/git_helper/change_remote_spec.rb +172 -0
- data/spec/git_helper/checkout_default_spec.rb +18 -0
- data/spec/git_helper/clean_branches_spec.rb +18 -0
- data/spec/git_helper/code_request_spec.rb +258 -0
- data/spec/git_helper/empty_commit_spec.rb +18 -0
- data/spec/git_helper/forget_local_commits_spec.rb +18 -0
- data/spec/git_helper/git_config_reader_spec.rb +59 -0
- data/spec/git_helper/gitlab_client_spec.rb +25 -0
- data/spec/git_helper/highline_cli_spec.rb +214 -0
- data/spec/git_helper/local_code_spec.rb +230 -0
- data/spec/git_helper/merge_request_spec.rb +233 -0
- data/spec/git_helper/new_branch_spec.rb +43 -0
- data/spec/git_helper/octokit_client_spec.rb +25 -0
- data/spec/git_helper/pull_request_spec.rb +245 -0
- data/spec/spec_helper.rb +0 -6
- metadata +36 -20
data/spec/spec_helper.rb
CHANGED
@@ -1,9 +1,3 @@
|
|
1
|
-
require 'simplecov'
|
2
|
-
|
3
|
-
SimpleCov.start do
|
4
|
-
add_filter '/spec/'
|
5
|
-
end
|
6
|
-
|
7
1
|
# This file was generated by the `rspec --init` command. Conventionally, all
|
8
2
|
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
9
3
|
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emma Sax
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gitlab
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '2.1'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: guard
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '2.6'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '2.6'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: guard-rspec
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,28 +100,28 @@ dependencies:
|
|
114
100
|
requirements:
|
115
101
|
- - "~>"
|
116
102
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
103
|
+
version: '13.0'
|
118
104
|
type: :development
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
107
|
requirements:
|
122
108
|
- - "~>"
|
123
109
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
110
|
+
version: '13.0'
|
125
111
|
- !ruby/object:Gem::Dependency
|
126
112
|
name: rspec
|
127
113
|
requirement: !ruby/object:Gem::Requirement
|
128
114
|
requirements:
|
129
115
|
- - "~>"
|
130
116
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
117
|
+
version: '3.9'
|
132
118
|
type: :development
|
133
119
|
prerelease: false
|
134
120
|
version_requirements: !ruby/object:Gem::Requirement
|
135
121
|
requirements:
|
136
122
|
- - "~>"
|
137
123
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
124
|
+
version: '3.9'
|
139
125
|
description: A set of GitHub and GitLab workflow scripts.
|
140
126
|
email:
|
141
127
|
- emma.sax4@gmail.com
|
@@ -155,7 +141,9 @@ files:
|
|
155
141
|
- lib/git_helper/change_remote.rb
|
156
142
|
- lib/git_helper/checkout_default.rb
|
157
143
|
- lib/git_helper/clean_branches.rb
|
144
|
+
- lib/git_helper/code_request.rb
|
158
145
|
- lib/git_helper/empty_commit.rb
|
146
|
+
- lib/git_helper/forget_local_commits.rb
|
159
147
|
- lib/git_helper/git_config_reader.rb
|
160
148
|
- lib/git_helper/gitlab_client.rb
|
161
149
|
- lib/git_helper/highline_cli.rb
|
@@ -165,6 +153,20 @@ files:
|
|
165
153
|
- lib/git_helper/octokit_client.rb
|
166
154
|
- lib/git_helper/pull_request.rb
|
167
155
|
- lib/git_helper/version.rb
|
156
|
+
- spec/git_helper/change_remote_spec.rb
|
157
|
+
- spec/git_helper/checkout_default_spec.rb
|
158
|
+
- spec/git_helper/clean_branches_spec.rb
|
159
|
+
- spec/git_helper/code_request_spec.rb
|
160
|
+
- spec/git_helper/empty_commit_spec.rb
|
161
|
+
- spec/git_helper/forget_local_commits_spec.rb
|
162
|
+
- spec/git_helper/git_config_reader_spec.rb
|
163
|
+
- spec/git_helper/gitlab_client_spec.rb
|
164
|
+
- spec/git_helper/highline_cli_spec.rb
|
165
|
+
- spec/git_helper/local_code_spec.rb
|
166
|
+
- spec/git_helper/merge_request_spec.rb
|
167
|
+
- spec/git_helper/new_branch_spec.rb
|
168
|
+
- spec/git_helper/octokit_client_spec.rb
|
169
|
+
- spec/git_helper/pull_request_spec.rb
|
168
170
|
- spec/spec_helper.rb
|
169
171
|
homepage: https://github.com/emmasax4/git_helper
|
170
172
|
licenses:
|
@@ -192,3 +194,17 @@ summary: A set of GitHub and GitLab workflow scripts to provide a smoother devel
|
|
192
194
|
process for your git projects.
|
193
195
|
test_files:
|
194
196
|
- spec/spec_helper.rb
|
197
|
+
- spec/git_helper/octokit_client_spec.rb
|
198
|
+
- spec/git_helper/new_branch_spec.rb
|
199
|
+
- spec/git_helper/forget_local_commits_spec.rb
|
200
|
+
- spec/git_helper/clean_branches_spec.rb
|
201
|
+
- spec/git_helper/change_remote_spec.rb
|
202
|
+
- spec/git_helper/checkout_default_spec.rb
|
203
|
+
- spec/git_helper/pull_request_spec.rb
|
204
|
+
- spec/git_helper/gitlab_client_spec.rb
|
205
|
+
- spec/git_helper/code_request_spec.rb
|
206
|
+
- spec/git_helper/empty_commit_spec.rb
|
207
|
+
- spec/git_helper/highline_cli_spec.rb
|
208
|
+
- spec/git_helper/git_config_reader_spec.rb
|
209
|
+
- spec/git_helper/merge_request_spec.rb
|
210
|
+
- spec/git_helper/local_code_spec.rb
|