lib/tapioca/commands/gem.rb in tapioca-0.10.1 vs lib/tapioca/commands/gem.rb in tapioca-0.10.2
- old
+ new
@@ -20,11 +20,11 @@
include_loc: T::Boolean,
include_exported_rbis: T::Boolean,
number_of_workers: T.nilable(Integer),
auto_strictness: T::Boolean,
dsl_dir: String,
- rbi_formatter: RBIFormatter
+ rbi_formatter: RBIFormatter,
).void
end
def initialize(
gem_names:,
exclude:,
@@ -89,11 +89,11 @@
validate_rbi_files(
command: default_command(:gem, @gem_names.join(" ")),
gem_dir: @outpath.to_s,
dsl_dir: @dsl_dir,
auto_strictness: @auto_strictness,
- gems: @bundle.dependencies
+ gems: @bundle.dependencies,
)
say("All operations performed in working directory.", [:green, :bold])
say("Please review changes and commit them.", [:green, :bold])
else
@@ -119,11 +119,11 @@
validate_rbi_files(
command: default_command(:gem),
gem_dir: @outpath.to_s,
dsl_dir: @dsl_dir,
auto_strictness: @auto_strictness,
- gems: @bundle.dependencies
+ gems: @bundle.dependencies,
)
say("All operations performed in working directory.", [:green, :bold])
say("Please review changes and commit them.", [:green, :bold])
else
@@ -156,11 +156,11 @@
rbi = RBI::File.new(strictness: @typed_overrides[gem.name] || "true")
@rbi_formatter.write_header!(rbi,
default_command(:gem, gem.name),
- reason: "types exported from the `#{gem.name}` gem",) if @file_header
+ reason: "types exported from the `#{gem.name}` gem") if @file_header
rbi.root = Tapioca::Gem::Pipeline.new(gem, include_doc: @include_doc, include_loc: @include_loc).compile
merge_with_exported_rbi(gem, rbi) if @include_exported_rbis
@@ -303,10 +303,10 @@
build_error_for_files(cause, diff_for_cause.map(&:first))
end.join("\n")
raise Thor::Error, <<~ERROR
#{set_color("RBI files are out-of-date. In your development environment, please run:", :green)}
- #{set_color("`#{default_command(command)}`", [:green, :bold])}
+ #{set_color("`#{default_command(command)}`", :green, :bold)}
#{set_color("Once it is complete, be sure to commit and push any changes", :green)}
#{set_color("Reason:", :red)}
#{reasons}
ERROR