Merge pull request #10861 from opf/fix/bump_gems

Fix/bump gems
pull/10863/head
ulferts 2 years ago committed by GitHub
commit ec7e388440
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      Gemfile.lock
  2. 2
      app/controllers/repositories_controller.rb
  3. 16
      app/mailers/application_mailer.rb
  4. 2
      app/workers/attachments/finish_direct_upload_job.rb
  5. 2
      app/workers/backup_job.rb
  6. 4
      app/workers/copy_project_job.rb
  7. 2
      app/workers/projects/delete_project_job.rb
  8. 2
      lib/open_project/patches/fog_file.rb
  9. 2
      modules/bim/app/contracts/bim/ifc_models/base_contract.rb
  10. 2
      spec/lib/open_project/scm/adapters/git_adapter_spec.rb
  11. 2
      spec/lib/open_project/scm/adapters/subversion_adapter_spec.rb
  12. 4
      spec/models/work_packages/scopes/relatable_spec.rb
  13. 4
      spec/requests/api/v3/render_resource_spec.rb
  14. 2
      spec/workers/backup_job_spec.rb

@ -291,7 +291,7 @@ GEM
awesome_nested_set (3.5.0)
activerecord (>= 4.0.0, < 7.1)
aws-eventstream (1.2.0)
aws-partitions (1.600.0)
aws-partitions (1.601.0)
aws-sdk-core (3.131.2)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.525.0)
@ -593,7 +593,7 @@ GEM
open4 (~> 1.0)
launchy (2.5.0)
addressable (~> 2.7)
lefthook (1.0.1)
lefthook (1.0.3)
letter_opener (1.8.1)
launchy (>= 2.2, < 3)
listen (3.7.1)
@ -684,7 +684,7 @@ GEM
openproject-token (2.2.0)
activemodel
parallel (1.22.1)
parallel_tests (3.11.0)
parallel_tests (3.11.1)
parallel
parser (3.1.2.0)
ast (~> 2.4.1)
@ -697,7 +697,7 @@ GEM
hashery (~> 2.0)
ruby-rc4
ttfunk
pg (1.4.0)
pg (1.4.1)
plaintext (0.3.4)
activesupport (> 2.2.1)
nokogiri (~> 1.10, >= 1.10.4)
@ -856,7 +856,7 @@ GEM
rspec-retry (0.6.2)
rspec-core (> 3.3)
rspec-support (3.11.0)
rubocop (1.30.1)
rubocop (1.31.0)
parallel (~> 1.10)
parser (>= 3.1.0.0)
rainbow (>= 2.2.2, < 4.0)
@ -867,7 +867,7 @@ GEM
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.18.0)
parser (>= 3.1.1.0)
rubocop-rails (2.15.0)
rubocop-rails (2.15.1)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.7.0, < 2.0)
@ -969,7 +969,7 @@ GEM
unf (0.1.4)
unf_ext
unf_ext (0.0.8.2)
unicode-display_width (2.1.0)
unicode-display_width (2.2.0)
uri_template (0.7.0)
validate_email (0.1.6)
activemodel (>= 3.0)

