git_helper 2.0.2 → 3.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/README.md +14 -7
- data/lib/git_helper/git_config_reader.rb +1 -1
- data/lib/git_helper/version.rb +1 -1
- data/plugins.zip +0 -0
- data/spec/git_helper/git_config_reader_spec.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e4c2767e4d4858d3ed4f8791d0dc82577e9fdf051aff59b1f6516c4f13bd4a4
|
4
|
+
data.tar.gz: 686894c11b437666221793b475cdf81eb1c99437fcc1ee87aef6a3c07d33e9a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32ba80af9ea352cd22c035ecb5e16c2315bae91c9f2b6b3f49a8d5518ffdc4bd533c9b38e6a8652798bd78672e439ba489d8e58346935f3d43ec21dbc3f248ab
|
7
|
+
data.tar.gz: '093a11e7c9d46548ad0127d31c101a1fcf69e0aba7c7a1e4c1873dbebadb78bb2f3791175c3702b081fb36d788c1bb4cbe0149833ee58180f038269eeb1f2523'
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
gem install git_helper
|
7
7
|
```
|
8
8
|
|
9
|
-
Some of the commands in this gem can be used without any additional configuration. However, others utilize special GitHub or GitLab configuration. To provide access tokens for this, create a `~/.
|
9
|
+
Some of the commands in this gem can be used without any additional configuration. However, others utilize special GitHub or GitLab configuration. To provide access tokens for this, create a `~/.git_helper/config.yml` file. The contents should look like this:
|
10
10
|
|
11
11
|
```
|
12
12
|
:github_user: GITHUB-USERNAME
|
@@ -30,15 +30,22 @@ git-helper --version
|
|
30
30
|
As an additional option, you can set each of the following commands to be a git plugin, meaning you can call them in a way that feels even more git-native:
|
31
31
|
|
32
32
|
```bash
|
33
|
-
# As a Gem
|
34
|
-
git-helper clean-branches
|
35
|
-
git-helper code-request --create
|
33
|
+
# As a Gem # As a Plugin
|
34
|
+
git-helper clean-branches git clean-branches
|
35
|
+
git-helper code-request --create git code-request --create
|
36
36
|
```
|
37
37
|
|
38
|
-
To do this,
|
38
|
+
To do this, download the `plugins.zip` file in the root of this directory. Unzip and place the contents in the appropriate location:
|
39
|
+
|
40
|
+
```bash
|
41
|
+
mkdir ~/.git_helper
|
42
|
+
unzip path/to/downloaded/plugins.zip -d ~/.git_helper
|
43
|
+
```
|
44
|
+
|
45
|
+
Now, the plugins will live in `~/.git_helper/plugins/*`. Add the following line to your `~/.bash_profile`:
|
39
46
|
|
40
47
|
```
|
41
|
-
export PATH=/
|
48
|
+
export PATH=/path/to/computer/home/.git_helper/plugins:$PATH
|
42
49
|
```
|
43
50
|
|
44
51
|
And then run `source ~/.bash_profile`.
|
@@ -101,7 +108,7 @@ git-helper clean-branches
|
|
101
108
|
|
102
109
|
### `code-request`
|
103
110
|
|
104
|
-
This command can be used to handily make new GitHub/GitLab pull/merge requests and to merge those requests from the command line. The command uses either the [`Octokit::Client`](https://octokit.github.io/octokit.rb/Octokit/Client.html) or [`Gitlab` client](https://github.com/NARKOZ/gitlab) to do this, so make sure you have a
|
111
|
+
This command can be used to handily make new GitHub/GitLab pull/merge requests and to merge those requests from the command line. The command uses either the [`Octokit::Client`](https://octokit.github.io/octokit.rb/Octokit/Client.html) or [`Gitlab` client](https://github.com/NARKOZ/gitlab) to do this, so make sure you have a `~/.git_helper/config.yml` file set up in the home directory of your computer. For instructions on how to do that, see [Gem Usage](#gem-usage).
|
105
112
|
|
106
113
|
After setup is complete, you can call the file, and send in a flag indicating whether to create a code request, `-c`, or to merge a code request, `-m`.
|
107
114
|
|
data/lib/git_helper/version.rb
CHANGED
data/plugins.zip
ADDED
Binary file
|
@@ -54,7 +54,7 @@ describe GitHelper::GitConfigReader do
|
|
54
54
|
|
55
55
|
it 'should return the base path with the git config file at the end' do
|
56
56
|
allow(Dir).to receive(:pwd).and_return('/Users/firstnamelastname/path/to/git_helper')
|
57
|
-
expect(subject.send(:git_config_file_path)).to eq('/Users/firstnamelastname/.
|
57
|
+
expect(subject.send(:git_config_file_path)).to eq('/Users/firstnamelastname/.git_helper/config.yml')
|
58
58
|
end
|
59
59
|
end
|
60
60
|
end
|
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: 3.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-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gitlab
|
@@ -154,6 +154,7 @@ files:
|
|
154
154
|
- lib/git_helper/octokit_client.rb
|
155
155
|
- lib/git_helper/pull_request.rb
|
156
156
|
- lib/git_helper/version.rb
|
157
|
+
- plugins.zip
|
157
158
|
- spec/git_helper/change_remote_spec.rb
|
158
159
|
- spec/git_helper/checkout_default_spec.rb
|
159
160
|
- spec/git_helper/clean_branches_spec.rb
|