pg_sql_caller 0.2.0 → 0.2.2

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: e4b2e038f51a96f0c3a4a1e03188c4b4749fdd02e22ec0ba743ea1fd98b52525
4
- data.tar.gz: 9bdb58247ac0d41b9d802a0c447ff3b5505686aa91b689d53767420a8f3cb87d
3
+ metadata.gz: b23e2a1abd27915a70c5b94e1d58cc4cf31dbc7e09fd5a547e9d0920b2dd3a6d
4
+ data.tar.gz: 3d7ebae5a4662ae6cbeee8fc7e8d3abeba142fcc2987477906fafcf5474982d4
5
5
  SHA512:
6
- metadata.gz: 8b9fe48fae8aaa5ed8888261e2d5751521f98775a2216f14563ad774814fb26221cd9f7f408d9995305dc7a1d4c5a2a382f4ca410f44b0f4cee20baa54908ba9
7
- data.tar.gz: '0494140c6078a7d34427f0fcbdd58c1543fd2901a7d2746b7dad500ad2f5078409ad0579e5d84e703bf8abf48ae82e82eeb46b3aa89fda1af3317d8e75fa628c'
6
+ metadata.gz: 224ee54d583c10f9b4143f3814b7dc9e387e9ef27065c89d0c05ba85499b49a2f854e6065d74bb5fc96ff94600c7cd74abe0c70ec02c2a5924937546eb99c3af
7
+ data.tar.gz: 31e0cb830987de3bef4574b73de6c3b04a75e535c3f994d40e650ed7f47d3e45b22ed0091f4d31caac7e68ceba5ebdadd4454d679117a4636a279eceae480e85
@@ -53,6 +53,7 @@ module PgSqlCaller
53
53
 
54
54
  delegate(
55
55
  *CONNECTION_SQL_METHODS,
56
+ :connection,
56
57
  :transaction_open?,
57
58
  :select_all_serialized,
58
59
  :select_value_serialized,
@@ -72,6 +73,8 @@ module PgSqlCaller
72
73
 
73
74
  define_sql_methods(*CONNECTION_SQL_METHODS)
74
75
 
76
+ delegate :connection, to: :model_class
77
+
75
78
  def transaction_open?
76
79
  connection.send(:transaction_open?)
77
80
  end
@@ -140,8 +143,6 @@ module PgSqlCaller
140
143
 
141
144
  private
142
145
 
143
- delegate :connection, to: :model_class
144
-
145
146
  def deserialize_result(result, column_name, raw_value)
146
147
  column_type = result.column_types[column_name]
147
148
  return raw_value if column_type.nil?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgSqlCaller
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_sql_caller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Talakevich
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-23 00:00:00.000000000 Z
11
+ date: 2023-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  requirements: []
85
- rubygems_version: 3.0.8
85
+ rubygems_version: 3.1.6
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Postgresql Sql Caller for ActiveRecord