activegraph 10.0.0.pre.alpha.11 → 10.0.0.pre.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/{neo4j.gemspec → activegraph.gemspec} +7 -9
- data/config/neo4j/config.yml +4 -4
- data/lib/active_graph.rb +120 -0
- data/lib/{neo4j → active_graph}/ansi.rb +1 -1
- data/lib/{neo4j → active_graph}/attribute_set.rb +3 -3
- data/lib/{neo4j/active_base.rb → active_graph/base.rb} +18 -12
- data/lib/{neo4j → active_graph}/class_arguments.rb +5 -5
- data/lib/{neo4j → active_graph}/config.rb +10 -10
- data/lib/active_graph/core.rb +14 -0
- data/lib/{neo4j → active_graph}/core/connection_failed_error.rb +1 -1
- data/lib/{neo4j → active_graph}/core/cypher_error.rb +1 -1
- data/lib/{neo4j → active_graph}/core/driver.rb +5 -5
- data/lib/{neo4j → active_graph}/core/has_uri.rb +1 -1
- data/lib/{neo4j → active_graph}/core/instrumentable.rb +4 -4
- data/lib/{neo4j → active_graph}/core/label.rb +13 -13
- data/lib/{neo4j → active_graph}/core/logging.rb +2 -2
- data/lib/{neo4j → active_graph}/core/node.rb +2 -2
- data/lib/{neo4j → active_graph}/core/querable.rb +7 -7
- data/lib/{neo4j → active_graph}/core/query.rb +16 -16
- data/lib/{neo4j → active_graph}/core/query_builder.rb +3 -3
- data/lib/{neo4j → active_graph}/core/query_clauses.rb +1 -1
- data/lib/{neo4j → active_graph}/core/query_ext.rb +5 -5
- data/lib/{neo4j → active_graph}/core/query_find_in_batches.rb +2 -2
- data/lib/{neo4j → active_graph}/core/relationship.rb +2 -2
- data/lib/{neo4j → active_graph}/core/responses.rb +3 -3
- data/lib/{neo4j → active_graph}/core/result.rb +1 -1
- data/lib/{neo4j → active_graph}/core/schema.rb +1 -1
- data/lib/{neo4j → active_graph}/core/schema_errors.rb +1 -1
- data/lib/{neo4j → active_graph}/core/wrappable.rb +1 -1
- data/lib/{neo4j → active_graph}/errors.rb +1 -1
- data/lib/{neo4j → active_graph}/lazy_attribute_hash.rb +1 -1
- data/lib/{neo4j → active_graph}/migration.rb +11 -11
- data/lib/{neo4j → active_graph}/migrations.rb +5 -5
- data/lib/{neo4j → active_graph}/migrations/base.rb +7 -7
- data/lib/{neo4j → active_graph}/migrations/check_pending.rb +3 -3
- data/lib/{neo4j → active_graph}/migrations/helpers.rb +4 -4
- data/lib/{neo4j → active_graph}/migrations/helpers/id_property.rb +3 -3
- data/lib/{neo4j → active_graph}/migrations/helpers/relationships.rb +1 -1
- data/lib/{neo4j → active_graph}/migrations/helpers/schema.rb +7 -7
- data/lib/{neo4j → active_graph}/migrations/migration_file.rb +1 -1
- data/lib/{neo4j → active_graph}/migrations/runner.rb +3 -3
- data/lib/{neo4j → active_graph}/migrations/schema.rb +1 -1
- data/lib/{neo4j → active_graph}/migrations/schema_migration.rb +2 -2
- data/lib/{neo4j → active_graph}/model_schema.rb +8 -8
- data/lib/{neo4j/active_node.rb → active_graph/node.rb} +32 -32
- data/lib/{neo4j/active_node → active_graph/node}/callbacks.rb +3 -3
- data/lib/{neo4j/active_node → active_graph/node}/dependent.rb +2 -2
- data/lib/{neo4j/active_node → active_graph/node}/dependent/association_methods.rb +2 -2
- data/lib/{neo4j/active_node → active_graph/node}/dependent/query_proxy_methods.rb +4 -4
- data/lib/{neo4j/active_node → active_graph/node}/dependent_callbacks.rb +4 -4
- data/lib/{neo4j/active_node → active_graph/node}/enum.rb +3 -3
- data/lib/{neo4j/active_node → active_graph/node}/has_n.rb +20 -20
- data/lib/{neo4j/active_node → active_graph/node}/has_n/association.rb +8 -8
- data/lib/{neo4j/active_node → active_graph/node}/has_n/association/rel_factory.rb +4 -4
- data/lib/{neo4j/active_node → active_graph/node}/has_n/association/rel_wrapper.rb +4 -4
- data/lib/{neo4j/active_node → active_graph/node}/has_n/association_cypher_methods.rb +2 -2
- data/lib/{neo4j/active_node → active_graph/node}/id_property.rb +7 -7
- data/lib/{neo4j/active_node → active_graph/node}/id_property/accessor.rb +1 -1
- data/lib/{neo4j/active_node → active_graph/node}/initialize.rb +3 -3
- data/lib/{neo4j/active_node → active_graph/node}/labels.rb +18 -18
- data/lib/{neo4j/active_node → active_graph/node}/labels/index.rb +6 -6
- data/lib/{neo4j/active_node → active_graph/node}/labels/reloading.rb +1 -1
- data/lib/{neo4j/active_node → active_graph/node}/node_list_formatter.rb +1 -1
- data/lib/{neo4j/active_node → active_graph/node}/node_wrapper.rb +5 -5
- data/lib/{neo4j/active_node → active_graph/node}/orm_adapter.rb +2 -2
- data/lib/{neo4j/active_node → active_graph/node}/persistence.rb +7 -7
- data/lib/{neo4j/active_node → active_graph/node}/property.rb +3 -3
- data/lib/{neo4j/active_node → active_graph/node}/query.rb +9 -9
- data/lib/{neo4j/active_node → active_graph/node}/query/query_proxy.rb +19 -19
- data/lib/{neo4j/active_node → active_graph/node}/query/query_proxy_eager_loading.rb +3 -3
- data/lib/{neo4j/active_node → active_graph/node}/query/query_proxy_eager_loading/association_tree.rb +2 -2
- data/lib/{neo4j/active_node → active_graph/node}/query/query_proxy_enumerable.rb +4 -4
- data/lib/{neo4j/active_node → active_graph/node}/query/query_proxy_find_in_batches.rb +2 -2
- data/lib/{neo4j/active_node → active_graph/node}/query/query_proxy_link.rb +3 -3
- data/lib/{neo4j/active_node → active_graph/node}/query/query_proxy_methods.rb +12 -12
- data/lib/{neo4j/active_node → active_graph/node}/query/query_proxy_methods_of_mass_updating.rb +4 -4
- data/lib/{neo4j/active_node → active_graph/node}/query_methods.rb +4 -4
- data/lib/{neo4j/active_node → active_graph/node}/reflection.rb +3 -3
- data/lib/{neo4j/active_node → active_graph/node}/rels.rb +1 -1
- data/lib/{neo4j/active_node → active_graph/node}/scope.rb +4 -4
- data/lib/{neo4j/active_node → active_graph/node}/unpersisted.rb +2 -2
- data/lib/{neo4j/active_node → active_graph/node}/validations.rb +3 -3
- data/lib/{neo4j → active_graph}/paginated.rb +1 -1
- data/lib/{neo4j → active_graph}/railtie.rb +18 -18
- data/lib/{neo4j/active_rel.rb → active_graph/relationship.rb} +19 -19
- data/lib/active_graph/relationship/callbacks.rb +21 -0
- data/lib/{neo4j/active_rel → active_graph/relationship}/initialize.rb +5 -5
- data/lib/{neo4j/active_rel → active_graph/relationship}/persistence.rb +6 -6
- data/lib/{neo4j/active_rel → active_graph/relationship}/persistence/query_factory.rb +7 -7
- data/lib/{neo4j/active_rel → active_graph/relationship}/property.rb +6 -6
- data/lib/{neo4j/active_rel → active_graph/relationship}/query.rb +7 -7
- data/lib/{neo4j/active_rel → active_graph/relationship}/rel_wrapper.rb +5 -5
- data/lib/{neo4j/active_rel → active_graph/relationship}/related_node.rb +7 -7
- data/lib/{neo4j/active_rel → active_graph/relationship}/types.rb +6 -6
- data/lib/active_graph/relationship/validations.rb +8 -0
- data/lib/{neo4j → active_graph}/schema/operation.rb +5 -5
- data/lib/{neo4j → active_graph}/shared.rb +7 -7
- data/lib/{neo4j → active_graph}/shared/attributes.rb +10 -10
- data/lib/{neo4j → active_graph}/shared/callbacks.rb +3 -3
- data/lib/{neo4j → active_graph}/shared/cypher.rb +1 -1
- data/lib/{neo4j → active_graph}/shared/declared_properties.rb +8 -8
- data/lib/{neo4j → active_graph}/shared/declared_property.rb +9 -9
- data/lib/{neo4j → active_graph}/shared/declared_property/index.rb +3 -3
- data/lib/{neo4j → active_graph}/shared/enum.rb +6 -6
- data/lib/{neo4j → active_graph}/shared/filtered_hash.rb +2 -2
- data/lib/{neo4j → active_graph}/shared/identity.rb +2 -2
- data/lib/{neo4j → active_graph}/shared/initialize.rb +3 -3
- data/lib/{neo4j → active_graph}/shared/marshal.rb +1 -1
- data/lib/{neo4j → active_graph}/shared/mass_assignment.rb +2 -2
- data/lib/{neo4j → active_graph}/shared/permitted_attributes.rb +1 -1
- data/lib/{neo4j → active_graph}/shared/persistence.rb +4 -4
- data/lib/{neo4j → active_graph}/shared/property.rb +10 -10
- data/lib/{neo4j → active_graph}/shared/query_factory.rb +5 -5
- data/lib/{neo4j → active_graph}/shared/rel_type_converters.rb +6 -6
- data/lib/{neo4j → active_graph}/shared/serialized_properties.rb +1 -1
- data/lib/{neo4j → active_graph}/shared/type_converters.rb +11 -13
- data/lib/{neo4j → active_graph}/shared/typecasted_attributes.rb +7 -7
- data/lib/{neo4j → active_graph}/shared/typecaster.rb +3 -3
- data/lib/{neo4j → active_graph}/shared/validations.rb +1 -1
- data/lib/{neo4j → active_graph}/tasks/migration.rake +25 -25
- data/lib/{neo4j → active_graph}/timestamps.rb +3 -3
- data/lib/{neo4j → active_graph}/timestamps/created.rb +1 -1
- data/lib/{neo4j → active_graph}/timestamps/updated.rb +1 -1
- data/lib/{neo4j → active_graph}/transaction.rb +9 -9
- data/lib/active_graph/transactions.rb +54 -0
- data/lib/{neo4j → active_graph}/type_converters.rb +2 -2
- data/lib/{neo4j → active_graph}/undeclared_properties.rb +1 -1
- data/lib/active_graph/version.rb +3 -0
- data/lib/{neo4j → active_graph}/wrapper.rb +1 -1
- data/lib/rails/generators/neo4j/migration/migration_generator.rb +4 -4
- data/lib/rails/generators/neo4j/migration/templates/migration.erb +2 -2
- data/lib/rails/generators/neo4j/model/model_generator.rb +4 -4
- data/lib/rails/generators/neo4j/model/templates/migration.erb +1 -1
- data/lib/rails/generators/neo4j/model/templates/model.erb +1 -1
- data/lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb +1 -1
- data/lib/rails/generators/neo4j/upgrade_v8/upgrade_v8_generator.rb +6 -6
- data/lib/rails/generators/neo4j_generator.rb +4 -4
- metadata +134 -133
- data/lib/neo4j.rb +0 -119
- data/lib/neo4j/active_rel/callbacks.rb +0 -21
- data/lib/neo4j/active_rel/validations.rb +0 -8
- data/lib/neo4j/core.rb +0 -14
- data/lib/neo4j/version.rb +0 -3
data/lib/neo4j.rb
DELETED
@@ -1,119 +0,0 @@
|
|
1
|
-
require 'forwardable'
|
2
|
-
require 'neo4j/version'
|
3
|
-
|
4
|
-
require 'neo4j/core'
|
5
|
-
require 'neo4j/core/query_ext' # From this gem
|
6
|
-
|
7
|
-
require 'neo4j/active_base'
|
8
|
-
require 'neo4j/model_schema'
|
9
|
-
|
10
|
-
require 'active_model'
|
11
|
-
require 'active_support/concern'
|
12
|
-
require 'active_support/core_ext/class/attribute.rb'
|
13
|
-
require 'active_support/core_ext/class/subclasses.rb'
|
14
|
-
require 'active_support/core_ext/module/attribute_accessors'
|
15
|
-
require 'json'
|
16
|
-
|
17
|
-
require 'neo4j/lazy_attribute_hash'
|
18
|
-
require 'neo4j/attribute_set'
|
19
|
-
require 'neo4j/errors'
|
20
|
-
require 'neo4j/config'
|
21
|
-
require 'neo4j/wrapper'
|
22
|
-
require 'neo4j/active_rel/rel_wrapper'
|
23
|
-
require 'neo4j/active_node/node_wrapper'
|
24
|
-
require 'neo4j/shared/type_converters'
|
25
|
-
require 'neo4j/shared/rel_type_converters'
|
26
|
-
require 'neo4j/shared/marshal'
|
27
|
-
require 'neo4j/type_converters'
|
28
|
-
require 'neo4j/paginated'
|
29
|
-
require 'neo4j/schema/operation'
|
30
|
-
|
31
|
-
require 'neo4j/timestamps'
|
32
|
-
require 'neo4j/undeclared_properties'
|
33
|
-
|
34
|
-
require 'neo4j/shared/callbacks'
|
35
|
-
require 'neo4j/shared/filtered_hash'
|
36
|
-
require 'neo4j/shared/declared_property/index'
|
37
|
-
require 'neo4j/shared/declared_property'
|
38
|
-
require 'neo4j/shared/declared_properties'
|
39
|
-
require 'neo4j/shared/enum'
|
40
|
-
require 'neo4j/shared/mass_assignment'
|
41
|
-
require 'neo4j/shared/attributes'
|
42
|
-
require 'neo4j/shared/typecasted_attributes'
|
43
|
-
require 'neo4j/shared/property'
|
44
|
-
require 'neo4j/shared/persistence'
|
45
|
-
require 'neo4j/shared/validations'
|
46
|
-
require 'neo4j/shared/identity'
|
47
|
-
require 'neo4j/shared/serialized_properties'
|
48
|
-
require 'neo4j/shared/typecaster'
|
49
|
-
require 'neo4j/shared/initialize'
|
50
|
-
require 'neo4j/shared/query_factory'
|
51
|
-
require 'neo4j/shared/cypher'
|
52
|
-
require 'neo4j/shared/permitted_attributes'
|
53
|
-
require 'neo4j/shared'
|
54
|
-
|
55
|
-
require 'neo4j/active_rel/callbacks'
|
56
|
-
require 'neo4j/active_rel/initialize'
|
57
|
-
require 'neo4j/active_rel/property'
|
58
|
-
require 'neo4j/active_rel/persistence/query_factory'
|
59
|
-
require 'neo4j/active_rel/persistence'
|
60
|
-
require 'neo4j/active_rel/validations'
|
61
|
-
require 'neo4j/active_rel/query'
|
62
|
-
require 'neo4j/active_rel/related_node'
|
63
|
-
require 'neo4j/active_rel/types'
|
64
|
-
require 'neo4j/active_rel'
|
65
|
-
|
66
|
-
require 'neo4j/active_node/dependent_callbacks'
|
67
|
-
require 'neo4j/active_node/node_list_formatter'
|
68
|
-
require 'neo4j/active_node/dependent'
|
69
|
-
require 'neo4j/active_node/dependent/query_proxy_methods'
|
70
|
-
require 'neo4j/active_node/dependent/association_methods'
|
71
|
-
require 'neo4j/active_node/enum'
|
72
|
-
require 'neo4j/active_node/query_methods'
|
73
|
-
require 'neo4j/active_node/query/query_proxy_methods'
|
74
|
-
require 'neo4j/active_node/query/query_proxy_methods_of_mass_updating'
|
75
|
-
require 'neo4j/active_node/query/query_proxy_enumerable'
|
76
|
-
require 'neo4j/active_node/query/query_proxy_find_in_batches'
|
77
|
-
require 'neo4j/active_node/query/query_proxy_eager_loading'
|
78
|
-
require 'neo4j/active_node/query/query_proxy_eager_loading/association_tree'
|
79
|
-
require 'neo4j/active_node/query/query_proxy_link'
|
80
|
-
require 'neo4j/active_node/labels/index'
|
81
|
-
require 'neo4j/active_node/labels/reloading'
|
82
|
-
require 'neo4j/active_node/labels'
|
83
|
-
require 'neo4j/active_node/id_property/accessor'
|
84
|
-
require 'neo4j/active_node/id_property'
|
85
|
-
require 'neo4j/active_node/callbacks'
|
86
|
-
require 'neo4j/active_node/initialize'
|
87
|
-
require 'neo4j/active_node/property'
|
88
|
-
require 'neo4j/active_node/persistence'
|
89
|
-
require 'neo4j/active_node/validations'
|
90
|
-
require 'neo4j/active_node/rels'
|
91
|
-
require 'neo4j/active_node/reflection'
|
92
|
-
require 'neo4j/active_node/unpersisted'
|
93
|
-
require 'neo4j/active_node/has_n'
|
94
|
-
require 'neo4j/active_node/has_n/association_cypher_methods'
|
95
|
-
require 'neo4j/active_node/has_n/association/rel_wrapper'
|
96
|
-
require 'neo4j/active_node/has_n/association/rel_factory'
|
97
|
-
require 'neo4j/active_node/has_n/association'
|
98
|
-
require 'neo4j/active_node/query/query_proxy'
|
99
|
-
require 'neo4j/active_node/query'
|
100
|
-
require 'neo4j/active_node/scope'
|
101
|
-
require 'neo4j/active_node'
|
102
|
-
|
103
|
-
require 'active_support/concern'
|
104
|
-
require 'neo4j/core/cypher_error'
|
105
|
-
require 'neo4j/core/schema_errors'
|
106
|
-
|
107
|
-
module Neo4j
|
108
|
-
extend ActiveSupport::Autoload
|
109
|
-
autoload :Migrations
|
110
|
-
autoload :Migration
|
111
|
-
end
|
112
|
-
|
113
|
-
load 'neo4j/tasks/migration.rake'
|
114
|
-
|
115
|
-
require 'neo4j/active_node/orm_adapter'
|
116
|
-
if defined?(Rails)
|
117
|
-
require 'rails/generators'
|
118
|
-
require 'rails/generators/neo4j_generator'
|
119
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
module Neo4j
|
2
|
-
module ActiveRel
|
3
|
-
module Callbacks #:nodoc:
|
4
|
-
extend ActiveSupport::Concern
|
5
|
-
include Neo4j::Shared::Callbacks
|
6
|
-
|
7
|
-
def save(*args)
|
8
|
-
unless _persisted_obj || (from_node.respond_to?(:neo_id) && to_node.respond_to?(:neo_id))
|
9
|
-
fail Neo4j::ActiveRel::Persistence::RelInvalidError, 'from_node and to_node must be node objects'
|
10
|
-
end
|
11
|
-
super(*args)
|
12
|
-
end
|
13
|
-
|
14
|
-
def destroy
|
15
|
-
to_node.callbacks_from_active_rel(self, :in, from_node).try(:last)
|
16
|
-
from_node.callbacks_from_active_rel(self, :out, to_node).try(:last)
|
17
|
-
super
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
data/lib/neo4j/core.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'neo4j/transaction'
|
2
|
-
require 'neo4j/core/instrumentable'
|
3
|
-
require 'neo4j/core/query'
|
4
|
-
require 'neo4j/core/driver'
|
5
|
-
require 'neo4j/core/responses'
|
6
|
-
|
7
|
-
require 'neo4j_ruby_driver'
|
8
|
-
require 'neo4j/core/wrappable'
|
9
|
-
require 'neo4j/core/node'
|
10
|
-
require 'neo4j/core/relationship'
|
11
|
-
|
12
|
-
Neo4j::Driver::Types::Entity.include Neo4j::Core::Wrappable
|
13
|
-
Neo4j::Driver::Types::Node.prepend Neo4j::Core::Node
|
14
|
-
Neo4j::Driver::Types::Relationship.include Neo4j::Core::Relationship
|
data/lib/neo4j/version.rb
DELETED