neo4j-ruby-driver 0.3.5 → 0.4.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 013cc0d22828c049d4a90f6c6acfa84e169813c5b77f0b6e5cf230c3c92a473e
|
4
|
+
data.tar.gz: 146b0148e2481b26f0d4e1102e67ecba7c77059b04dbacb6147de252f491558b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47bc1f429a86d57c24cab73f5001fe45cc41df384b571e72373a3315ecd0c1ae5fd95139975b7404fd358cfd9227dfebb87aab5dd49139208e92597de839155f
|
7
|
+
data.tar.gz: ab623a015d5256273ee7939ba9557296aa0b8343186cb740bc77a32161a453835a9dadebcad318384c501a7834127c7a7e6c776bf38fc3c96271994fa3270928
|
data/ffi/neo4j/driver.rb
CHANGED
@@ -21,7 +21,7 @@ module Neo4j
|
|
21
21
|
def finalize
|
22
22
|
return if @finished
|
23
23
|
super
|
24
|
-
@statement_keys = Value::ValueAdapter.to_ruby(Bolt::Connection.field_names(bolt_connection))
|
24
|
+
@statement_keys = Value::ValueAdapter.to_ruby(Bolt::Connection.field_names(bolt_connection)).map(&:to_sym)
|
25
25
|
metadata = Value::ValueAdapter.to_ruby(Bolt::Connection.metadata(bolt_connection))
|
26
26
|
@result_available_after = metadata[:result_available_after] || metadata[:t_first]
|
27
27
|
end
|
@@ -13,9 +13,13 @@ module Neo4j
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def [](key)
|
16
|
-
field_index = key.is_a?(Integer) ? key : @keys.index(key.
|
16
|
+
field_index = key.is_a?(Integer) ? key : @keys.index(key.to_sym)
|
17
17
|
@values[field_index] if field_index
|
18
18
|
end
|
19
|
+
|
20
|
+
def to_h
|
21
|
+
keys.zip(values).to_h
|
22
|
+
end
|
19
23
|
end
|
20
24
|
end
|
21
25
|
end
|
data/lib/neo4j/driver/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neo4j-ruby-driver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Heinrich Klobuczek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|