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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c70d14b4d7b0daabad296927e241502dc5305a0
4
- data.tar.gz: e1cfa3557e4816cdda82bf19e4752a44ed0b1cbe
3
+ metadata.gz: 8b057f7f5a1a2cfd3c7c7c93f43779c7b7b112ba
4
+ data.tar.gz: 6fff6a29d11461286b24f7f3bd67a3ae117b677e
5
5
  SHA512:
6
- metadata.gz: d4bbdc12ce4cc6334f8efb5539b350242bd4e1e0ff2d307ffee4e3ebb11ff6038eabf30c1ee6ffed6b95121379914ced6574547b1b842a9240c15222617e77ff
7
- data.tar.gz: e725886f6c88440b4c190077bad606a5b0d3dce95b6f3cffd33f8be03bba1d1cc3f58b040318a8ef582d1b5818af6e33e6f014bd795c8ee24b546db70cf44bd0
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
- clear, yellow, cyan = %W(\e[0m \e[33m \e[36m)
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
- "#{chain_var}#{_association_arrow}(#{var}#{_model_label_string})")
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
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '5.0.11'
2
+ VERSION = '5.0.12'
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: 5.0.11
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-04 00:00:00.000000000 Z
11
+ date: 2015-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter