neo4j 3.0.0.alpha.10 → 3.0.0.alpha.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +3 -0
- data/Gemfile +1 -2
- data/lib/neo4j/active_node/has_n/association.rb +0 -1
- data/lib/neo4j/version.rb +1 -1
- metadata +2 -6
- data/lib/neo4j.rb~ +0 -40
- data/lib/person.rb~ +0 -9
- data/lib/test.rb +0 -21
- data/lib/test.rb~ +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d3b8eeb614c23ddb1a08578e3096eb8d2afc410
|
4
|
+
data.tar.gz: a33b7bd296a1b43e5c2c0a5216981fa3ed48813d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c67c87f76ecf5ab6fe234b8d19661fe31dec925077f8c9b06c4e9af3622c798c22f13b1a02a5bf55260f7e346cf03a474f1d0e8c7a9bce1847fbf9c1330ffb3e
|
7
|
+
data.tar.gz: 8548e9d857fb400dcda682d903f437cf8f1727ed885276b30e24b673df72acddbda1ec1a5859519aac7948bb167291cdfaf8acd30e9cdafd51a53a7a92327fd7
|
data/CHANGELOG
CHANGED
data/Gemfile
CHANGED
@@ -85,7 +85,6 @@ module Neo4j
|
|
85
85
|
def get_properties_string(properties)
|
86
86
|
properties[Neo4j::Config.class_name_property] = @relationship_class.name if @relationship_class
|
87
87
|
p = properties.map do |key, value|
|
88
|
-
next if key == :_classname
|
89
88
|
"#{key}: #{value.inspect}"
|
90
89
|
end.join(', ')
|
91
90
|
p.size == 0 ? '' : " {#{p}}"
|
data/lib/neo4j/version.rb
CHANGED
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
|
+
version: 3.0.0.alpha.11
|
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-08-
|
11
|
+
date: 2014-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orm_adapter
|
@@ -114,7 +114,6 @@ files:
|
|
114
114
|
- config/locales/en.yml
|
115
115
|
- config/neo4j/config.yml
|
116
116
|
- lib/neo4j.rb
|
117
|
-
- lib/neo4j.rb~
|
118
117
|
- lib/neo4j/active_node.rb
|
119
118
|
- lib/neo4j/active_node/callbacks.rb
|
120
119
|
- lib/neo4j/active_node/has_n.rb
|
@@ -152,12 +151,9 @@ files:
|
|
152
151
|
- lib/neo4j/type_converters.rb
|
153
152
|
- lib/neo4j/version.rb
|
154
153
|
- lib/neo4j/wrapper.rb
|
155
|
-
- lib/person.rb~
|
156
154
|
- lib/rails/generators/neo4j/model/model_generator.rb
|
157
155
|
- lib/rails/generators/neo4j/model/templates/model.erb
|
158
156
|
- lib/rails/generators/neo4j_generator.rb
|
159
|
-
- lib/test.rb
|
160
|
-
- lib/test.rb~
|
161
157
|
- neo4j.gemspec
|
162
158
|
homepage: http://github.com/andreasronge/neo4j/tree
|
163
159
|
licenses:
|
data/lib/neo4j.rb~
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
require 'neo4j/version'
|
2
|
-
|
3
|
-
#require "delegate"
|
4
|
-
#require "time"
|
5
|
-
#require "set"
|
6
|
-
#
|
7
|
-
#require "active_support/core_ext"
|
8
|
-
#require "active_support/json"
|
9
|
-
#require "active_support/inflector"
|
10
|
-
#require "active_support/time_with_zone"
|
11
|
-
|
12
|
-
require "neo4j-core"
|
13
|
-
require "active_model"
|
14
|
-
require 'active_support/concern'
|
15
|
-
require 'active_support/core_ext/class/attribute.rb'
|
16
|
-
|
17
|
-
require 'active_attr'
|
18
|
-
require 'neo4j/wrapper'
|
19
|
-
require 'neo4j/type_converters'
|
20
|
-
require "neo4j/active_node/labels"
|
21
|
-
require 'neo4j/active_node/identity'
|
22
|
-
require 'neo4j/active_node/callbacks'
|
23
|
-
require 'neo4j/active_node/initialize'
|
24
|
-
require 'neo4j/active_node/property'
|
25
|
-
require 'neo4j/active_node/persistence'
|
26
|
-
require 'neo4j/active_node/validations'
|
27
|
-
require 'neo4j/active_node/rels'
|
28
|
-
require 'neo4j/active_node/has_n'
|
29
|
-
require 'neo4j/active_node/has_n/decl_rel'
|
30
|
-
require 'neo4j/active_node/has_n/nodes'
|
31
|
-
require 'neo4j/active_node'
|
32
|
-
|
33
|
-
require 'neo4j/active_node/orm_adapter'
|
34
|
-
|
35
|
-
if defined? Rails::Generators # defined in 'rails/generators.rb'
|
36
|
-
# TODO, not sure this is the correct way of adding rails generators
|
37
|
-
# See https://github.com/andreasronge/neo4j/blob/gh-pages/neo4j.rb
|
38
|
-
# It is required from the rails config/application file
|
39
|
-
require 'rails/generators/neo4j_generator'
|
40
|
-
end
|
data/lib/person.rb~
DELETED
data/lib/test.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
require 'neo4j'
|
2
|
-
s = Neo4j::Session.open
|
3
|
-
class Person
|
4
|
-
include Neo4j::ActiveNode
|
5
|
-
property :name
|
6
|
-
has_many :out, :friends, type: :friends, model_class: self
|
7
|
-
end
|
8
|
-
|
9
|
-
t = Neo4j::Transaction.new
|
10
|
-
|
11
|
-
p = Person.new
|
12
|
-
p.save
|
13
|
-
p.friends << Person.create(name: 'a') << Person.create(name: 'b')
|
14
|
-
id = p.id
|
15
|
-
puts "ID #{id}"
|
16
|
-
puts "FRIENDS #{p.friends.to_a.first.name}"
|
17
|
-
t.fail
|
18
|
-
t.close
|
19
|
-
puts "DONE"
|
20
|
-
|
21
|
-
puts "LOAD #{Neo4j::Node.load(id)}"
|
data/lib/test.rb~
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
require 'neo4j'
|
2
|
-
s = Neo4j::Session.open
|
3
|
-
class Person
|
4
|
-
include Neo4j::ActiveNode
|
5
|
-
property :name
|
6
|
-
has_many :out, :friends
|
7
|
-
end
|
8
|
-
|
9
|
-
t = Neo4j::Transaction.new
|
10
|
-
|
11
|
-
p = Person.new
|
12
|
-
p.save
|
13
|
-
p.friends << Person.create << Person.create
|
14
|
-
id = p.id
|
15
|
-
puts "ID #{id}"
|
16
|
-
puts "FRIENDS #{p.friends.to_a.count}"
|
17
|
-
t.fail
|
18
|
-
t.close
|
19
|
-
puts "DONE"
|
20
|
-
|
21
|
-
puts "LOAD #{Neo4j::Node.load(id)}"
|