neo4j 8.0.11 → 8.0.12

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: 6d1672e2dbc0fd5a5ab9dadcce116c66675c67d8
4
- data.tar.gz: d4f12e021315edc3b147ae6f5a8146a8a285b536
3
+ metadata.gz: 14758b08541d43ab401af6c1bfa1803ec85e587f
4
+ data.tar.gz: 3e8b6e212d644d01697f6059b31e68e586422561
5
5
  SHA512:
6
- metadata.gz: dbb20bf5857ebc50445f9b416ace40c10477b268528ce7e7297ccd48a7b7bd0430253240adbb457adc0b6748e966bb4b379b453ff9312243a575f28d74e73b9e
7
- data.tar.gz: 0438456b4cffe6040d8a600a18b15a5806a7ad0bf2ec65c2ecc9788113a9e0365e6691948183b8764e0666d2fbfaa7a5df45455bf773f937dcfe0321769348e4
6
+ metadata.gz: d820902f0c3c02ee369b0a4b2de0aff96562fb895bbac8a19bca5dc11ab8db40479d0c415cb2bbf67aac7a569b1e70d26103f425ef9688d119dd3d1cc6dd0197
7
+ data.tar.gz: 5e0e40e47ed04624cc0170c02dd406e41dfbcbb10e0db96b7354d6c1311c3aa10d063c82df14d2378dd276f6ede4fda0e827d373931e6e9cd9f3b0ead9c8c47d
@@ -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.0.12] 2016-03-28
7
+
8
+ ### Fixed
9
+
10
+ - Sessions in the `neo4j` gem are automatically set to have `wrap_level: :proc` to ensure that nodes and relationships are wrapped in models (even if you aren't using Rails)
11
+
6
12
  ## [8.0.11] 2016-03-23
7
13
 
8
14
  ### Fixed
@@ -15,7 +15,7 @@ module Neo4j
15
15
  end
16
16
 
17
17
  def establish_session
18
- @establish_session_block.call if @establish_session_block
18
+ make_session_wrap!(@establish_session_block.call) if @establish_session_block
19
19
  end
20
20
 
21
21
  def current_transaction_or_session
@@ -28,7 +28,7 @@ module Neo4j
28
28
 
29
29
  # Should support setting session via config options
30
30
  def current_session=(session)
31
- SessionRegistry.current_session = session
31
+ SessionRegistry.current_session = make_session_wrap!(session)
32
32
  end
33
33
 
34
34
  def current_adaptor=(adaptor)
@@ -77,6 +77,11 @@ module Neo4j
77
77
  def validate_model_schema!
78
78
  Neo4j::ModelSchema.validate_model_schema! unless Neo4j::Migrations.currently_running_migrations
79
79
  end
80
+
81
+ def make_session_wrap!(session)
82
+ session.adaptor.instance_variable_get('@options')[:wrap_level] = :proc
83
+ session
84
+ end
80
85
  end
81
86
  end
82
87
  end
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '8.0.11'
2
+ VERSION = '8.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: 8.0.11
4
+ version: 8.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: 2017-03-23 00:00:00.000000000 Z
11
+ date: 2017-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter