Sha256: a7e9c199d031fe193f94a7e9c0fab1bfc0c5b90c1ca652fab4d20d6026858e39

Contents?: true

Size: 214 Bytes

Versions: 6

Compression:

Stored size: 214 Bytes

Contents

module Attractor
  class JsDetector < BaseDetector
    def detect
      package_json_exists?
    end
    
    def package_json_exists?
      File.exist? File.expand_path("package.json", Dir.pwd)
    end
  end 
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
attractor-javascript-0.3.0 lib/attractor/detectors/js_detector.rb
attractor-javascript-0.2.0 lib/attractor/detectors/js_detector.rb
attractor-javascript-0.1.0 lib/attractor/detectors/js_detector.rb
attractor-1.2.0 lib/attractor/detectors/js_detector.rb
attractor-1.1.1 lib/attractor/detectors/js_detector.rb
attractor-1.1.0 lib/attractor/detectors/js_detector.rb