protip 0.31.1 → 0.31.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/protip/decorator.rb +9 -11
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 948fb334d98a598a5671aae10d2c7d8e14cad2f4
4
- data.tar.gz: c9e7f60496b7f6a84f70e3df9a7f0dbefccdcf1c
3
+ metadata.gz: 1b35614f55f597e8e948d974a52573d1b876f9e3
4
+ data.tar.gz: 39dabf379cbc2183bbd5128a6170b849298bb382
5
5
  SHA512:
6
- metadata.gz: f13be56334b22c2c23a4a9647578050a7a0a8317c1bbeb4af85ccf5386d55eaa1f780007d87e6464cb8741155b686c0d366db5a255953a6431fa518db785ce86
7
- data.tar.gz: 3513cdaf2049bfb917606aaf8ff8185efe49bbdfeeca1be9d5e879b3cc6dc0de2239480bf61b8eea34bb6ceb7d8f659167d5526c4e3bd8d3880925fca3cd8c8a
6
+ metadata.gz: cc265d64daf5816ad03aec686e95a5e9125a26918c187e97793085e1198e9ff6c85012e2b8407187414fdf6a8b9d35ae85041125e8c7b2f46348e648549fc2dd
7
+ data.tar.gz: dfc5f0815cd9322452afa942dd8f6555bec87c8c47c04a7a659d58252ec1ab74db23b629d8cf7499c55275ce604f427d472733db90023c0f791100880491359c
@@ -22,19 +22,17 @@ module Protip
22
22
  "<#{self.class.name}(#{transformer.class.name}) #{message.inspect}>"
23
23
  end
24
24
 
25
- def respond_to?(name, include_all=false)
26
- if super
27
- true
28
- else
29
- # Responds to calls to oneof groups by name
30
- return true if message.class.descriptor.lookup_oneof(name.to_s)
25
+ def respond_to_missing?(name, *)
26
+ return true if super
31
27
 
32
- # Responds to field getters, setters, and query methods for all fieldsfa
33
- field = message.class.descriptor.lookup(name.to_s.gsub(/[=?]$/, ''))
34
- return false if !field
28
+ # Responds to calls to oneof groups by name
29
+ return true if message.class.descriptor.lookup_oneof(name.to_s)
35
30
 
36
- true
37
- end
31
+ # Responds to field getters, setters, and query methods for all fieldsfa
32
+ field = message.class.descriptor.lookup(name.to_s.gsub(/[=?]$/, ''))
33
+ return true if field
34
+
35
+ false
38
36
  end
39
37
 
40
38
  def method_missing(name, *args)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.1
4
+ version: 0.31.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - AngelList