lefthook 1.6.17 → 1.7.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: 7a145b27d246f9f7e6203514abaf2b880998d3b9ff7b410fbfba6c5b0c03c39f
4
- data.tar.gz: 2508bac06b1934c143a873097c2bc4a47b3bed79db75a429b7a12b7c60003309
3
+ metadata.gz: 7aa62fdce1f53263229774d32710bec1a034b34d5b60dbab85c4bfb8a90a8dda
4
+ data.tar.gz: c95ffddc18b50f1adb053df97aec81c4fa7837a0f3117633a1b08422b74a7536
5
5
  SHA512:
6
- metadata.gz: fc8843335a9813235fe745b44297689e1b165e923591785b2602550b33b5e15bd156718eee9ea62c809da64353039647bcf47c398536318c58b5dee71622c1e9
7
- data.tar.gz: d19bac4b0ce617317e1cb0cd6f7d17464e8589a751261c9e4c3fdc4552cd0b48a58b21c05f5bc92db2ed96c013e11de9466017d92a0b9660bd0354e9b73d62bb
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.17
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-20 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