Sha256: c2863bd58bd9644c562734c2428c80190132dbd209ead4cdd45df04d179de132

Contents?: true

Size: 350 Bytes

Versions: 2

Compression:

Stored size: 350 Bytes

Contents

#!/usr/bin/env ruby
ENV["JAZRB_JS_PATH"] = JAZ_DIR = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'jazrb'))
INTRO = File.join(JAZ_DIR, "intro.js")
OUTRO = File.join(JAZ_DIR, "outro.js")

if ARGV.detect { |f| f =~  /\.x?html?$/ }
  system "envjsrb #{ARGV.join(" ")}"
else
  system "envjsrb #{INTRO} #{ARGV.join(" ")} #{OUTRO}"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
smparkes-jazrb-0.0.4 bin/jazrb
smparkes-jazrb-0.0.3 bin/jazrb