neography 1.2.2 → 1.2.3

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: a9a5dbe19c881f5dc8577c897d7a497de8fa9395
4
- data.tar.gz: eb4f67ddb12f04e1af6344ce25ccbad32fba6928
3
+ metadata.gz: 02984a89ccb8239cc1512ec697d742953aef36f7
4
+ data.tar.gz: c97a3fdfb802c83754ac35d127eeb571378974d7
5
5
  SHA512:
6
- metadata.gz: 27847345003d076c389aa67fc2fadaa3571e7c920a5b13456d9bc3c07ff52bb0c1ea931200991569809635ebfeac800d89488a34836db255fb6005984189dbb7
7
- data.tar.gz: 49684298832804caffa8b733d4f82c2ad43acab56920e75343c706c0852131a7467255e71e30a65c77f76ec18c794f7c85e00a0f4cbe3441703eed6d08045376
6
+ metadata.gz: 32d3b4de20035dca8f58762969fdd336ce64307d549ea14e43ae83ea011f1ce3bdd3f8093bb1b11ceb9ebafaca11375ebbc68fa1880de4851d80fcff50bdc9d7
7
+ data.tar.gz: 301c1d21db5b478d5fda1c3f6792a0848f2dc7403973a1a0ce228b8a60b1c3594fde81c1a3d60295b49e2511a55f7715b67d6609f1f8b9b1622ff420a0258ecf
@@ -28,7 +28,7 @@ module Neography
28
28
  end
29
29
 
30
30
  def encode(value)
31
- URI.encode(value).gsub("/","%2F")
31
+ CGI.escape(value).gsub("+", "%20")
32
32
  end
33
33
 
34
34
  end
@@ -1,3 +1,3 @@
1
1
  module Neography
2
- VERSION = "1.2.2"
2
+ VERSION = "1.2.3"
3
3
  end
@@ -33,6 +33,14 @@ describe Neography::Index do
33
33
  existing_node.name.should == value
34
34
  end
35
35
 
36
+ it "can find a node in an index with brackets" do
37
+ value = "Sen. Roy Blunt [R-MO]"
38
+ new_node = Neography::Node.create("name" => value)
39
+ new_node.add_to_index("node_test_index", "name", value)
40
+ existing_node = Neography::Node.find("node_test_index", "name", value)
41
+ existing_node.name.should == value
42
+ end
43
+
36
44
  it "can find a relationship in an index" do
37
45
  value = generate_text
38
46
  node1 = Neography::Node.create
@@ -39,7 +39,7 @@ module Neography
39
39
  end
40
40
 
41
41
  it "gets relationships with direction and types" do
42
- connection.should_receive(:get).with("/node/42/relationships/in/foo&bar")
42
+ connection.should_receive(:get).with("/node/42/relationships/in/foo%26bar")
43
43
  subject.get("42", :in, ["foo", "bar"])
44
44
  end
45
45
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neography
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max De Marzi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-24 00:00:00.000000000 Z
11
+ date: 2013-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec