arproxy 0.2.8 → 0.2.9

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: b6a668391e1de935604c9420c5e91772d3f5f4284f6ab507b70427619dc71598
4
- data.tar.gz: bd4722da1fe0552ee5c9195de6f8ff8fc6de59d55837e33dd77b83578913436a
3
+ metadata.gz: 97417dad77bf18a6a058b5a7bf30cfd2118e70a2db8da4eb9574f5d6694b1119
4
+ data.tar.gz: 76361afc976b7fd086c702fb7dd0629b3d0ad85776667b1438d323db64173139
5
5
  SHA512:
6
- metadata.gz: 970cdc1cb59f9e43739e433b4d246cb7279fd7329788c96c5f4f0727ebd79cebd097fe9722bfa56835919e8cf5b7ecde5b3e8b29c1f1c4f0fc6f2b2fdef08b77
7
- data.tar.gz: db1f2b354497d39eb3f317c0a64b783e4cb1798a4ebeaea8d55f7877e83866604423f14126bb8b57377f631a786674f7ed9c6208bc27094d787f21cc46148325
6
+ metadata.gz: 0515356f2ddafdb1f77bbb6dfb49769fbc4d08d1381bf2657f32210d3dd9841f3e29d5ca157f6e24e23392d219f0123dc703c0e1c34e083ee06ed58d3f09ec32
7
+ data.tar.gz: 95ce473dc91f7d5a38009eb105b35b3f8760f31f8fbb85b9fe45c66151864c98120585f6476363dc395f3a1d66a3d3433e4d2355c420b36dff4e392464c9c51d
data/lib/arproxy/base.rb CHANGED
@@ -2,8 +2,8 @@ module Arproxy
2
2
  class Base
3
3
  attr_accessor :proxy_chain, :next_proxy
4
4
 
5
- def execute(sql, name=nil)
6
- next_proxy.execute sql, name
5
+ def execute(sql, name=nil, **kwargs)
6
+ next_proxy.execute sql, name, **kwargs
7
7
  end
8
8
  end
9
9
  end
@@ -4,8 +4,8 @@ module Arproxy
4
4
  self.proxy_chain = proxy_chain
5
5
  end
6
6
 
7
- def execute(sql, name=nil)
8
- self.proxy_chain.connection.execute_without_arproxy sql, name
7
+ def execute(sql, name=nil, **kwargs)
8
+ self.proxy_chain.connection.execute_without_arproxy sql, name, **kwargs
9
9
  end
10
10
  end
11
11
  end
@@ -29,9 +29,9 @@ module Arproxy
29
29
 
30
30
  def enable!
31
31
  @config.adapter_class.class_eval do
32
- def execute_with_arproxy(sql, name=nil)
32
+ def execute_with_arproxy(sql, name=nil, **kwargs)
33
33
  ::Arproxy.proxy_chain.connection = self
34
- ::Arproxy.proxy_chain.head.execute sql, name
34
+ ::Arproxy.proxy_chain.head.execute sql, name, **kwargs
35
35
  end
36
36
  alias_method :execute_without_arproxy, :execute
37
37
  alias_method :execute, :execute_with_arproxy
@@ -1,3 +1,3 @@
1
1
  module Arproxy
2
- VERSION = '0.2.8'
2
+ VERSION = '0.2.9'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arproxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Issei Naruta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-18 00:00:00.000000000 Z
11
+ date: 2022-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord