Module: Reditor::BundlerSupport

Included in:
LibraryLocator, LibrarySearchQuery
Defined in:
lib/reditor/bundler_support.rb

Overview

Reditor doesn’t depend on bundler, But use it if available.

Instance Method Summary collapse

Instance Method Details

#bundler_specsObject

available bundler specs



5
6
7
8
9
10
11
# File 'lib/reditor/bundler_support.rb', line 5

def bundler_specs
  require 'bundler'

  Bundler.load.specs
rescue LoadError, NameError, Bundler::GemNotFound, Bundler::GemfileNotFound, Bundler::GitError
  [] # bundler isn't available here
end