Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Localize the johnson/cli requires.

  • Loading branch information...
commit c6015851afa7e26404e9a113db9003d7e12a4c03 1 parent 3f5616e
@jbarnette authored
Showing with 2 additions and 4 deletions.
  1. +1 −1  bin/johnson
  2. +0 −3  lib/johnson.rb
  3. +1 −0  lib/johnson/cli.rb
View
2  bin/johnson
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
require "readline"
-require "johnson"
+require "johnson/cli"
RUNTIME = js = Johnson::Runtime.new
RUNTIME.evaluate(Johnson::CLI::JS)
View
3  lib/johnson.rb
@@ -1,8 +1,5 @@
require "generator"
-# the command-line option parser and support libs
-require "johnson/cli"
-
# the native SpiderMonkey extension
require "johnson/spidermonkey"
View
1  lib/johnson/cli.rb
@@ -1,3 +1,4 @@
+require "johnson"
require "johnson/cli/options"
module Johnson #:nodoc:

3 comments on commit c601585

@jbarnette
Owner

/cc @erebor

@erebor
@jbarnette
Owner

:heart:

Please sign in to comment.
Something went wrong with that request. Please try again.