lefthook 1.6.18 → 1.7.0

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: 8aabecfc0d35a579730484956ba49ce2b373be11021302650b806d8f8db789c4
4
- data.tar.gz: 14e20f1bd7d317862bdc3080c062c4863d4d29377fa720390e2b87fa76f1eaa2
3
+ metadata.gz: 7aa62fdce1f53263229774d32710bec1a034b34d5b60dbab85c4bfb8a90a8dda
4
+ data.tar.gz: c95ffddc18b50f1adb053df97aec81c4fa7837a0f3117633a1b08422b74a7536
5
5
  SHA512:
6
- metadata.gz: 3f87e68a9bdd6e6f1a6378470438a3c0267b6b38e9485809541bdd8916a4a3be159392c8135077c8aa9c92c08c726d9c6821e2dbe42d3953336d7f26468700cc
7
- data.tar.gz: 6433eacdad3552ab9e3b63a66d1f1361c34b4a95aae678e93f169cae72e35fdb5ca788a3e5dc064eb3e4ae623fcf47a08a08b16785cc6430b25e11efbca7185e
6
+ metadata.gz: ad33ef5c9b5cfc3982b713b71f926555efd92988bb31cd6bed16843cf7799f98e4bb7d16e98572c5fa973f6eb258f83db2cec867dbf3e98c394c6b7595473f17
7
+ data.tar.gz: e179fab0932eebd6e0b45915979dd97124a8af88de876017497e1043d1c773014f5d920e6b72640e7d6ce96888e89365ad1570a4d780c1120ad12d841e15fdf5
data/bin/lefthook CHANGED
@@ -7,8 +7,8 @@ arch =
7
7
  case platform.cpu.sub(/\Auniversal\./, '')
8
8
  when /\Aarm64/ then "arm64" # Apple reports arm64e on M1 macs
9
9
  when /aarch64/ then "arm64"
10
- when "x86_64" then "amd64"
11
- when "x64" then "amd64" # Windows with MINGW64 reports RUBY_PLATFORM as "x64-mingw32"
10
+ when "x86_64" then "x64"
11
+ when "x64" then "x64" # Windows with MINGW64 reports RUBY_PLATFORM as "x64-mingw32"
12
12
  else raise "Unknown architecture: #{platform.cpu}"
13
13
  end
14
14
 
@@ -18,14 +18,12 @@ os =
18
18
  when "darwin" then "darwin" # MacOS
19
19
  when "windows" then "windows"
20
20
  when "mingw32" then "windows" # Windows with MINGW64 reports RUBY_PLATFORM as "x64-mingw32"
21
- when "mingw" then "windows"
21
+ when "mingw" then "windows"
22
22
  when "freebsd" then "freebsd"
23
23
  else raise "Unknown OS: #{platform.os}"
24
24
  end
25
25
 
26
- suffix = arch == "amd64" ? "_v1" : "" # GOAMD64
27
-
28
- binary = "lefthook_#{os}_#{arch}#{suffix}/lefthook"
26
+ binary = "lefthook-#{os}-#{arch}/lefthook"
29
27
  binary = "#{binary}.exe" if os == "windows"
30
28
 
31
29
  args = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lefthook
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.18
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - A.A.Abroskin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-06-21 00:00:00.000000000 Z
12
+ date: 2024-07-08 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email:
@@ -21,15 +21,14 @@ extra_rdoc_files: []
21
21
  files:
22
22
  - bin/lefthook
23
23
  - lib/lefthook.rb
24
- - libexec/lefthook_darwin_amd64_v1/lefthook
25
- - libexec/lefthook_darwin_arm64/lefthook
26
- - libexec/lefthook_freebsd_amd64_v1/lefthook
27
- - libexec/lefthook_freebsd_arm64/lefthook
28
- - libexec/lefthook_linux_amd64_v1/lefthook
29
- - libexec/lefthook_linux_arm64/lefthook
30
- - libexec/lefthook_windows_386/lefthook.exe
31
- - libexec/lefthook_windows_amd64_v1/lefthook.exe
32
- - libexec/lefthook_windows_arm64/lefthook.exe
24
+ - libexec/lefthook-darwin-arm64/lefthook
25
+ - libexec/lefthook-darwin-x64/lefthook
26
+ - libexec/lefthook-freebsd-arm64/lefthook
27
+ - libexec/lefthook-freebsd-x64/lefthook
28
+ - libexec/lefthook-linux-arm64/lefthook
29
+ - libexec/lefthook-linux-x64/lefthook
30
+ - libexec/lefthook-windows-arm64/lefthook.exe
31
+ - libexec/lefthook-windows-x64/lefthook.exe
33
32
  homepage: https://github.com/evilmartians/lefthook
34
33
  licenses:
35
34
  - MIT