proxies 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/proxies/proxy.rb +5 -0
- data/lib/proxies/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2516bb4c3263238cc119e7ce892d329e530d1943605151fc61f1b49139453d4
|
4
|
+
data.tar.gz: 1304dedf1740fe18d55e402cb0d6f9dc7a305c1d56b72c5e7a03e0e01e098e0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 891400a19c779effdd4f7782a3d13774a3e52697d24a20bd172eb6f755f5e54a891c41ae57724687526f070301cd81e2506718845292668d8dbed64897e61d1c
|
7
|
+
data.tar.gz: 639e944ec5ec1a53bbb2582fd2e339a97937b689df385e8d436ad6e4b3a71a68b4ca31b434ab863ccc515b785f90d5d3e868dde7c03d48f7ee4ff04d972de4e5
|
data/lib/proxies/proxy.rb
CHANGED
@@ -6,6 +6,7 @@ module Proxies
|
|
6
6
|
module ProxyRespondTo
|
7
7
|
def proxy_respond_to?(method)
|
8
8
|
this = self
|
9
|
+
this = this # suppress a warning message
|
9
10
|
!!::Kernel.eval("defined?(this.#{method})")
|
10
11
|
end
|
11
12
|
end
|
@@ -60,5 +61,9 @@ module Proxies
|
|
60
61
|
def method_missing(name, *args, &block)
|
61
62
|
proxy_target.send(name, *args, &block)
|
62
63
|
end
|
64
|
+
|
65
|
+
def respond_to?(name, include_private = false)
|
66
|
+
proxy_target.respond_to?(name, include_private)
|
67
|
+
end
|
63
68
|
end
|
64
69
|
end
|
data/lib/proxies/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: proxies
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kuba Kuźma
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|