simple-sql 0.5.17 → 0.5.18

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: 0b8298df440e9b824cf8ff857f3f79e0d269ffaa5d6aeb97f5399207ea6975ac
4
- data.tar.gz: bef665d8dec7bb979215fe5176a852a45a6492f606c3789c2e059d6eea417581
3
+ metadata.gz: 539c668c59391992ee22ef86ddc7c6d9a20030cbbcf473ddba4d4c8eccdf2a4f
4
+ data.tar.gz: 28ab53f413beff60ad5bf3ab55769c5fb526ace82419e2bd695bc4cbd81bba82
5
5
  SHA512:
6
- metadata.gz: dc00fd4efac18747a45653d8bb9aaa6d0a4551d6bd8ad983806b33cb7d6f78799be2e9da550e51b472b47970850d0e66799cc5f0e5984e58b59f3355d64d4cc6
7
- data.tar.gz: aa96581f9292ff506935f5a51506241923ceb718f2257ad4606c719003d8fca6eaddca884dd7d1a1377f5058b899d6d9469a7144cdaf9e996c456f8ab48c1616
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"
@@ -1,5 +1,5 @@
1
1
  module Simple
2
2
  module SQL
3
- VERSION = "0.5.17"
3
+ VERSION = "0.5.18"
4
4
  end
5
5
  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.5.17
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-05 00:00:00.000000000 Z
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