neo4j 8.0.11 → 8.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 +6 -0
- data/lib/neo4j/active_base.rb +7 -2
- 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: 14758b08541d43ab401af6c1bfa1803ec85e587f
|
|
4
|
+
data.tar.gz: 3e8b6e212d644d01697f6059b31e68e586422561
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d820902f0c3c02ee369b0a4b2de0aff96562fb895bbac8a19bca5dc11ab8db40479d0c415cb2bbf67aac7a569b1e70d26103f425ef9688d119dd3d1cc6dd0197
|
|
7
|
+
data.tar.gz: 5e0e40e47ed04624cc0170c02dd406e41dfbcbb10e0db96b7354d6c1311c3aa10d063c82df14d2378dd276f6ede4fda0e827d373931e6e9cd9f3b0ead9c8c47d
|
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.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
|
data/lib/neo4j/active_base.rb
CHANGED
|
@@ -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
|
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: 8.0.
|
|
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-
|
|
11
|
+
date: 2017-03-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: orm_adapter
|