Merge pull request #3 from PixelRidge-Softworks/development

Update rubocop tests
This commit is contained in:
VetheonGames 2023-07-27 19:47:37 -06:00 committed by GitHub
commit adcb72dec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 11 deletions

4
.bundle/config Normal file
View File

@ -0,0 +1,4 @@
---
BUNDLE_PATH: "/home/runner/work/Ru-b2-SQL-Backups/Ru-b2-SQL-Backups/vendor/bundle"
BUNDLE_DEPLOYMENT: "true"
BUNDLE_JOBS: "4"

View File

@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.RUBOCOP_CHECKS }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Ruby
uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0
with:

12
Gemfile
View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
source 'https://rubygems.org'
gem 'rubocop', '1.46.0'
gem 'json', '2.6.3'
# frozen_string_literal: true
source 'https://rubygems.org'
gem 'json', '2.6.3'
gem 'rubocop', '1.46.0'

View File

@ -58,9 +58,7 @@ class Loggman
def delete_old_logs
Dir.glob(File.join(@log_dir, "#{LOG_PREFIX}-*.log")).each do |logfile|
if Time.now - File.mtime(logfile) > MAX_LOG_AGE
FileUtils.rm(logfile)
end
FileUtils.rm(logfile) if Time.now - File.mtime(logfile) > MAX_LOG_AGE
end
end
end

View File

@ -72,7 +72,7 @@ class MysqlDatabaseConfig
private
def prompt(message, default: nil)
print message.to_s
print message
print " [#{default}]" if default
print ': '
value = gets.chomp