overcommit 0.66.0 → 0.67.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4144beeaafe295f3b4e5ea046378b5027fb2bf661c1675ccbe8a479caa608de
4
- data.tar.gz: 640349096a637cc94e04c0848bedda4b9c32c7e7a1bad0b68d2337b42cab3ebc
3
+ metadata.gz: e81508d0f9854d0ad04bb88a192e479efd14d2dcb72520656e96ffbd42d2a10c
4
+ data.tar.gz: 58cf91765bfd9b4fc13f287f7d8d0fc5de9abdd5f4306e8c06a6e98b49df005e
5
5
  SHA512:
6
- metadata.gz: 865f9c330bccfb537d2eedbfd1d67e02b925950273d1965103a1234a3fb54368d6a34f4241d18569f7c4e0fe61153af29f8c8915588b8026e4d0e20702649d01
7
- data.tar.gz: b45c66fc03f4911105a4a98c15bf5f42e54bf5466ea6f465f47104ce12a94117a6ba410c405a999371449c73688197e308a34dfdf427ae5ae0c6018020f72eac
6
+ metadata.gz: 87650f7f66f4f2d1b652154f44a853aa6486e57befbc91c520f05ac28cce74ca291a7cb5681efcde73436f3bbc7bc7fa0c6eceb9fc8f4abeea44de94c54cd7f0
7
+ data.tar.gz: e9872666ee60dc587668c17331e476d3287e22a2b2ca3ddf656f9bf863d1c315f208458c2c5c21c0e0d7ae779e1cbd7357ebe5fd361be1812799b7018095257a
data/config/default.yml CHANGED
@@ -32,6 +32,10 @@
32
32
  # your repository, and then set the `gemfile` option below to the name you gave
33
33
  # the file.
34
34
  # (Generate lock file by running `bundle install --gemfile=.overcommit_gems.rb`)
35
+ #
36
+ # NOTE: the following line will be parsed by a regexp rather than a proper YAML
37
+ # parser, so avoid any values other than false or a string, and don't use inline
38
+ # comments
35
39
  gemfile: false
36
40
 
37
41
  # Where to store hook plugins specific to a repository. These are loaded in
@@ -2,6 +2,8 @@
2
2
 
3
3
  require 'overcommit/git_repo'
4
4
 
5
+ require 'set'
6
+
5
7
  module Overcommit::HookContext
6
8
  # Simulates a pre-commit context based on the diff with another git ref.
7
9
  #
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  module Overcommit
5
- VERSION = '0.66.0'
5
+ VERSION = '0.67.1'
6
6
  end
@@ -27,7 +27,7 @@ if hook_type == 'overcommit-hook'
27
27
  end
28
28
 
29
29
  # Check if Overcommit should invoke a Bundler context for loading gems
