neography 1.3.12 → 1.3.14

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
  SHA1:
3
- metadata.gz: 6bf0876954df6a4d1e5e0d272c354975b363ed3f
4
- data.tar.gz: 502ff012fd51906ed4732b264b9ef10b7af24dd7
3
+ metadata.gz: 609dbff4ea29be76d5d8e5a0a6594c7d4d51b8e4
4
+ data.tar.gz: 3e81c09d88b08f30ec36671a37cc2cf18055ccce
5
5
  SHA512:
6
- metadata.gz: 0179f2f9bc413e3de26ddc205b1428e25381134dc774cd4945a7c85c8191cbe7ee70b9c39e2b5dbac8654f6b75f2a8b6b34639cffb02a0194d347fdc50436a9f
7
- data.tar.gz: bc9129d0a86f6c52958c6f29d751563c9e329c9bd92ab00ae06fb2675a0115bd089266b9b7127359cdbce8fdd3d9caab4d7f2bbc1ad49aa9d13fb1f5f0890efa
6
+ metadata.gz: 0d6994e98944f8cb050ad3fd392da299f8edb630fee4b12f6b06f1d5166f5b9dfa6bb137fc2c243b10e3da5c870802079805fca363f4dd9f6dcc39b47714feeb
7
+ data.tar.gz: 2a5186feff3c291a6d281103f14b6ed511fe54c47361c575b2e28e5535dbdb7137ca3fe6c24d3cad2cdb29d318c83b51652ea361927adf76748f19f9ba7d1ad2
@@ -16,7 +16,7 @@ module Neography
16
16
  def initialize(options = ENV['NEO4J_URL'] || {})
17
17
  config = merge_configuration(options)
18
18
  save_local_configuration(config)
19
- @client = HTTPClient.new(config[:proxy])
19
+ @client ||= HTTPClient.new(config[:proxy])
20
20
  @client.send_timeout = 1200 # 10 minutes
21
21
  @client.receive_timeout = 1200
22
22
  authenticate
@@ -48,31 +48,31 @@ module Neography
48
48
  def initialize(options = ENV['NEO4J_URL'] || {})
49
49
  @connection = Connection.new(options)
50
50
 
51
- @nodes = Nodes.new(@connection)
52
- @node_properties = NodeProperties.new(@connection)
53
- @node_relationships = NodeRelationships.new(@connection)
54
- @other_node_relationships = OtherNodeRelationships.new(@connection)
55
- @node_indexes = NodeIndexes.new(@connection)
56
- @node_auto_indexes = NodeAutoIndexes.new(@connection)
57
- @schema_indexes = SchemaIndexes.new(@connection)
58
- @node_traversal = NodeTraversal.new(@connection)
59
- @node_paths = NodePaths.new(@connection)
60
- @node_labels = NodeLabels.new(@connection)
61
-
62
- @relationships = Relationships.new(@connection)
63
- @relationship_properties = RelationshipProperties.new(@connection)
64
- @relationship_indexes = RelationshipIndexes.new(@connection)
65
- @relationship_auto_indexes = RelationshipAutoIndexes.new(@connection)
66
- @relationship_types = RelationshipTypes.new(@connection)
67
-
68
- @cypher = Cypher.new(@connection)
69
- @gremlin = Gremlin.new(@connection)
70
- @extensions = Extensions.new(@connection)
71
- @batch = Batch.new(@connection)
72
- @clean = Clean.new(@connection)
73
- @transactions = Transactions.new(@connection)
74
- @spatial = Spatial.new(@connection)
75
- @constraints = Constraints.new(@connection)
51
+ @nodes ||= Nodes.new(@connection)
52
+ @node_properties ||= NodeProperties.new(@connection)
53
+ @node_relationships ||= NodeRelationships.new(@connection)
54
+ @other_node_relationships ||= OtherNodeRelationships.new(@connection)
55
+ @node_indexes ||= NodeIndexes.new(@connection)
56
+ @node_auto_indexes ||= NodeAutoIndexes.new(@connection)
57
+ @schema_indexes ||= SchemaIndexes.new(@connection)
58
+ @node_traversal ||= NodeTraversal.new(@connection)
59
+ @node_paths ||= NodePaths.new(@connection)
60
+ @node_labels ||= NodeLabels.new(@connection)
61
+
62
+ @relationships ||= Relationships.new(@connection)
63
+ @relationship_properties ||= RelationshipProperties.new(@connection)
64
+ @relationship_indexes ||= RelationshipIndexes.new(@connection)
65
+ @relationship_auto_indexes ||= RelationshipAutoIndexes.new(@connection)
66
+ @relationship_types ||= RelationshipTypes.new(@connection)
67
+
68
+ @cypher ||= Cypher.new(@connection)
69
+ @gremlin ||= Gremlin.new(@connection)
70
+ @extensions ||= Extensions.new(@connection)
71
+ @batch ||= Batch.new(@connection)
72
+ @clean ||= Clean.new(@connection)
73
+ @transactions ||= Transactions.new(@connection)
74
+ @spatial ||= Spatial.new(@connection)
75
+ @constraints ||= Constraints.new(@connection)
76
76
  end
