neo4j-core 0.0.12-java → 0.0.13-java

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,8 +2,8 @@ source :gemcutter
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'neo4j-advanced', "1.7.M02", :require => false
6
- gem 'neo4j-enterprise', "1.7.M02", :require => false
5
+ gem 'neo4j-advanced', "1.7.0", :require => false
6
+ gem 'neo4j-enterprise', "1.7.0", :require => false
7
7
 
8
8
  group 'development' do
9
9
  gem 'guard'
@@ -132,6 +132,11 @@ module Neo4j
132
132
  p = Property.new(expressions, self, p)
133
133
  p.binary_operator("", " is null")
134
134
  end
135
+
136
+ def is_a?(klass)
137
+ return super if klass.class != Class || !klass.instance_methods.include?("wrapper")
138
+ super
139
+ end
135
140
  end
136
141
 
137
142
  module Matchable
@@ -613,6 +618,21 @@ module Neo4j
613
618
  def expr
614
619
  "#{dir_op}(#{right_var_name})"
615
620
  end
621
+
622
+ def not
623
+ expressions.delete(self)
624
+ ExprOp.new(left, nil, "not").binary!
625
+ end
626
+
627
+ if RUBY_VERSION > "1.9.0"
628
+ eval %{
629
+ def !
630
+ expressions.delete(self)
631
+ ExprOp.new(left, nil, "not").binary!
632
+ end
633
+ }
634
+ end
635
+
616
636
  end
617
637
 
618
638
  class MatchNode < Match
@@ -748,7 +768,7 @@ module Neo4j
748
768
  end
749
769
 
750
770
  def quote(val)
751
- if val.respond_to?(:var_name)
771
+ if val.respond_to?(:var_name) && !val.kind_of?(Match)
752
772
  val.var_name
753
773
  else
754
774
  val.is_a?(String) ? %Q["#{val}"] : val
@@ -163,8 +163,6 @@ module Neo4j
163
163
  Neo4j.logger.info "starting Neo4j in HA mode, machine id: #{Neo4j.config['ha.server_id']} at #{Neo4j.config['ha.server']} db #{@storage_path}"
164
164
  # Modify the public base classes for the HA Node and Relationships
165
165
  # (instead of private Java::OrgNeo4jKernel::HighlyAvailableGraphDatabase::LookupNode)
166
- Neo4j::Node.extend_java_class(Java::OrgNeo4jToolingWrap::WrappedNode)
167
- Neo4j::Relationship.extend_java_class(Java::OrgNeo4jToolingWrap::WrappedRelationship)
168
166
  @graph = Java::OrgNeo4jKernel::HighlyAvailableGraphDatabase.new(@storage_path, Neo4j.config.to_java_map)
169
167
  @graph.register_transaction_event_handler(@event_handler)
170
168
  @lucene = @graph.index
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module Core
3
- VERSION = "0.0.12"
3
+ VERSION = "0.0.13"
4
4
  end
5
5
  end
data/lib/neo4j/cypher.rb CHANGED
@@ -102,7 +102,7 @@ module Neo4j
102
102
  if rels.first.is_a?(Fixnum) || rels.first.respond_to?(:neo_id)
103
103
  StartRel.new(rels, @expressions)
104
104
  elsif rels.first.is_a?(Symbol)
105
- RelVar.new(@expressions, @variables, "").as(rels.first)
105
+ RelVar.new(@expressions, @variables, ":`#{rels.first}`").as(rels.first)
106
106
  elsif rels.first.is_a?(String)
107
107
  RelVar.new(@expressions, @variables, rels.first)
108
108
  else
data/neo4j-core.gemspec CHANGED
@@ -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::Core", "--line-numbers", "--main", "README.rdoc", "--inline-source"]
29
29
 
30
- s.add_dependency("neo4j-community", "1.7.M02")
30
+ s.add_dependency("neo4j-community", "1.7.0")
31
31
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: neo4j-core
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.12
5
+ version: 0.0.13
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-19 00:00:00 Z
13
+ date: 2012-04-23 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: neo4j-community
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - "="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.7.M02
23
+ version: 1.7.0
24
24
  type: :runtime
25
25
  version_requirements: *id001
26
26
  description: |