no_autobump!: rename no_autobump_msg field to no_autobump_message

Signed-off-by: botantony <antonsm21@gmail.com>
This commit is contained in:
botantony 2025-04-23 14:20:11 +02:00 committed by Anton Melnikov
parent 1fcacdc2dc
commit 9ff2abbcdf
4 changed files with 6 additions and 5 deletions

View File

@ -18,7 +18,7 @@ FORMULA_COMPONENT_PRECEDENCE_LIST = T.let([
[{ name: :stable, type: :block_call }],
[{ name: :livecheck, type: :block_call }],
[{ name: :no_autobump!, type: :method_call }],
[{ name: :bottle, type: :block_call }],
[{ name: :bottle, type: :block_call }],
[{ name: :pour_bottle?, type: :block_call }],
[{ name: :head, type: :block_call }],
[{ name: :bottle, type: :method_call }],

View File

@ -145,7 +145,7 @@ class Cask::Cask
def name(*args, &block); end
sig { params(args: T.untyped, block: T.untyped).returns(T.untyped) }
def no_autobump_msg(*args, &block); end
def no_autobump_message(*args, &block); end
sig { params(args: T.untyped, block: T.untyped).returns(T.nilable(MacOSVersion)) }
def on_system_block_min_os(*args, &block); end

View File

@ -157,7 +157,7 @@ RSpec.describe Cask::DSL, :cask do
describe "no_autobump! stanze" do
it "returns true if no_autobump! is not set" do
expect(cask.autobump?).to eq(true)
expect(cask.autobump?).to be(true)
end
context "when no_autobump! is set" do
@ -166,8 +166,9 @@ RSpec.describe Cask::DSL, :cask do
no_autobump! because: "some reason"
end
end
it "returns false" do
expect(cask.autobump?).to eq(false)
expect(cask.autobump?).to be(false)
expect(cask.no_autobump_message).to eq("some reason")
end
end

View File

@ -17,7 +17,7 @@
},
"version": "1.2.3",
"autobump": true,
"no_autobump_msg": null,
"no_autobump_message": null,
"installed": null,
"installed_time": null,
"bundle_version": null,