77
77
 
78
78
  # meta-data
@@ -4,7 +4,7 @@ module Neography
4
4
  include Neography::Rest::Helpers
5
5
 
6
6
  def initialize(connection)
7
- @connection = connection
7
+ @connection ||= connection
8
8
  end
9
9
 
10
10
  def get(key, value)
@@ -7,7 +7,7 @@ module Neography
7
7
  add_path :batch, "/batch"
8
8
 
9
9
  def initialize(connection)
10
- @connection = connection
10
+ @connection ||= connection
11
11
  end
12
12
 
13
13
  def execute(*args)
@@ -7,7 +7,7 @@ module Neography
7
7
  add_path :clean, "/cleandb/secret-key"
8
8
 
9
9
  def initialize(connection)
10
- @connection = connection
10
+ @connection ||= connection
11
11
  end
12
12
 
13
13
  def execute
@@ -10,7 +10,7 @@ module Neography
10
10
  add_path :unique, "/schema/constraint/:label/uniqueness/:property"
11
11
 
12
12
  def initialize(connection)
13
- @connection = connection
13
+ @connection ||= connection
14
14
  end
15
15
 
16
16
  def drop(label, property)
@@ -4,7 +4,7 @@ module Neography
4
4
  include Neography::Rest::Helpers
5
5
 
6
6
  def initialize(connection)
7
- @connection = connection
7
+ @connection ||= connection
8
8
  end
9
9
 
10
10
  def query(query, parameters = {}, cypher_options = nil)
@@ -4,7 +4,7 @@ module Neography
4
4
  include Neography::Rest::Helpers
5
5
 
6
6
  def initialize(connection)
7
- @connection = connection
7
+ @connection ||= connection
8
8
  end
9
9
 
10
10
  def get(path)
@@ -4,7 +4,7 @@ module Neography
4
4
  include Neography::Rest::Helpers
5
5
 
6
6
  def initialize(connection)
7
- @connection = connection
7
+ @connection ||= connection
8
8
  end
9
9
 
10
10
  def execute(script, parameters = {})
@@ -4,8 +4,8 @@ module Neography
4
4
  include Neography::Rest::Helpers
5
5
 
6
6
  def initialize(connection, index_type)
7
- @connection = connection
8
- @index_type = index_type
7
+ @connection ||= connection
8
+ @index_type ||= index_type
9
9
  end
10
10
 
11
11
  def list
@@ -11,7 +11,7 @@ module Neography
11
11
  add_path :delete, "/node/:id/labels/:label"
12
12
 
13
13
  def initialize(connection)
14
- @connection = connection
14
+ @connection ||= connection
15
15
  end
16
16
 
17
17
  def list
@@ -8,7 +8,7 @@ module Neography
8
8
  add_path :all, "/node/:id/paths"
9
9
 
10
10
  def initialize(connection)
11
- @connection = connection
11
+ @connection ||= connection
12
12
  end
13
13
 
14
14
  def get(from, to, relationships, depth = 1, algorithm = "shortestPath")
