neo4j 7.0.0.rc.5 → 7.0.0.rc.6
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/lib/neo4j/shared/attributes.rb +13 -0
- 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: 1cddb781f1fdcc684ca92808958afcb02506302a
|
4
|
+
data.tar.gz: 283f943c9708733cdac212060529483bb87599b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41051a819c7c55326056871a4321784355216f0c9e4a0da3ef9930e37831897b3be4c2d5625bc410a3c64f363fecb67b607d352341a6ae66fb5dc0536d8216ea
|
7
|
+
data.tar.gz: a33e5e895fba829e67f7174a75e16683c2f2257de5328da2bee89818cf007ad05bba7fa235ea10f9a0985eaa8795eb640d43fa6326d83dd32ed56eef4b0e1516
|
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.0.rc.6] - 03-16-2016
|
7
|
+
|
8
|
+
### Fixed
|
9
|
+
|
10
|
+
- Question mark methods (`node.foo?`) broke when ActiveAttr was removed
|
11
|
+
|
6
12
|
## [7.0.0.rc.5] - 03-14-2016
|
7
13
|
|
8
14
|
### Fixed
|
@@ -22,6 +22,7 @@ module Neo4j::Shared
|
|
22
22
|
included do
|
23
23
|
attribute_method_suffix '' if attribute_method_matchers.none? { |matcher| matcher.prefix == '' && matcher.suffix == '' }
|
24
24
|
attribute_method_suffix '='
|
25
|
+
attribute_method_suffix '?'
|
25
26
|
end
|
26
27
|
|
27
28
|
# Performs equality checking on the result of attributes and its type.
|
@@ -68,6 +69,14 @@ module Neo4j::Shared
|
|
68
69
|
end
|
69
70
|
alias_method :[]=, :write_attribute
|
70
71
|
|
72
|
+
def query_attribute(name)
|
73
|
+
if respond_to? "#{name}?"
|
74
|
+
send "#{name}?"
|
75
|
+
else
|
76
|
+
fail Neo4j::UnknownAttributeError, "unknown attribute: #{name}"
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
71
80
|
private
|
72
81
|
|
73
82
|
# Read an attribute from the attributes hash
|
@@ -95,6 +104,10 @@ module Neo4j::Shared
|
|
95
104
|
Hash[self.class.attribute_names.map { |name| [name, yield(name)] }]
|
96
105
|
end
|
97
106
|
|
107
|
+
def attribute?(name)
|
108
|
+
Neo4j::Shared::TypeConverters::BooleanConverter.to_ruby(read_attribute(name))
|
109
|
+
end
|
110
|
+
|
98
111
|
module ClassMethods
|
99
112
|
# Defines an attribute
|
100
113
|
#
|
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.0.rc.
|
4
|
+
version: 7.0.0.rc.6
|
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-03-
|
11
|
+
date: 2016-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orm_adapter
|