Support language_version for ruby as well.

This commit is contained in:
Anthony Sottile 2014-06-03 13:28:20 -07:00
parent 511de4fe32
commit 02a79bf1c3
8 changed files with 72 additions and 15 deletions

View file

@ -0,0 +1 @@
*.gem

View file

@ -0,0 +1,5 @@
#!/usr/bin/env ruby
puts RUBY_VERSION
puts RUBY_PATCHLEVEL
puts 'Hello world from a ruby hook'

View file

@ -0,0 +1,5 @@
- id: ruby_hook
name: Ruby Hook
entry: ruby_hook
language: ruby
language_version: 1.9.3-p547

View file

@ -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