lib/wss_agent/specifications.rb in wss_agent-0.0.16 vs lib/wss_agent/specifications.rb in wss_agent-0.0.17.pre1
- old
+ new
@@ -8,10 +8,10 @@
#
# @param [Hash]
# @option options [Boolean] 'all' if true then get all dependencies (include development dependencies)
# @option options [String] 'excludes' list gem name which need to exclude from end list
def specs(options = {})
- list_gems = Bundler.load.specs.to_a
+ list_gems = Bundler::Definition.build(Bundler.default_gemfile, Bundler.default_lockfile, false).specs.to_a
if options['all']
# get all gems
list = {}
list_gems.each { |j| list[j.name] = j }
list_gems.each { |j|