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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a8d952b6d350547b897cd8afad497a6b4dcb8f0567baa16859cdd9d0d44850a
4
- data.tar.gz: dda8e3d357c610d1e7e95b72381e1ac1e5a7ab21181dda1c9f9d16a2cc56e9b7
3
+ metadata.gz: 0d15e3cf80cc7d5cf308b674a55712a02878e45d1b25b7771248dc020f930d80
4
+ data.tar.gz: 258e8a8f695c80a4b630431371689162607aa08d204aea15333f3ad1687565c7
5
5
  SHA512:
6
- metadata.gz: 7b2cc6e58148a831c23bfb03cd78d4ef756d88860d0f02400ab7b761b7421223bd2a1ab376a76f87d08c57b73b4373b04543844db1ddd0ea770ad65dd7488770
7
- data.tar.gz: 76c84127c9cc9bc10f158deb1bf2cd6d217d0234ba21ebff87d4cb0a96433169f8ea9c70ae3fcf7fd3b6801a98f9bc6f30779ab4f1a454fd767d515c7205a686
6
+ metadata.gz: ee750f741f4bffce5bba59eb938b9fd4ff21854c1ffa1d3b506814a83659a640de508c77cacaf18ca7124f2c3deb684fd3fad239c3337c808b9cf162a770e85c
7
+ data.tar.gz: 4f31769ed4cb0a30b18e2864a224d0c87b772439bd6ca3660a44f427b8d0568633a3104931c523dc26160a314a58d814eba71e87b0b1d98b0dec55420ecfed4c
@@ -1,5 +1,5 @@
1
1
  module Simple
2
2
  module SQL
3
- VERSION = "0.4.27"
3
+ VERSION = "0.4.28"
4
4
  end
5
5
  end
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.27
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-18 00:00:00.000000000 Z
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