mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
test ruby directly
This commit is contained in:
parent
77b4ea38ca
commit
5b50acbd2c
12 changed files with 96 additions and 143 deletions
1
testing/resources/ruby_hooks_repo/.gitignore
vendored
1
testing/resources/ruby_hooks_repo/.gitignore
vendored
|
|
@ -1 +0,0 @@
|
|||
*.gem
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
- id: ruby_hook
|
||||
name: Ruby Hook
|
||||
entry: ruby_hook
|
||||
language: ruby
|
||||
files: \.rb$
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
puts 'Hello world from a ruby hook'
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
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
|
||||
|
|
@ -1 +0,0 @@
|
|||
*.gem
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
- id: ruby_hook
|
||||
name: Ruby Hook
|
||||
entry: ruby_hook
|
||||
language: ruby
|
||||
language_version: 3.2.0
|
||||
files: \.rb$
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
puts RUBY_VERSION
|
||||
puts 'Hello world from a ruby hook'
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
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