activecypher 0.11.1 → 0.11.2

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: a39f60243be9073a1c3e2f05e1239239de9412d95184a321d22c4f582b0cdbdb
4
- data.tar.gz: f125c98717432f24b3e0e28e4066f962cc2cb46bbab556bda52a44c3f4f12e7c
3
+ metadata.gz: dd727afea785772beaeb00a2d67953177535dfb60b6d64690e238b1df8d809ce
4
+ data.tar.gz: '08838575c512ef8d3bafd2b7118f3c274bc8a4ba0d071e790d879294d4b05f5c'
5
5
  SHA512:
6
- metadata.gz: 3bea961b864932446e0c667c7f88c9a428204f62089696b65d32dc62c4297e10e7d86e1f2ce67db8eb32e3a771944d882840b5d416345eed3296a3b23dec1d09
7
- data.tar.gz: 1803663082f2fa06c7af69af355d0bd05ad78901c217c8b5f2aa2486b3adc009a6784d11b09731b1bd88d0b533e12420c13b11254b4b0852de5636b1e0d530f3
6
+ metadata.gz: 3789c6b35b8704ae06a7b497fa0a45db948fd69dc76326805a56cc16b396fa6c753a5ff78a5d96a28357fe6d1eb900ed26787e844e83a43a56f77bb5a20df6b5
7
+ data.tar.gz: f059e3273a82ea69d12a6c16a6892a53840c0b2179f05c572c4aa6530861950273d9f03152943340e88c90361eb6a602e162c8295021f1f1b7177d5846193bd4
@@ -40,7 +40,8 @@ module ActiveCypher
40
40
 
41
41
  # Helper methods for Cypher query generation with IDs
42
42
  def self.with_direct_id(id)
43
- "elementId(r) = #{id}"
43
+ # Quote the element ID to handle special characters in Neo4j element IDs
44
+ "elementId(r) = '#{id}'"
44
45
  end
45
46
 
46
47
  def self.with_param_id
@@ -48,7 +49,8 @@ module ActiveCypher
48
49
  end
49
50
 
50
51
  def self.with_direct_node_ids(a_id, b_id)
51
- "elementId(p) = #{a_id} AND elementId(h) = #{b_id}"
52
+ # Quote the element IDs to handle special characters like colons in UUID-based IDs
53
+ "elementId(p) = '#{a_id}' AND elementId(h) = '#{b_id}'"
52
54
  end
53
55
 
54
56
  def self.with_param_node_ids
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveCypher
4
- VERSION = '0.11.1'
4
+ VERSION = '0.11.2'
5
5
 
6
6
  def self.gem_version
7
7
  Gem::Version.new VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activecypher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih