Sha256: dbd3fe49df6c4d9d13cc1d66d0d97272cd4411d30698092cdea5fcf171398ad5

Contents?: true

Size: 263 Bytes

Versions: 26

Compression:

Stored size: 263 Bytes

Contents

class ClosureChecker
  CLOSURE_PATH = File.join(File.dirname(__FILE__),"compiler.jar")
  
  def self.check(files)
    js_args = files.map {|arg| "--js #{arg}"}.join(' ')
    system("java -jar #{CLOSURE_PATH} #{js_args} --js_output_file /tmp/jammit.js")
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
pre-commit-0.6.1 lib/support/closure/closure_checker.rb
pre-commit-0.6.0 lib/support/closure/closure_checker.rb
pre-commit-0.5.0 lib/support/closure/closure_checker.rb
pre-commit-0.4.0 lib/support/closure/closure_checker.rb
pre-commit-0.3.1 lib/support/closure/closure_checker.rb
pre-commit-0.3.0 lib/support/closure/closure_checker.rb
pre-commit-0.2.0 lib/support/closure/closure_checker.rb
pre-commit-0.1.19 lib/support/closure/closure_checker.rb
pre-commit-0.1.18 lib/support/closure/closure_checker.rb
pre-commit-0.1.17 lib/support/closure/closure_checker.rb
pre-commit-0.1.16 lib/support/closure/closure_checker.rb
pre-commit-0.1.15 lib/support/closure/closure_checker.rb
pre-commit-0.1.14 lib/support/closure/closure_checker.rb
pre-commit-0.1.13 lib/support/closure/closure_checker.rb
pre-commit-0.1.12 lib/support/closure/closure_checker.rb
pre-commit-0.1.11 lib/support/closure/closure_checker.rb
pre-commit-0.1.10 lib/support/closure/closure_checker.rb
pre-commit-0.1.9 lib/support/closure/closure_checker.rb
pre-commit-0.1.8 lib/support/closure/closure_checker.rb
pre-commit-0.1.7 lib/support/closure/closure_checker.rb