ruby-pg-extras 5.6.16 → 5.6.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ruby-pg-extras.rb +2 -0
- data/lib/ruby_pg_extras/version.rb +1 -1
- data/spec/smoke_spec.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 743910d2bd970c03a9ca1d79d56de46d40c5742aae37d0e24021d58e5c2883c6
|
|
4
|
+
data.tar.gz: e6a50ce83c92f55f49119feaeddf6796c3035a9b1b1d30a2d2439af4231c744a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c9f78aed2dfbbadbb41e9957b390b1dc4f0effd997515b7fd8679d677c210d0da9a664f14e16a0bb5f5d26016c98c40331acb9db8327073ec9ee3514a3519e8
|
|
7
|
+
data.tar.gz: 73f758201aac10e76af41a531b9e0bf0badec4eba00491174225ac46981d1c92e9cfedaaebba694472b036d7b603197d361948999d1a11a2d4af0d990271db7c
|
data/lib/ruby-pg-extras.rb
CHANGED
data/spec/smoke_spec.rb
CHANGED
|
@@ -65,5 +65,17 @@ describe RubyPgExtras do
|
|
|
65
65
|
RubyPgExtras.bloat(in_format: :hash)
|
|
66
66
|
end.not_to raise_error
|
|
67
67
|
end
|
|
68
|
+
|
|
69
|
+
it "resets the connection when setting database URL" do
|
|
70
|
+
old_connection = RubyPgExtras.connection
|
|
71
|
+
expect(old_connection).not_to be_finished
|
|
72
|
+
|
|
73
|
+
RubyPgExtras.database_url = ENV.fetch("DATABASE_URL")
|
|
74
|
+
|
|
75
|
+
expect(old_connection).to be_finished
|
|
76
|
+
new_connection = RubyPgExtras.connection
|
|
77
|
+
expect(new_connection).not_to eq(old_connection)
|
|
78
|
+
expect(new_connection).not_to be_finished
|
|
79
|
+
end
|
|
68
80
|
end
|
|
69
81
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-pg-extras
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.6.
|
|
4
|
+
version: 5.6.17
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- pawurb
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pg
|