app/models/use_case/javascript_dependencies_index/create_javascript_dependencies.rb
# Given the path to a gem, find files with LICENSE in name
Given the path to a gem, find files with LICENSE in name
Given the path to a gem find files with LICENSE in name
def find_license_in_js_source
        file = @file_class.open(@js_source)
        license_finder = UseCase::JavascriptDependenciesIndex::FindLicenses.new(file: file)
        license_finder_result = license_finder.execute!
        file.close
        license_finder_result.data[:license]
      end
def find_license_in_js_source file = @file_class . open ( @js_source ) license_finder = UseCase :: JavascriptDependenciesIndex :: FindLicenses . new ( file : file ) license_finder_result = license_finder . execute! file . close license_finder_result . data [ :license ] end
Given the path to a gem, find files with LICENSE in name
Given the path to a gem find files with LICENSE in name