30
- config = File.read('.overcommit.yml') =~ /gemfile: ['"]?(.*)['"]?/
30
+ File.read('.overcommit.yml') =~ /gemfile: (?:false|['"]?(.*)['"]?)/
31
31
  gemfile = Regexp.last_match(1)
32
32
 
33
33
  if gemfile
@@ -27,7 +27,7 @@ if hook_type == 'overcommit-hook'
27
27
  end
28
28
 
29
29
  # Check if Overcommit should invoke a Bundler context for loading gems
30
- config = File.read('.overcommit.yml') =~ /gemfile: ['"]?(.*)['"]?/
30
+ File.read('.overcommit.yml') =~ /gemfile: (?:false|['"]?(.*)['"]?)/
31
31
  gemfile = Regexp.last_match(1)
32
32
 
33
33
  if gemfile
@@ -27,7 +27,7 @@ if hook_type == 'overcommit-hook'
27
27
  end
28
28
 
29
29
  # Check if Overcommit should invoke a Bundler context for loading gems
30
- config = File.read('.overcommit.yml') =~ /gemfile: ['"]?(.*)['"]?/
30
+ File.read('.overcommit.yml') =~ /gemfile: (?:false|['"]?(.*)['"]?)/
31
31
  gemfile = Regexp.last_match(1)
32
32
 
33
33
  if gemfile
@@ -27,7 +27,7 @@ if hook_type == 'overcommit-hook'
27
27
  end
28
28
 
29
29
  # Check if Overcommit should invoke a Bundler context for loading gems
30
- config = File.read('.overcommit.yml') =~ /gemfile: ['"]?(.*)['"]?/
30
+ File.read('.overcommit.yml') =~ /gemfile: (?:false|['"]?(.*)['"]?)/
31
31
  gemfile = Regexp.last_match(1)
32
32
 
33
33
  if gemfile
@@ -27,7 +27,7 @@ if hook_type == 'overcommit-hook'
27
27
  end
28
28
 
29
29
  # Check if Overcommit should invoke a Bundler context for loading gems
30
- config = File.read('.overcommit.yml') =~ /gemfile: ['"]?(.*)['"]?/
30
+ File.read('.overcommit.yml') =~ /gemfile: (?:false|['"]?(.*)['"]?)/
31
31
  gemfile = Regexp.last_match(1)
32
32
 
33
33
  if gemfile
@@ -27,7 +27,7 @@ if hook_type == 'overcommit-hook'
27
27
  end
28
28
 
29
29
  # Check if Overcommit should invoke a Bundler context for loading gems
30
- config = File.read('.overcommit.yml') =~ /gemfile: ['"]?(.*)['"]?/
30
+ File.read('.overcommit.yml') =~ /gemfile: (?:false|['"]?(.*)['"]?)/
31
31
  gemfile = Regexp.last_match(1)
32
32
 
33
33
  if gemfile
@@ -27,7 +27,7 @@ if hook_type == 'overcommit-hook'
27
27
  end
28
28
 
29
29
  # Check if Overcommit should invoke a Bundler context for loading gems
30
- config = File.read('.overcommit.yml') =~ /gemfile: ['"]?(.*)['"]?/
30
+ File.read('.overcommit.yml') =~ /gemfile: (?:false|['"]?(.*)['"]?)/
31
31
  gemfile = Regexp.last_match(1)
32
32
 
33
33
  if gemfile
@@ -27,7 +27,7 @@ if hook_type == 'overcommit-hook'
27
27
  end
28
28
 
29
29
  # Check if Overcommit should invoke a Bundler context for loading gems
30
- config = File.read('.overcommit.yml') =~ /gemfile: ['"]?(.*)['"]?/
30
+ File.read('.overcommit.yml') =~ /gemfile: (?:false|['"]?(.*)['"]?)/
31
31
  gemfile = Regexp.last_match(1)
32
32
 
33
33
  if gemfile
@@ -27,7 +27,7 @@ if hook_type == 'overcommit-hook'
27
27
  end
28
28
 
29
29
  # Check if Overcommit should invoke a Bundler context for loading gems
30
- config = File.read('.overcommit.yml') =~ /gemfile: ['"]?(.*)['"]?/
30
+ File.read('.overcommit.yml') =~ /gemfile: (?:false|['"]?(.*)['"]?)/
31
31
  gemfile = Regexp.last_match(1)
32
32
 
33
33
  if gemfile
@@ -27,7 +27,7 @@ if hook_type == 'overcommit-hook'
27
27
  end
28
28
 
29
29
  # Check if Overcommit should invoke a Bundler context for loading gems
30
- config = File.read('.overcommit.yml') =~ /gemfile: ['"]?(.*)['"]?/
30
+ File.read('.overcommit.yml') =~ /gemfile: (?:false|['"]?(.*)['"]?)/
31
31
  gemfile = Regexp.last_match(1)
32
32
 
33
33
  if gemfile
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: overcommit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.66.0
4
+ version: 0.67.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane da Silva
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-30 00:00:00.000000000 Z
10
+ date: 2025-03-03 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: childprocess