overcommit 0.64.0 → 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: d85e2036f46d697b370c4926beb8f858a92ebc106590724e02eadef769c532b9
4
- data.tar.gz: bc5686ac420e3ecee206e8921ee02f103852fb918e9fcf84f1a9c9cb576debe9
3
+ metadata.gz: 41a718c287aaf78ecc46c67640e13a782af0264bc5054b2c94b027ed50d224a0
4
+ data.tar.gz: 5ef6333527352239ff20acc433cd38c7078d8a9fce3f35bb8705091a967adb0f
5
5
  SHA512:
6
- metadata.gz: a112cadfb48618428bbe1763561fe080f9968b853a7132c7c382276dd94557c6ea1ee3ed28b4e8fafd6e000e80d4e385a6bc81de586ea829e66cf0754deae43f
7
- data.tar.gz: 7a237d6149d73b60b72113eaf31bcad7d967d9b2c330a2229fb90d795caaaeebf94fac8113660dd0468c6062dfc957c1134fbfec18385c68f61858bebabf1852
6
+ metadata.gz: 9194831e0305eca46d86b60dcaacd1ac1c1e743b13115feec2a94ec8120bb5fbc79338a1b3144480b80ef9cf90e7278da9665b2a6accc54429c07099a1f13db8
7
+ data.tar.gz: 7f6163d8a6d612af25422e6c98384657331ab1960c9753d46bbbe302d2e88205d8983f0094593c3f37d4fab0d293cb2a4471710c06e840b046c98baf0e7ce3e0
@@ -17,7 +17,7 @@ module Overcommit
17
17
  path = `git config --get core.hooksPath`.chomp
18
18
  return File.join(Overcommit::Utils.git_dir, 'hooks') if path.empty?
19
19
 
20
- File.absolute_path(path, Dir.pwd)
20
+ File.expand_path(path, Dir.pwd)
21
21
  end
22
22
  end
23
23
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  module Overcommit
5
- VERSION = '0.64.0'
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.0
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-07-22 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
@@ -48,16 +47,16 @@ dependencies:
48
47
  name: rexml
49
48
  requirement: !ruby/object:Gem::Requirement
50
49
  requirements:
51
- - - "~>"
50
+ - - ">="
52
51
  - !ruby/object:Gem::Version
53
- version: '3.2'
52
+ version: 3.3.9
54
53
  type: :runtime
55
54
  prerelease: false
56
55
  version_requirements: !ruby/object:Gem::Requirement
57
56
  requirements:
58
- - - "~>"
57
+ - - ">="
59
58
  - !ruby/object:Gem::Version
60
- version: '3.2'
59
+ version: 3.3.9
61
60
  description: Utility to install, configure, and extend Git hooks
62
61
  email:
63
62
  - shane@dasilva.io
@@ -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: []