lib/rubysmith/cli/actions/simple_cov.rb in rubysmith-5.1.0 vs lib/rubysmith/cli/actions/simple_cov.rb in rubysmith-5.2.0
- old
+ new
@@ -1,25 +1,22 @@
# frozen_string_literal: true
-require "refinements/structs"
require "sod"
module Rubysmith
module CLI
module Actions
# Stores SimpleCov flag.
class SimpleCov < Sod::Action
include Import[:input]
- using ::Refinements::Structs
-
description "Add SimpleCov gem."
on "--[no-]simple_cov"
default { Container[:configuration].build_simple_cov }
- def call(value = default) = input.merge!(build_simple_cov: value)
+ def call(value = default) = input.build_simple_cov = value
end
end
end
end