git_helper 3.6.4 → 3.6.6

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: c9226b3191cd9f55de0c9bb238dab97419db8c37e5f77c88d4e6a15898d7618d
4
- data.tar.gz: 4177017b7370efbd05a7948c5cae06061cf0d6cfd7d9ae8a11bf9400aa547740
3
+ metadata.gz: 787737eda759eb8586dfc74869c4d3aa37d983c886d39ea5bdc6cbd84aec1c3c
4
+ data.tar.gz: 1620a4c05ab9e1d22faddbf35f3399873ee2fa331a9e432e15c60c055f8a5d0d
5
5
  SHA512:
6
- metadata.gz: 30efc1f7f69ce974227d7e1c8bc80ab0fde658626eed6b2bd8fb98ebc628f0ccace6c322ad448574aa981316dd421ff34d3e33ba2b1f2b318bf5b46019b7252b
7
- data.tar.gz: e1fe72d9ea6bd3766024ac6cddfd5ae7db7d3baa2dd38cc76e30e624cf29b9baea7ac730d3247cb6552660c7451edfd2fd04de46067fd59c6168eaefd396ff3c
6
+ metadata.gz: fed4f42c02f1868d01f814b2a688063a0c0d5ea133db7a89ae480fb0f4534f6101e788e54fef1ea2284726b846cfb52ab18d2d6fa58dd5dd5b993a646b415099
7
+ data.tar.gz: f578749f192739180569eba8725dab7f853eef9e150f903e87716ab94443333a493272c286b24fdd87ee82b4946a9184b79397548c9b0fca0af027080775f739
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- git_helper (3.6.4)
4
+ git_helper (3.6.5)
5
5
  gli (~> 2.13)
6
6
  highline_wrapper (~> 1.1)
7
7
 
@@ -12,7 +12,7 @@ GEM
12
12
  coderay (1.1.3)
13
13
  concurrent-ruby (1.2.2)
14
14
  diff-lcs (1.5.0)
15
- faker (3.1.1)
15
+ faker (3.2.0)
16
16
  i18n (>= 1.8.11, < 2)
17
17
  ffi (1.15.5)
18
18
  formatador (1.1.0)
@@ -34,7 +34,7 @@ GEM
34
34
  highline (2.1.0)
35
35
  highline_wrapper (1.3.1)
36
36
  highline (~> 2.0)
37
- i18n (1.12.0)
37
+ i18n (1.13.0)
38
38
  concurrent-ruby (~> 1.0)
39
39
  json (2.6.3)
40
40
  listen (3.8.0)
@@ -46,8 +46,8 @@ GEM
46
46
  notiffany (0.1.3)
47
47
  nenv (~> 0.1)
48
48
  shellany (~> 0.0)
49
- parallel (1.22.1)
50
- parser (3.2.1.1)
49
+ parallel (1.23.0)
50
+ parser (3.2.2.1)
51
51
  ast (~> 2.4.1)
52
52
  pry (0.14.2)
53
53
  coderay (~> 1.1)
@@ -56,32 +56,32 @@ GEM
56
56
  rb-fsevent (0.11.2)
57
57
  rb-inotify (0.10.1)
58
58
  ffi (~> 1.0)
59
- regexp_parser (2.7.0)
59
+ regexp_parser (2.8.0)
60
60
  rexml (3.2.5)
61
61
  rspec (3.12.0)
62
62
  rspec-core (~> 3.12.0)
63
63
  rspec-expectations (~> 3.12.0)
64
64
  rspec-mocks (~> 3.12.0)
65
- rspec-core (3.12.1)
65
+ rspec-core (3.12.2)
66
66
  rspec-support (~> 3.12.0)
67
- rspec-expectations (3.12.2)
67
+ rspec-expectations (3.12.3)
68
68
  diff-lcs (>= 1.2.0, < 2.0)
69
69
  rspec-support (~> 3.12.0)
70
- rspec-mocks (3.12.3)
70
+ rspec-mocks (3.12.5)
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.48.0)
74
+ rubocop (1.50.2)
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.26.0, < 2.0)
81
+ rubocop-ast (>= 1.28.0, < 2.0)
82
82
  ruby-progressbar (~> 1.7)
83
83
  unicode-display_width (>= 2.4.0, < 3.0)
