acts_as_graph_diagram 0.1.0 → 0.1.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/README.md +30 -27
- data/lib/acts_as_graph_diagram/node/graph_calculator.rb +24 -24
- data/lib/acts_as_graph_diagram/node.rb +9 -9
- data/lib/acts_as_graph_diagram/version.rb +1 -1
- data/lib/generators/templates/migration.rb +3 -1
- data/lib/generators/templates/model.rb +3 -1
- data/test/acts_as_graph_diagram_test.rb +8 -14
- data/test/dummy/app/models/edge.rb +3 -1
- data/test/dummy/db/migrate/{20220612090334_acts_as_graph_diagram_migration.rb → 20220617084205_acts_as_graph_diagram_migration.rb} +3 -1
- data/test/dummy/db/schema.rb +4 -2
- data/test/dummy/db/seeds.rb +10 -10
- data/test/fixtures/edges.yml +10 -10
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6c14d9690b7858a3ed600c710c32383e317ca240985b9e479a9785658efb744
|
4
|
+
data.tar.gz: d461aecc54d71aa5587a9dca9215facab51394e181283a49f52ccf2865e6fb41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab44076b3f41fce162f614f169343557b39b9e83d00a1016b82cae5b8a957d38a4c078c6b153a20a0fbf0cfc2c8fa535d3358ff06dce50928632ea631c4e563a
|
7
|
+
data.tar.gz: 80ca73e0c5c57471c9e2321dc104fbf75108a2f8e11f4159228709d2aa9bfb2a00b61bb428a5ff44c1c604611050d1e91a3a91f816b020cdba47069598fad4cf
|
data/README.md
CHANGED
@@ -20,11 +20,11 @@ class God < ApplicationRecord
|
|
20
20
|
acts_as_graph_diagram
|
21
21
|
end
|
22
22
|
|
23
|
-
God.find_by(name: 'Rheā').add_destination God.find_by(name: 'Hēra',
|
23
|
+
God.find_by(name: 'Rheā').add_destination God.find_by(name: 'Hēra', figure: 1)
|
24
24
|
# => #<Edge:0x000000010b0d4560
|
25
25
|
# id: 1,
|
26
26
|
# comment: "",
|
27
|
-
#
|
27
|
+
# figure: 0,
|
28
28
|
# directed: true,
|
29
29
|
# destination_type: "God",
|
30
30
|
# destination_id: 2,
|
@@ -36,11 +36,11 @@ God.find_by(name: 'Rheā').add_destination God.find_by(name: 'Hēra', cost: 1)
|
|
36
36
|
God.find_by(name: 'Rheā').connecting_count
|
37
37
|
# => 1
|
38
38
|
|
39
|
-
God.find_by(name: 'Rheā').
|
39
|
+
God.find_by(name: 'Rheā').aheads
|
40
40
|
# => [#<Edge:0x000000010b5642b0
|
41
41
|
# id: 1,
|
42
42
|
# comment: "",
|
43
|
-
#
|
43
|
+
# figure: 0,
|
44
44
|
# directed: true,
|
45
45
|
# destination_type: "God",
|
46
46
|
# destination_id: 2,
|
@@ -57,22 +57,23 @@ God.find_by(name: 'Rheā').aheads.first.destination
|
|
57
57
|
|
58
58
|
* aheads
|
59
59
|
* behinds
|
60
|
-
* add_destination(node, comment: '',
|
61
|
-
* add_departure(node, comment: '',
|
60
|
+
* add_destination(node, comment: '', figure: 0)
|
61
|
+
* add_departure(node, comment: '', figure: 0)
|
62
62
|
* get_destination(node)
|
63
63
|
* get_departure(node)
|
64
64
|
* remove_destination(node)
|
65
65
|
* remove_departure(node)
|
66
66
|
* connecting?(node)
|
67
67
|
* connecting_count()
|
68
|
-
* add_connection(node, directed: false, comment: '',
|
69
|
-
*
|
70
|
-
* sum_tree_cost()
|
68
|
+
* add_connection(node, directed: false, comment: '', figure: 0)
|
69
|
+
* sum_tree(column)
|
71
70
|
* assemble_tree_nodes()
|
72
71
|
|
73
72
|
### Draws the graph diagram with D3.js
|
74
73
|
|
75
|
-
|
74
|
+
Distributes to represent a graph JSON via API.
|
75
|
+
|
76
|
+
1. Implement a renderer in your controller file as below:
|
76
77
|
```ruby
|
77
78
|
class GodsController < ApplicationController
|
78
79
|
def data_network
|
@@ -91,13 +92,13 @@ Rails.application.routes.draw do
|
|
91
92
|
end
|
92
93
|
```
|
93
94
|
|
94
|
-
3. Then
|
95
|
+
3. Then execute a D3 query in your javascript file as below:
|
95
96
|
```javascript
|
96
97
|
// v7.4.4
|
97
98
|
d3.json("http://127.0.0.1:3000/data_network").then(function (graph) {});
|
98
99
|
```
|
99
100
|
|
100
|
-
### Calculates the
|
101
|
+
### Calculates the total using the breadth first search.
|
101
102
|
|
102
103
|

|
103
104
|
|
@@ -110,15 +111,14 @@ Milestone.create(name: 30)
|
|
110
111
|
Milestone.create(name: 40)
|
111
112
|
Milestone.create(name: 50)
|
112
113
|
|
113
|
-
Milestone.find_by(name: 10).add_destination(Milestone.find_by(name: 20),
|
114
|
-
Milestone.find_by(name: 10).add_destination(Milestone.find_by(name: 30),
|
115
|
-
Milestone.find_by(name: 30).add_destination(Milestone.find_by(name: 40),
|
116
|
-
Milestone.find_by(name: 40).add_destination(Milestone.find_by(name: 50),
|
117
|
-
Milestone.find_by(name: 30).add_destination(Milestone.find_by(name: 50),
|
118
|
-
Milestone.find_by(name: 20).add_destination(Milestone.find_by(name: 50),
|
119
|
-
|
120
|
-
Milestone.find_by(name: 10).sum_tree_cost
|
114
|
+
Milestone.find_by(name: 10).add_destination(Milestone.find_by(name: 20), figure: 3)
|
115
|
+
Milestone.find_by(name: 10).add_destination(Milestone.find_by(name: 30), figure: 4)
|
116
|
+
Milestone.find_by(name: 30).add_destination(Milestone.find_by(name: 40), figure: 1)
|
117
|
+
Milestone.find_by(name: 40).add_destination(Milestone.find_by(name: 50), figure: 3)
|
118
|
+
Milestone.find_by(name: 30).add_destination(Milestone.find_by(name: 50), figure: 2)
|
119
|
+
Milestone.find_by(name: 20).add_destination(Milestone.find_by(name: 50), figure: 3)
|
121
120
|
|
121
|
+
Milestone.find_by(name: 10).sum_tree(:figure)
|
122
122
|
# => 16
|
123
123
|
```
|
124
124
|
|
@@ -128,12 +128,8 @@ Add this line to your application's Gemfile:
|
|
128
128
|
```ruby
|
129
129
|
gem "acts_as_graph_diagram"
|
130
130
|
```
|
131
|
-
|
132
|
-
And then execute:
|
133
131
|
```bash
|
134
132
|
$ bundle
|
135
|
-
$ bin/rails generate acts_as_graph_diagram
|
136
|
-
$ bin/rails db:migrate
|
137
133
|
```
|
138
134
|
|
139
135
|
Or install it yourself as:
|
@@ -141,6 +137,12 @@ Or install it yourself as:
|
|
141
137
|
$ gem install acts_as_graph_diagram
|
142
138
|
```
|
143
139
|
|
140
|
+
Then executes:
|
141
|
+
```bash
|
142
|
+
$ bin/rails generate acts_as_graph_diagram
|
143
|
+
$ bin/rails db:migrate
|
144
|
+
```
|
145
|
+
|
144
146
|
## Development
|
145
147
|
### Rails console
|
146
148
|
```bash
|
@@ -159,14 +161,15 @@ Bug reports and pull requests are welcome on Github at https://github.com/routef
|
|
159
161
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
160
162
|
|
161
163
|
## Changelog
|
162
|
-
|
164
|
+
Available [here](https://github.com/routeflags/acts_as_graph_diagram/blob/main/CHANGELOG.md).
|
163
165
|
|
164
166
|
## Code of Conduct
|
165
|
-
Everyone interacting in the
|
167
|
+
Everyone interacting in the project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/routeflags/acts_as_graph_diagram/blob/main/CODE_OF_CONDUCT.md).
|
166
168
|
|
167
169
|
## You may enjoy owning other libraries and my company.
|
168
170
|
|
169
|
-
* [
|
171
|
+
* [acts_as_tree_diagram: ActsAsTreeDiagram extends ActsAsTree to add simple function for draw tree diagram with html.](https://github.com/routeflags/acts_as_tree_diagram)
|
172
|
+
* [earned_value_calculator: Calculates the earned value of a project to indicate a diagnosis result.](https://github.com/routeflags/earned_value_calculator)
|
170
173
|
* [timeline_rails_helper: The TimelineRailsHelper provides a timeline_molecules_tag helper to draw a vertical time line usable with vanilla CSS.](https://github.com/routeflags/timeline_rails_helper)
|
171
174
|
* [株式会社旗指物](https://blog.routeflags.com/)
|
172
175
|
|
@@ -6,15 +6,17 @@ module ActsAsGraphDiagram # :nodoc:
|
|
6
6
|
class Nodes < Array
|
7
7
|
# @param [Proc] functional
|
8
8
|
# @param [Proc] meta
|
9
|
-
# @param [
|
9
|
+
# @param [Any] value
|
10
10
|
# @param [Symbol] operator
|
11
|
-
# @return
|
12
|
-
def
|
13
|
-
return
|
14
|
-
|
15
|
-
meta[
|
16
|
-
|
17
|
-
|
11
|
+
# @return Any
|
12
|
+
def recurse_apply(functional, meta, value, operator)
|
13
|
+
return value if !defined?(empty?) || empty?
|
14
|
+
|
15
|
+
meta[
|
16
|
+
first.destination.recurse_apply(functional, meta, value, operator),
|
17
|
+
ActsAsGraphDiagram::Nodes.new(tail)
|
18
|
+
.recurse_apply(functional, meta, value, operator)
|
19
|
+
]
|
18
20
|
end
|
19
21
|
|
20
22
|
# @param [Proc] functional
|
@@ -64,35 +66,33 @@ module ActsAsGraphDiagram # :nodoc:
|
|
64
66
|
# @param [Proc] meta
|
65
67
|
# @param [Any] value
|
66
68
|
# @param [Symbol] operator
|
67
|
-
# @return
|
68
|
-
def
|
69
|
+
# @return Any
|
70
|
+
def recurse_apply(functional, meta, value, operator = :self)
|
69
71
|
argument = if operator == :self
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
72
|
+
self
|
73
|
+
else
|
74
|
+
public_send(operator[0]).public_send(operator[1], operator[2])
|
75
|
+
end
|
76
|
+
|
74
77
|
functional[argument,
|
75
78
|
ActsAsGraphDiagram::Nodes
|
76
79
|
.new(aheads.where.not(destination_id: id).to_a)
|
77
|
-
.
|
80
|
+
.recurse_apply(functional, meta, value, operator)]
|
78
81
|
end
|
79
82
|
|
80
83
|
# @return Integer
|
81
|
-
def
|
82
|
-
|
84
|
+
def sum_tree(column = :figure)
|
85
|
+
recurse_apply addition, addition, 0, %i[aheads sum] + [column]
|
83
86
|
end
|
84
87
|
|
85
88
|
# @return Proc
|
86
89
|
def addition
|
87
|
-
# @param [
|
88
|
-
# @param [
|
90
|
+
# @param [Integer] x
|
91
|
+
# @param [Integer] y
|
92
|
+
# @return Integer
|
89
93
|
->(x, y) { x + y }
|
90
94
|
end
|
91
95
|
|
92
|
-
def sum_cost
|
93
|
-
aheads.sum(:cost)
|
94
|
-
end
|
95
|
-
|
96
96
|
# @param [Proc] functional
|
97
97
|
# @param [Proc] meta
|
98
98
|
# @return Proc
|
@@ -121,7 +121,7 @@ module ActsAsGraphDiagram # :nodoc:
|
|
121
121
|
|
122
122
|
# @return [Node]
|
123
123
|
def assemble_tree_nodes
|
124
|
-
|
124
|
+
recurse_apply confluence, append, []
|
125
125
|
end
|
126
126
|
end
|
127
127
|
end
|
@@ -27,22 +27,22 @@ module ActsAsGraphDiagram # :nodoc:
|
|
27
27
|
# Creates a new destination record for this instance to connect the passed object.
|
28
28
|
# @param [Node] node
|
29
29
|
# @param [String] comment
|
30
|
-
# @param [Integer]
|
30
|
+
# @param [Integer] figure
|
31
31
|
# @return [Edge]
|
32
|
-
def add_destination(node, comment: '',
|
32
|
+
def add_destination(node, comment: '', figure: 0)
|
33
33
|
aheads.select_destinations(node)
|
34
|
-
.where(comment: comment,
|
34
|
+
.where(comment: comment, figure: figure)
|
35
35
|
.first_or_create!
|
36
36
|
end
|
37
37
|
|
38
38
|
# Creates a new departure record for this instance to connect the passed object.
|
39
39
|
# @param [Node] node
|
40
40
|
# @param [String] comment
|
41
|
-
# @param [Integer]
|
41
|
+
# @param [Integer] figure
|
42
42
|
# @return [Edge]
|
43
|
-
def add_departure(node, comment: '',
|
43
|
+
def add_departure(node, comment: '', figure: 0)
|
44
44
|
behinds.select_departures(node)
|
45
|
-
.where(comment: comment,
|
45
|
+
.where(comment: comment, figure: figure)
|
46
46
|
.first_or_create!
|
47
47
|
end
|
48
48
|
|
@@ -50,14 +50,14 @@ module ActsAsGraphDiagram # :nodoc:
|
|
50
50
|
# @param [Node] node
|
51
51
|
# @param [Boolean] directed
|
52
52
|
# @param [String] comment
|
53
|
-
# @param [Integer]
|
53
|
+
# @param [Integer] figure
|
54
54
|
# @return [Edge]
|
55
|
-
def add_connection(node, directed: false, comment: '',
|
55
|
+
def add_connection(node, directed: false, comment: '', figure: 0)
|
56
56
|
Edge.where(destination: node,
|
57
57
|
directed: directed,
|
58
58
|
departure: self,
|
59
59
|
comment: comment,
|
60
|
-
|
60
|
+
figure: figure).first_or_create!
|
61
61
|
end
|
62
62
|
# rubocop:enable Style/HashSyntax
|
63
63
|
|
@@ -4,7 +4,9 @@ class ActsAsGraphDiagramMigration < ActiveRecord::Migration[4.2] # :nodoc:
|
|
4
4
|
def self.up
|
5
5
|
create_table :edges, force: true do |t|
|
6
6
|
t.string :comment, default: ''
|
7
|
-
t.integer :
|
7
|
+
t.integer :figure, default: 0
|
8
|
+
t.integer :lower_figure, default: 0
|
9
|
+
t.integer :higher_figure, default: 0
|
8
10
|
t.boolean :directed, default: true
|
9
11
|
t.references :destination, polymorphic: true, null: true
|
10
12
|
t.references :departure, polymorphic: true, null: true
|
@@ -6,7 +6,9 @@
|
|
6
6
|
#
|
7
7
|
# id :integer not null, primary key
|
8
8
|
# comment :string default("")
|
9
|
-
#
|
9
|
+
# figure :integer default(0)
|
10
|
+
# lower_figure :integer default(0)
|
11
|
+
# higher_figure :integer default(0)
|
10
12
|
# directed :boolean default(TRUE)
|
11
13
|
# destination_type :string
|
12
14
|
# destination_id :integer
|
@@ -19,26 +19,20 @@ class ActsAsGraphDiagramTest < ActiveSupport::TestCase
|
|
19
19
|
assert God.first.respond_to?(:connecting?)
|
20
20
|
assert God.first.respond_to?(:connecting_count)
|
21
21
|
assert God.first.respond_to?(:add_connection)
|
22
|
-
assert God.first.respond_to?(:
|
23
|
-
assert God.first.respond_to?(:sum_tree_cost)
|
22
|
+
assert God.first.respond_to?(:sum_tree)
|
24
23
|
assert God.first.respond_to?(:assemble_tree_nodes)
|
25
24
|
end
|
26
25
|
|
27
|
-
test 'calculate
|
28
|
-
God.find(
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
test 'calculate sum_tree_cost' do
|
33
|
-
God.find(4).add_destination(God.find(6), cost: 4)
|
34
|
-
God.find(6).add_destination(God.find(7), cost: 3)
|
35
|
-
assert_equal God.find(4).sum_tree_cost, 7
|
26
|
+
test 'calculate sum_tree' do
|
27
|
+
God.find(4).add_destination(God.find(6), figure: 4)
|
28
|
+
God.find(6).add_destination(God.find(7), figure: 3)
|
29
|
+
assert_equal God.find(4).sum_tree(:figure), 7
|
36
30
|
end
|
37
31
|
|
38
32
|
test 'call assemble_tree_nodes' do
|
39
|
-
God.find(4).add_destination(God.find(6),
|
40
|
-
God.find(6).add_destination(God.find(7),
|
41
|
-
God.find(6).add_destination(God.find(7),
|
33
|
+
God.find(4).add_destination(God.find(6), figure: 4)
|
34
|
+
God.find(6).add_destination(God.find(7), figure: 3)
|
35
|
+
God.find(6).add_destination(God.find(7), figure: 3)
|
42
36
|
assert_equal God.find(4).assemble_tree_nodes.size, 3
|
43
37
|
end
|
44
38
|
end
|
@@ -6,7 +6,9 @@
|
|
6
6
|
#
|
7
7
|
# id :integer not null, primary key
|
8
8
|
# comment :string default("")
|
9
|
-
#
|
9
|
+
# figure :integer default(0)
|
10
|
+
# lower_figure :integer default(0)
|
11
|
+
# higher_figure :integer default(0)
|
10
12
|
# directed :boolean default(TRUE)
|
11
13
|
# destination_type :string
|
12
14
|
# destination_id :integer
|
@@ -4,7 +4,9 @@ class ActsAsGraphDiagramMigration < ActiveRecord::Migration[4.2] # :nodoc:
|
|
4
4
|
def self.up
|
5
5
|
create_table :edges, force: true do |t|
|
6
6
|
t.string :comment, default: ''
|
7
|
-
t.integer :
|
7
|
+
t.integer :figure, default: 0
|
8
|
+
t.integer :lower_figure, default: 0
|
9
|
+
t.integer :higher_figure, default: 0
|
8
10
|
t.boolean :directed, default: true
|
9
11
|
t.references :destination, polymorphic: true, null: true
|
10
12
|
t.references :departure, polymorphic: true, null: true
|
data/test/dummy/db/schema.rb
CHANGED
@@ -12,10 +12,12 @@
|
|
12
12
|
#
|
13
13
|
# It's strongly recommended that you check this file into your version control system.
|
14
14
|
|
15
|
-
ActiveRecord::Schema[7.0].define(version:
|
15
|
+
ActiveRecord::Schema[7.0].define(version: 20_220_617_084_205) do
|
16
16
|
create_table 'edges', force: :cascade do |t|
|
17
17
|
t.string 'comment', default: ''
|
18
|
-
t.integer '
|
18
|
+
t.integer 'figure', default: 0
|
19
|
+
t.integer 'lower_figure', default: 0
|
20
|
+
t.integer 'higher_figure', default: 0
|
19
21
|
t.boolean 'directed', default: true
|
20
22
|
t.string 'destination_type'
|
21
23
|
t.integer 'destination_id'
|
data/test/dummy/db/seeds.rb
CHANGED
@@ -20,34 +20,34 @@ God.create!([
|
|
20
20
|
])
|
21
21
|
|
22
22
|
Edge.create!([
|
23
|
-
{ comment: '',
|
23
|
+
{ comment: '', figure: 0, directed: true, destination_type: 'God', destination_id: 2,
|
24
24
|
departure_type: 'God',
|
25
25
|
departure_id: 1 },
|
26
|
-
{ comment: '',
|
26
|
+
{ comment: '', figure: 0, directed: true, destination_type: 'God', destination_id: 6,
|
27
27
|
departure_type: 'God',
|
28
28
|
departure_id: 2 },
|
29
|
-
{ comment: '',
|
29
|
+
{ comment: '', figure: 0, directed: true, destination_type: 'God', destination_id: 9,
|
30
30
|
departure_type: 'God',
|
31
31
|
departure_id: 2 },
|
32
|
-
{ comment: '',
|
32
|
+
{ comment: '', figure: 0, directed: true, destination_type: 'God', destination_id: 1,
|
33
33
|
departure_type: 'God',
|
34
34
|
departure_id: 16 },
|
35
|
-
{ comment: '',
|
35
|
+
{ comment: '', figure: 0, directed: true, destination_type: 'God', destination_id: 12,
|
36
36
|
departure_type: 'God',
|
37
37
|
departure_id: 16 },
|
38
|
-
{ comment: '',
|
38
|
+
{ comment: '', figure: 0, directed: true, destination_type: 'God', destination_id: 14,
|
39
39
|
departure_type: 'God',
|
40
40
|
departure_id: 16 },
|
41
|
-
{ comment: '',
|
41
|
+
{ comment: '', figure: 0, directed: true, destination_type: 'God', destination_id: 2,
|
42
42
|
departure_type: 'God',
|
43
43
|
departure_id: 16 },
|
44
|
-
{ comment: '',
|
44
|
+
{ comment: '', figure: 0, directed: true, destination_type: 'God', destination_id: 11,
|
45
45
|
departure_type: 'God',
|
46
46
|
departure_id: 16 },
|
47
|
-
{ comment: '',
|
47
|
+
{ comment: '', figure: 0, directed: true, destination_type: 'God', destination_id: 8,
|
48
48
|
departure_type: 'God',
|
49
49
|
departure_id: 16 },
|
50
|
-
{ comment: '',
|
50
|
+
{ comment: '', figure: 0, directed: true, destination_type: 'God', destination_id: 15,
|
51
51
|
departure_type: 'God',
|
52
52
|
departure_id: 14 }
|
53
53
|
])
|
data/test/fixtures/edges.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
edge_1:
|
3
3
|
id: 1
|
4
4
|
comment: ''
|
5
|
-
|
5
|
+
figure: 0
|
6
6
|
directed: 1
|
7
7
|
destination_type: God
|
8
8
|
destination_id: 2
|
@@ -13,7 +13,7 @@ edge_1:
|
|
13
13
|
edge_2:
|
14
14
|
id: 2
|
15
15
|
comment: ''
|
16
|
-
|
16
|
+
figure: 0
|
17
17
|
directed: 1
|
18
18
|
destination_type: God
|
19
19
|
destination_id: 6
|
@@ -24,7 +24,7 @@ edge_2:
|
|
24
24
|
edge_3:
|
25
25
|
id: 3
|
26
26
|
comment: ''
|
27
|
-
|
27
|
+
figure: 0
|
28
28
|
directed: 1
|
29
29
|
destination_type: God
|
30
30
|
destination_id: 9
|
@@ -35,7 +35,7 @@ edge_3:
|
|
35
35
|
edge_4:
|
36
36
|
id: 4
|
37
37
|
comment: ''
|
38
|
-
|
38
|
+
figure: 0
|
39
39
|
directed: 1
|
40
40
|
destination_type: God
|
41
41
|
destination_id: 1
|
@@ -46,7 +46,7 @@ edge_4:
|
|
46
46
|
edge_5:
|
47
47
|
id: 5
|
48
48
|
comment: ''
|
49
|
-
|
49
|
+
figure: 0
|
50
50
|
directed: 1
|
51
51
|
destination_type: God
|
52
52
|
destination_id: 12
|
@@ -57,7 +57,7 @@ edge_5:
|
|
57
57
|
edge_6:
|
58
58
|
id: 6
|
59
59
|
comment: ''
|
60
|
-
|
60
|
+
figure: 0
|
61
61
|
directed: 1
|
62
62
|
destination_type: God
|
63
63
|
destination_id: 14
|
@@ -68,7 +68,7 @@ edge_6:
|
|
68
68
|
edge_7:
|
69
69
|
id: 7
|
70
70
|
comment: ''
|
71
|
-
|
71
|
+
figure: 0
|
72
72
|
directed: 1
|
73
73
|
destination_type: God
|
74
74
|
destination_id: 2
|
@@ -79,7 +79,7 @@ edge_7:
|
|
79
79
|
edge_8:
|
80
80
|
id: 8
|
81
81
|
comment: ''
|
82
|
-
|
82
|
+
figure: 0
|
83
83
|
directed: 1
|
84
84
|
destination_type: God
|
85
85
|
destination_id: 11
|
@@ -90,7 +90,7 @@ edge_8:
|
|
90
90
|
edge_9:
|
91
91
|
id: 9
|
92
92
|
comment: ''
|
93
|
-
|
93
|
+
figure: 0
|
94
94
|
directed: 1
|
95
95
|
destination_type: God
|
96
96
|
destination_id: 8
|
@@ -101,7 +101,7 @@ edge_9:
|
|
101
101
|
edge_10:
|
102
102
|
id: 10
|
103
103
|
comment: ''
|
104
|
-
|
104
|
+
figure: 0
|
105
105
|
directed: 1
|
106
106
|
destination_type: God
|
107
107
|
destination_id: 15
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_graph_diagram
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- smapira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -322,7 +322,7 @@ files:
|
|
322
322
|
- test/dummy/config/routes.rb
|
323
323
|
- test/dummy/config/storage.yml
|
324
324
|
- test/dummy/db/migrate/20220606102242_create_gods.rb
|
325
|
-
- test/dummy/db/migrate/
|
325
|
+
- test/dummy/db/migrate/20220617084205_acts_as_graph_diagram_migration.rb
|
326
326
|
- test/dummy/db/schema.rb
|
327
327
|
- test/dummy/db/seeds.rb
|
328
328
|
- test/dummy/lib/assets/.keep
|
@@ -416,7 +416,7 @@ test_files:
|
|
416
416
|
- test/dummy/config/routes.rb
|
417
417
|
- test/dummy/config/storage.yml
|
418
418
|
- test/dummy/db/migrate/20220606102242_create_gods.rb
|
419
|
-
- test/dummy/db/migrate/
|
419
|
+
- test/dummy/db/migrate/20220617084205_acts_as_graph_diagram_migration.rb
|
420
420
|
- test/dummy/db/schema.rb
|
421
421
|
- test/dummy/db/seeds.rb
|
422
422
|
- test/dummy/lib/assets/.keep
|