diff --git a/.ruby-version b/.ruby-version index ef538c2..fa7adc7 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.1.2 +3.3.5 diff --git a/dwc-archive.gemspec b/dwc-archive.gemspec index 9f7e897..575a127 100644 --- a/dwc-archive.gemspec +++ b/dwc-archive.gemspec @@ -22,16 +22,15 @@ Gem::Specification.new do |gem| gem.require_paths = ["lib"] # gem.add_runtime_dependency "minitar", "~> 0.6" - gem.add_runtime_dependency "biodiversity", "~> 5.7.2" - gem.add_runtime_dependency "nokogiri", "~> 1.14" + gem.add_runtime_dependency "biodiversity", "~> 6.0" + gem.add_runtime_dependency "nokogiri", "~> 1.16" - gem.add_development_dependency "bundler", "~> 2.4" + gem.add_development_dependency "bundler", "~> 2.5" gem.add_development_dependency "byebug", "~> 11.1" - gem.add_development_dependency "cucumber", "~> 8" - gem.add_development_dependency "git", "~> 1.18" - gem.add_development_dependency "rake", "~> 13.0" - gem.add_development_dependency "rspec", "~> 3.12" - gem.add_development_dependency "rubocop", "~> 1.50" - gem.add_development_dependency "solargraph", "~> 0.49" - gem.add_development_dependency "travis", "~> 1.11" + gem.add_development_dependency "cucumber", "~> 9" + gem.add_development_dependency "git", "~> 2.3" + gem.add_development_dependency "rake", "~> 13.2" + gem.add_development_dependency "rspec", "~> 3.13" + gem.add_development_dependency "rubocop", "~> 1.66" +gem.add_development_dependency "ruby-lsp", "~> 0.17" end diff --git a/lib/dwc_archive.rb b/lib/dwc_archive.rb index 4ea298e..82ee8c6 100644 --- a/lib/dwc_archive.rb +++ b/lib/dwc_archive.rb @@ -34,11 +34,11 @@ class << self attr_writer :logger def clean(path) - FileUtils.rm_rf(path) if FileTest.exists?(path) + FileUtils.rm_rf(path) if FileTest.exist?(path) end def files(path) - return nil unless path && FileTest.exists?(path) + return nil unless path && FileTest.exist?(path) Dir.entries(path).reject { |e| e.match(/[.]{1,2}$/) }.sort end diff --git a/lib/dwc_archive/archive.rb b/lib/dwc_archive/archive.rb index a95f8d8..080e80b 100644 --- a/lib/dwc_archive/archive.rb +++ b/lib/dwc_archive/archive.rb @@ -16,7 +16,7 @@ def initialize(archive_path, tmp_dir) def valid? valid = true - valid = valid && @expander.path && FileTest.exists?(@expander.path) + valid = valid && @expander.path && FileTest.exist?(@expander.path) valid && files && files.include?("meta.xml") end