git_helper 3.6.3 → 3.6.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e0efd69de26cab869fc579da3011c6958b2491913cca1e0ec061f33a6890e91
4
- data.tar.gz: e942b0e9b503de7d33090ce6be10b197df033fffe80b401a837c4ce62195b186
3
+ metadata.gz: c9226b3191cd9f55de0c9bb238dab97419db8c37e5f77c88d4e6a15898d7618d
4
+ data.tar.gz: 4177017b7370efbd05a7948c5cae06061cf0d6cfd7d9ae8a11bf9400aa547740
5
5
  SHA512:
6
- metadata.gz: 30472648379bc818e9b54f15b25948e7f5cc64e0a0cb349724a8ae9f1df8e0642d1daac1df3ff4669334d162370d3a7f78c57df16574fb89c9cc2b5d48963a1c
7
- data.tar.gz: 69d48ba584a596249b41b91f0cb6828af7fca255a13c123d84bc24071ed2de5cfda8cac0777050002f68e63f8e4608322924f1baae288693bd5f12cb030f4930
6
+ metadata.gz: 30efc1f7f69ce974227d7e1c8bc80ab0fde658626eed6b2bd8fb98ebc628f0ccace6c322ad448574aa981316dd421ff34d3e33ba2b1f2b318bf5b46019b7252b
7
+ data.tar.gz: e1fe72d9ea6bd3766024ac6cddfd5ae7db7d3baa2dd38cc76e30e624cf29b9baea7ac730d3247cb6552660c7451edfd2fd04de46067fd59c6168eaefd396ff3c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- git_helper (3.6.3)
4
+ git_helper (3.6.4)
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.0)
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.0)
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.45.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.24.1, < 2.0)
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.24.1)
85
- parser (>= 3.1.1.0)
86
- ruby-progressbar (1.11.0)
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.6
105
+ 2.4.8
@@ -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) (This process will ' \
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 -u #{user}:#{token} -H "#{header}" -L "#{plugins_url}"`)
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 -u #{user}:#{token} -H "#{header}" -L "#{plugins_url}/#{plugin['name']}"`
93
+ plugin_content = `curl -s -H "#{header}" -L "#{plugins_url}/#{plugin['name']}"`
98
94
  File.open("#{plugins_dir}/#{plugin['name']}", 'w') { |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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitHelper
4
- VERSION = '3.6.3'
4
+ VERSION = '3.6.4'
5
5
  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: 3.6.3
4
+ version: 3.6.4
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-02-16 00:00:00.000000000 Z
11
+ date: 2023-03-09 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.6
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