lefthook 0.7.7 → 1.0.2

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: 367071d175182ccf6987ad9a388b202d4e11f455baef3a229583782c17376d1b
4
- data.tar.gz: ded9caf09c6c633977bc4652e41bc1ef34e20a029b4e04a125d12b0841934661
3
+ metadata.gz: ada9a9bf2005391c6e1d0f28f8a59dcaeb7f06ea7e07af79cd531c1d722eedda
4
+ data.tar.gz: 4c9e06d29b037a9ed2888ed8acaed91584bf80d081f43f8bceb3ffad30d6d5eb
5
5
  SHA512:
6
- metadata.gz: 59c527c089f25707974c704650ccb6f4850edbcab87e197b4484232526ced5b2114ab738711d9432ef30f8ae818e3bb4a49d77f048c16792da034459b9c29ae5
7
- data.tar.gz: e15d1fba605f4c3703d21a74aef080385e7c2753f246e62d2c280ba383bb25fe05ec16754f1c7720e73d513c0a60b10383a00ea306edcad8d32fa5549b6a1685
6
+ metadata.gz: 03c66c198104a0eb65c879e89ca31e2f524e8f216e6bdd6276298164f89f1e1e85c44967233cc32aff55f0d8a87525e11e6d633096f1aad2deec3a887ba82414
7
+ data.tar.gz: 670d90712d787580d23ea6689c30705e80ec57f66ebb51e34a470f33ec6194a9ecf0def27d86a3233a87d1091f9f6134afbd7c8fa4b2711d59528132b8e18900
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.2
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-24 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.1.6
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