Class Gemnasium::DependencyFiles
In: lib/gemnasium/dependency_files.rb
Parent: Object

Methods

Constants

SUPPORTED_DEPENDENCY_FILES = /(Gemfile|Gemfile\.lock|.*\.gemspec|package\.json|npm-shrinkwrap\.json|setup\.py|requirements\.txt|requires\.txt|composer\.json|composer\.lock)$/

Public Class methods

Get the content to upload to Gemnasium.

@param files_path [Array] an array containing the path of the files @return [Array] array of hashes containing file name, file sha and file content

Get a Hash of sha1s for each file corresponding to the regex

@param regexp [Regexp] the regular expression of requested files @return [Hash] the hash associating each file path with its SHA1 hash

[Validate]