From 68b70fa120ab9764a470f940d5be363a20e48d568e53d9225cd344dd7582589f Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Thu, 17 Nov 2022 12:00:45 +0000 Subject: [PATCH] - replace `File.exists?` with `File.exist?` as the `File.exists?` is no longer supported in 3.2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=117 --- gem_install.sh | 2 +- gemfile.rb | 2 +- ruby-common.changes | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gem_install.sh b/gem_install.sh index 979d176..4d5f29c 100644 --- a/gem_install.sh +++ b/gem_install.sh @@ -231,7 +231,7 @@ GILogger.info "RPM name: #{rpmname}" pwd = Dir.pwd bindir = File.join(options.rpmbuildroot, Gem.bindir) GILogger.info "bindir: #{bindir}" -if options.symlinkbinaries && File.exists?(bindir) +if options.symlinkbinaries && File.exist?(bindir) br_ua_dir = File.join(options.rpmbuildroot, options.ua_dir) GILogger.info "Creating upate-alternatives dir: #{br_ua_dir}" FileUtils.mkdir_p(br_ua_dir) diff --git a/gemfile.rb b/gemfile.rb index 8fb4d62..a5710c5 100644 --- a/gemfile.rb +++ b/gemfile.rb @@ -24,7 +24,7 @@ gemfile_lock = STDIN.read.chomp appdir = File.dirname(gemfile_lock) Dir.chdir(appdir) -unless File.exists? app_info_file then +unless File.exist? app_info_file then STDERR.puts "Warning: Skipping Gemfile.lock without appinfo.yaml file" exit 0 end diff --git a/ruby-common.changes b/ruby-common.changes index fac4b2a..52f43e2 100644 --- a/ruby-common.changes +++ b/ruby-common.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Nov 17 11:49:44 UTC 2022 - Marcus Rueckert + +- replace `File.exists?` with `File.exist?` as the `File.exists?` + is no longer supported in 3.2 + ------------------------------------------------------------------- Mon Jun 13 11:43:30 UTC 2022 - Marcus Rueckert