lefthook 0.6.7 → 0.7.4
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 +4 -4
- data/bin/lefthook +17 -10
- data/libexec/lefthook_darwin_amd64/lefthook +0 -0
- data/libexec/lefthook_darwin_arm64/lefthook +0 -0
- data/libexec/lefthook_linux_386/lefthook +0 -0
- data/libexec/lefthook_linux_amd64/lefthook +0 -0
- data/libexec/lefthook_linux_arm64/lefthook +0 -0
- data/libexec/lefthook_windows_386/lefthook.exe +0 -0
- data/libexec/lefthook_windows_amd64/lefthook.exe +0 -0
- metadata +14 -10
- data/libexec/lefthook-linux +0 -0
- data/libexec/lefthook-mac +0 -0
- data/libexec/lefthook-win.exe +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 382512b0723eae187a4986e13ae795e57b645f3bf98e1da80984bb064ba89ff5
|
4
|
+
data.tar.gz: 0ba53805b98070d3b2f38d237f94f919bbbfe7ed0f02e679ff637f9ffeca7672
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc0a31787f403ef363e474ae1bb7e3e60545706acc4b755903bcc9a0a5da36751ad04ee516316d954fafbe6bf1b55d4ea43fa3a7be3f8c1a2f8b7b1ad83c4d84
|
7
|
+
data.tar.gz: 1f0a4c0a9eaa1427bd0673da5e7239225af38b5ca24e75c6fafd9f51ac7d3caba8a95aa8e0786ca5bcca9467f8711fbc9acac44529fba5304b91b95f8891f3d6
|
data/bin/lefthook
CHANGED
@@ -1,19 +1,26 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
when /
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
end
|
3
|
+
require "rubygems"
|
4
|
+
|
5
|
+
platform = Gem::Platform.new(RUBY_PLATFORM)
|
6
|
+
arch =
|
7
|
+
case platform.cpu.sub(/\Auniversal\./, '')
|
8
|
+
when /\Aarm64/ then "arm64" # Apple reports arm64e on M1 macs
|
9
|
+
when "x86_64" then "amd64"
|
10
|
+
when "x86" then "386"
|
11
|
+
else raise "Unknown architecture: #{platform.os}"
|
12
|
+
end
|
13
|
+
|
14
|
+
binary = "lefthook_#{platform.os}_#{arch}/lefthook"
|
15
|
+
binary = "#{binary}.exe" if platform.os == "windows"
|
13
16
|
|
14
17
|
args = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
|
15
18
|
cmd = File.expand_path "#{File.dirname(__FILE__)}/../libexec/#{binary}"
|
16
19
|
|
20
|
+
unless File.exists?(cmd)
|
21
|
+
raise "Invalid platform. Lefthook wasn't build for #{RUBY_PLATFORM}"
|
22
|
+
end
|
23
|
+
|
17
24
|
puts "#{cmd} #{args.join(' ')}"
|
18
25
|
|
19
26
|
pid = spawn("#{cmd} #{args.join(' ')}")
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lefthook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- A.A.Abroskin
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
13
|
+
description:
|
14
14
|
email:
|
15
15
|
- arkweid@evilmartians.com
|
16
16
|
executables:
|
@@ -20,10 +20,14 @@ extra_rdoc_files: []
|
|
20
20
|
files:
|
21
21
|
- bin/lefthook
|
22
22
|
- lib/lefthook.rb
|
23
|
-
- libexec/lefthook
|
24
|
-
- libexec/lefthook
|
25
|
-
- libexec/lefthook
|
26
|
-
|
23
|
+
- libexec/lefthook_darwin_amd64/lefthook
|
24
|
+
- libexec/lefthook_darwin_arm64/lefthook
|
25
|
+
- libexec/lefthook_linux_386/lefthook
|
26
|
+
- libexec/lefthook_linux_amd64/lefthook
|
27
|
+
- libexec/lefthook_linux_arm64/lefthook
|
28
|
+
- libexec/lefthook_windows_386/lefthook.exe
|
29
|
+
- libexec/lefthook_windows_amd64/lefthook.exe
|
30
|
+
homepage: https://github.com/evilmartians/lefthook
|
27
31
|
licenses:
|
28
32
|
- MIT
|
29
33
|
metadata: {}
|
@@ -43,8 +47,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
43
47
|
- !ruby/object:Gem::Version
|
44
48
|
version: '0'
|
45
49
|
requirements: []
|
46
|
-
rubygems_version: 3.
|
47
|
-
signing_key:
|
50
|
+
rubygems_version: 3.2.3
|
51
|
+
signing_key:
|
48
52
|
specification_version: 4
|
49
53
|
summary: A single dependency-free binary to manage all your git hooks that works with
|
50
54
|
any language in any environment, and in all common team workflows.
|
data/libexec/lefthook-linux
DELETED
Binary file
|
data/libexec/lefthook-mac
DELETED
Binary file
|
data/libexec/lefthook-win.exe
DELETED
Binary file
|