Sha256: 1386d83145bae871a9616e099840efa009880c3f0b6b027c2ab066bc65487192

Contents?: true

Size: 590 Bytes

Versions: 2

Compression:

Stored size: 590 Bytes

Contents

module Checker
  module Modules
    class Coffeescript < Base
      extensions 'coffee'
      private
      def check_one(file, opts = {})
        plain_command("cat #{file} | egrep -v '^//=' | coffee -sc > /dev/null")
      end

      def check_for_executable
        silent_command('coffee -v', :bundler => false)
      end

      def dependency_message
        str = "Executable not found\n"
        str << "Install coffeescript from npm: 'npm install -g coffee-script'\n"
        str << "More info: https://github.com/jashkenas/coffee-script/\n"
        str
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
checker-0.6.4 lib/checker/modules/coffeescript.rb
checker-0.6.3 lib/checker/modules/coffeescript.rb