mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 00:02:00 +02:00
fix for gemfile, merge conflicts, test fixes for ruby 3
This commit is contained in:
commit
e7eb6d8a2d
36 changed files with 785 additions and 764 deletions
|
@ -766,10 +766,11 @@ class Site < Sequel::Model
|
|||
purge_cache path
|
||||
end
|
||||
|
||||
Rye::Cmd.add_command :ipfs
|
||||
#Rye::Cmd.add_command :ipfs
|
||||
|
||||
def add_to_ipfs
|
||||
# Not ideal. An SoA version is in progress.
|
||||
return nil
|
||||
|
||||
if archives_dataset.count > Archive::MAXIMUM_ARCHIVES_PER_SITE
|
||||
archives_dataset.order(:updated_at).first.destroy
|
||||
|
@ -836,7 +837,7 @@ class Site < Sequel::Model
|
|||
path = scrubbed_path path
|
||||
relative_path = files_path path
|
||||
|
||||
if Dir.exists?(relative_path) || File.exist?(relative_path)
|
||||
if Dir.exist?(relative_path) || File.exist?(relative_path)
|
||||
return 'Directory (or file) already exists.'
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue