overcommit 0.64.1 → 0.65.0

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: 26058c7ae7704edd31a23f9d530eb1eb986697e0e9e5099ff1f8caf5e3b2896f
4
- data.tar.gz: f9752aeb307c5217a01a590768f004a5dc4fedf10307ef90ee19d77a7314e94a
3
+ metadata.gz: 41a718c287aaf78ecc46c67640e13a782af0264bc5054b2c94b027ed50d224a0
4
+ data.tar.gz: 5ef6333527352239ff20acc433cd38c7078d8a9fce3f35bb8705091a967adb0f
5
5
  SHA512:
6
- metadata.gz: fb01d3e7f1ceea12e123611f15ea5f7f74d30e5fd1c0808ae7df8f8fbd36358099368e0e8628b8a19d03f07d80802b387f26642a3833342c783ceda8b475bc51
7
- data.tar.gz: 9e867e86098ee8ec2d6405f34b119ec8e89c566b11ebc9a8f55f1023e54c670e86f07bd21d043c22b2ccd9f1264dffbaa135ba58fbebc481b434e6e7b9fde44e
6
+ metadata.gz: 9194831e0305eca46d86b60dcaacd1ac1c1e743b13115feec2a94ec8120bb5fbc79338a1b3144480b80ef9cf90e7278da9665b2a6accc54429c07099a1f13db8
7
+ data.tar.gz: 7f6163d8a6d612af25422e6c98384657331ab1960c9753d46bbbe302d2e88205d8983f0094593c3f37d4fab0d293cb2a4471710c06e840b046c98baf0e7ce3e0
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  module Overcommit
5
- VERSION = '0.64.1'
5
+ VERSION = '0.65.0'
6
6
  end
@@ -27,14 +27,8 @@ if hook_type == 'overcommit-hook'
27
27
  end
28
28
 
29
29
  # Check if Overcommit should invoke a Bundler context for loading gems
