neo4j 5.0.11 → 5.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/lib/neo4j/active_node/query/query_proxy.rb +4 -6
- data/lib/neo4j/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b057f7f5a1a2cfd3c7c7c93f43779c7b7b112ba
|
4
|
+
data.tar.gz: 6fff6a29d11461286b24f7f3bd67a3ae117b677e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfc962e7797e4fd8c574c306670bfb5f64a864e6cc25a0000dc594120d67dcaaf4780767a57ba6af588d0355a731c43a4532bb11ede273ab69229512d1662181
|
7
|
+
data.tar.gz: b239329ab44ab8580abdeaf8776c3aa8686a1ce531220d0bfc6b5b99b72aef02bc4d2653c68343676eb56e730dc177db1ded67805742d0a5f08ffce139d5833a
|
data/CHANGELOG.md
CHANGED
@@ -15,6 +15,31 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
15
15
|
### Added
|
16
16
|
- Added ability to view `model_class` from `Association` class for `rails_admin` Neo4j adapter
|
17
17
|
- QueryProxy `where` will now look for declared properties matching hash keys. When found, it will send the value through that property's type converter if the type matches the property's unconverted state.
|
18
|
+
- Improved handling of unpersisted nodes with associations. You can now use `<<` to create associations between unpersisted nodes. A `save` will cascade through unpersisted objects, creating nodes and rels along the way. See https://github.com/neo4jrb/neo4j/pull/871
|
19
|
+
- Support formatted cypher queries for easy reading by humans via the `pretty_logged_cypher_queries` configuration variable
|
20
|
+
- On `QueryProxy` objects you can now use an `:id` key in `where` and `find_by` methods to refer to the property from `id_property` (`uuid` by default)
|
21
|
+
|
22
|
+
## [5.0.9] - 2015-07-29
|
23
|
+
- Fix "NameError: uninitialized constant Class::Date" (https://github.com/neo4jrb/neo4j/issues/852)
|
24
|
+
|
25
|
+
## [5.0.8] - 2015-07-26
|
26
|
+
- Copied QueryClauseMethods doc from master
|
27
|
+
|
28
|
+
## [5.0.7] - 2015-07-26
|
29
|
+
- Copied `docs` folder from master because a lot of work had gone into the docs since 5.0.0 was released
|
30
|
+
|
31
|
+
## [5.0.6] - 2015-07-22
|
32
|
+
- Fix query logging so that by default it only outputs to the user in the console and development server. Logger can be changed with `neo4j.config.logger` configuration option
|
33
|
+
|
34
|
+
## [5.0.5] - 2015-07-19
|
35
|
+
|
36
|
+
### Added
|
37
|
+
- Added `log_cypher_queries` configuration option so that queries aren't on by default but that they can be controlled
|
38
|
+
|
39
|
+
## [5.0.4] - 2015-07-17
|
40
|
+
|
41
|
+
### Fixed
|
42
|
+
- Fixed bug which caused `QueryProxy` context to repeat (showed up in query logging)
|
18
43
|
|
19
44
|
## [5.0.3] - 2015-07-14
|
20
45
|
|
@@ -51,9 +51,7 @@ module Neo4j
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def inspect
|
54
|
-
|
55
|
-
|
56
|
-
"<QueryProxy #{cyan}#{@context}#{clear} CYPHER: #{yellow}#{self.to_cypher.inspect}#{clear}>"
|
54
|
+
"<QueryProxy #{ANSI::CYAN}#{@context}#{ANSI::CLEAR} CYPHER: #{ANSI::YELLOW}#{self.to_cypher.inspect}#{ANSI::CLEAR}>"
|
57
55
|
end
|
58
56
|
|
59
57
|
attr_reader :start_object, :query_proxy
|
@@ -100,8 +98,8 @@ module Neo4j
|
|
100
98
|
def base_query(var, with_labels = true)
|
101
99
|
if @association
|
102
100
|
chain_var = _association_chain_var
|
103
|
-
(_association_query_start(chain_var) & _query).send(@match_type,
|
104
|
-
|
101
|
+
(_association_query_start(chain_var) & _query).break.send(@match_type,
|
102
|
+
"#{chain_var}#{_association_arrow}(#{var}#{_model_label_string})")
|
105
103
|
else
|
106
104
|
starting_query ? (starting_query & _query_model_as(var, with_labels)) : _query_model_as(var, with_labels)
|
107
105
|
end
|
@@ -250,7 +248,7 @@ module Neo4j
|
|
250
248
|
end
|
251
249
|
|
252
250
|
def _query_model_as(var, with_labels = true)
|
253
|
-
_query.send(@match_type, _match_arg(var, with_labels))
|
251
|
+
_query.break.send(@match_type, _match_arg(var, with_labels))
|
254
252
|
end
|
255
253
|
|
256
254
|
# @param [String, Symbol] var The Cypher identifier to use within the match string
|
data/lib/neo4j/version.rb
CHANGED
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: 5.0.
|
4
|
+
version: 5.0.12
|
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: 2015-08-
|
11
|
+
date: 2015-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orm_adapter
|