Skip to content

Commit

Permalink
set min ruby version
Browse files Browse the repository at this point in the history
  • Loading branch information
bdurand committed Nov 11, 2023
1 parent 04163cb commit c653571
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .standard.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
format: progress

ruby_version: 2.5

ignore:
- '**/*':
- Standard/SemanticBlocks
- 'spec/**/*':
- Lint/ConstantDefinitionInBlock
- Lint/UselessAssignment

4 changes: 2 additions & 2 deletions lib/support_table_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,9 @@ def data_directory
#
# @param extra_classes [Class] List of classes to force into the detected list of classes to sync.
# @return [Hash<Class, Array<Hash>] Hash of classes synced with a list of saved changes.
def sync_all!(*)
def sync_all!(*extra_classes)
changes = {}
support_table_classes(*).each do |klass|
support_table_classes(*extra_classes).each do |klass|
changes[klass] = klass.sync_table_data!
end
changes
Expand Down
2 changes: 2 additions & 0 deletions support_table_data.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Gem::Specification.new do |spec|

spec.require_paths = ["lib"]

spec.required_ruby_version = ">= 2.5"

spec.add_dependency "activerecord"

spec.add_development_dependency "bundler"
Expand Down

0 comments on commit c653571

Please sign in to comment.