rails_age 0.5.2 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -10
- data/README.md +108 -57
- data/config/initializers/types.rb +20 -0
- data/lib/apache_age/edge.rb +5 -0
- data/lib/apache_age/entities/common_methods.rb +6 -0
- data/lib/apache_age/entities/edge.rb +4 -3
- data/lib/apache_age/entities/node.rb +53 -0
- data/lib/apache_age/entities/vertex.rb +47 -47
- data/lib/apache_age/node.rb +36 -0
- data/lib/apache_age/types/{age_type_generator.rb → factory.rb} +3 -3
- data/lib/apache_age/validators/expected_node_type.rb +17 -0
- data/lib/apache_age/validators/node_type_validator.rb +15 -0
- data/lib/apache_age/validators/unique_node.rb +32 -0
- data/lib/apache_age/validators/unique_vertex.rb +27 -27
- data/lib/apache_age/validators/vertex_type_validator.rb +14 -13
- data/lib/generators/apache_age/edge/USAGE +7 -7
- data/lib/generators/apache_age/edge/edge_generator.rb +1 -0
- data/lib/generators/apache_age/edge/templates/edge.rb.tt +3 -3
- data/lib/generators/apache_age/generator_entity_helpers.rb +6 -11
- data/lib/generators/apache_age/node/USAGE +4 -4
- data/lib/generators/apache_age/node/node_generator.rb +1 -1
- data/lib/generators/apache_age/node/templates/node.rb.tt +2 -2
- data/lib/generators/apache_age/scaffold_edge/USAGE +16 -0
- data/lib/generators/apache_age/scaffold_edge/scaffold_edge_generator.rb +66 -0
- data/lib/generators/apache_age/scaffold_edge/templates/controller.rb.tt +50 -0
- data/lib/generators/apache_age/{scaffold_node/templates/views/_form.html.erb copy.tt → scaffold_edge/templates/views/_form.html.erb.tt} +10 -0
- data/lib/generators/apache_age/{scaffold_node/templates/views/index.html.erb copy.tt → scaffold_edge/templates/views/index.html.erb.tt} +1 -1
- data/lib/generators/apache_age/{scaffold_node/templates/views/partial.html.erb copy.tt → scaffold_edge/templates/views/partial.html.erb.tt} +11 -2
- data/lib/generators/apache_age/{scaffold_node/templates/views/show.html.erb copy.tt → scaffold_edge/templates/views/show.html.erb.tt} +1 -1
- data/lib/generators/apache_age/scaffold_node/scaffold_node_generator.rb +20 -22
- data/lib/rails_age/version.rb +1 -1
- data/lib/rails_age.rb +7 -4
- data/lib/tasks/config_types.rake +8 -8
- metadata +48 -10
- /data/lib/generators/apache_age/{scaffold_node/templates/views/edit.html.erb copy.tt → scaffold_edge/templates/views/edit.html.erb.tt} +0 -0
- /data/lib/generators/apache_age/{scaffold_node/templates/views/new.html.erb copy.tt → scaffold_edge/templates/views/new.html.erb.tt} +0 -0
- /data/lib/generators/apache_age/scaffold_node/templates/{node_controller.rb.tt → controller.rb.tt} +0 -0
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_age
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bill Tihen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -44,6 +44,34 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '6.0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: capybara
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '3.4'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '3.4'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: selenium-webdriver
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
47
75
|
description: This plugin integrates Apache AGE for PostgreSQL with Rails 7.x, providing
|
48
76
|
tools and helpers for working with graph databases within a Rails application.
|
49
77
|
email:
|
@@ -64,16 +92,23 @@ files:
|
|
64
92
|
- app/mailers/rails_age/application_mailer.rb
|
65
93
|
- app/models/rails_age/application_record.rb
|
66
94
|
- app/views/layouts/rails_age/application.html.erb
|
95
|
+
- config/initializers/types.rb
|
67
96
|
- config/routes.rb
|
68
97
|
- db/migrate/20240521062349_add_apache_age.rb
|
69
98
|
- db/schema.rb
|
99
|
+
- lib/apache_age/edge.rb
|
70
100
|
- lib/apache_age/entities/class_methods.rb
|
71
101
|
- lib/apache_age/entities/common_methods.rb
|
72
102
|
- lib/apache_age/entities/edge.rb
|
73
103
|
- lib/apache_age/entities/entity.rb
|
104
|
+
- lib/apache_age/entities/node.rb
|
74
105
|
- lib/apache_age/entities/vertex.rb
|
75
|
-
- lib/apache_age/
|
106
|
+
- lib/apache_age/node.rb
|
107
|
+
- lib/apache_age/types/factory.rb
|
108
|
+
- lib/apache_age/validators/expected_node_type.rb
|
109
|
+
- lib/apache_age/validators/node_type_validator.rb
|
76
110
|
- lib/apache_age/validators/unique_edge.rb
|
111
|
+
- lib/apache_age/validators/unique_node.rb
|
77
112
|
- lib/apache_age/validators/unique_vertex.rb
|
78
113
|
- lib/apache_age/validators/vertex_type_validator.rb
|
79
114
|
- lib/generators/apache_age/edge/USAGE
|
@@ -84,20 +119,23 @@ files:
|
|
84
119
|
- lib/generators/apache_age/node/USAGE
|
85
120
|
- lib/generators/apache_age/node/node_generator.rb
|
86
121
|
- lib/generators/apache_age/node/templates/node.rb.tt
|
122
|
+
- lib/generators/apache_age/scaffold_edge/USAGE
|
123
|
+
- lib/generators/apache_age/scaffold_edge/scaffold_edge_generator.rb
|
124
|
+
- lib/generators/apache_age/scaffold_edge/templates/controller.rb.tt
|
125
|
+
- lib/generators/apache_age/scaffold_edge/templates/views/_form.html.erb.tt
|
126
|
+
- lib/generators/apache_age/scaffold_edge/templates/views/edit.html.erb.tt
|
127
|
+
- lib/generators/apache_age/scaffold_edge/templates/views/index.html.erb.tt
|
128
|
+
- lib/generators/apache_age/scaffold_edge/templates/views/new.html.erb.tt
|
129
|
+
- lib/generators/apache_age/scaffold_edge/templates/views/partial.html.erb.tt
|
130
|
+
- lib/generators/apache_age/scaffold_edge/templates/views/show.html.erb.tt
|
87
131
|
- lib/generators/apache_age/scaffold_node/USAGE
|
88
132
|
- lib/generators/apache_age/scaffold_node/scaffold_node_generator.rb
|
89
|
-
- lib/generators/apache_age/scaffold_node/templates/
|
90
|
-
- lib/generators/apache_age/scaffold_node/templates/views/_form.html.erb copy.tt
|
133
|
+
- lib/generators/apache_age/scaffold_node/templates/controller.rb.tt
|
91
134
|
- lib/generators/apache_age/scaffold_node/templates/views/_form.html.erb.tt
|
92
|
-
- lib/generators/apache_age/scaffold_node/templates/views/edit.html.erb copy.tt
|
93
135
|
- lib/generators/apache_age/scaffold_node/templates/views/edit.html.erb.tt
|
94
|
-
- lib/generators/apache_age/scaffold_node/templates/views/index.html.erb copy.tt
|
95
136
|
- lib/generators/apache_age/scaffold_node/templates/views/index.html.erb.tt
|
96
|
-
- lib/generators/apache_age/scaffold_node/templates/views/new.html.erb copy.tt
|
97
137
|
- lib/generators/apache_age/scaffold_node/templates/views/new.html.erb.tt
|
98
|
-
- lib/generators/apache_age/scaffold_node/templates/views/partial.html.erb copy.tt
|
99
138
|
- lib/generators/apache_age/scaffold_node/templates/views/partial.html.erb.tt
|
100
|
-
- lib/generators/apache_age/scaffold_node/templates/views/show.html.erb copy.tt
|
101
139
|
- lib/generators/apache_age/scaffold_node/templates/views/show.html.erb.tt
|
102
140
|
- lib/rails_age.rb
|
103
141
|
- lib/rails_age/engine.rb
|
File without changes
|
File without changes
|
/data/lib/generators/apache_age/scaffold_node/templates/{node_controller.rb.tt → controller.rb.tt}
RENAMED
File without changes
|