@@ -9,7 +9,7 @@ module Neography
9
9
  add_path :type, "/node/:id/relationships/:direction/:types"
10
10
 
11
11
  def initialize(connection)
12
- @connection = connection
12
+ @connection ||= connection
13
13
  end
14
14
 
15
15
  def create(type, from, to, properties = nil)
@@ -7,7 +7,7 @@ module Neography
7
7
  add_path :traversal, "/node/:id/traverse/:type"
8
8
 
9
9
  def initialize(connection)
10
- @connection = connection
10
+ @connection ||= connection
11
11
  end
12
12
 
13
13
  def traverse(id, return_type, description)
@@ -8,7 +8,7 @@ module Neography
8
8
  add_path :base, "/node/:id"
9
9
 
10
10
  def initialize(connection)
11
- @connection = connection
11
+ @connection ||= connection
12
12
  end
13
13
 
14
14
  def get(id)
@@ -7,7 +7,7 @@ module Neography
7
7
  add_path :base, "/node/:id/traverse/relationship"
8
8
 
9
9
  def initialize(connection)
10
- @connection = connection
10
+ @connection ||= connection
11
11
  end
12
12
 
13
13
  def get(id, other_id, direction = "all", types = [nil])
@@ -4,7 +4,7 @@ module Neography
4
4
  include Neography::Rest::Helpers
5
5
 
6
6
  def initialize(connection)
7
- @connection = connection
7
+ @connection ||= connection
8
8
  end
9
9
 
10
10
  def set(id, properties)
@@ -6,7 +6,7 @@ module Neography
6
6
  add_path :all, "/relationship/types"
7
7
 
8
8
  def initialize(connection)
9
- @connection = connection
9
+ @connection ||= connection
10
10
  end
11
11
 
12
12
  def list
@@ -7,7 +7,7 @@ module Neography
7
7
  add_path :base, "/relationship/:id"
8
8
 
9
9
  def initialize(connection)
10
- @connection = connection
10
+ @connection ||= connection
11
11
  end
12
12
 
13
13
  def get(id)
@@ -8,7 +8,7 @@ module Neography
8
8
  add_path :drop, "/schema/index/:label/:index"
9
9
 
10
10
  def initialize(connection)
11
- @connection = connection
11
+ @connection ||= connection
12
12
  end
13
13
 
14
14
  def list(label)
@@ -17,7 +17,7 @@ module Neography
17
17
  add_path :add_to_index, "/index/node/:index"
18
18
 
19
19
  def initialize(connection)
20
- @connection = connection
20
+ @connection ||= connection
21
21
  end
22
22
 
23
23
  def index
@@ -9,7 +9,7 @@ module Neography
9
9
  add_path :commit, "/transaction/:id/commit"
10
10
 
11
11
  def initialize(connection)
12
- @connection = connection
12
+ @connection ||= connection
13
13
  end
14
14
 
15
15
  def begin(statements = [], commit = "")
@@ -156,12 +156,15 @@ namespace :neo4j do
156
156
  end
157
157
 
158
158
  task :get_spatial, :version do |t, args|
159
- args.with_defaults(:version => "2.0.0")
159
+ args.with_defaults(:version => "2.0.1")
160
160
  puts "Installing Neo4j-Spatial #{args[:version]}"
161
161
 
162
162
  unless File.exist?('neo4j-spatial.zip')
163
163
  df = File.open('neo4j-spatial.zip', 'wb')
164
164
  case args[:version]
165
+ when "2.0.1"
166
+ dist = "dist.neo4j.org"
167
+ request = "/spatial/neo4j-spatial-0.12-neo4j-2.0.1-server-plugin.zip"
165
168
  when "2.0.0"
166
169
  dist = "dist.neo4j.org"
167
170
  request = "/spatial/neo4j-spatial-0.12-neo4j-2.0.0-server-plugin.zip"
@@ -1,3 +1,3 @@
1
1
  module Neography
2
- VERSION = "1.3.13"
2
+ VERSION = "1.3.14"
3
3
  end
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.3.12
4
+ version: 1.3.14
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: 2014-03-11 00:00:00.000000000 Z
11
+ date: 2014-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec