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
1 change: 1 addition & 0 deletions lib/pg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module PG
POSTGRESQL_LIB_PATH = false
end
end
POSTGRESQL_LIB_PATH.freeze

add_dll_path = proc do |path, &block|
if RUBY_PLATFORM =~/(mswin|mingw)/i && path
Expand Down
1 change: 1 addition & 0 deletions lib/pg/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module PG
# Library version
VERSION = '1.6.1'
Expand Down
10 changes: 10 additions & 0 deletions spec/pg_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,14 @@

expect( bres ).to eq( 55 )
end

it "should provide constants in a Ractor", :ractor do
vals = Ractor.new(@conninfo) do |conninfo|
[PG.library_version, PG.version_string, PG.threadsafe?, PG::VERSION, PG::POSTGRESQL_LIB_PATH]
end.value

expect( vals ).to eq(
[PG.library_version, PG.version_string, PG.threadsafe?, PG::VERSION, PG::POSTGRESQL_LIB_PATH]
)
end
end
Loading