lefthook 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/bin/lefthook +21 -0
- data/lib/lefthook.rb +0 -0
- data/libexec/lefthook-linux +0 -0
- data/libexec/lefthook-mac +0 -0
- data/libexec/lefthook-win.exe +0 -0
- metadata +51 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 384dc1ed77918ac501779ff41443e14715fb0203dbe23161e5013d6f34158984
|
4
|
+
data.tar.gz: a159d7d1f64c114339eec613cb3d78a8d5b651671e8de8f094a1338b1ed9f2c0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8b41366194beefcd064f7dbe6bca9be2866e056ba1559301234aee82664bc61b011d1a799dcef914767c605c7c4ab3bbed750e0032a79c8be3676e2663e17825
|
7
|
+
data.tar.gz: 9c31e087378decffc3cc26a386e7ebf9fce1e706310f2ca913d02183f67959d2d0882b30fdfecc52e847e589c3cc89dd4d72de8b01e024c018bded116268f4a0
|
data/bin/lefthook
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
binary = case RUBY_PLATFORM
|
4
|
+
when /linux/
|
5
|
+
'lefthook-linux'
|
6
|
+
when /darwin/
|
7
|
+
'lefthook-mac'
|
8
|
+
when /windows/
|
9
|
+
'lefthook-win.exe'
|
10
|
+
else
|
11
|
+
raise "Invalid platform."
|
12
|
+
end
|
13
|
+
|
14
|
+
args = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
|
15
|
+
cmd = File.expand_path "#{File.dirname(__FILE__)}/../libexec/#{binary}"
|
16
|
+
|
17
|
+
puts "#{cmd} #{args.join(' ')}"
|
18
|
+
|
19
|
+
pid = spawn("#{cmd} #{args.join(' ')}")
|
20
|
+
Process.wait(pid)
|
21
|
+
exit($?.exitstatus)
|
data/lib/lefthook.rb
ADDED
File without changes
|
Binary file
|
Binary file
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lefthook
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- A.A.Abroskin
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-06-18 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description:
|
14
|
+
email:
|
15
|
+
- arkweid@evilmartians.com
|
16
|
+
executables:
|
17
|
+
- lefthook
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- bin/lefthook
|
22
|
+
- lib/lefthook.rb
|
23
|
+
- libexec/lefthook-linux
|
24
|
+
- libexec/lefthook-mac
|
25
|
+
- libexec/lefthook-win.exe
|
26
|
+
homepage: https://github.com/Arkweid/lefthook
|
27
|
+
licenses:
|
28
|
+
- MIT
|
29
|
+
metadata: {}
|
30
|
+
post_install_message:
|
31
|
+
rdoc_options: []
|
32
|
+
require_paths:
|
33
|
+
- lib
|
34
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
requirements: []
|
45
|
+
rubyforge_project:
|
46
|
+
rubygems_version: 2.7.6
|
47
|
+
signing_key:
|
48
|
+
specification_version: 4
|
49
|
+
summary: A single dependency-free binary to manage all your git hooks that works with
|
50
|
+
any language in any environment, and in all common team workflows.
|
51
|
+
test_files: []
|