Sha256: 43e1ee6b7ecc550545d4de2cf3c080f54ac9ec22811a8977564d26d4862cc316

Contents?: true

Size: 656 Bytes

Versions: 3

Compression:

Stored size: 656 Bytes

Contents

$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
require "resquire"

# you can add gems when you create a new analyzer, as an array
analyzer = Resquire::Analyzer.new(:gems => ['colorize', 'packetfu', 'lolize'])

# you can also add gems individually
analyzer.add_gem('pcaprub')
# => true

# or as an array
analyzer.add_gems(['ipaddr', 'socket', 'thread'])
# => true

# you can get an array of the redundant gems
analyzer.redundant_gems
# => ["pcaprub", "ipaddr", "socket", "thread"]

# or the new optimized gem listing as an array with the redundancies
analyzer.optimized_gems
# => ["colorize", "lolize", "packetfu"]

puts analyzer.optimized_gems

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
resquire-1.0.2 examples/analyzer.rb
resquire-1.0.1 examples/analyzer.rb
resquire-1.0.0 examples/analyzer.rb