lib/clementine.rb in clementine-0.0.1 vs lib/clementine.rb in clementine-0.0.2
- old
+ new
@@ -1,27 +1,6 @@
require 'rubygems'
require "clementine/version"
require 'clementine/options'
-
-if defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
- require "java"
-
- CLOJURESCRIPT_HOME = File.dirname(__FILE__) + "/../vendor/assets"
- $: << CLOJURESCRIPT_HOME + "/lib"
- require 'clojure'
-
- %w{compiler.jar goog.jar js.jar}.each {|name| $CLASSPATH << CLOJURESCRIPT_HOME + "/lib/" + name}
- %w{clj cljs}.each {|path| $CLASSPATH << CLOJURESCRIPT_HOME + "/src/" + path}
-
- require "clementine/clojurescript_engine"
- require "clementine/clojurescript_template"
- require "clementine/clementine_rails" if defined?(Rails)
-end
-if defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby"
- CLOJURESCRIPT_HOME = File.dirname(__FILE__) + "/../vendor/assets"
- CLASSPATH = []
- %w{clojure.jar compiler.jar goog.jar js.jar}.each {|name| CLASSPATH << CLOJURESCRIPT_HOME + "/lib/" + name}
- %w{clj cljs}.each {|path| CLASSPATH << CLOJURESCRIPT_HOME + "/src/" + path}
- require "clementine/clojurescript_engine_mri"
- require "clementine/clojurescript_template"
- require "clementine/clementine_rails" if defined?(Rails)
-end
+require 'clementine/clojurescript_engine'
+require "clementine/clojurescript_template"
+require "clementine/clementine_rails" if defined?(Rails)