30
- require 'yaml'
31
- # rubocop:disable Style/RescueModifier
32
- gemfile =
33
- begin
34
- YAML.load_file('.overcommit.yml', aliases: true)['gemfile']
35
- rescue ArgumentError
36
- YAML.load_file('.overcommit.yml')['gemfile']
37
- end rescue nil
30
+ config = File.read('.overcommit.yml') =~ /gemfile: ['"]?(.*)['"]?/
31
+ gemfile = Regexp.last_match(1)
38
32
 
39
33
  if gemfile
40
34
  ENV['BUNDLE_GEMFILE'] = gemfile
@@ -27,14 +27,8 @@ if hook_type == 'overcommit-hook'
27
27
  end
28
28
 
29
29
  # Check if Overcommit should invoke a Bundler context for loading gems
30
- require 'yaml'
31
- # rubocop:disable Style/RescueModifier
32
- gemfile =
33
- begin
34
- YAML.load_file('.overcommit.yml', aliases: true)['gemfile']
35
- rescue ArgumentError
36
- YAML.load_file('.overcommit.yml')['gemfile']
37
- end rescue nil
30
+ config = File.read('.overcommit.yml') =~ /gemfile: ['"]?(.*)['"]?/
31
+ gemfile = Regexp.last_match(1)
38
32
 
39
33
  if gemfile
40
34
  ENV['BUNDLE_GEMFILE'] = gemfile
@@ -27,14 +27,8 @@ if hook_type == 'overcommit-hook'
27
27
  end
28
28
 
29
29
  # Check if Overcommit should invoke a Bundler context for loading gems
30
- require 'yaml'
31
- # rubocop:disable Style/RescueModifier
32
- gemfile =
33
- begin
34
- YAML.load_file('.overcommit.yml', aliases: true)['gemfile']
35
- rescue ArgumentError
36
- YAML.load_file('.overcommit.yml')['gemfile']
37
- end rescue nil
30
+ config = File.read('.overcommit.yml') =~ /gemfile: ['"]?(.*)['"]?/
31
+ gemfile = Regexp.last_match(1)
38
32
 
39
33
  if gemfile
40
34
  ENV['BUNDLE_GEMFILE'] = gemfile
@@ -27,14 +27,8 @@ if hook_type == 'overcommit-hook'
27
27
  end
28
28
 
29
29
  # Check if Overcommit should invoke a Bundler context for loading gems
30
- require 'yaml'
31
- # rubocop:disable Style/RescueModifier
32
- gemfile =
33
- begin
34
- YAML.load_file('.overcommit.yml', aliases: true)['gemfile']
35
- rescue ArgumentError
36
- YAML.load_file('.overcommit.yml')['gemfile']
37
- end rescue nil
30
+ config = File.read('.overcommit.yml') =~ /gemfile: ['"]?(.*)['"]?/
31
+ gemfile = Regexp.last_match(1)
38
32
 
39
33
  if gemfile
40
34
  ENV['BUNDLE_GEMFILE'] = gemfile
@@ -27,14 +27,8 @@ if hook_type == 'overcommit-hook'
27
27
  end
28
28
 
29
29
  # Check if Overcommit should invoke a Bundler context for loading gems
30
- require 'yaml'
31
- # rubocop:disable Style/RescueModifier
32
- gemfile =
33
- begin
34
- YAML.load_file('.overcommit.yml', aliases: true)['gemfile']
35
- rescue ArgumentError
36
- YAML.load_file('.overcommit.yml')['gemfile']
37
- end rescue nil
30
+ config = File.read('.overcommit.yml') =~ /gemfile: ['"]?(.*)['"]?/
31
+ gemfile = Regexp.last_match(1)
38
32
 
39
33
  if gemfile
40
34
  ENV['BUNDLE_GEMFILE'] = gemfile
@@ -27,14 +27,8 @@ if hook_type == 'overcommit-hook'
27
27
  end
28
28
 
29
29
  # Check if Overcommit should invoke a Bundler context for loading gems
30
- require 'yaml'
31
- # rubocop:disable Style/RescueModifier
32
- gemfile =
33
- begin
34
- YAML.load_file('.overcommit.yml', aliases: true)['gemfile']
35
- rescue ArgumentError
36
- YAML.load_file('.overcommit.yml')['gemfile']
37
- end rescue nil
30
+ config = File.read('.overcommit.yml') =~ /gemfile: ['"]?(.*)['"]?/
31
+ gemfile = Regexp.last_match(1)
38
32
 
39
33
  if gemfile
40
34
  ENV['BUNDLE_GEMFILE'] = gemfile
@@ -27,14 +27,8 @@ if hook_type == 'overcommit-hook'
27
27
  end
28
28
 
29
29
  # Check if Overcommit should invoke a Bundler context for loading gems
30
- require 'yaml'
31
- # rubocop:disable Style/RescueModifier
32
- gemfile =
33
- begin
34
- YAML.load_file('.overcommit.yml', aliases: true)['gemfile']
35
- rescue ArgumentError
36
- YAML.load_file('.overcommit.yml')['gemfile']
37
- end rescue nil
30
+ config = File.read('.overcommit.yml') =~ /gemfile: ['"]?(.*)['"]?/
31
+ gemfile = Regexp.last_match(1)
38
32
 
39
33
  if gemfile
40
34
  ENV['BUNDLE_GEMFILE'] = gemfile
@@ -27,14 +27,8 @@ if hook_type == 'overcommit-hook'
27
27
  end
28
28
 
29
29
  # Check if Overcommit should invoke a Bundler context for loading gems
30
- require 'yaml'
31
- # rubocop:disable Style/RescueModifier
32
- gemfile =
33
- begin
34
- YAML.load_file('.overcommit.yml', aliases: true)['gemfile']
35
- rescue ArgumentError
36
- YAML.load_file('.overcommit.yml')['gemfile']
37
- end rescue nil
30
+ config = File.read('.overcommit.yml') =~ /gemfile: ['"]?(.*)['"]?/
31
+ gemfile = Regexp.last_match(1)
38
32
 
39
33
  if gemfile
40
34
  ENV['BUNDLE_GEMFILE'] = gemfile
@@ -27,14 +27,8 @@ if hook_type == 'overcommit-hook'
27
27
  end
28
28
 
29
29
  # Check if Overcommit should invoke a Bundler context for loading gems
30
- require 'yaml'
31
- # rubocop:disable Style/RescueModifier
32
- gemfile =
33
- begin
34
- YAML.load_file('.overcommit.yml', aliases: true)['gemfile']
35
- rescue ArgumentError
36
- YAML.load_file('.overcommit.yml')['gemfile']
37
- end rescue nil
30
+ config = File.read('.overcommit.yml') =~ /gemfile: ['"]?(.*)['"]?/
31
+ gemfile = Regexp.last_match(1)
38
32
 
39
33
  if gemfile
40
34
  ENV['BUNDLE_GEMFILE'] = gemfile
@@ -27,14 +27,8 @@ if hook_type == 'overcommit-hook'
27
27
  end
28
28
 
29
29
  # Check if Overcommit should invoke a Bundler context for loading gems
30
- require 'yaml'
31
- # rubocop:disable Style/RescueModifier
32
- gemfile =
33
- begin
34
- YAML.load_file('.overcommit.yml', aliases: true)['gemfile']
35
- rescue ArgumentError
36
- YAML.load_file('.overcommit.yml')['gemfile']
37
- end rescue nil
30
+ config = File.read('.overcommit.yml') =~ /gemfile: ['"]?(.*)['"]?/
31
+ gemfile = Regexp.last_match(1)
38
32
 
39
33
  if gemfile
40
34
  ENV['BUNDLE_GEMFILE'] = gemfile
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: overcommit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.64.1
4
+ version: 0.65.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane da Silva
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-10-31 00:00:00.000000000 Z
10
+ date: 2025-01-27 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: childprocess
@@ -322,8 +321,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
322
321
  - !ruby/object:Gem::Version
323
322
  version: '0'
324
323
  requirements: []
325
- rubygems_version: 3.5.9
326
- signing_key:
324
+ rubygems_version: 3.6.2
327
325
  specification_version: 4
328
326
  summary: Git hook manager
329
327
  test_files: []