git_helper 3.6.3 → 3.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -9
- data/lib/git_helper/setup.rb +4 -9
- data/lib/git_helper/version.rb +1 -1
- metadata +3 -4
- data/plugins.zip +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7826d34f3ee2689b8ad37434241b971127abd96db30ef36f42a48769017640d6
|
4
|
+
data.tar.gz: 8774519f9239f5339852b36afd40eae405efbcaf30de3098ba97832c88442b8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a95c45f4b1a3e214bc4dc47376de9c58d5766afe10ab7f225fbe9747aa3ad79e6a5424c6283661d9afb92b93762d7eaf5c9b4384e7ed0f60fc36c53295f9d279
|
7
|
+
data.tar.gz: 4aa9fca1954cf18e7053c798d416e49410ba248c2cca08c12e97fddd933e325b8ea4e05601187d9ff6b15f1e4451990ca8e9c3f43eb415bc9d87a0d1ec18028e
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
git_helper (3.6.
|
4
|
+
git_helper (3.6.5)
|
5
5
|
gli (~> 2.13)
|
6
6
|
highline_wrapper (~> 1.1)
|
7
7
|
|
@@ -10,7 +10,7 @@ GEM
|
|
10
10
|
specs:
|
11
11
|
ast (2.4.2)
|
12
12
|
coderay (1.1.3)
|
13
|
-
concurrent-ruby (1.2.
|
13
|
+
concurrent-ruby (1.2.2)
|
14
14
|
diff-lcs (1.5.0)
|
15
15
|
faker (3.1.1)
|
16
16
|
i18n (>= 1.8.11, < 2)
|
@@ -47,7 +47,7 @@ GEM
|
|
47
47
|
nenv (~> 0.1)
|
48
48
|
shellany (~> 0.0)
|
49
49
|
parallel (1.22.1)
|
50
|
-
parser (3.2.1.
|
50
|
+
parser (3.2.1.1)
|
51
51
|
ast (~> 2.4.1)
|
52
52
|
pry (0.14.2)
|
53
53
|
coderay (~> 1.1)
|
@@ -71,19 +71,19 @@ GEM
|
|
71
71
|
diff-lcs (>= 1.2.0, < 2.0)
|
72
72
|
rspec-support (~> 3.12.0)
|
73
73
|
rspec-support (3.12.0)
|
74
|
-
rubocop (1.
|
74
|
+
rubocop (1.48.0)
|
75
75
|
json (~> 2.3)
|
76
76
|
parallel (~> 1.10)
|
77
77
|
parser (>= 3.2.0.0)
|
78
78
|
rainbow (>= 2.2.2, < 4.0)
|
79
79
|
regexp_parser (>= 1.8, < 3.0)
|
80
80
|
rexml (>= 3.2.5, < 4.0)
|
81
|
-
rubocop-ast (>= 1.
|
81
|
+
rubocop-ast (>= 1.26.0, < 2.0)
|
82
82
|
ruby-progressbar (~> 1.7)
|
83
83
|
unicode-display_width (>= 2.4.0, < 3.0)
|
84
|
-
rubocop-ast (1.
|
85
|
-
parser (>= 3.
|
86
|
-
ruby-progressbar (1.
|
84
|
+
rubocop-ast (1.27.0)
|
85
|
+
parser (>= 3.2.1.0)
|
86
|
+
ruby-progressbar (1.13.0)
|
87
87
|
shellany (0.0.1)
|
88
88
|
thor (1.2.1)
|
89
89
|
unicode-display_width (2.4.2)
|
@@ -102,4 +102,4 @@ DEPENDENCIES
|
|
102
102
|
rubocop (~> 1.10)
|
103
103
|
|
104
104
|
BUNDLED WITH
|
105
|
-
2.4.
|
105
|
+
2.4.8
|
data/lib/git_helper/setup.rb
CHANGED
@@ -24,8 +24,7 @@ module GitHelper
|
|
24
24
|
|
25
25
|
private def execute_plugins
|
26
26
|
answer = highline.ask_yes_no(
|
27
|
-
'Do you wish to set up the Git Helper plugins? (y/n)
|
28
|
-
'attempt to use your GitHub personal access token to authenticate)',
|
27
|
+
'Do you wish to set up the Git Helper plugins? (y/n)',
|
29
28
|
{ required: true }
|
30
29
|
)
|
31
30
|
|
@@ -81,24 +80,20 @@ module GitHelper
|
|
81
80
|
highline.ask(prompt, { required: true, secret: secret })
|
82
81
|
end
|
83
82
|
|
84
|
-
# rubocop:disable Metrics/MethodLength
|
85
83
|
private def create_or_update_plugin_files
|
86
84
|
plugins_dir = "#{Dir.home}/.git_helper/plugins"
|
87
85
|
plugins_url = 'https://api.github.com/repos/emmahsax/git_helper/contents/plugins'
|
88
86
|
header = 'Accept: application/vnd.github.v3.raw'
|
89
|
-
token = git_config_reader.github_token
|
90
|
-
user = git_config_reader.github_user
|
91
87
|
|
92
88
|
FileUtils.mkdir_p(plugins_dir)
|
93
89
|
|
94
|
-
all_plugins = JSON.parse(`curl -s -
|
90
|
+
all_plugins = JSON.parse(`curl -s -H "#{header}" -L "#{plugins_url}"`)
|
95
91
|
|
96
92
|
all_plugins.each do |plugin|
|
97
|
-
plugin_content = `curl -s -
|
98
|
-
File.open("#{plugins_dir}/#{plugin['name']}", 'w') { |file| file.puts plugin_content }
|
93
|
+
plugin_content = `curl -s -H "#{header}" -L "#{plugins_url}/#{plugin['name']}"`
|
94
|
+
File.open("#{plugins_dir}/#{plugin['name']}", 'w', 0o755) { |file| file.puts plugin_content }
|
99
95
|
end
|
100
96
|
end
|
101
|
-
# rubocop:enable Metrics/MethodLength
|
102
97
|
|
103
98
|
private def config_file
|
104
99
|
git_config_reader.git_config_file_path
|
data/lib/git_helper/version.rb
CHANGED
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: 3.6.
|
4
|
+
version: 3.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emma Sax
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|
@@ -153,7 +153,6 @@ files:
|
|
153
153
|
- lib/git_helper/pull_request.rb
|
154
154
|
- lib/git_helper/setup.rb
|
155
155
|
- lib/git_helper/version.rb
|
156
|
-
- plugins.zip
|
157
156
|
- renovate.json
|
158
157
|
homepage: https://github.com/emmahsax/git_helper
|
159
158
|
licenses:
|
@@ -175,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
174
|
- !ruby/object:Gem::Version
|
176
175
|
version: '0'
|
177
176
|
requirements: []
|
178
|
-
rubygems_version: 3.4.
|
177
|
+
rubygems_version: 3.4.8
|
179
178
|
signing_key:
|
180
179
|
specification_version: 4
|
181
180
|
summary: A set of GitHub and GitLab workflow scripts
|
data/plugins.zip
DELETED
Binary file
|