Sha256: 4da62dfb51032c1b459a577d4355dc59abfc50f3f959a9315e0720770100f836

Contents?: true

Size: 296 Bytes

Versions: 3

Compression:

Stored size: 296 Bytes

Contents

module PreCommit
  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
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pre-commit-0.8.1 lib/support/closure/closure_checker.rb
pre-commit-0.8.0 lib/support/closure/closure_checker.rb
pre-commit-0.7.0 lib/support/closure/closure_checker.rb