app/models/use_case/dependencies_index/find_licenses.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_licenses_in_source
        license_files = []
        @find_class.find(@gem_source) do |path|
          license_files << path if path.include?("LICENSE")
        end
        license_files
      end
def find_licenses_in_source license_files = [ ] @find_class . find ( @gem_source ) do | path | license_files << path if path . include? ( "LICENSE" ) end license_files 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