-
Notifications
You must be signed in to change notification settings - Fork 2
/
ludicrous.gemspec
51 lines (40 loc) · 1.24 KB
/
ludicrous.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
require 'enumerator'
spec = Gem::Specification.new do |s|
s.name = 'ludicrous'
s.version = '0.0.1'
s.summary = 'A just-in-time (JIT) compiler for MRI and YARV'
s.homepage = 'http://rubystuff.org/ludicrous/'
s.rubyforge_project = 'ludicrous'
s.author = 'Paul Brannan'
s.email = '[email protected]'
s.add_dependency 'ruby-internal' => '>= 0.7.1'
s.add_dependency 'ruby-libjit' => '>= 0.2.2'
s.add_dependency 'ruby-decompiler' => '>= 0.0.2'
s.description = <<-END
Ludicrous is a just-in-time (JIT) compiler that works with the Ruby 1.8
and 1.9 series interpreters. It works by walking the AST or bytecode
and converting it into machine code the first time a method is called.
It is thus naive, but can produce amazing results. Which
methods/classes get compiled can easily be controlled with just a few
lines of code.
END
patterns = [
'COPYING',
'LGPL',
'LICENSE',
'README',
'bin/ludicrous',
'lib/**/*.rb',
'lib/*.rb',
'ext/*.rb',
'ext/*.c',
'ext/*.h',
'sample/*.rb',
'test/*.rb',
]
s.files = patterns.collect { |p| Dir.glob(p) }.flatten
s.test_files = Dir.glob('test/test_*.rb')
s.extensions = 'ext/extconf.rb'
s.executables = 'ludicrous'
s.has_rdoc = true
end