neo4j 8.1.1 → 8.1.2

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: 090456c199b41f299bf9510c21c3b443b35bfb70
4
- data.tar.gz: 428930321914f7728175b2d4fab9a0be48b6ec5f
3
+ metadata.gz: 6ec365e6c2d839f910c1cf4de9e3ff505eccee46
4
+ data.tar.gz: 2b762b29dc08b63e97ea33568282646a531c45aa
5
5
  SHA512:
6
- metadata.gz: 79bc8fb14b59d11aec66a712455268c74ea92284e973dee79e0b1260a65f51746a67a465815050b6a0ca6b745efd9d48d69bcd7d67dd935d722a7ee581f9a4eb
7
- data.tar.gz: 85bd031790e5fa6102ffb711ab3a4289ee467b1796e0a3fe634b254f30f2d8267828f3ed3f1bef126ef17277271262af3cee4999986d975c40babbd5c70c28a6
6
+ metadata.gz: 778d06ad2a50499917623b6ddfe8bbde523799e413cb55c4b2f2497f802e3f5d9c3d81de718444cfc97913ccd159800b29022ee710980d97e1c788c29e0b7bbc
7
+ data.tar.gz: 602d550908544156306de24498526feab2fa31da6d084a3f4d15aaf8c520f68a4923eee7580a35049cc9dd93cc451750faa1bd32336d566f799c724fd6ef47c3
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
+ ## [8.1.2] 2017-06-20
7
+
8
+ ### Fixed
9
+
10
+ - Populates relationship with with already retrieved node (see #1393 / thanks @klobuczek)
11
+
6
12
  ## [8.1.1] 2017-06-15
7
13
 
8
14
  ### Added
data/Gemfile CHANGED
@@ -5,8 +5,11 @@ gemspec
5
5
  # gem 'neo4j-core', github: 'neo4jrb/neo4j-core', branch: 'master' if ENV['CI']
6
6
 
7
7
  if branch = ENV['TRAVIS_BRANCH']
8
- same_branch_exists = `curl --head https://github.com/neo4jrb/neo4j-core/tree/#{branch} | head -1`.match(/200 OK/)
9
- gem 'neo4j-core', github: 'neo4jrb/neo4j-core', branch: same_branch_exists ? branch : 'master'
8
+ if `curl --head https://github.com/#{ENV['TRAVIS_REPO_SLUG']}-core/tree/#{branch} | head -1` =~ /200 OK/
9
+ gem 'neo4j-core', github: "#{ENV['TRAVIS_REPO_SLUG']}-core", branch: branch
10
+ else
11
+ gem 'neo4j-core', github: 'neo4jrb/neo4j-core', branch: 'master'
12
+ end
10
13
  elsif ENV['USE_LOCAL_CORE']
11
14
  gem 'neo4j-core', path: '../neo4j-core'
12
15
  else
@@ -28,6 +28,9 @@ module Neo4j
28
28
  result.each do |object|
29
29
  object.instance_variable_set('@source_query_proxy', self)
30
30
  object.instance_variable_set('@source_proxy_result_cache', result)
31
+ if node && rel && object.last.is_a?(Neo4j::ActiveRel)
32
+ object.last.instance_variable_set(association.direction == :in ? '@from_node' : '@to_node', object.first)
33
+ end
31
34
  end
32
35
 
33
36
  @result_cache[[node, rel]] ||= result
@@ -40,7 +40,7 @@ module Neo4j::ActiveRel
40
40
  # @param [Symbol, String] name of the attribute to increment
41
41
  # @param [Integer, Float] amount to increment
42
42
  def concurrent_increment!(attribute, by = 1)
43
- increment_by_query! query_as(:n), attribute, by, :r
43
+ increment_by_query! query_as(:r), attribute, by, :r
44
44
  end
45
45
 
46
46
  def create_model
@@ -78,7 +78,7 @@ module Neo4j::ActiveRel
78
78
  end
79
79
 
80
80
  def query_as(neo_id, var = :r)
81
- Neo4j::ActiveBase.new_query.match("()-[#{var}]-()").where(var => {neo_id: neo_id})
81
+ Neo4j::ActiveBase.new_query.match("()-[#{var}]->()").where(var => {neo_id: neo_id})
82
82
  end
83
83
  end
84
84
 
data/lib/neo4j/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '8.1.1'
2
+ VERSION = '8.1.2'
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: 8.1.1
4
+ version: 8.1.2
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: 2017-06-16 00:00:00.000000000 Z
11
+ date: 2017-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter