rails-mermaid_erd_markdown 0.3.0 → 0.3.2
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.md +17 -2
- data/Gemfile +0 -1
- data/Gemfile.lock +81 -87
- data/README.md +98 -31
- data/docs/examples/erd.yml +3 -3
- data/lib/rails-mermaid_erd_markdown/version.rb +1 -1
- data/rails-mermaid_erd_markdown.gemspec +3 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfe4cfb73051e0344b160e2e9287e90f7d889df66b7d3b6e9079b7e88ecb10d7
|
4
|
+
data.tar.gz: a1294a4857655459f3ec8645d2244e55baed98af7e2cb35f34b875938f49a728
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91b221902d1427114ac9952f27a6e2cef2b77bf3bba43c993196831044df51a61a0b5dac80e2e08ccb5bab4ff6f8786bcf2c8ae4c44548e1012efda3c49bbf63
|
7
|
+
data.tar.gz: e9d74b83778f23b076313a19df14c970fd439e9507d6cc5e82fe83cb29501f5de33e73806390b4f792f9ebef3ab9f57849e212b1184f4ec926863632b77943af
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
|
-
## [Unreleased]
|
2
1
|
|
3
2
|
## [0.1.0] - 2024-05-27
|
4
|
-
|
5
3
|
- Initial release
|
4
|
+
- Create ERD mermaid markdown of all ActiveRecord models
|
5
|
+
|
6
|
+
## [0.2.0] - 2024-05-28
|
7
|
+
- Fix issues with package
|
8
|
+
- Update gemspec
|
9
|
+
|
10
|
+
## [0.3.0] - 2024-07-31
|
11
|
+
- Fix minor issues
|
12
|
+
- Add ability to optionally split into multiple ERDs
|
13
|
+
- Refactor classes to separate concerns
|
14
|
+
|
15
|
+
## [0.3.1] - 2024-08-10
|
16
|
+
- Update docs
|
17
|
+
- Change rails-mermaid_erd version dependency to at least 0.4.2
|
18
|
+
|
19
|
+
## [0.3.2] - 2024-08-10
|
20
|
+
- (HOTFIX) Fix bundler + lockfile out-of-sync issues
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,92 +1,88 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rails-mermaid_erd_markdown (0.3.
|
4
|
+
rails-mermaid_erd_markdown (0.3.2)
|
5
5
|
rails (>= 5.2)
|
6
|
-
rails-mermaid_erd (
|
6
|
+
rails-mermaid_erd (>= 0.4.2)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actioncable (7.
|
12
|
-
actionpack (= 7.
|
13
|
-
activesupport (= 7.
|
11
|
+
actioncable (7.2.0)
|
12
|
+
actionpack (= 7.2.0)
|
13
|
+
activesupport (= 7.2.0)
|
14
14
|
nio4r (~> 2.0)
|
15
15
|
websocket-driver (>= 0.6.1)
|
16
16
|
zeitwerk (~> 2.6)
|
17
|
-
actionmailbox (7.
|
18
|
-
actionpack (= 7.
|
19
|
-
activejob (= 7.
|
20
|
-
activerecord (= 7.
|
21
|
-
activestorage (= 7.
|
22
|
-
activesupport (= 7.
|
23
|
-
mail (>= 2.
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
activejob (= 7.1.3.4)
|
31
|
-
activesupport (= 7.1.3.4)
|
32
|
-
mail (~> 2.5, >= 2.5.4)
|
33
|
-
net-imap
|
34
|
-
net-pop
|
35
|
-
net-smtp
|
17
|
+
actionmailbox (7.2.0)
|
18
|
+
actionpack (= 7.2.0)
|
19
|
+
activejob (= 7.2.0)
|
20
|
+
activerecord (= 7.2.0)
|
21
|
+
activestorage (= 7.2.0)
|
22
|
+
activesupport (= 7.2.0)
|
23
|
+
mail (>= 2.8.0)
|
24
|
+
actionmailer (7.2.0)
|
25
|
+
actionpack (= 7.2.0)
|
26
|
+
actionview (= 7.2.0)
|
27
|
+
activejob (= 7.2.0)
|
28
|
+
activesupport (= 7.2.0)
|
29
|
+
mail (>= 2.8.0)
|
36
30
|
rails-dom-testing (~> 2.2)
|
37
|
-
actionpack (7.
|
38
|
-
actionview (= 7.
|
39
|
-
activesupport (= 7.
|
31
|
+
actionpack (7.2.0)
|
32
|
+
actionview (= 7.2.0)
|
33
|
+
activesupport (= 7.2.0)
|
40
34
|
nokogiri (>= 1.8.5)
|
41
35
|
racc
|
42
|
-
rack (>= 2.2.4)
|
36
|
+
rack (>= 2.2.4, < 3.2)
|
43
37
|
rack-session (>= 1.0.1)
|
44
38
|
rack-test (>= 0.6.3)
|
45
39
|
rails-dom-testing (~> 2.2)
|
46
40
|
rails-html-sanitizer (~> 1.6)
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
41
|
+
useragent (~> 0.16)
|
42
|
+
actiontext (7.2.0)
|
43
|
+
actionpack (= 7.2.0)
|
44
|
+
activerecord (= 7.2.0)
|
45
|
+
activestorage (= 7.2.0)
|
46
|
+
activesupport (= 7.2.0)
|
52
47
|
globalid (>= 0.6.0)
|
53
48
|
nokogiri (>= 1.8.5)
|
54
|
-
actionview (7.
|
55
|
-
activesupport (= 7.
|
49
|
+
actionview (7.2.0)
|
50
|
+
activesupport (= 7.2.0)
|
56
51
|
builder (~> 3.1)
|
57
52
|
erubi (~> 1.11)
|
58
53
|
rails-dom-testing (~> 2.2)
|
59
54
|
rails-html-sanitizer (~> 1.6)
|
60
|
-
activejob (7.
|
61
|
-
activesupport (= 7.
|
55
|
+
activejob (7.2.0)
|
56
|
+
activesupport (= 7.2.0)
|
62
57
|
globalid (>= 0.3.6)
|
63
|
-
activemodel (7.
|
64
|
-
activesupport (= 7.
|
65
|
-
activerecord (7.
|
66
|
-
activemodel (= 7.
|
67
|
-
activesupport (= 7.
|
58
|
+
activemodel (7.2.0)
|
59
|
+
activesupport (= 7.2.0)
|
60
|
+
activerecord (7.2.0)
|
61
|
+
activemodel (= 7.2.0)
|
62
|
+
activesupport (= 7.2.0)
|
68
63
|
timeout (>= 0.4.0)
|
69
|
-
activestorage (7.
|
70
|
-
actionpack (= 7.
|
71
|
-
activejob (= 7.
|
72
|
-
activerecord (= 7.
|
73
|
-
activesupport (= 7.
|
64
|
+
activestorage (7.2.0)
|
65
|
+
actionpack (= 7.2.0)
|
66
|
+
activejob (= 7.2.0)
|
67
|
+
activerecord (= 7.2.0)
|
68
|
+
activesupport (= 7.2.0)
|
74
69
|
marcel (~> 1.0)
|
75
|
-
activesupport (7.
|
70
|
+
activesupport (7.2.0)
|
76
71
|
base64
|
77
72
|
bigdecimal
|
78
|
-
concurrent-ruby (~> 1.0, >= 1.
|
73
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
79
74
|
connection_pool (>= 2.2.5)
|
80
75
|
drb
|
81
76
|
i18n (>= 1.6, < 2)
|
77
|
+
logger (>= 1.4.2)
|
82
78
|
minitest (>= 5.1)
|
83
|
-
|
84
|
-
tzinfo (~> 2.0)
|
79
|
+
securerandom (>= 0.3)
|
80
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
85
81
|
ast (2.4.2)
|
86
82
|
base64 (0.2.0)
|
87
83
|
bigdecimal (3.1.8)
|
88
84
|
builder (3.3.0)
|
89
|
-
concurrent-ruby (1.3.
|
85
|
+
concurrent-ruby (1.3.4)
|
90
86
|
connection_pool (2.4.1)
|
91
87
|
crass (1.0.6)
|
92
88
|
date (3.3.4)
|
@@ -102,6 +98,7 @@ GEM
|
|
102
98
|
reline (>= 0.4.2)
|
103
99
|
json (2.7.2)
|
104
100
|
language_server-protocol (3.17.0.3)
|
101
|
+
logger (1.6.0)
|
105
102
|
loofah (2.22.0)
|
106
103
|
crass (~> 1.0.2)
|
107
104
|
nokogiri (>= 1.12.0)
|
@@ -112,8 +109,7 @@ GEM
|
|
112
109
|
net-smtp
|
113
110
|
marcel (1.0.4)
|
114
111
|
mini_mime (1.1.5)
|
115
|
-
minitest (5.
|
116
|
-
mutex_m (0.2.0)
|
112
|
+
minitest (5.24.1)
|
117
113
|
net-imap (0.4.14)
|
118
114
|
date
|
119
115
|
net-protocol
|
@@ -130,13 +126,13 @@ GEM
|
|
130
126
|
racc (~> 1.4)
|
131
127
|
nokogiri (1.16.7-x86_64-linux)
|
132
128
|
racc (~> 1.4)
|
133
|
-
parallel (1.
|
134
|
-
parser (3.3.
|
129
|
+
parallel (1.26.1)
|
130
|
+
parser (3.3.4.2)
|
135
131
|
ast (~> 2.4.1)
|
136
132
|
racc
|
137
133
|
psych (5.1.2)
|
138
134
|
stringio
|
139
|
-
racc (1.8.
|
135
|
+
racc (1.8.1)
|
140
136
|
rack (3.1.7)
|
141
137
|
rack-session (2.0.0)
|
142
138
|
rack (>= 3.0.0)
|
@@ -145,20 +141,20 @@ GEM
|
|
145
141
|
rackup (2.1.0)
|
146
142
|
rack (>= 3)
|
147
143
|
webrick (~> 1.8)
|
148
|
-
rails (7.
|
149
|
-
actioncable (= 7.
|
150
|
-
actionmailbox (= 7.
|
151
|
-
actionmailer (= 7.
|
152
|
-
actionpack (= 7.
|
153
|
-
actiontext (= 7.
|
154
|
-
actionview (= 7.
|
155
|
-
activejob (= 7.
|
156
|
-
activemodel (= 7.
|
157
|
-
activerecord (= 7.
|
158
|
-
activestorage (= 7.
|
159
|
-
activesupport (= 7.
|
144
|
+
rails (7.2.0)
|
145
|
+
actioncable (= 7.2.0)
|
146
|
+
actionmailbox (= 7.2.0)
|
147
|
+
actionmailer (= 7.2.0)
|
148
|
+
actionpack (= 7.2.0)
|
149
|
+
actiontext (= 7.2.0)
|
150
|
+
actionview (= 7.2.0)
|
151
|
+
activejob (= 7.2.0)
|
152
|
+
activemodel (= 7.2.0)
|
153
|
+
activerecord (= 7.2.0)
|
154
|
+
activestorage (= 7.2.0)
|
155
|
+
activesupport (= 7.2.0)
|
160
156
|
bundler (>= 1.15.0)
|
161
|
-
railties (= 7.
|
157
|
+
railties (= 7.2.0)
|
162
158
|
rails-dom-testing (2.2.0)
|
163
159
|
activesupport (>= 5.0.0)
|
164
160
|
minitest
|
@@ -166,12 +162,12 @@ GEM
|
|
166
162
|
rails-html-sanitizer (1.6.0)
|
167
163
|
loofah (~> 2.21)
|
168
164
|
nokogiri (~> 1.14)
|
169
|
-
rails-mermaid_erd (0.
|
165
|
+
rails-mermaid_erd (0.5.0)
|
170
166
|
rails (>= 5.2)
|
171
|
-
railties (7.
|
172
|
-
actionpack (= 7.
|
173
|
-
activesupport (= 7.
|
174
|
-
irb
|
167
|
+
railties (7.2.0)
|
168
|
+
actionpack (= 7.2.0)
|
169
|
+
activesupport (= 7.2.0)
|
170
|
+
irb (~> 1.13)
|
175
171
|
rackup (>= 1.0.0)
|
176
172
|
rake (>= 12.2)
|
177
173
|
thor (~> 1.0, >= 1.2.2)
|
@@ -183,25 +179,23 @@ GEM
|
|
183
179
|
regexp_parser (2.9.2)
|
184
180
|
reline (0.5.9)
|
185
181
|
io-console (~> 0.5)
|
186
|
-
rexml (3.
|
187
|
-
strscan
|
188
|
-
rubocop (1.
|
182
|
+
rexml (3.3.4)
|
183
|
+
strscan
|
184
|
+
rubocop (1.65.1)
|
189
185
|
json (~> 2.3)
|
190
186
|
language_server-protocol (>= 3.17.0)
|
191
187
|
parallel (~> 1.10)
|
192
188
|
parser (>= 3.3.0.2)
|
193
189
|
rainbow (>= 2.2.2, < 4.0)
|
194
|
-
regexp_parser (>=
|
190
|
+
regexp_parser (>= 2.4, < 3.0)
|
195
191
|
rexml (>= 3.2.5, < 4.0)
|
196
192
|
rubocop-ast (>= 1.31.1, < 2.0)
|
197
193
|
ruby-progressbar (~> 1.7)
|
198
194
|
unicode-display_width (>= 2.4.0, < 3.0)
|
199
|
-
rubocop-ast (1.
|
195
|
+
rubocop-ast (1.32.0)
|
200
196
|
parser (>= 3.3.1.0)
|
201
197
|
ruby-progressbar (1.13.0)
|
202
|
-
|
203
|
-
sqlite3 (1.7.3-x86_64-darwin)
|
204
|
-
sqlite3 (1.7.3-x86_64-linux)
|
198
|
+
securerandom (0.3.1)
|
205
199
|
stringio (3.1.1)
|
206
200
|
strscan (3.1.0)
|
207
201
|
thor (1.3.1)
|
@@ -209,6 +203,7 @@ GEM
|
|
209
203
|
tzinfo (2.0.6)
|
210
204
|
concurrent-ruby (~> 1.0)
|
211
205
|
unicode-display_width (2.5.0)
|
206
|
+
useragent (0.16.10)
|
212
207
|
webrick (1.8.1)
|
213
208
|
websocket-driver (0.7.6)
|
214
209
|
websocket-extensions (>= 0.1.0)
|
@@ -216,8 +211,8 @@ GEM
|
|
216
211
|
zeitwerk (2.6.17)
|
217
212
|
|
218
213
|
PLATFORMS
|
219
|
-
arm64-darwin
|
220
|
-
x86_64-darwin
|
214
|
+
arm64-darwin
|
215
|
+
x86_64-darwin
|
221
216
|
x86_64-linux
|
222
217
|
|
223
218
|
DEPENDENCIES
|
@@ -225,7 +220,6 @@ DEPENDENCIES
|
|
225
220
|
rails-mermaid_erd_markdown!
|
226
221
|
rake
|
227
222
|
rubocop
|
228
|
-
sqlite3
|
229
223
|
|
230
224
|
BUNDLED WITH
|
231
|
-
2.
|
225
|
+
2.5.6
|
data/README.md
CHANGED
@@ -1,36 +1,6 @@
|
|
1
1
|
# rails-mermaid_erd_markdown
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
Add this line to your application's Gemfile:
|
8
|
-
|
9
|
-
```ruby
|
10
|
-
gem 'rails-mermaid_erd_markdown'
|
11
|
-
```
|
12
|
-
|
13
|
-
And then execute:
|
14
|
-
|
15
|
-
$ bundle install
|
16
|
-
|
17
|
-
Or install it yourself as:
|
18
|
-
|
19
|
-
$ gem install rails-mermaid_erd_markdown
|
20
|
-
|
21
|
-
## Usage
|
22
|
-
|
23
|
-
To generate a mermaid ERD in markdown, run `rails generate_erd` or `rake generate_erd` from the terminal
|
24
|
-
|
25
|
-
The default path for the generated ERD is `app/models/ERD.md`. You can modify this by creating an `erd.yml` file in the root directory and modifying the `output_path` as seen in the example at `docs/examples/erd.yml`. Make sure to include the markdown file name you wish to generate in the path.
|
26
|
-
|
27
|
-
If an ERD already exists at the path specified, it will be parsed to determine if it is up to date. If it is, nothing happens. If it is not up to date, the ERD will be updated.
|
28
|
-
|
29
|
-
One can create self-updating, living documentation by integrating this rake task into their CI. This ensures that the ERD is always up to date and accurately describes the latest state of the models and their relationships.
|
30
|
-
|
31
|
-
You can view the ERD by navigating to the file in Github, which supports rendering mermaid diagrams from code. If you are a Visual Studio Code user, you can use the [Markdown Preview Enhanced](https://marketplace.visualstudio.com/items?itemName=shd101wyy.markdown-preview-enhanced) extension to view the ERD directly in your IDE.
|
32
|
-
|
33
|
-
If your entity diagram is too large to be displayed you can set a `split_output` configuration to `true` to generate multiple ERD files based on each model in your project. You can also set a `relationship_depth` configuration to include more than 1 level (the default) of associations in each document.
|
3
|
+
A Ruby on Rails gem that extends rails-mermaid_erd to generate mermaid Entity-Relationship Diagrams (ERD) for ActiveRecord Models. When combined with Continuous Integration (CI) pipelines, it enables one to generate living, self-updating documentation of their data.
|
34
4
|
|
35
5
|
## Example ERD
|
36
6
|
|
@@ -62,6 +32,103 @@ erDiagram
|
|
62
32
|
Comment }o--|| Article : "BT:article"
|
63
33
|
```
|
64
34
|
|
35
|
+
|
36
|
+
## Installation
|
37
|
+
|
38
|
+
Add this line to your application's Gemfile:
|
39
|
+
|
40
|
+
```ruby
|
41
|
+
gem 'rails-mermaid_erd_markdown'
|
42
|
+
```
|
43
|
+
|
44
|
+
Or install it yourself as:
|
45
|
+
|
46
|
+
$ gem install rails-mermaid_erd_markdown
|
47
|
+
|
48
|
+
## Usage
|
49
|
+
|
50
|
+
### Generating ERDs
|
51
|
+
To generate the comprehensive mermaid ERD in markdown, run one of the following:
|
52
|
+
```
|
53
|
+
rails generate_erd
|
54
|
+
```
|
55
|
+
OR
|
56
|
+
```
|
57
|
+
rake generate_erd
|
58
|
+
```
|
59
|
+
**If all of your models do not appear, be sure to eager load them first.**
|
60
|
+
|
61
|
+
### Configuration
|
62
|
+
You can configure the ERD generation by creating a `erd.yml` file in your root, and modifying the following fields.
|
63
|
+
|
64
|
+
```
|
65
|
+
# erd.yml
|
66
|
+
erd:
|
67
|
+
output_path: 'app/ERD.md' # Set output path of ERDs, default: 'app/ERD.md'
|
68
|
+
split_output: false, # Generates individual ERDs for each model with a specified depth, default: false
|
69
|
+
relationship_depth: 1 # Configured depth of individual ERD model generation, default: 1
|
70
|
+
|
71
|
+
```
|
72
|
+
|
73
|
+
If your entity diagram is too large to be displayed you can set a `split_output` configuration to `true` to generate multiple ERD files based on each model in your project.
|
74
|
+
|
75
|
+
You can also set a `relationship_depth` configuration to include more than 1 level (the default) of associations in each document.
|
76
|
+
|
77
|
+
|
78
|
+
### Viewing Diagrams
|
79
|
+
|
80
|
+
You can view the ERD by navigating to the file in Github, which supports rendering mermaid diagrams from code. If you are a Visual Studio Code user, you can use any markdown preview extension such as [Markdown Preview Enhanced](https://marketplace.visualstudio.com/items?itemName=shd101wyy.markdown-preview-enhanced) view the ERD directly in your IDE.
|
81
|
+
|
82
|
+
|
83
|
+
### Integration with CI Pipeline
|
84
|
+
The most value of this gem comes with the integration of it's diagram generation into your CI. The amount of effort required to update documentation has always been the greatest deterrant to creating new documentation. By integrating this rake task into your CI, you can have the CI update the model for you anytime that it changes.
|
85
|
+
|
86
|
+
The following is a Github Actions job example for how one might do this for a Rails app that uses PostgreSQL:
|
87
|
+
|
88
|
+
```yml
|
89
|
+
permissions:
|
90
|
+
contents: write
|
91
|
+
packages: read
|
92
|
+
|
93
|
+
jobs:
|
94
|
+
update-erd:
|
95
|
+
runs-on: ubuntu-latest
|
96
|
+
services:
|
97
|
+
postgres:
|
98
|
+
image: postgres
|
99
|
+
env:
|
100
|
+
POSTGRES_USER: postgres
|
101
|
+
POSTGRES_PASSWORD: postgres
|
102
|
+
ports:
|
103
|
+
- 5432:5432
|
104
|
+
options:
|
105
|
+
- --health-cmd="pg_is_ready" --health-interval=10s --health-timeout=5s --health-retries=3
|
106
|
+
steps:
|
107
|
+
- name: Install packages
|
108
|
+
run:
|
109
|
+
sudo apt-get update && sudo apt-get install --no-install-recommends -y google-chrome-stable curl libvips postgresql-client libpq-dev
|
110
|
+
- name: Checkout code
|
111
|
+
uses: actions/checkout@v4
|
112
|
+
with:
|
113
|
+
ref: ${{ github.event.pull_request.head.ref }}
|
114
|
+
- name: Setup database
|
115
|
+
env:
|
116
|
+
RAILS_ENV: test
|
117
|
+
DATABASE_URL: postgres://postgres:postgres@localhost:5432
|
118
|
+
run: bin/rails db:setup
|
119
|
+
- name: Setup database
|
120
|
+
env:
|
121
|
+
RAILS_ENV: test
|
122
|
+
DATABASE_URL: postgres://postgres:postgres@localhost:5432
|
123
|
+
run: bin/rails generate_erd
|
124
|
+
- name: Commit and Push Updated ERD
|
125
|
+
run: |
|
126
|
+
git config --global user.name 'Github Actions Bot'
|
127
|
+
git config --global user.email 'actions/@users.noreply.github.com'
|
128
|
+
git add app/models/ERD.md
|
129
|
+
git commit -m "Update ERD" || echo "No changes to commit"
|
130
|
+
```
|
131
|
+
|
65
132
|
## Development
|
66
133
|
|
67
134
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/docs/examples/erd.yml
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# This is the path and filename of the generated ERD. You can modify it to change where the ERD is stored/updated.
|
2
|
-
# Default output path: 'app/models/ERD.md'
|
3
1
|
erd:
|
4
|
-
output_path: 'app/ERD.md'
|
2
|
+
output_path: 'app/ERD.md' # Set output path of ERDs, default: 'app/ERD.md'
|
3
|
+
split_output: false, # Generates individual ERDs for each model with a specified depth, default: false
|
4
|
+
relationship_depth: 1 # Configured depth of individual ERD model generation, default: 1
|
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.authors = ["humzahkiani"]
|
9
9
|
spec.email = ["89326566+humzahkiani@users.noreply.github.com"]
|
10
10
|
|
11
|
-
spec.summary = "
|
12
|
-
"
|
11
|
+
spec.summary = "Extends the rails-mermaid_erd gem to generate mermaid ERDs in markdown " \
|
12
|
+
"for Ruby on Rails ActiveRecord Models"
|
13
13
|
spec.homepage = "https://github.com/humzahkiani/rails-mermaid_erd_markdown"
|
14
14
|
spec.license = "MIT"
|
15
15
|
spec.required_ruby_version = ">= 2.6.0"
|
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
|
30
30
|
# Runtime Dependencies
|
31
31
|
spec.add_dependency "rails", ">= 5.2"
|
32
|
-
spec.add_dependency "rails-mermaid_erd", "
|
32
|
+
spec.add_dependency "rails-mermaid_erd", ">= 0.4.2"
|
33
33
|
|
34
34
|
# For more information and examples about making a new gem, check out our
|
35
35
|
# guide at: https://bundler.io/guides/creating_gem.html
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-mermaid_erd_markdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- humzahkiani
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -28,14 +28,14 @@ dependencies:
|
|
28
28
|
name: rails-mermaid_erd
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.4.2
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.4.2
|
41
41
|
description:
|
@@ -106,6 +106,6 @@ requirements: []
|
|
106
106
|
rubygems_version: 3.3.3
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
|
-
summary:
|
110
|
-
|
109
|
+
summary: Extends the rails-mermaid_erd gem to generate mermaid ERDs in markdown for
|
110
|
+
Ruby on Rails ActiveRecord Models
|
111
111
|
test_files: []
|