84
- rubocop-ast (1.27.0)
84
+ rubocop-ast (1.28.1)
85
85
  parser (>= 3.2.1.0)
86
86
  ruby-progressbar (1.13.0)
87
87
  shellany (0.0.1)
@@ -73,7 +73,7 @@ module GitHelper
73
73
 
74
74
  private def base_branch
75
75
  @base_branch ||=
76
- if highline.ask_yes_no("Is '#{default_branch}' the correct base branch for your new code request? (y/n)")
76
+ if highline.ask_yes_no("Is '#{default_branch}' the correct base branch for your new code request? (Y/n)")
77
77
  default_branch
78
78
  else
79
79
  highline.ask('Base branch?', { required: true })
@@ -91,7 +91,7 @@ module GitHelper
91
91
  private def new_code_request_title
92
92
  @new_code_request_title ||=
93
93
  if autogenerated_title && highline.ask_yes_no(
94
- "Accept the autogenerated code request title '#{autogenerated_title}'? (y/n)"
94
+ "Accept the autogenerated code request title '#{autogenerated_title}'? (Y/n)"
95
95
  )
96
96
  autogenerated_title
97
97
  else
@@ -66,11 +66,11 @@ module GitHelper
66
66
  end
67
67
 
68
68
  def github_repo?
69
- remotes.select { |remote| remote.include?('github') }.any?
69
+ remotes.any? { |remote| remote.include?('github') }
70
70
  end
71
71
 
72
72
  def gitlab_project?
73
- remotes.select { |remote| remote.include?('gitlab') }.any?
73
+ remotes.any? { |remote| remote.include?('gitlab') }
74
74
  end
75
75
 
76
76
  def project_name
@@ -96,7 +96,7 @@ module GitHelper
96
96
  private def determine_template
97
97
  if mr_template_options.count == 1
98
98
  apply_single_template = highline.ask_yes_no(
99
- "Apply the merge request template from #{mr_template_options.first}? (y/n)"
99
+ "Apply the merge request template from #{mr_template_options.first}? (Y/n)"
100
100
  )
101
101
  @template_name_to_apply = mr_template_options.first if apply_single_template
102
102
  else
@@ -132,14 +132,14 @@ module GitHelper
132
132
  when 'never'
133
133
  false
134
134
  else # 'default_off' or anything else
135
- highline.ask_yes_no('Squash merge request? (y/n)')
135
+ highline.ask_yes_no('Squash merge request? (Y/n)')
136
136
  end
137
137
  end
138
138
 
139
139
  private def remove_source_branch
140
140
  @remove_source_branch ||=
141
141
  existing_project.remove_source_branch_after_merge || highline.ask_yes_no(
142
- 'Remove source branch after merging? (y/n)'
142
+ 'Remove source branch after merging? (Y/n)'
143
143
  )
144
144
  end
145
145
 
@@ -90,7 +90,7 @@ module GitHelper
90
90
  private def determine_template
91
91
  if pr_template_options.count == 1
92
92
  apply_single_template = highline.ask_yes_no(
93
- "Apply the pull request template from #{pr_template_options.first}? (y/n)"
93
+ "Apply the pull request template from #{pr_template_options.first}? (Y/n)"
94
94
  )
95
95
  @template_name_to_apply = pr_template_options.first if apply_single_template
96
96
  else
@@ -91,7 +91,7 @@ module GitHelper
91
91
 
92
92
  all_plugins.each do |plugin|
93
93
  plugin_content = `curl -s -H "#{header}" -L "#{plugins_url}/#{plugin['name']}"`
94
- File.open("#{plugins_dir}/#{plugin['name']}", 'w') { |file| file.puts plugin_content }
94
+ File.open("#{plugins_dir}/#{plugin['name']}", 'w', 0o755) { |file| file.puts plugin_content }
95
95
  end
96
96
  end
97
97
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitHelper
4
- VERSION = '3.6.4'
4
+ VERSION = '3.6.6'
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.4
4
+ version: 3.6.6
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-03-09 00:00:00.000000000 Z
11
+ date: 2023-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  - !ruby/object:Gem::Version
175
175
  version: '0'
176
176
  requirements: []
177
- rubygems_version: 3.4.8
177
+ rubygems_version: 3.4.12
178
178
  signing_key:
179
179
  specification_version: 4
180
180
  summary: A set of GitHub and GitLab workflow scripts