module Dependenci
Constants
- VERSION
Public Class Methods
client()
click to toggle source
# File lib/dependenci.rb, line 33 def self.client Dependenci::Client.new end
npm(package_json)
click to toggle source
Get dependencies status for node.js project
package_json - Contents of package.json file
Returns a hash with status result
# File lib/dependenci.rb, line 29 def self.npm(package_json) client.npm(package: package_json) end
rubygems(gemfile = nil, gemfile_lock = nil, gemspec = nil)
click to toggle source
Get dependencies status for ruby project
gemfile - Contents of Gemfile gemfile_lock - Contents of Gemfile.lock (optional) gemspec - Contents of *.gemspec file (optional)
Returns a hash with status result
# File lib/dependenci.rb, line 13 def self.rubygems(gemfile = nil, gemfile_lock = nil, gemspec = nil) opts = { gemfile: gemfile, gemfile_lock: gemfile_lock, gemspec: gemspec } client.rubygems(opts.reject { |_, v| v.nil? }) end