Permalink
Browse files

Separate version file is pointless.

  • Loading branch information...
1 parent e07a90c commit 3f5616e1a93b782fd8431e2d42e158de8da71c3c @jbarnette committed Sep 19, 2009
Showing with 4 additions and 7 deletions.
  1. +4 −4 lib/johnson.rb
  2. +0 −3 lib/johnson/version.rb
View
8 lib/johnson.rb
@@ -1,5 +1,4 @@
require "generator"
-require "johnson/version"
# the command-line option parser and support libs
require "johnson/cli"
@@ -33,14 +32,15 @@
module Johnson
PRELUDE = IO.read(File.dirname(__FILE__) + "/../js/johnson/prelude.js")
-
+ VERSION = "1.1.2"
+
def self.evaluate(expression, vars={})
runtime = Johnson::Runtime.new
vars.each { |key, value| runtime[key] = value }
-
+
runtime.evaluate(expression)
end
-
+
def self.parse(js, *args)
Johnson::Parser.parse(js, *args)
end
View
3 lib/johnson/version.rb
@@ -1,3 +0,0 @@
-module Johnson #:nodoc:
- VERSION = "1.1.2"
-end

0 comments on commit 3f5616e

Please sign in to comment.