mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
no_autobump!: rename no_autobump_msg
field to no_autobump_message
Signed-off-by: botantony <antonsm21@gmail.com>
This commit is contained in:
parent
1fcacdc2dc
commit
9ff2abbcdf
@ -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 }],
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user