Skip to content

Commit

Permalink
update biodiversity gem to v6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dimus committed Sep 12, 2024
1 parent 46fab23 commit 5ff21ff
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.2
3.3.5
19 changes: 9 additions & 10 deletions dwc-archive.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions lib/dwc_archive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/dwc_archive/archive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5ff21ff

Please sign in to comment.