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 +4 -4
- data/lib/neography/rest/paths.rb +1 -1
- data/lib/neography/version.rb +1 -1
- data/spec/integration/index_spec.rb +8 -0
- data/spec/unit/rest/node_relationships_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02984a89ccb8239cc1512ec697d742953aef36f7
|
4
|
+
data.tar.gz: c97a3fdfb802c83754ac35d127eeb571378974d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32d3b4de20035dca8f58762969fdd336ce64307d549ea14e43ae83ea011f1ce3bdd3f8093bb1b11ceb9ebafaca11375ebbc68fa1880de4851d80fcff50bdc9d7
|
7
|
+
data.tar.gz: 301c1d21db5b478d5fda1c3f6792a0848f2dc7403973a1a0ce228b8a60b1c3594fde81c1a3d60295b49e2511a55f7715b67d6609f1f8b9b1622ff420a0258ecf
|
data/lib/neography/rest/paths.rb
CHANGED
data/lib/neography/version.rb
CHANGED
@@ -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
|
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.
|
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-
|
11
|
+
date: 2013-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|