neo4j 7.0.3 → 7.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile +2 -0
- data/lib/neo4j/active_node/persistence.rb +2 -12
- 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: 7b0b8205d2322d6d97fd8b5166cde4bbf98ff093
|
4
|
+
data.tar.gz: b51fb31770c3337a6f99983256e85300f261c29f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cfe6d86b415d98ab51a69b4e46b11cc80f930b70ed1ac965f72bc5c4a6db20943202b20cd49b3216df9651670147dd9a89b6fdb64a32bbbf738d1b6362bedd5
|
7
|
+
data.tar.gz: dce1ac9d7f1cbd73a8ce70a829e6d7fa927ade5a51185edfb6912e28a805cb0e8f9d0c82ece781d452d5c924c62e51e8947b4af00fca3c9e5078ea2dae50af98
|
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
|
+
## [7.0.4] - 05-06-2016
|
7
|
+
|
8
|
+
### Fixed
|
9
|
+
|
10
|
+
- A bug/inconsistency between ActiveNode's class method `create` and instance `save` led to faulty validation of associations in some cases.
|
11
|
+
|
6
12
|
## [7.0.3] - 04-28-2016
|
7
13
|
|
8
14
|
### Fixed
|
data/Gemfile
CHANGED
@@ -7,6 +7,8 @@ gem 'neo4j-core', github: 'neo4jrb/neo4j-core', branch: 'master' if ENV['CI']
|
|
7
7
|
# gem 'active_attr', github: 'neo4jrb/active_attr', branch: 'performance'
|
8
8
|
# gem 'active_attr', path: '../active_attr'
|
9
9
|
|
10
|
+
gem 'listen', '< 3.1'
|
11
|
+
|
10
12
|
group 'test' do
|
11
13
|
gem 'coveralls', require: false
|
12
14
|
gem 'codecov', require: false
|
@@ -103,27 +103,17 @@ module Neo4j::ActiveNode
|
|
103
103
|
# Creates and saves a new node
|
104
104
|
# @param [Hash] props the properties the new node should have
|
105
105
|
def create(props = {})
|
106
|
-
association_props = extract_association_attributes!(props) || {}
|
107
106
|
new(props).tap do |obj|
|
108
107
|
yield obj if block_given?
|
109
108
|
obj.save
|
110
|
-
association_props.each do |prop, value|
|
111
|
-
obj.send("#{prop}=", value)
|
112
|
-
end
|
113
109
|
end
|
114
110
|
end
|
115
111
|
|
116
112
|
# Same as #create, but raises an error if there is a problem during save.
|
117
|
-
def create!(
|
118
|
-
props
|
119
|
-
association_props = extract_association_attributes!(props) || {}
|
120
|
-
|
121
|
-
new(*args).tap do |o|
|
113
|
+
def create!(props = {})
|
114
|
+
new(props).tap do |o|
|
122
115
|
yield o if block_given?
|
123
116
|
o.save!
|
124
|
-
association_props.each do |prop, value|
|
125
|
-
o.send("#{prop}=", value)
|
126
|
-
end
|
127
117
|
end
|
128
118
|
end
|
129
119
|
|
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: 7.0.
|
4
|
+
version: 7.0.4
|
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: 2016-
|
11
|
+
date: 2016-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orm_adapter
|