Skip to content

Commit

Permalink
lock sqlite version
Browse files Browse the repository at this point in the history
  • Loading branch information
bdurand committed Apr 22, 2024
1 parent 56189dd commit e311c38
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
pull_request:
branches-ignore:
- actions-*
workflow_dispatch:

env:
BUNDLE_CLEAN: "true"
Expand Down
4 changes: 3 additions & 1 deletion .standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ format: progress
ruby_version: 2.5

ignore:
- 'spec/**/*':
- "**/*":
- Style/RedundantParentheses
- "spec/**/*":
- Lint/ConstantDefinitionInBlock
- Lint/UselessAssignment
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ gemspec

gem "rspec", "~> 3.0"
gem "rake"
gem "sqlite3"
gem "sqlite3", "~> 1.4"
gem "appraisal"
gem "standard", "~>1.0"
gem "pry-byebug"
Expand Down
6 changes: 3 additions & 3 deletions lib/support_table_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def sync_table_data!
key = record[key_attribute].to_s
attributes = canonical_data.delete(key)
attributes&.each do |name, value|
record.send("#{name}=", value) if record.respond_to?("#{name}=", true)
record.send(:"#{name}=", value) if record.respond_to?(:"#{name}=", true)
end
if record.changed?
changes << record.changes
Expand All @@ -39,7 +39,7 @@ def sync_table_data!
canonical_data.each_value do |attributes|
record = new
attributes.each do |name, value|
record.send("#{name}=", value) if record.respond_to?("#{name}=", true)
record.send(:"#{name}=", value) if record.respond_to?(:"#{name}=", true)
end
changes << record.changes
record.save!
Expand Down Expand Up @@ -132,7 +132,7 @@ def instance_keys
support_table_data.each do |attributes|
key_value = attributes[key_attribute]
instance = new
instance.send("#{key_attribute}=", key_value)
instance.send(:"#{key_attribute}=", key_value)
values << instance.send(key_attribute)
end
@support_table_instance_keys = values.uniq
Expand Down

0 comments on commit e311c38

Please sign in to comment.