neo4j 3.0.0.alpha.4 → 3.0.0.alpha.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d529b0a277c85beffcb02008e9a16911edd26e0b
4
- data.tar.gz: 34d8210e6ca0f7808051743e7177dec65a20e92e
3
+ metadata.gz: 16a068f36afad76fd754acf72df1e603742a0826
4
+ data.tar.gz: 9da1d516939d4957fe80b31bc60510d2bcc6bf01
5
5
  SHA512:
6
- metadata.gz: 1b3347a88211c4555f69bcbd2471fb41ac7353b5e831487546d7b42f3b3d79fbb75b7626ce683ef931bf9d8d0946a64ec0fe2a817f1cb3d5798cc00545ea31a5
7
- data.tar.gz: c9c875a7c36e75f9cddcc204cc0fc83114319105dfca22f8f4e76cacd45b905081f6bbaca765e143e457aba888a594323ef42b886cdb8ba483599bb1d39e5449
6
+ metadata.gz: bd3f47e62c077752f70b12cf60bdde8a4be94fe8a28fae30f959ce5ad764d3f716ef86e995b3c55815ea2411a7e2576a01b5dfcad97ffb24e4648864a2191188
7
+ data.tar.gz: 80cfe52b5b76be46e5ceb5a948f1959ad4e36f8de5552a1cb8b6d86601c7263878d92c4028afab45b65ef7d3252938c5f38b60b1d91aa3540e3af1b9cc55f3aa
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ == 3.0.0.alpha.5
2
+ * Added allow session options via 'config.neo4j.session_options' so it can run on heroku (#333)
3
+ * Relaxed Dependencies for Rails 4.1 (#332)
4
+ * Using neo4j-core version 3.0.0.alpha.12
5
+
1
6
  == 3.0.0.alpha.4
2
7
  * Implemented validates_uniqueness_of (#311)
3
8
  * Using neo4j-core version 3.0.0.alpha.11
data/Gemfile CHANGED
@@ -15,4 +15,5 @@ end
15
15
  group 'test' do
16
16
  gem "rspec"
17
17
  gem "its"
18
+ gem "test-unit"
18
19
  end
data/lib/neo4j.rb CHANGED
@@ -30,7 +30,7 @@ require 'neo4j/active_node/has_n/decl_rel'
30
30
  require 'neo4j/active_node/has_n/nodes'
31
31
  require 'neo4j/active_node'
32
32
 
33
- if defined? Rails::Generators
33
+ if defined? Rails::Generators # defined in 'rails/generators.rb'
34
34
  # TODO, not sure this is the correct way of adding rails generators
35
35
  # See https://github.com/andreasronge/neo4j/blob/gh-pages/neo4j.rb
36
36
  # It is required from the rails config/application file
@@ -41,10 +41,7 @@ module Neo4j
41
41
  class UniquenessValidator < ::ActiveModel::EachValidator
42
42
  def initialize(options)
43
43
  super(options.reverse_merge(:case_sensitive => true))
44
- end
45
-
46
- def setup(klass)
47
- @klass = klass
44
+ @klass = options[:class]
48
45
  end
49
46
 
50
47
  def validate_each(record, attribute, value)
data/lib/neo4j/railtie.rb CHANGED
@@ -15,10 +15,11 @@ module Neo4j
15
15
  def set_default_session(cfg)
16
16
  cfg.session_type ||= :server_db
17
17
  cfg.session_path ||= "http://localhost:7474"
18
+ cfg.session_options ||= {}
18
19
  cfg.sessions ||= []
19
20
 
20
21
  if cfg.sessions.empty?
21
- cfg.sessions << {type: cfg.session_type, path: cfg.session_path}
22
+ cfg.sessions << {type: cfg.session_type, path: cfg.session_path, options: cfg.session_options}
22
23
  end
23
24
  end
24
25
 
@@ -40,7 +41,7 @@ module Neo4j
40
41
  if (session_opts.key? :name)
41
42
  session = Neo4j::Session.open_named(session_opts[:type], session_opts[:name], session_opts[:default], session_opts[:path])
42
43
  else
43
- session = Neo4j::Session.open(session_opts[:type], session_opts[:path])
44
+ session = Neo4j::Session.open(session_opts[:type], session_opts[:path], session_opts[:options])
44
45
  end
45
46
 
46
47
  start_embedded_session(session) if session_opts[:type] == :embedded_db
data/lib/neo4j/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = "3.0.0.alpha.4"
2
+ VERSION = "3.0.0.alpha.5"
3
3
  end
data/neo4j.gemspec CHANGED
@@ -30,10 +30,10 @@ It comes included with the Apache Lucene document database.
30
30
  s.rdoc_options = ["--quiet", "--title", "Neo4j.rb", "--line-numbers", "--main", "README.rdoc", "--inline-source"]
31
31
 
32
32
  s.add_dependency('orm_adapter', "~> 0.4.0")
33
- s.add_dependency("activemodel", "~> 4.0.0")
34
- s.add_dependency("railties", "~> 4.0.0")
33
+ s.add_dependency("activemodel", "~> 4")
34
+ s.add_dependency("railties", "~> 4")
35
35
  s.add_dependency('active_attr', "~> 0.8")
36
- s.add_dependency("neo4j-core", "= 3.0.0.alpha.11")
36
+ s.add_dependency("neo4j-core", "= 3.0.0.alpha.12")
37
37
 
38
38
  if RUBY_PLATFORM =~ /java/
39
39
  s.add_dependency("neo4j-community", '~> 2.0.0')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4j
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.alpha.4
4
+ version: 3.0.0.alpha.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Ronge
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-21 00:00:00.000000000 Z
11
+ date: 2014-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 4.0.0
33
+ version: '4'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 4.0.0
40
+ version: '4'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: railties
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 4.0.0
47
+ version: '4'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 4.0.0
54
+ version: '4'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: active_attr
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 3.0.0.alpha.11
75
+ version: 3.0.0.alpha.12
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 3.0.0.alpha.11
82
+ version: 3.0.0.alpha.12
83
83
  description: "You can think of Neo4j as a high-performance graph engine with all the
84
84
  features of a mature and robust database.\nThe programmer works with an object-oriented,
85
85
  flexible network structure rather than with strict and static tables \nyet enjoys