lib/bundler/dependencies/cli/command.rb in bundler-dependencies-0.6.0 vs lib/bundler/dependencies/cli/command.rb in bundler-dependencies-1.0.0

- old
+ new

@@ -1,15 +1,18 @@ +# frozen_string_literal: true + module Bundler module Dependencies class CLI < ::Thor class Command < ::Thor - RAILS_GEMS = %w( + RAILS_GEMS = %w[ rails actioncable actionmailbox actionmailer actionpack actiontext actionview activejob activemodel activerecord activestorage activesupport railties - ).freeze + ].freeze def initialize(options) + super() @options = options self.shell = Thor::Shell::Basic.new unless options.color? end no_commands do @@ -18,11 +21,11 @@ rescue Bundler::GemfileNotFound error("Could not locate Gemfile at #{SharedHelpers.pwd}.") end end - private + private attr_reader :options def scanner @scanner ||= Scanner.new(path) @@ -61,15 +64,15 @@ def gems @gems ||= graph.without(*without) end def warn(message) - say(message, %i(bold yellow)) + say(message, %i[bold yellow]) end def error(message) message = shell.send(:prepare_message, message, :red, :bold) - super(message) + super end end end end end