simple-sql 0.4.27 → 0.4.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/simple/sql/version.rb +1 -1
- data/lib/simple/sql.rb +0 -9
- 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: 0d15e3cf80cc7d5cf308b674a55712a02878e45d1b25b7771248dc020f930d80
|
4
|
+
data.tar.gz: 258e8a8f695c80a4b630431371689162607aa08d204aea15333f3ad1687565c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee750f741f4bffce5bba59eb938b9fd4ff21854c1ffa1d3b506814a83659a640de508c77cacaf18ca7124f2c3deb684fd3fad239c3337c808b9cf162a770e85c
|
7
|
+
data.tar.gz: 4f31769ed4cb0a30b18e2864a224d0c87b772439bd6ca3660a44f427b8d0568633a3104931c523dc26160a314a58d814eba71e87b0b1d98b0dec55420ecfed4c
|
data/lib/simple/sql/version.rb
CHANGED
data/lib/simple/sql.rb
CHANGED
@@ -82,15 +82,8 @@ module Simple
|
|
82
82
|
def connect!(database_url = :auto)
|
83
83
|
database_url = Config.determine_url if database_url == :auto
|
84
84
|
|
85
|
-
if Thread.current[:"Simple::SQL.database_url"] == database_url
|
86
|
-
logger.debug "thread #{Thread.current.object_id}: already connected to #{database_url}"
|
87
|
-
return
|
88
|
-
end
|
89
|
-
|
90
85
|
connection = Connection.pg_connection(database_url)
|
91
86
|
self.connector = lambda { connection }
|
92
|
-
|
93
|
-
Thread.current[:"Simple::SQL.database_url"] = database_url
|
94
87
|
end
|
95
88
|
|
96
89
|
# disconnects the current connection.
|
@@ -99,8 +92,6 @@ module Simple
|
|
99
92
|
|
100
93
|
connection.disconnect!
|
101
94
|
self.connector = nil
|
102
|
-
|
103
|
-
Thread.current[:"Simple::SQL.database_url"] = database_url
|
104
95
|
end
|
105
96
|
end
|
106
97
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-sql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- radiospiel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-12-
|
12
|
+
date: 2018-12-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pg_array_parser
|