neo4j-wrapper 0.0.6-java → 0.0.7-java

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.
@@ -27,6 +27,7 @@ module Neo4j
27
27
  rule_node && rule_node.rules.each do |rule|
28
28
  next if rule.rule_name == :all
29
29
  singelton.send(:define_method, rule.rule_name) do |*cypher_query_hash, &cypher_block|
30
+ raise "Not a hash, can't create a cypher where clause'" if cypher_query_hash.first && !cypher_query_hash.first.is_a?(Hash)
30
31
  proc = Proc.new do |m|
31
32
  m.incoming(rule.rule_name)
32
33
  if cypher_block
@@ -38,6 +39,7 @@ module Neo4j
38
39
  end
39
40
  end
40
41
 
42
+
41
43
  def to_s
42
44
  if @cypher_block || @cypher_query_hash
43
45
  query(@cypher_query_hash, &@cypher_block).to_s
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module Wrapper
3
- VERSION = '0.0.6'
3
+ VERSION = '0.0.7'
4
4
  end
5
5
  end
@@ -27,5 +27,5 @@ It comes included with the Apache Lucene document database.
27
27
  s.extra_rdoc_files = %w( README.rdoc )
28
28
  s.rdoc_options = ["--quiet", "--title", "Neo4j.rb", "--line-numbers", "--main", "README.rdoc", "--inline-source"]
29
29
 
30
- s.add_dependency("neo4j-core", "0.0.10")
30
+ s.add_dependency("neo4j-core", "0.0.11")
31
31
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: neo4j-wrapper
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.6
5
+ version: 0.0.7
6
6
  platform: java
7
7
  authors:
8
8
  - Andreas Ronge
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-04-18 00:00:00 Z
13
+ date: 2012-04-19 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: neo4j-core
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - "="
22
22
  - !ruby/object:Gem::Version
23
- version: 0.0.10
23
+ version: 0.0.11
24
24
  type: :runtime
25
25
  version_requirements: *id001
26
26
  description: |