lib/csso/js_lib.rb in csso-rails-0.7.0 vs lib/csso/js_lib.rb in csso-rails-0.7.1

- old
+ new

@@ -1,11 +1,11 @@ require 'execjs' module Csso class JsLib - def initialize - if ExecJS.runtime.is_a?(ExecJS::ExternalRuntime) + def initialize verbose=false + if verbose && ExecJS.runtime.is_a?(ExecJS::ExternalRuntime) warn "You're using ExecJS::ExternalRuntime, did you forget to add therubyracer or other execjs runtime to gemfile?" end lib = File.read(File.expand_path('../../' + CSSO_JS_LIB, File.dirname(__FILE__))) unless @csso = ExecJS.runtime.compile(lib)