class Dpl::Support::Gems

Public Instance Methods

all() click to toggle source
# File lib/dpl/support/gems.rb, line 12
def all
  Dir[glob].sort.inject([]) do |gems, path|
    next gems if except.any? { |str| path.include?(str) }

    gems + Parse.new(File.read(path)).gems
  end
end
each(&block) click to toggle source
# File lib/dpl/support/gems.rb, line 8
def each(&block)
  all.uniq.each(&block)
end
except() click to toggle source
# File lib/dpl/support/gems.rb, line 20
def except
  @except ||= Array(opts[:except]).map(&:to_s)
end
opts() click to toggle source
Calls superclass method
# File lib/dpl/support/gems.rb, line 24
def opts
  super || {}
end