Skip to content

Commit

Permalink
Gemfile.lock update
Browse files Browse the repository at this point in the history
  • Loading branch information
alexskr committed Sep 25, 2024
2 parents fa8511d + f32bc17 commit a22fae3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 0 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ GEM
net-http
ffi (1.17.0-aarch64-linux-gnu)
ffi (1.17.0-arm64-darwin)
ffi (1.17.0-x86_64-darwin)
ffi (1.17.0-x86_64-linux-gnu)
hashie (5.0.0)
htmlentities (4.3.4)
Expand Down Expand Up @@ -193,8 +192,6 @@ GEM
PLATFORMS
aarch64-linux
arm64-darwin-22
x86_64-darwin-21
x86_64-darwin-23
x86_64-linux

DEPENDENCIES
Expand Down
7 changes: 4 additions & 3 deletions lib/ontologies_linked_data/models/ontology_submission.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,15 @@ def self.copy_file_repository(acronym, submissionId, src, filename = nil)
path_to_repo = File.join([LinkedData.settings.repository_folder, acronym.to_s, submissionId.to_s])
name = filename || File.basename(File.new(src).path)
# THIS LOGGER IS JUST FOR DEBUG - remove after NCBO-795 is closed
logger = Logger.new(Dir.pwd + "/create_permissions.log")
# https://github.com/ncbo/bioportal-project/issues/323
# logger = Logger.new(Dir.pwd + "/logs/create_permissions.log")
if not Dir.exist? path_to_repo
FileUtils.mkdir_p path_to_repo
logger.debug("Dir created #{path_to_repo} | #{"%o" % File.stat(path_to_repo).mode} | umask: #{File.umask}") # NCBO-795
# logger.debug("Dir created #{path_to_repo} | #{"%o" % File.stat(path_to_repo).mode} | umask: #{File.umask}") # NCBO-795
end
dst = File.join([path_to_repo, name])
FileUtils.copy(src, dst)
logger.debug("File created #{dst} | #{"%o" % File.stat(dst).mode} | umask: #{File.umask}") # NCBO-795
# logger.debug("File created #{dst} | #{"%o" % File.stat(dst).mode} | umask: #{File.umask}") # NCBO-795
if not File.exist? dst
raise Exception, "Unable to copy #{src} to #{dst}"
end
Expand Down

0 comments on commit a22fae3

Please sign in to comment.