Skip to content

Commit

Permalink
Upgrade to Ruby 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
isc committed Dec 27, 2023
1 parent beeb243 commit 16e1662
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.2
3.3.0
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'http://rubygems.org'

ruby '3.2.2'
ruby '3.3.0'

gem 'attr_encrypted'
gem 'binary_search', require: 'binary_search/pure'
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ DEPENDENCIES
webdrivers

RUBY VERSION
ruby 3.2.2p53
ruby 3.3.0p0

BUNDLED WITH
2.4.21
6 changes: 5 additions & 1 deletion test/test_database_schema.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
test_adapter = ENV['adapter'] || ENV['ADAPTER'] || 'postgres'
ActiveRecord::Base.connection.execute 'create database "adminium-fixture"' if ENV['CI']
begin
ActiveRecord::Base.connection.execute 'create database "adminium-fixture"'
rescue ActiveRecord::StatementInvalid => e
raise e unless e.message.starts_with? 'PG::DuplicateDatabase'
end
conn_spec = ActiveRecord::Base.configurations.find_db_config("fixture-#{test_adapter}").configuration_hash
Rails.configuration.test_database_conn_spec =
"#{conn_spec[:adapter]}://#{conn_spec[:username]}:#{conn_spec[:password]}@#{conn_spec[:host]}/#{conn_spec[:database]}"
Expand Down

0 comments on commit 16e1662

Please sign in to comment.