lefthook 0.7.7 → 1.0.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: 367071d175182ccf6987ad9a388b202d4e11f455baef3a229583782c17376d1b
4
- data.tar.gz: ded9caf09c6c633977bc4652e41bc1ef34e20a029b4e04a125d12b0841934661
3
+ metadata.gz: 062b2522927ec6b0a0558bceffcd9ff5cd1214bfc077ae5166896a3e9b873b81
4
+ data.tar.gz: cbf28dc86a1fb887fc46545a70e99deaa7555fd0d68c35ad14fab2e71c076625
5
5
  SHA512:
6
- metadata.gz: 59c527c089f25707974c704650ccb6f4850edbcab87e197b4484232526ced5b2114ab738711d9432ef30f8ae818e3bb4a49d77f048c16792da034459b9c29ae5
7
- data.tar.gz: e15d1fba605f4c3703d21a74aef080385e7c2753f246e62d2c280ba383bb25fe05ec16754f1c7720e73d513c0a60b10383a00ea306edcad8d32fa5549b6a1685
6
+ metadata.gz: 72fb7aa348eb3f1ddb2f72ca4636513baeba7cbb2825d06ff7f290e91f252a04567c888fc70f4387d945f9e67000278b37d05fffa937e518f2263b42eadac3b8
7
+ data.tar.gz: e6d286f483895f773e3a22e9ca33941da61a0b7fba56f0d6d2af2cb3b0acfd921b99ff1876845f5b1269be7e7c982d0bbb57802008e85edc5968a7fb83dc2690
data/bin/lefthook CHANGED
@@ -6,9 +6,9 @@ platform = Gem::Platform.new(RUBY_PLATFORM)
6
6
  arch =
7
7
  case platform.cpu.sub(/\Auniversal\./, '')
8
8
  when /\Aarm64/ then "arm64" # Apple reports arm64e on M1 macs
9
+ when /aarch64/ then "arm64"
9
10
  when "x86_64" then "amd64"
10
11
  when "x64" then "amd64" # Windows with MINGW64 reports RUBY_PLATFORM as "x64-mingw32"
11
- when "x86" then "386"
12
12
  else raise "Unknown architecture: #{platform.cpu}"
13
13
  end
14
14
 
@@ -21,13 +21,15 @@ os =
21
21
  else raise "Unknown OS: #{platform.os}"
22
22
  end
23
23
 
24
- binary = "lefthook_#{os}_#{arch}/lefthook"
24
+ suffix = arch == "amd64" ? "_v1" : "" # GOAMD64
25
+
26
+ binary = "lefthook_#{os}_#{arch}#{suffix}/lefthook"
25
27
  binary = "#{binary}.exe" if os == "windows"
26
28
 
27
29
  args = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
28
30
  cmd = File.expand_path "#{File.dirname(__FILE__)}/../libexec/#{binary}"
29
31
 
30
- unless File.exists?(cmd)
32
+ unless File.exist?(cmd)
31
33
  raise "Invalid platform. Lefthook wasn't build for #{RUBY_PLATFORM}"
32
34
  end
33
35
 
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: 1.0.1
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-20 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