neo4j-ruby-driver 6.2.1.beta.2 → 6.2.1.beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02167af06d7572708bb866aa09a7cf03492c3ea5ff78601db252a874e30c0f16
4
- data.tar.gz: 5321a39b13e65469393f5485646987e178e68f2bcc9527884a087e64775096e4
3
+ metadata.gz: b34aa1256ed146cfd2115d67be69a98fa717c1146311d4af7fc9ea933265f583
4
+ data.tar.gz: 84f43a6b9004b8ef61bba433dd6e71752567275de5fd472ad4469e673632fd22
5
5
  SHA512:
6
- metadata.gz: 2fb5b47bb808deadef7fcd939ab829e0e5a9b7f13ae7808a0b128a55236b874b112d9385e471f3bb098032a8185bcc039280a692d2d0e6aed213c843045cf420
7
- data.tar.gz: 62c171b7b0a7f5efafa4905ffc6b200f1d3d59bd06a2f4d24fdedfaefcd61813239fcb784e5eb4b844d085147594f73f5731571d320dfea1c9dc2d1b3d69bca3
6
+ metadata.gz: da5a94365c5729cb0c40ba01847a828496174a673bf36ceb2cbcdbb217d59aebad4807dd7198e4179bdbb13b328f885634d5616593a220d6c1f9d450c9b75919
7
+ data.tar.gz: bfc2f9e35364e0e4da0b71fca65f99c3589d436db2ae187cbc612205240920ef0e525c18c2c653e51914e69e2b8c8f600a6681bc1f28ace46e66f083733f634e
@@ -7,11 +7,11 @@ module Neo4j
7
7
  def initialize(keys, values)
8
8
  @keys = keys
9
9
  @values = values
10
- # Create map with string keys for consistent lookup
11
- @map = {}
12
- @keys.each_with_index do |key, idx|
13
- @map[key.to_s] = @values[idx]
14
- end
10
+ # Field keys arrive already symbolized (Session/Transaction map the
11
+ # RUN response fields with &:to_sym), so the map is symbol-keyed and
12
+ # to_h returns symbol keys like the JRuby flavour. Every key in the
13
+ # driver is stored as a symbol; retrieval by string is tolerated (#[]).
14
+ @map = keys.zip(values).to_h
15
15
  end
16
16
 
17
17
  attr_reader :keys, :values
@@ -21,7 +21,7 @@ module Neo4j
21
21
  when Integer
22
22
  @values[key]
23
23
  when String, Symbol
24
- @map[key.to_s]
24
+ @map[key.to_sym]
25
25
  else
26
26
  raise ArgumentError, "Invalid key type: #{key.class}"
27
27
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Neo4j
4
4
  module Driver
5
- VERSION = '6.2.1.beta.2'
5
+ VERSION = '6.2.1.beta.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4j-ruby-driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.1.beta.2
4
+ version: 6.2.1.beta.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neo4j Driver Team