lefthook 1.6.18 → 1.7.1

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: 8aabecfc0d35a579730484956ba49ce2b373be11021302650b806d8f8db789c4
4
- data.tar.gz: 14e20f1bd7d317862bdc3080c062c4863d4d29377fa720390e2b87fa76f1eaa2
3
+ metadata.gz: eb58064b2b24c55ffe53f46a2fbe4bee90e7f10918d2349efd0457c61f621748
4
+ data.tar.gz: 8fe0e0674e0a5c00118f557ef724df2423c50c3fa2e595b4aa0260e04fd5d978
5
5
  SHA512:
6
- metadata.gz: 3f87e68a9bdd6e6f1a6378470438a3c0267b6b38e9485809541bdd8916a4a3be159392c8135077c8aa9c92c08c726d9c6821e2dbe42d3953336d7f26468700cc
7
- data.tar.gz: 6433eacdad3552ab9e3b63a66d1f1361c34b4a95aae678e93f169cae72e35fdb5ca788a3e5dc064eb3e4ae623fcf47a08a08b16785cc6430b25e11efbca7185e
6
+ metadata.gz: 2db48457d926638227055f606c1e0891374a3f6cd6bc642390e26ad4d0a62fd4464c35389853e8d150019db562af411d50cf05ce3b5343c98e55796c694949e5
7
+ data.tar.gz: 859b34cf360d46d7f4a8086baa2af75a1810b17a0f5085cfb636ff67264b02affc6d6c35e5127827b905bfd28fa4ca8692f85bdc1678d23d64be0caa657a3473
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.1
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