neo4j 6.1.4 → 6.1.5

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: 33a1085d5e78ca458ea06f2d2c9d5be259bde96a
4
- data.tar.gz: d9da156704e3c1cc9800a0df614f5a211e4d2e5e
3
+ metadata.gz: 9e354c8febb1d9184fa43cce76cd330c41c6dbd8
4
+ data.tar.gz: afd33c3f4996017fac26e3315e023627a2664591
5
5
  SHA512:
6
- metadata.gz: eb10e657b8e0dc076cc93a4e897bf3a9b489ebe47cc174ab26102b5ecdc03ea491d3cbf2704f2cb9155384053c0f024946f8d5e05903f9941219158b1c7f938c
7
- data.tar.gz: c5fa088f4dbf74b7164475a1d507a09b014fe32cc581e031f948c3976880462fa4e8b12a1fff9d0a5ca56c7085c631256390931377dd4648960e2f19373ee7d0
6
+ metadata.gz: 6f69ced8cf20c80e1ec7220eecf27f63eaa6b95f6f74e9bd1940ae7fc93c5de4ca53ce8af463d19185866efab1570e1ee12a90dff447b986449243d723b56e50
7
+ data.tar.gz: c430069c05842ada0082e3f9d1be20981660901bd50844b276ee6363cdb2f2f89ab35bb732ee808c24a3a48cd5c51fd119dd79b7a02626fa81d956dcc92ac983
data/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.
3
3
  This file should follow the standards specified on [http://keepachangelog.com/]
4
4
  This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ ## [6.1.5] - 2016-01-28
7
+
8
+ ### Fixed
9
+
10
+ - Calls to `.find`/`.find_by_id`/`.find_by_ids` now respect scopes and associations
11
+
6
12
  ## [6.1.4] - 2016-01-26
7
13
 
8
14
  ### Fixed
@@ -129,11 +129,11 @@ module Neo4j::ActiveNode
129
129
  end
130
130
 
131
131
  def find_by_id(id)
132
- self.where(id_property_name => id).first
132
+ all.where(id_property_name => id).first
133
133
  end
134
134
 
135
135
  def find_by_ids(ids)
136
- self.where(id_property_name => ids).to_a
136
+ all.where(id_property_name => ids).to_a
137
137
  end
138
138
 
139
139
  def id_property(name, conf = {})
@@ -142,8 +142,6 @@ module Neo4j::ActiveNode
142
142
  @id_property_info = {name: name, type: conf}
143
143
  TypeMethods.define_id_methods(self, name, conf)
144
144
  constraint(name, type: :unique) unless conf[:constraint] == false
145
-
146
- self.define_singleton_method(:find_by_id) { |key| self.where(name => key).first }
147
145
  end
148
146
  end
149
147
 
data/lib/neo4j/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '6.1.4'
2
+ VERSION = '6.1.5'
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: 6.1.4
4
+ version: 6.1.5
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-01-26 00:00:00.000000000 Z
11
+ date: 2016-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter