Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.0', '3.1', '3.2']
ruby-version: ['3.4', '4.0']
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
Expand Down
2 changes: 1 addition & 1 deletion lib/state_machines/graphviz/graph.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Graph < GraphViz
# "landscape"). Default is "portrait".
def initialize(name, options = {})
options = { path: 'doc/state_machines', format: 'png', font: 'Arial', orientation: 'portrait' }.merge(options)
options.assert_valid_keys(:path, :format, :font, :orientation)
StateMachines::OptionsValidator.assert_valid_keys!(options, :path, :format, :font, :orientation)

# TODO: fail if path cannot be created or readonly
FileUtils.mkpath(options[:path]) unless Dir.exist? options[:path]
Expand Down
2 changes: 1 addition & 1 deletion state_machines-graphviz.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ Gem::Specification.new do |spec|
spec.add_dependency 'ruby-graphviz'
spec.add_development_dependency 'bundler'
spec.add_development_dependency 'rake'
spec.add_development_dependency 'minitest', '>=5.6.0'
spec.add_development_dependency 'minitest', '= 5.27.0'
end