lefthook 0.7.7 → 0.8.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: 367071d175182ccf6987ad9a388b202d4e11f455baef3a229583782c17376d1b
4
- data.tar.gz: ded9caf09c6c633977bc4652e41bc1ef34e20a029b4e04a125d12b0841934661
3
+ metadata.gz: be8c14e5365b669dd2867c5b20c6e3aa128a652bdbb93888be82dfcf97f7c0e8
4
+ data.tar.gz: faae97d54faefd3a9c57f703c21987ae38255222ae13d2b696721f0570382caf
5
5
  SHA512:
6
- metadata.gz: 59c527c089f25707974c704650ccb6f4850edbcab87e197b4484232526ced5b2114ab738711d9432ef30f8ae818e3bb4a49d77f048c16792da034459b9c29ae5
7
- data.tar.gz: e15d1fba605f4c3703d21a74aef080385e7c2753f246e62d2c280ba383bb25fe05ec16754f1c7720e73d513c0a60b10383a00ea306edcad8d32fa5549b6a1685
6
+ metadata.gz: 88504433af9ebdb1b86c347669a7873fe5ee6ecfebefe4bfb6fdc62a5e3341cbc981fa8ab1bb411e5f0979cc37b1b7b2ce3b083eb9d0e1b491575efb4c06e8dd
7
+ data.tar.gz: 99bd928cd37b2fe7e3d9fcebfb4ad3a3877d573adad3ea8615b03452bf24359ae8938bacc660728bf529136a5c814cd246fbd1689ccf264eb0a2c515269a1569
data/bin/lefthook CHANGED
@@ -8,7 +8,6 @@ arch =
8
8
  when /\Aarm64/ then "arm64" # Apple reports arm64e on M1 macs
9
9
  when "x86_64" then "amd64"
10
10
  when "x64" then "amd64" # Windows with MINGW64 reports RUBY_PLATFORM as "x64-mingw32"
11
- when "x86" then "386"
12
11
  else raise "Unknown architecture: #{platform.cpu}"
13
12
  end
14
13
 
@@ -21,13 +20,15 @@ os =
21
20
  else raise "Unknown OS: #{platform.os}"
22
21
  end
23
22
 
24
- binary = "lefthook_#{os}_#{arch}/lefthook"
23
+ suffix = arch == "amd64" ? "_v1" : "" # GOAMD64
24
+
25
+ binary = "lefthook_#{os}_#{arch}#{suffix}/lefthook"
25
26
  binary = "#{binary}.exe" if os == "windows"
26
27
 
27
28
  args = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
28
29
  cmd = File.expand_path "#{File.dirname(__FILE__)}/../libexec/#{binary}"
29
30
 
30
- unless File.exists?(cmd)
31
+ unless File.exist?(cmd)
31
32
  raise "Invalid platform. Lefthook wasn't build for #{RUBY_PLATFORM}"
32
33
  end
33
34
 
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lefthook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.7
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - A.A.Abroskin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-02 00:00:00.000000000 Z
11
+ date: 2022-06-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -20,13 +20,12 @@ extra_rdoc_files: []
20
20
  files:
21
21
  - bin/lefthook
22
22
  - lib/lefthook.rb
23
- - libexec/lefthook_darwin_amd64/lefthook
23
+ - libexec/lefthook_darwin_amd64_v1/lefthook
24
24
  - libexec/lefthook_darwin_arm64/lefthook
25
- - libexec/lefthook_linux_386/lefthook
26
- - libexec/lefthook_linux_amd64/lefthook
25
+ - libexec/lefthook_linux_amd64_v1/lefthook
27
26
  - libexec/lefthook_linux_arm64/lefthook
28
- - libexec/lefthook_windows_386/lefthook.exe
29
- - libexec/lefthook_windows_amd64/lefthook.exe
27
+ - libexec/lefthook_windows_amd64_v1/lefthook.exe
28
+ - libexec/lefthook_windows_arm64/lefthook.exe
30
29
  homepage: https://github.com/evilmartians/lefthook
31
30
  licenses:
32
31
  - MIT
@@ -47,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
47
46
  - !ruby/object:Gem::Version
48
47
  version: '0'
49
48
  requirements: []
50
- rubygems_version: 3.2.22
49
+ rubygems_version: 3.3.7
51
50
  signing_key:
52
51
  specification_version: 4
53
52
  summary: A single dependency-free binary to manage all your git hooks that works with
Binary file
Binary file
Binary file