neo4j 7.1.0 → 7.1.1

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
  SHA1:
3
- metadata.gz: ba15fc0f5d37d234071965eed2d43f554b975d97
4
- data.tar.gz: 6ec523603c6fb4fe1866cd12534c537694978b74
3
+ metadata.gz: 6375692eca36d132d9e274aa374b92ea3d6346ae
4
+ data.tar.gz: d49392db1ed0558c86b4fd3d963fd3977e9cf0e2
5
5
  SHA512:
6
- metadata.gz: ebc52066120144041f6e288c558e13fed5e25849182dfb39641a97531064e28b31866610859500943c1c74e352f80c3a661c6780b44bd241765184db7789f4f1
7
- data.tar.gz: 29700cde539799c8ce950275c1de1bf9eedaa8c85f5d4fb57aee460653b6390709d28e1ec19dd5d0246ab74da04f59b5f172eb8617c0a69dcab189500d778193
6
+ metadata.gz: ac1a3b77079c3db6cd2e18b43ac55fea38b116b439b1e0e456d9a24f28507b52d74dc4d47684220093a096447c7876cefd616daf7b8400debea6532ff418fcfd
7
+ data.tar.gz: 8b65881627ed47fd3d339df0593c47ce943a8e226b2e9d29d78a552a42b93e6a3f37de42f48557ac17087a7354f9ec0f26391658d2a94d1f2d36252f78ac8e12
@@ -109,7 +109,14 @@ module Neo4j::ActiveNode
109
109
  @query_proxy.public_send(:replace_with, *args)
110
110
  end
111
111
 
112
- QUERY_PROXY_METHODS = [:<<, :delete, :create]
112
+ QUERY_PROXY_METHODS = [:<<, :delete, :create, :pluck, :where, :where_not, :rel_where, :rel_order, :order, :skip, :limit]
113
+
114
+ QUERY_PROXY_METHODS.each do |method|
115
+ define_method(method) do |*args, &block|
116
+ @query_proxy.public_send(method, *args, &block)
117
+ end
118
+ end
119
+
113
120
  CACHED_RESULT_METHODS = []
114
121
 
115
122
  def method_missing(method_name, *args, &block)
@@ -117,7 +124,7 @@ module Neo4j::ActiveNode
117
124
  super if target.nil?
118
125
 
119
126
  cache_query_proxy_result if !cached? && !target.is_a?(Neo4j::ActiveNode::Query::QueryProxy)
120
- clear_cache_result if !QUERY_PROXY_METHODS.include?(method_name) && target.is_a?(Neo4j::ActiveNode::Query::QueryProxy)
127
+ clear_cache_result if target.is_a?(Neo4j::ActiveNode::Query::QueryProxy)
121
128
 
122
129
  target.public_send(method_name, *args, &block)
123
130
  end
@@ -130,8 +137,6 @@ module Neo4j::ActiveNode
130
137
 
131
138
  def target_for_missing_method(method_name)
132
139
  case method_name
133
- when *QUERY_PROXY_METHODS
134
- @query_proxy
135
140
  when *CACHED_RESULT_METHODS
136
141
  @cached_result
137
142
  else
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '7.1.0'
2
+ VERSION = '7.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4j
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.0
4
+ version: 7.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Ronge, Brian Underwood, Chris Grigg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-14 00:00:00.000000000 Z
11
+ date: 2016-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter