Skip to content

Commit 47c864a

Browse files
cornerotflashcode
authored andcommitted
substitution.rb 0.0.3: replace File.exists by File.exist
The `exists` method was removed on Ruby v3.2.
1 parent d708c55 commit 47c864a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruby/substitution.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
EOD
4141

4242
def weechat_init
43-
Weechat.register('substitution', 'sam113101', '0.0.2', 'GPL3',
43+
Weechat.register('substitution', 'sam113101', '0.0.3', 'GPL3',
4444
'Substitute strings in your messages before they are sent.', '', '')
4545
@config_file = Weechat.string_eval_path_home('%h/substitutions.bin', {}, {}, {'directory' => 'data'})
4646
load_config
@@ -135,7 +135,7 @@ def update_config
135135
end
136136

137137
def load_config
138-
if File.exists?(@config_file)
138+
if File.exist?(@config_file)
139139
@substitutions = Marshal.load(File.read(@config_file))
140140
else
141141
@substitutions = {}

0 commit comments

Comments
 (0)