Skip to content

Commit

Permalink
Standardrb rules update
Browse files Browse the repository at this point in the history
standardrb was updated and the rules changed a bit. It was necessary to set the Ruby version in the standard.yml to prevent changes that only run in Ruby 3.2.
  • Loading branch information
sascha-karnatz committed Aug 25, 2023
1 parent 7f0a856 commit 5de68f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .standard.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
parallel: true
ruby_version: 3.0
ignore:
- "spec/dummy/**/*"
2 changes: 1 addition & 1 deletion app/models/alchemy/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def available_menu_names
#
def read_definitions_file
if ::File.exist?(definitions_file_path)
::YAML.safe_load(File.read(definitions_file_path)) || []
::YAML.safe_load_file(definitions_file_path) || []
else
raise LoadError, "Could not find menus.yml file! Please run `rails generate alchemy:install`"
end
Expand Down
2 changes: 1 addition & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require_relative "./spec_helper"
require_relative "spec_helper"

# Configure Rails Environment
ENV["RAILS_ENV"] = "test"
Expand Down

0 comments on commit 5de68f7

Please sign in to comment.