lib/pennyworth/cli/actions/standard_gem.rb in pennyworth-16.7.0 vs lib/pennyworth/cli/actions/standard_gem.rb in pennyworth-17.0.0
- old
+ new
@@ -5,11 +5,11 @@
module Pennyworth
module CLI
module Actions
# Handles the Standard Gem action.
class StandardGem < Sod::Action
- include Import[:kernel]
+ include Import[:io]
ENDPOINTS = {
"all" => "stdgems.json",
"default" => "default_gems.json",
"bundled" => "bundled_gems.json"
@@ -23,10 +23,10 @@
super(**)
@processor = processor
@endpoints = endpoints
end
- def call(kind = nil) = kernel.puts processor.call(endpoints.fetch(kind || default)).to_json
+ def call(kind = nil) = io.puts processor.call(endpoints.fetch(kind || default)).to_json
private
attr_reader :processor, :endpoints
end