Sha256: 78028e28db5d88be93f0c55ec6f99a2c629c44e2b43a64530acc8ab8294478bf
Contents?: true
Size: 686 Bytes
Versions: 2
Compression:
Stored size: 686 Bytes
Contents
# the following tasks ease the build of C file from Ragel one file 'ext/http11/http11_parser.c' => ['ext/http11/http11_parser.rl'] do |t| begin sh "ragel #{t.prerequisites.last} -C -G2 -o #{t.name}" rescue fail "Could not build wrapper using Ragel (it failed or not installed?)" end end file 'ext/http11/org/jruby/puma/Http11Parser.java' => ['ext/http11/http11_parser.java.rl'] do |t| begin sh "ragel #{t.prerequisites.last} -J -G2 -o #{t.name}" rescue fail "Could not build wrapper using Ragel (it failed or not installed?)" end end task :ragel => (defined?(JRUBY_VERSION) ? 'ext/http11/org/jruby/puma/Http11Parser.java' : 'ext/http11/http11_parser.c')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puma-0.8.1 | tasks/ragel.rake |
puma-0.8.0 | tasks/ragel.rake |