git_helper 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +17 -13
- data/README.md +39 -32
- 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 +72 -6
- data/lib/git_helper/local_code.rb +124 -0
- data/lib/git_helper/merge_request.rb +63 -84
- data/lib/git_helper/new_branch.rb +3 -9
- data/lib/git_helper/pull_request.rb +48 -78
- 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 +37 -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-
|
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,15 +141,32 @@ 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
|
150
|
+
- lib/git_helper/local_code.rb
|
162
151
|
- lib/git_helper/merge_request.rb
|
163
152
|
- lib/git_helper/new_branch.rb
|
164
153
|
- lib/git_helper/octokit_client.rb
|
165
154
|
- lib/git_helper/pull_request.rb
|
166
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
|
167
170
|
- spec/spec_helper.rb
|
168
171
|
homepage: https://github.com/emmasax4/git_helper
|
169
172
|
licenses:
|
@@ -191,3 +194,17 @@ summary: A set of GitHub and GitLab workflow scripts to provide a smoother devel
|
|
191
194
|
process for your git projects.
|
192
195
|
test_files:
|
193
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
|