lib/tapioca/generator.rb in tapioca-0.5.1 vs lib/tapioca/generator.rb in tapioca-0.5.2
- old
+ new
@@ -71,11 +71,11 @@
File.write(requires_path, content)
say("Done", :green)
say("All requires from this application have been written to #{name}.", [:green, :bold])
- cmd = set_color("#{Config::DEFAULT_COMMAND} sync", :yellow, :bold)
+ cmd = set_color("#{Config::DEFAULT_COMMAND} gem", :yellow, :bold)
say("Please review changes and commit them, then run `#{cmd}`.", [:green, :bold])
end
sig { void }
def build_todos
@@ -535,11 +535,11 @@
strictness = config.typed_overrides[gem.name] || "true"
rbi_body_content = compiler.compile(gem)
content = String.new
content << rbi_header(
- "#{Config::DEFAULT_COMMAND} sync",
+ "#{Config::DEFAULT_COMMAND} gem #{gem.name}",
reason: "types exported from the `#{gem.name}` gem",
strictness: strictness
)
FileUtils.mkdir_p(config.outdir)
@@ -668,10 +668,10 @@
added_rbis.each do |gem_name|
filename = expected_rbi(gem_name)
diff[filename] = gem_rbi_exists?(gem_name) ? :changed : :added
end
- report_diff_and_exit_if_out_of_date(diff, "sync")
+ report_diff_and_exit_if_out_of_date(diff, "gem")
end
sig { params(diff: T::Hash[String, Symbol], command: String).void }
def report_diff_and_exit_if_out_of_date(diff, command)
if diff.empty?