lib/pennyworth/cli/actions/ruby_gems.rb in pennyworth-14.2.1 vs lib/pennyworth/cli/actions/ruby_gems.rb in pennyworth-14.3.0

- old
+ new

@@ -3,21 +3,17 @@ module Pennyworth module CLI module Actions # Handles the RubyGems action. class RubyGems - include Pennyworth::Import[:logger] + include Pennyworth::Import[:kernel] def initialize(processor: Processor.for_gems, **) super(**) @processor = processor end - def call endpoint - processor.call(endpoint) - .to_json - .then { |json| logger.info { json } } - end + def call(endpoint) = kernel.puts processor.call(endpoint).to_json private attr_reader :processor end