mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Support language_version for ruby as well.
This commit is contained in:
parent
511de4fe32
commit
02a79bf1c3
8 changed files with 72 additions and 15 deletions
1
testing/resources/ruby_1_9_3_p547_hooks_repo/.gitignore
vendored
Normal file
1
testing/resources/ruby_1_9_3_p547_hooks_repo/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
*.gem
|
||||
5
testing/resources/ruby_1_9_3_p547_hooks_repo/bin/ruby_hook
Executable file
5
testing/resources/ruby_1_9_3_p547_hooks_repo/bin/ruby_hook
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
puts RUBY_VERSION
|
||||
puts RUBY_PATCHLEVEL
|
||||
puts 'Hello world from a ruby hook'
|
||||
5
testing/resources/ruby_1_9_3_p547_hooks_repo/hooks.yaml
Normal file
5
testing/resources/ruby_1_9_3_p547_hooks_repo/hooks.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
- id: ruby_hook
|
||||
name: Ruby Hook
|
||||
entry: ruby_hook
|
||||
language: ruby
|
||||
language_version: 1.9.3-p547
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
Gem::Specification.new do |s|
|
||||
s.name = 'ruby_hook'
|
||||
s.version = '0.1.0'
|
||||
s.authors = ['Anthony Sottile']
|
||||
s.summary = 'A ruby hook!'
|
||||
s.description = 'A ruby hook!'
|
||||
s.files = ['bin/ruby_hook']
|
||||
s.executables = ['ruby_hook']
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue