neo4j 3.0.0 → 3.0.1
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 +4 -4
- data/CHANGELOG +3 -0
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/lib/neo4j/active_rel/persistence.rb +2 -0
- data/lib/neo4j/migration.rb +4 -1
- data/lib/neo4j/version.rb +1 -1
- data/neo4j.gemspec +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99403c4083f1e8b94fca74b9a70367a182f51b88
|
4
|
+
data.tar.gz: 4bf1f031533437c899b09e80f71d130f035d5b88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62d115d92d918698a84f92a5b589409becf59791181a0cf3bc124ea6c736b5bd3d3fa6c63eab3d3f95a9043c15ebd5bce4b2ece0237ff54fc56fe0cadfa2e35d
|
7
|
+
data.tar.gz: 744d4bf8e8e872cace8c9b316ed3176bdc6a8efea1765fbcb42bf8ae5067a445892a0365eff4ed783ee6359a99efbe99fa29242cbc49ca45bd2872e78151767e
|
data/CHANGELOG
CHANGED
data/Gemfile
CHANGED
@@ -3,7 +3,7 @@ source 'http://rubygems.org'
|
|
3
3
|
gemspec
|
4
4
|
|
5
5
|
#gem 'neo4j-core', path: '../neo4j-core'
|
6
|
-
gem 'neo4j-core', git: 'https://github.com/neo4jrb/neo4j-core'
|
6
|
+
#gem 'neo4j-core', git: 'https://github.com/neo4jrb/neo4j-core'
|
7
7
|
#gem 'orm_adapter', :path => '../orm_adapter'
|
8
8
|
|
9
9
|
gem 'coveralls', require: false
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Neo4j.rb is an Active Model compliant Ruby/JRuby wrapper for [the Neo4j graph database](http://www.neo4j.org/). It uses the [neo4j-core](https://github.com/neo4jrb/neo4j-core) and [active_attr](https://github.com/cgriego/active_attr) gems.
|
4
4
|
|
5
|
-
## Documentation version 3.0.0
|
5
|
+
## Documentation version 3.0.0
|
6
6
|
|
7
7
|
* [Wiki](https://github.com/neo4jrb/neo4j/wiki/Neo4j.rb-v3-Introduction)
|
8
8
|
|
data/lib/neo4j/migration.rb
CHANGED
@@ -79,7 +79,8 @@ module Neo4j
|
|
79
79
|
|
80
80
|
def id_batch_set(label, property, new_ids, to_set)
|
81
81
|
Benchmark.realtime do
|
82
|
-
|
82
|
+
begin
|
83
|
+
tx = Neo4j::Transaction.new
|
83
84
|
Neo4j::Session.query("MATCH (n:`#{label}`) WHERE NOT has(n.#{property})
|
84
85
|
with COLLECT(n) as nodes, #{new_ids} as ids
|
85
86
|
FOREACH(i in range(0,#{to_set - 1})|
|
@@ -87,6 +88,8 @@ module Neo4j
|
|
87
88
|
SET node.#{property} = ids[i]))
|
88
89
|
RETURN distinct(true)
|
89
90
|
LIMIT #{to_set}")
|
91
|
+
ensure
|
92
|
+
tx.close
|
90
93
|
end
|
91
94
|
end
|
92
95
|
end
|
data/lib/neo4j/version.rb
CHANGED
data/neo4j.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.summary = "A graph database for Ruby"
|
17
17
|
s.license = 'MIT'
|
18
18
|
s.description = <<-EOF
|
19
|
-
A Neo4j OGM for use in Ruby on Rails and Rack frameworks, intended as a complete replacement for ActiveRecord.
|
19
|
+
A Neo4j OGM (Object-Graph-Mapper) for use in Ruby on Rails and Rack frameworks, intended as a complete replacement for ActiveRecord.
|
20
20
|
EOF
|
21
21
|
|
22
22
|
s.require_path = 'lib'
|
@@ -31,7 +31,7 @@ A Neo4j OGM for use in Ruby on Rails and Rack frameworks, intended as a complete
|
|
31
31
|
s.add_dependency("activesupport", "~> 4")
|
32
32
|
s.add_dependency("railties", "~> 4")
|
33
33
|
s.add_dependency('active_attr', "~> 0.8")
|
34
|
-
s.add_dependency("neo4j-core", "
|
34
|
+
s.add_dependency("neo4j-core", "~> 3.0.0")
|
35
35
|
|
36
36
|
if RUBY_PLATFORM =~ /java/
|
37
37
|
s.add_dependency("neo4j-community", '~> 2.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.
|
4
|
+
version: 3.0.1
|
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-09-
|
11
|
+
date: 2014-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orm_adapter
|
@@ -84,18 +84,18 @@ dependencies:
|
|
84
84
|
name: neo4j-core
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 3.0.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 3.0.0
|
97
97
|
description: |
|
98
|
-
A Neo4j OGM for use in Ruby on Rails and Rack frameworks, intended as a complete replacement for ActiveRecord.
|
98
|
+
A Neo4j OGM (Object-Graph-Mapper) for use in Ruby on Rails and Rack frameworks, intended as a complete replacement for ActiveRecord.
|
99
99
|
email: andreas.ronge@gmail.com
|
100
100
|
executables:
|
101
101
|
- neo4j-jars
|