squeel 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,11 @@ module Squeel
9
9
  include PredicateOperators
10
10
  include Operators
11
11
 
12
- undef_method :id if method_defined?(:id)
12
+ # We need some methods to fall through to the endpoint or create a new
13
+ # stub of the given name
14
+ %w(id == != =~ !~).each do |method_name|
15
+ undef_method method_name if method_defined?(method_name)
16
+ end
13
17
 
14
18
  # @return [Array<Symbol, Stub, Join>] The path
15
19
  attr_reader :path
@@ -115,11 +119,6 @@ module Squeel
115
119
  self
116
120
  end
117
121
 
118
- # To let these fall through to the endpoint via method_missing
119
- instance_methods.grep(/^(==|=~|!~)$/) do |operator|
120
- undef_method operator
121
- end
122
-
123
122
  # For use with equality tests
124
123
  def hash
125
124
  [self.class, endpoint, *path].hash
@@ -1,3 +1,3 @@
1
1
  module Squeel
2
- VERSION = "0.7.3"
2
+ VERSION = "0.7.4"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: squeel
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.7.3
5
+ version: 0.7.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ernie Miller