Scanner for required gems & their reverse dependencies in a Ruby Project with a bundler Gemfile
bundle config set deployment true
bundle install
- Navigate to the root directory of the Ruby project (which includes the
Gemfile
) - Run
bundle exec ruby PATH_TO/rubycrypt.rb [SCAN_DIR] [EXPORT_DIR] [CRYPTO_GEMS]
- parameters are optional, default values can be configured in
rubycrypt.rb
- outputs will be written to
EXPORT_DIR/YYYY-MM-DDTHH-MM-SS
in JSON and Binary Format
bundle exec ruby PATH_TO/rubycrypt.rb ./lib /home/user/Desktop openssl ed25519 lockbox
- Navigate to the RubyCrypt directory
- run
irb
load 'analysis.rb'
- Enter timestamp of output directory
- Global variables for analysis are
$config
$dependency_chains
$requirements
$filtered_requirements
$errors
$not_in_vendor_directory
To just output basic statistics about the output, run
ruby analysis.rb
from the RubyCrypt directory and enter the output directories timestamp.