Add first version of ruby bindings.

This commit is contained in:
Jakob Rath 2013-11-10 15:13:15 +01:00 committed by Dan Hirsch
parent ae0158a1cd
commit 6368214fce
14 changed files with 508 additions and 0 deletions

View file

@ -0,0 +1,23 @@
#encoding: UTF-8
Gem::Specification.new do |s|
s.name = 'hammer-parser'
s.version = '0.1.0'
s.summary = 'Ruby bindings to the hammer parsing library.'
s.description = s.summary # TODO: longer description?
s.authors = ['Meredith L. Patterson', 'TQ Hirsch', 'Jakob Rath']
# TODO:
# s.email = ...
# s.homepage = ...
files = []
files << 'README.md'
files << Dir['{lib,test}/**/*.rb']
s.files = files
s.test_files = s.files.select { |path| path =~ /^test\/.*_test.rb/ }
s.require_paths = %w[lib]
s.add_dependency 'ffi', '~> 1.9'
s.add_dependency 'docile', '~> 1.1' # TODO: Find a way to make this optional
end