Sha256: 2460cf7d1cae395ddd0e5aecb65146a71315411482c191b5c2fd9d9783a38e3e
Contents?: true
Size: 877 Bytes
Versions: 1
Compression:
Stored size: 877 Bytes
Contents
module Envjs VERSION = "0.3.3" def self.js_exception_stack e result = %(Exception: )+e.to_s e.stack.to_s.split(%(\n)).each do |line| next if line == "@:0" m = line.match(/(.*)@([^@]*)$/) s = m[1] limit = 50 if ( s.length > limit ) s = s[0,limit] + %(...) end result += "\n" + m[2]+%( )+s end result end ENVJS = File.expand_path( File.join( File.dirname(__FILE__), "envjs", "env.js" ) ) EVENT_LOOP = File.expand_path( File.join( File.dirname(__FILE__), "envjs", "event_loop.js" ) ) STATIC = File.expand_path( File.join( File.dirname(__FILE__), "envjs", "static.js" ) ) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
envjs-0.3.3 | lib/envjs.rb |