Skip to content

Commit

Permalink
Merge pull request #64 from tungleduyxyz/jruby_9.4_fix_bugs
Browse files Browse the repository at this point in the history
Update gem activerecord-jdbc-adapter
  • Loading branch information
pierre authored Dec 11, 2023
2 parents 001795b + 55c5d6b commit 78e9a19
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
16 changes: 7 additions & 9 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source 'https://rubygems.org'

gem 'jquery-rails', '~> 4.5.1'
gem 'mustache-js-rails', '~> 0.0.7'
gem 'rails', '~> 7.0'
gem 'rails', '~> 7.0.1'
gem 'sprockets-rails'

gem 'jruby-jars', '~> 9.4.2'
Expand Down Expand Up @@ -53,15 +53,13 @@ if defined?(JRUBY_VERSION)

gem 'therubyrhino'

gem 'nio4r', '2.5.2', platforms: :jruby
gem 'nio4r', '2.7.0', platforms: :jruby

git 'https://github.com/jruby/activerecord-jdbc-adapter', branch: 'master' do
gem 'activerecord-jdbc-adapter'
# Add the drivers
gem 'jdbc-mariadb'
gem 'jdbc-postgres'
gem 'jdbc-sqlite3'
end
gem 'activerecord-jdbc-adapter', '~> 70.0', platforms: :jruby
# Add the drivers
gem 'jdbc-mariadb'
gem 'jdbc-postgres'
gem 'jdbc-sqlite3'
else
gem 'mysql2'
gem 'pg'
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/encryption.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

config_file = nil
config_file = java.lang.System.getProperty('kaui.encryption.filename') if defined?(JRUBY_VERSION)
config_file ||= (ENV['KAUI_ENCRYPTION_FILENAME'] || 'config/symmetric-encryption.yml')
config_file ||= ENV['KAUI_ENCRYPTION_FILENAME'] || 'config/symmetric-encryption.yml'

SymmetricEncryption.load!(config_file)
2 changes: 1 addition & 1 deletion config/initializers/kaui.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module Kaui

Kaui.demo_mode ||= (ENV['KAUI_DEMO_MODE'] || 'false') == 'true'
Kaui.plugins_whitelist ||= ENV.fetch('KAUI_PLUGINS_WHITELIST', nil)
Kaui.root_username ||= (ENV['KAUI_ROOT_USERNAME'] || 'admin')
Kaui.root_username ||= ENV['KAUI_ROOT_USERNAME'] || 'admin'
Kaui.disable_sign_up_link ||= (ENV['KAUI_DISABLE_SIGN_UP_LINK'] || 'true') == 'true'
Kaui.additional_headers_partial = 'layouts/additional_header'

Expand Down

0 comments on commit 78e9a19

Please sign in to comment.