lib/licensed/sources/bundler.rb in licensed-2.6.0 vs lib/licensed/sources/bundler.rb in licensed-2.6.1
- old
+ new
@@ -262,19 +262,19 @@
# Returns any groups to exclude specified from both licensed configuration
# and bundler configuration.
# Defaults to [:development, :test] + ::Bundler.settings[:without]
def exclude_groups
@exclude_groups ||= begin
- exclude = Array(@config.dig("bundler", "without"))
+ exclude = Array(config.dig("bundler", "without"))
exclude = DEFAULT_WITHOUT_GROUPS if exclude.empty?
exclude.uniq.map(&:to_sym)
end
end
# Returns the path to the Bundler Gemfile
def gemfile_path
- @gemfile_path ||= GEMFILES.map { |g| @config.pwd.join g }
+ @gemfile_path ||= GEMFILES.map { |g| config.pwd.join g }
.find { |f| f.exist? }
end
# Returns the path to the Bundler Gemfile.lock
def lockfile_path
@@ -283,13 +283,13 @@
end
# Returns the configured bundler executable to use, or "bundle" by default.
def bundler_exe
@bundler_exe ||= begin
- exe = @config.dig("bundler", "bundler_exe")
+ exe = config.dig("bundler", "bundler_exe")
return "bundle" unless exe
return exe if Licensed::Shell.tool_available?(exe)
- @config.root.join(exe)
+ config.root.join(exe)
end
end
# Determines if the configured bundler executable is available and returns
# shell command args with or without `bundle exec` depending on availability.