@ -348,7 +348,7 @@ class RepositoriesController < ApplicationController
end
changes_by_day = Change.includes(:changeset)
.where(["#{Changeset.table_name}.repository_id = ? "\
.where(["#{Changeset.table_name}.repository_id = ? " \
"AND #{Changeset.table_name}.commit_date BETWEEN ? AND ?",
repository.id, @date_from, @date_to])
.references(:changesets)

@ -140,12 +140,12 @@ class ApplicationMailer < ActionMailer::Base
else
"#{object.class.name.demodulize.underscore}-#{object.id}"
end
hash = 'op'\
'.'\
"#{object_reference}"\
'.'\
"#{Time.current.strftime('%Y%m%d%H%M%S')}"\
'.'\
hash = 'op' \
'.' \
"#{object_reference}" \
'.' \
"#{Time.current.strftime('%Y%m%d%H%M%S')}" \
'.' \
"#{recipient.id}"
"#{hash}@#{header_host_value}"
@ -160,8 +160,8 @@ class ApplicationMailer < ActionMailer::Base
# It in fact is aimed not not so that similar messages (i.e. those belonging to the same
# work package and journal) end up being grouped together.
def references_value(object)
hash = 'op'\
'.'\
hash = 'op' \
'.' \
"#{object.class.name.demodulize.underscore}-#{object.id}"
"#{hash}@#{header_host_value}"

@ -57,7 +57,7 @@ class Attachments::FinishDirectUploadJob < ApplicationJob
::OpenProject.logger.error e
attachment.destroy
ensure
File.unlink(local_file.path) if File.exist?(local_file.path)
FileUtils.rm_rf(local_file.path)
end
def set_attributes_from_file(attachment, local_file)

@ -121,7 +121,7 @@ class BackupJob < ::ApplicationJob
def remove_files!(*files)
Array(files).each do |file|
FileUtils.rm file if File.exist? file
FileUtils.rm_rf file
end
end

@ -138,11 +138,11 @@ class CopyProjectJob < ApplicationJob
rescue ActiveRecord::RecordNotFound => e
logger.error("Entity missing: #{e.message} #{e.backtrace.join("\n")}")
rescue StandardError => e
logger.error('Encountered an error when trying to copy project '\
logger.error('Encountered an error when trying to copy project ' \
"'#{source_project_id}' : #{e.message} #{e.backtrace.join("\n")}")
ensure
unless errors.empty?
logger.error('Encountered an errors while trying to copy related objects for '\
logger.error('Encountered an errors while trying to copy related objects for ' \
"project '#{source_project_id}': #{errors.inspect}")
end
end

@ -54,7 +54,7 @@ module Projects
end
def log_standard_error(e)
logger.error('Encountered an error when trying to delete project '\
logger.error('Encountered an error when trying to delete project ' \
"'#{project}' : #{e.message} #{e.backtrace.join("\n")}")
end

@ -9,7 +9,7 @@ module OpenProject::Patches::CarrierwaveSanitizedFile
def mkdir!(path, directory_permissions)
options = {}
options[:mode] = directory_permissions if directory_permissions
FileUtils.mkdir_p(File.dirname(path), **options) unless File.exist?(File.dirname(path))
FileUtils.mkdir_p(File.dirname(path), **options)
end
end
end

@ -80,7 +80,7 @@ module Bim
# For local uploads the file must remain to be copied later to its final (local) destination from the cache.
return unless OpenProject::Configuration.direct_uploads?
FileUtils.rm file_path if File.exist? file_path
FileUtils.rm_rf file_path
end
def uploader_is_ifc_attachment_author

@ -432,7 +432,7 @@ describe OpenProject::SCM::Adapters::Git do
annotate = adapter.annotate('sources/watchers_controller.rb')
expect(annotate).to be_kind_of(OpenProject::SCM::Adapters::Annotate)
expect(annotate.lines.length).to eq(41)
expect(annotate.lines[4].strip).to eq('# This program is free software; '\
expect(annotate.lines[4].strip).to eq('# This program is free software; ' \
'you can redistribute it and/or')
expect(annotate.revisions[4].identifier).to eq('7234cb2750b63f47bff735edc50a1c0a433c2518')
expect(annotate.revisions[4].author).to eq('jsmith')

@ -358,7 +358,7 @@ describe OpenProject::SCM::Adapters::Subversion do
describe '.cat' do
it 'outputs the given file' do
out = adapter.cat('subversion_test/[folder_with_brackets]/README.txt', 11)
expect(out).to eq('This file should be accessible for Redmine, '\
expect(out).to eq('This file should be accessible for Redmine, ' \
"although its folder contains square\nbrackets.\n")
end

@ -103,7 +103,7 @@ describe WorkPackages::Scopes::Relatable, '.relatable scope' do
end
end
context "for the '#{current_type}' type with the other project being in a different project "\
context "for the '#{current_type}' type with the other project being in a different project " \
"and having cross project relations disabled", with_settings: { cross_project_work_package_relations: false } do
let(:relation_type) { current_type }
let(:unrelated_work_package) { create(:work_package, project: create(:project)) }
@ -114,7 +114,7 @@ describe WorkPackages::Scopes::Relatable, '.relatable scope' do
end
end
context "for the '#{current_type}' type with the other project being in a different project "\
context "for the '#{current_type}' type with the other project being in a different project " \
"and having cross project relations enabled", with_settings: { cross_project_work_package_relations: true } do
let(:relation_type) { current_type }
let(:unrelated_work_package) { create(:work_package, project: create(:project)) }

@ -81,8 +81,8 @@ describe 'API v3 Render resource', type: :request do
let(:id) { work_package.id }
let(:href) { "/work_packages/#{id}" }
let(:text) do
'<p class="op-uc-p">Hello World! Have a look at <a '\
"class=\"issue work_package preview-trigger op-uc-link\" "\
'<p class="op-uc-p">Hello World! Have a look at <a ' \
"class=\"issue work_package preview-trigger op-uc-link\" " \
"href=\"#{href}\">##{id}</a></p>"
end

@ -179,7 +179,7 @@ describe BackupJob, type: :model do
end
after do
FileUtils.rm dummy_path if File.exist? dummy_path
FileUtils.rm_rf dummy_path
end
it_behaves_like "it creates a backup", remote_storage: true

Loading…
Cancel
Save