lefthook 0.7.7 → 1.3.13

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: b4778847459fa34b22efab291e7acacd9ea1b74c9845a6ac7b602bdbecbaaad5
4
+ data.tar.gz: e752b57d7a9f488f69e8aeb5ade34258d88ee3e7a123231d5af25f0e9768a88c
5
5
  SHA512:
6
- metadata.gz: 59c527c089f25707974c704650ccb6f4850edbcab87e197b4484232526ced5b2114ab738711d9432ef30f8ae818e3bb4a49d77f048c16792da034459b9c29ae5
7
- data.tar.gz: e15d1fba605f4c3703d21a74aef080385e7c2753f246e62d2c280ba383bb25fe05ec16754f1c7720e73d513c0a60b10383a00ea306edcad8d32fa5549b6a1685
6
+ metadata.gz: cfbbbd194ed2fcfc0e226389de0b377fe1c561519671242e5df96b002dc56bb480659f75441a2aff6567080814229879c43c169bc32fa4eca95e5f6001c87f96
7
+ data.tar.gz: 349a8750399ab3ca17098af810f9f531e97de41ec7d32fb059ef4a55575fdec6cc5becbe5d9e3984508b3901d9ea846c824a870daff16b7ba8ff827852c7f52a
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
 
@@ -18,16 +18,20 @@ 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"
22
+ when "freebsd" then "freebsd"
21
23
  else raise "Unknown OS: #{platform.os}"
22
24
  end
23
25
 
24
- binary = "lefthook_#{os}_#{arch}/lefthook"
26
+ suffix = arch == "amd64" ? "_v1" : "" # GOAMD64
27
+
28
+ binary = "lefthook_#{os}_#{arch}#{suffix}/lefthook"
25
29
  binary = "#{binary}.exe" if os == "windows"
26
30
 
27
31
  args = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
28
32
  cmd = File.expand_path "#{File.dirname(__FILE__)}/../libexec/#{binary}"
29
33
 
30
- unless File.exists?(cmd)
34
+ unless File.exist?(cmd)
31
35
  raise "Invalid platform. Lefthook wasn't build for #{RUBY_PLATFORM}"
32
36
  end
33
37
 
Binary file
Binary file
metadata CHANGED
@@ -1,18 +1,19 @@
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.3.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - A.A.Abroskin
8
- autorequire:
8
+ - Evil Martians
9
+ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2021-10-02 00:00:00.000000000 Z
12
+ date: 2023-05-11 00:00:00.000000000 Z
12
13
  dependencies: []
13
- description:
14
+ description:
14
15
  email:
15
- - arkweid@evilmartians.com
16
+ - lefthook@evilmartians.com
16
17
  executables:
17
18
  - lefthook
18
19
  extensions: []
@@ -20,19 +21,20 @@ extra_rdoc_files: []
20
21
  files:
21
22
  - bin/lefthook
22
23
  - lib/lefthook.rb
23
- - libexec/lefthook_darwin_amd64/lefthook
24
+ - libexec/lefthook_darwin_amd64_v1/lefthook
24
25
  - libexec/lefthook_darwin_arm64/lefthook
25
- - libexec/lefthook_linux_386/lefthook
26
- - libexec/lefthook_linux_amd64/lefthook
26
+ - libexec/lefthook_freebsd_amd64_v1/lefthook
27
+ - libexec/lefthook_freebsd_arm64/lefthook
28
+ - libexec/lefthook_linux_amd64_v1/lefthook
27
29
  - libexec/lefthook_linux_arm64/lefthook
28
- - libexec/lefthook_windows_386/lefthook.exe
29
- - libexec/lefthook_windows_amd64/lefthook.exe
30
+ - libexec/lefthook_windows_amd64_v1/lefthook.exe
31
+ - libexec/lefthook_windows_arm64/lefthook.exe
30
32
  homepage: https://github.com/evilmartians/lefthook
31
33
  licenses:
32
34
  - MIT
33
35
  metadata: {}
34
36
  post_install_message: Lefthook installed! Run command in your project root directory
35
- 'lefthook install -f' to make installation completed.
37
+ 'lefthook install -f' to complete installation.
36
38
  rdoc_options: []
37
39
  require_paths:
38
40
  - lib
@@ -47,8 +49,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
47
49
  - !ruby/object:Gem::Version
48
50
  version: '0'
49
51
  requirements: []
50
- rubygems_version: 3.2.22
51
- signing_key:
52
+ rubygems_version: 3.3.5
53
+ signing_key:
52
54
  specification_version: 4
53
55
  summary: A single dependency-free binary to manage all your git hooks that works with
54
56
  any language in any environment, and in all common team workflows.
Binary file
Binary file
Binary file