neo4j 1.0.0.beta.31-java → 1.0.0.beta.32-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.
@@ -9,6 +9,10 @@ It uses two powerful and mature Java libraries:
9
9
  * {Neo4J}[http://www.neo4j.org] - for persistence and traversal of the graph
10
10
  * {Lucene}[http://lucene.apache.org/java/docs/index.html] for querying and indexing.
11
11
 
12
+ === Documentation
13
+
14
+ * {Guides and API}[http://neo4j.rubyforge.org/guides/index.html]
15
+
12
16
  === Why Neo4j.rb or a Graph Database ?
13
17
 
14
18
  Here are some of the major benefits of Neo4j.rb
@@ -24,10 +28,6 @@ Here are some of the major benefits of Neo4j.rb
24
28
  * Seamless integration with Ruby on \Rails.
25
29
  * ACID Transaction with rollbacks support.
26
30
 
27
- === Documentation
28
-
29
- * {API Documentation}[http://neo4j.rubyforge.org]
30
- * {Documentation and Getting Started with Neo4j}[http://neo4j.rubyforge.org/guides/index.html]
31
31
 
32
32
  === Some Examples
33
33
 
@@ -100,11 +100,7 @@ Example of creating an Neo4j Application from scratch:
100
100
  rails s
101
101
  open a webbrowser: http://localhost:3000/users
102
102
 
103
- You may get an error message "ERROR IOError: Connection reset by peer"
104
- using WEBrick (it still works). This error message is not shown when running
105
- the application with {Tomcat/Trinidad}[https://github.com/calavera/trinidad]
106
-
107
- To run it with Tomcat
103
+ To run it with Tomcat instead of WEBrick
108
104
 
109
105
  gem install trinidad
110
106
  trinidad
@@ -13,9 +13,9 @@ require 'will_paginate/finders/base'
13
13
 
14
14
  require 'neo4j/jars/core/geronimo-jta_1.1_spec-1.1.1.jar'
15
15
  require 'neo4j/jars/core/lucene-core-3.0.3.jar'
16
- require 'neo4j/jars/core/neo4j-lucene-index-1.3.M02.jar'
17
- require 'neo4j/jars/core/neo4j-kernel-1.3.M02.jar'
18
- require 'neo4j/jars/ha/neo4j-management-1.3.M02.jar'
16
+ require 'neo4j/jars/core/neo4j-lucene-index-1.3.M03.jar'
17
+ require 'neo4j/jars/core/neo4j-kernel-1.3.M03.jar'
18
+ require 'neo4j/jars/ha/neo4j-management-1.3.M03.jar'
19
19
 
20
20
  module Neo4j
21
21
 
@@ -31,20 +31,20 @@ module Neo4j
31
31
  end
32
32
 
33
33
  def self.load_shell_jars
34
- require 'neo4j/jars/ha/neo4j-shell-1.3.M02.jar'
34
+ require 'neo4j/jars/ha/neo4j-shell-1.3.M03.jar'
35
35
  end
36
36
 
37
37
  def self.load_online_backup
38
- require 'neo4j/jars/ha/neo4j-com-1.3.M02.jar'
39
- require 'neo4j/jars/core/neo4j-backup-1.3-SNAPSHOT.jar'
38
+ require 'neo4j/jars/ha/neo4j-com-1.3.M03.jar'
39
+ require 'neo4j/jars/core/neo4j-backup-1.3.M03.jar'
40
40
  require 'neo4j/jars/ha/netty-3.2.1.Final.jar'
41
41
  Neo4j.send(:const_set, :OnlineBackup, org.neo4j.backup.OnlineBackup)
42
42
  end
43
43
 
44
44
  def self.load_ha_jars
45
45
  require 'neo4j/jars/ha/log4j-1.2.16.jar'
46
- require 'neo4j/jars/ha/neo4j-ha-1.3.M02.jar'
47
- require 'neo4j/jars/ha/neo4j-com-1.3.M02.jar'
46
+ require 'neo4j/jars/ha/neo4j-ha-1.3.M03.jar'
47
+ require 'neo4j/jars/ha/neo4j-com-1.3.M03.jar'
48
48
  require 'neo4j/jars/ha/netty-3.2.1.Final.jar'
49
49
  require 'neo4j/jars/ha/org.apache.servicemix.bundles.jline-0.9.94_1.jar'
50
50
  require 'neo4j/jars/ha/org.apache.servicemix.bundles.lucene-3.0.1_2.jar'
@@ -1,6 +1,6 @@
1
1
  # external neo4j dependencies
2
2
  require 'neo4j/to_java'
3
- require 'neo4j/jars/core/neo4j-graph-algo-1.3.M02.jar'
3
+ require 'neo4j/jars/core/neo4j-graph-algo-1.3.M03.jar'
4
4
 
5
5
  module Neo4j
6
6
 
@@ -61,10 +61,24 @@ module Neo4j
61
61
  Neo4j::Config
62
62
  end
63
63
 
64
+ # Returns the logger used by neo4j.
65
+ # If not specified (with Neo4j.logger=) it will use the standard Ruby logger.
66
+ # You can change standard logger threshold by configuration :logger_level.
67
+ #
68
+ # You can also specify which logger class should take care of logging with the
69
+ # :logger configuration.
70
+ #
71
+ # ==== Example
72
+ #
73
+ # Neo4j::Config[:logger] = Logger.new(STDOUT)
74
+ # Neo4j::Config[:logger_level] = Logger::ERROR
75
+ #
64
76
  def logger
65
77
  @logger ||= Neo4j::Config[:logger] || default_logger
66
78
  end
67
79
 
80
+ # Sets which logger should be used.
81
+ # If this this is not called then the standard Ruby logger will be used.
68
82
  def logger=(logger)
69
83
  @logger = logger
70
84
  end
@@ -11,16 +11,27 @@ module Neo4j
11
11
  # overwrite the index method to add find_by_xxx class methods
12
12
  def index(*args)
13
13
  field = args.first
14
- module_eval <<-RUBY, __FILE__, __LINE__
15
- def self.all_by_#{field}(value)
16
- find_with_indexer("#{field}: \\"\#{value}\\"")
17
- end
18
-
19
- def self.find_by_#{field}(value)
20
- all_by_#{field}(value).first
21
- end
22
- RUBY
23
14
 
15
+ if self._decl_props[field.to_sym] && self._decl_props[field.to_sym][:type] == Fixnum
16
+ module_eval <<-RUBY, __FILE__, __LINE__
17
+ def self.all_by_#{field}(value)
18
+ find_with_indexer(:#{field} => value)
19
+ end
20
+ def self.find_by_#{field}(value)
21
+ all_by_#{field}(value).first
22
+ end
23
+ RUBY
24
+ else
25
+ module_eval <<-RUBY, __FILE__, __LINE__
26
+ def self.all_by_#{field}(value)
27
+ find_with_indexer("#{field}: \\"\#{value}\\"")
28
+ end
29
+
30
+ def self.find_by_#{field}(value)
31
+ all_by_#{field}(value).first
32
+ end
33
+ RUBY
34
+ end
24
35
  super
25
36
  end
26
37
 
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = "1.0.0.beta.31"
2
+ VERSION = "1.0.0.beta.32"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: neo4j
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 6
5
- version: 1.0.0.beta.31
5
+ version: 1.0.0.beta.32
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: 2011-02-17 00:00:00 +01:00
13
+ date: 2011-02-28 00:00:00 +01:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -136,21 +136,21 @@ files:
136
136
  - lib/neo4j/rails/validations/uniqueness.rb
137
137
  - lib/neo4j/rails/validations/non_nil.rb
138
138
  - lib/neo4j/jars/core/lucene-core-3.0.3.jar
139
- - lib/neo4j/jars/core/neo4j-graph-algo-1.3.M02.jar
140
- - lib/neo4j/jars/core/neo4j-backup-1.3-SNAPSHOT.jar
139
+ - lib/neo4j/jars/core/neo4j-backup-1.3.M03.jar
140
+ - lib/neo4j/jars/core/neo4j-kernel-1.3.M03.jar
141
141
  - lib/neo4j/jars/core/geronimo-jta_1.1_spec-1.1.1.jar
142
- - lib/neo4j/jars/core/neo4j-kernel-1.3.M02.jar
143
- - lib/neo4j/jars/core/neo4j-lucene-index-1.3.M02.jar
142
+ - lib/neo4j/jars/core/neo4j-graph-algo-1.3.M03.jar
143
+ - lib/neo4j/jars/core/neo4j-lucene-index-1.3.M03.jar
144
144
  - lib/neo4j/jars/core/neo4j-index-1.3-1.3.M01.jar
145
- - lib/neo4j/jars/ha/neo4j-management-1.3.M02.jar
145
+ - lib/neo4j/jars/ha/neo4j-shell-1.3.M03.jar
146
146
  - lib/neo4j/jars/ha/org.apache.servicemix.bundles.lucene-3.0.1_2.jar
147
147
  - lib/neo4j/jars/ha/zookeeper-3.3.2.jar
148
148
  - lib/neo4j/jars/ha/netty-3.2.1.Final.jar
149
149
  - lib/neo4j/jars/ha/log4j-1.2.16.jar
150
- - lib/neo4j/jars/ha/neo4j-ha-1.3.M02.jar
151
- - lib/neo4j/jars/ha/neo4j-com-1.3.M02.jar
150
+ - lib/neo4j/jars/ha/neo4j-com-1.3.M03.jar
151
+ - lib/neo4j/jars/ha/neo4j-management-1.3.M03.jar
152
152
  - lib/neo4j/jars/ha/org.apache.servicemix.bundles.jline-0.9.94_1.jar
153
- - lib/neo4j/jars/ha/neo4j-shell-1.3.M02.jar
153
+ - lib/neo4j/jars/ha/neo4j-ha-1.3.M03.jar
154
154
  - lib/neo4j/index/indexer.rb
155
155
  - lib/neo4j/index/lucene_query.rb
156
156
  - lib/neo4j/index/indexer_registry.rb