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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc2d366aca58f309d2523005489b627535577663
4
- data.tar.gz: 69b5666c5e5216923c9f1383e9b08e48b140cc47
3
+ metadata.gz: 1cddb781f1fdcc684ca92808958afcb02506302a
4
+ data.tar.gz: 283f943c9708733cdac212060529483bb87599b8
5
5
  SHA512:
6
- metadata.gz: 5efc8206757858e0340518756d5d66397979d689bc9b30899ef2360f086bb1bab182b078ad89ae06d819aafe2eba975e809152195db19f8c7cef3b693590dcf4
7
- data.tar.gz: 9f518623f4e32549c3a2e408c51e7f0fcf913111dc167f54af304a67d1097980a89fcad3d33b6b83001411f026b44d01ef14136d05c247c13d4da9408cdaba15
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
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '7.0.0.rc.5'
2
+ VERSION = '7.0.0.rc.6'
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: 7.0.0.rc.5
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-14 00:00:00.000000000 Z
11
+ date: 2016-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter