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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9613df3e7ab9cb13b6f955b09d4b128bad3f9cf9a2e8888404c8a3c7a995924
4
- data.tar.gz: a7a3341b2cfe6a807b351f0c5c09a889c900ab3c058f5babceb8134f341801c3
3
+ metadata.gz: 8e4c2767e4d4858d3ed4f8791d0dc82577e9fdf051aff59b1f6516c4f13bd4a4
4
+ data.tar.gz: 686894c11b437666221793b475cdf81eb1c99437fcc1ee87aef6a3c07d33e9a4
5
5
  SHA512:
6
- metadata.gz: c5ec564ba24b1af28ce27a74d27a74fecbabd085eab8bdf0fac7b55f31533bdd92077419218829988588f93e8b2df6b4e3138e9a3db2b5073db8d3c435c18df1
7
- data.tar.gz: b94d58e9a348fd97635a51c7f42eef77d7bbf7619141b14c07bcc551412de677a7af8e55975a81650bb2127da02e36ab5ec759846fa69d952b831960c7e34e31
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 `~/.git_config.yml` file. The contents should look like this:
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 # As a Plugin
34
- git-helper clean-branches git clean-branches
35
- git-helper code-request --create git 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, clone this repository from GitHub, and add the following line to your `~/.bash_profile`:
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=/your/path/to/this/repository/git_helper/plugins:$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 `.git_config.yml` file set up in the home directory of your computer. For instructions on how to do that, see [Gem Usage](#gem-usage).
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
 
@@ -19,7 +19,7 @@ module GitHelper
19
19
  end
20
20
 
21
21
  private def git_config_file
22
- '.git_config.yml'
22
+ '.git_helper/config.yml'
23
23
  end
24
24
  end
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module GitHelper
2
- VERSION = '2.0.2'
2
+ VERSION = '3.0.0'
3
3
  end
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/.git_config.yml')
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: 2.0.2
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-10 00:00:00.000000000 Z
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