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: c42b006e007156e7b426bd813fc8d13367c1a66931f7047268bf1b667a3a8b72
4
- data.tar.gz: 7bad351ef37ace5c080db834502ebfc2de2f7a5e6a49171ff99a6069bce0b6f2
3
+ metadata.gz: 013cc0d22828c049d4a90f6c6acfa84e169813c5b77f0b6e5cf230c3c92a473e
4
+ data.tar.gz: 146b0148e2481b26f0d4e1102e67ecba7c77059b04dbacb6147de252f491558b
5
5
  SHA512:
6
- metadata.gz: a3a392ed29054071570b452ff3485a03da001054fc6c8bbc23447ad20d6e408c41632c1b3d257cbf0d92ed3117bebfdb24949767e31f68a4c5bcf3e070daab9b
7
- data.tar.gz: 76cdc83a140b7d365c45cada9bb23b715ee729b92ffdfa772274f97679450b9f799f15d391e96de5b75ea717575dac48268abb33bf39035f5859ffcc4aa74997
6
+ metadata.gz: 47bc1f429a86d57c24cab73f5001fe45cc41df384b571e72373a3315ecd0c1ae5fd95139975b7404fd358cfd9227dfebb87aab5dd49139208e92597de839155f
7
+ data.tar.gz: ab623a015d5256273ee7939ba9557296aa0b8343186cb740bc77a32161a453835a9dadebcad318384c501a7834127c7a7e6c776bf38fc3c96271994fa3270928
@@ -55,4 +55,6 @@ end
55
55
 
56
56
  Loader.load
57
57
 
58
+ Neo4j::Driver::Record = Neo4j::Driver::Internal::InternalRecord
59
+ Neo4j::Driver::StatementResult = Neo4j::Driver::Internal::InternalStatementResult
58
60
  Neo4j::Driver::Transaction = Neo4j::Driver::Internal::ExplicitTransaction
@@ -49,7 +49,7 @@ module Neo4j
49
49
  )
50
50
  end
51
51
  end
52
- check_error Bolt::Config.set_user_agent(bolt_config, 'seabolt-cmake/1.7')
52
+ check_error Bolt::Config.set_user_agent(bolt_config, "neo4j-ruby-driver #{Neo4j::Driver::VERSION}")
53
53
  bolt_config
54
54
  end
55
55
 
@@ -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.to_s)
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Neo4j
4
4
  module Driver
5
- VERSION = '0.3.5'
5
+ VERSION = '0.4.0'
6
6
  end
7
7
  end
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.3.5
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-03-30 00:00:00.000000000 Z
11
+ date: 2020-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport