simple-sql 0.5.17 → 0.5.18
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/pg/deprecated_constants.rb +15 -0
- data/lib/simple/sql/connection.rb +0 -9
- data/lib/simple/sql/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 539c668c59391992ee22ef86ddc7c6d9a20030cbbcf473ddba4d4c8eccdf2a4f
|
|
4
|
+
data.tar.gz: 28ab53f413beff60ad5bf3ab55769c5fb526ace82419e2bd695bc4cbd81bba82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d518fb85eeb923e61f75d4d51a52330e2a22cbf730a51238d0f7df389903cea13aad48a1c49b52fb54d2b083b300637aea282a3ca77f902d28845a0e1d3d28cd
|
|
7
|
+
data.tar.gz: 4e18e1e40a62e1b2b4231ddb342a978b7d04df7deddfa9f410d81ab14d0c30a548b3976b8b1e25f04b984f8e0123c33eec9fc9ccedab512c76db4934b5af86fd
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# pg 0.21 requires a file "pg/deprecated_constants" to warn about constant
|
|
2
|
+
# deprecations of PGconn, PGresult, and PGError. Since this is the latest
|
|
3
|
+
# version supported by Rails 4.2 Since this is also the latest version
|
|
4
|
+
# supported by ActiveRecord 4.2.* this means that with such a old version
|
|
5
|
+
# you would be stuck with this rather senseless warning.
|
|
6
|
+
|
|
7
|
+
# This file here replaces the original, in the hope that requiring
|
|
8
|
+
# "pg/deprecated_constants" would load this file and not the original -
|
|
9
|
+
# effectively suppressing that warning.
|
|
10
|
+
|
|
11
|
+
unless defined?(PGconn)
|
|
12
|
+
PGconn = PG::Connection
|
|
13
|
+
PGresult = PG::Result
|
|
14
|
+
PGError = PG::Error
|
|
15
|
+
end
|
|
@@ -2,15 +2,6 @@ class Simple::SQL::Connection
|
|
|
2
2
|
end
|
|
3
3
|
|
|
4
4
|
require "pg"
|
|
5
|
-
|
|
6
|
-
# pg 0.21 prints deprecation warnings when using its definitions of PGconn,
|
|
7
|
-
# PGError, and PGResult. The below blocks circumvents this - and we are doing this
|
|
8
|
-
unless defined?(PGconn)
|
|
9
|
-
PGconn = PG::Connection
|
|
10
|
-
PGError = PG::Error
|
|
11
|
-
PGResult = PG::Result
|
|
12
|
-
end
|
|
13
|
-
|
|
14
5
|
require "active_record"
|
|
15
6
|
|
|
16
7
|
require_relative "connection/base"
|
data/lib/simple/sql/version.rb
CHANGED
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.5.
|
|
4
|
+
version: 0.5.18
|
|
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: 2019-07-
|
|
12
|
+
date: 2019-07-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: pg_array_parser
|
|
@@ -185,6 +185,7 @@ files:
|
|
|
185
185
|
- bin/rubocop
|
|
186
186
|
- config/console-init.rb
|
|
187
187
|
- config/database.yml
|
|
188
|
+
- lib/pg/deprecated_constants.rb
|
|
188
189
|
- lib/simple-sql.rb
|
|
189
190
|
- lib/simple/sql.rb
|
|
190
191
|
- lib/simple/sql/config.rb
|