drawerd 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -9
- data/README.md +39 -15
- data/lib/drawerd/version.rb +1 -1
- data/lib/tasks/drawerd.rake +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c14ecca01c0c946e1b0e24ec6d33e733ee183d15d9658ed0fb8dd2b1fcc58c25
|
4
|
+
data.tar.gz: cc0dc6fcca7830d19618d29185032459b140e005fd65bfe518d7470f6a792b24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 131249135bf93b87ce82c09326d025315f97f6d0dcae8e764b506d3849ecfee0f6d878a9ec2cad72afaee8548703222ea8d76389a3de246baa61194c8d91d1ad
|
7
|
+
data.tar.gz: 1bacefa87d0a0f80ad9ea4ac5b3c72af38a6786e474daa8b8421441a61fb82ea97b1f79eaf95f4a2a6ad345cbc4c1395374e1b7485884575acdd112a84977ecb
|
data/Gemfile.lock
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
drawerd (0.1.
|
4
|
+
drawerd (0.1.1)
|
5
5
|
rails-erd (~> 1.6)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (6.0.
|
11
|
-
activesupport (= 6.0.
|
12
|
-
activerecord (6.0.
|
13
|
-
activemodel (= 6.0.
|
14
|
-
activesupport (= 6.0.
|
15
|
-
activesupport (6.0.
|
10
|
+
activemodel (6.0.3.1)
|
11
|
+
activesupport (= 6.0.3.1)
|
12
|
+
activerecord (6.0.3.1)
|
13
|
+
activemodel (= 6.0.3.1)
|
14
|
+
activesupport (= 6.0.3.1)
|
15
|
+
activesupport (6.0.3.1)
|
16
16
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
17
17
|
i18n (>= 0.7, < 2)
|
18
18
|
minitest (~> 5.1)
|
19
19
|
tzinfo (~> 1.1)
|
20
|
-
zeitwerk (~> 2.2)
|
20
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
21
21
|
ast (2.4.0)
|
22
22
|
choice (0.2.0)
|
23
23
|
concurrent-ruby (1.1.6)
|
24
|
-
i18n (1.8.
|
24
|
+
i18n (1.8.3)
|
25
25
|
concurrent-ruby (~> 1.0)
|
26
26
|
jaro_winkler (1.5.4)
|
27
27
|
minitest (5.14.0)
|
data/README.md
CHANGED
@@ -1,38 +1,62 @@
|
|
1
1
|
# Drawerd
|
2
2
|
|
3
|
-
|
3
|
+
Drawerd is a gem that allows you to easily generate a diagram based on your application's Active Record models. The diagram gives an overview of how your models are related. Having a diagram that describes your models is perfect documentation for your application.
|
4
4
|
|
5
|
-
|
5
|
+
Drawerd gem is a toolkit for the free online erd service drawerd.com. It use Rails-ERD to generate tables.csv and relations.csv for drawerd.com.
|
6
|
+
|
7
|
+
## DrawERD Features
|
8
|
+
|
9
|
+
* You can edit the diagram generated by rails-erd online collaboratively.
|
10
|
+
* Support grouping function, if you want to split microservices, or modularize your application, drawerd can help you more intuitively.
|
11
|
+
* Various built-in modes and layouts support.
|
12
|
+
* SVG ERD can be downloaded or shared to your project management tool.
|
13
|
+
* Powerful filtering function, for large projects, drawerd can focus on specific modules through group filtering.
|
14
|
+
* Works with non-rails project well.
|
15
|
+
* Various importing method: rails-erd, sql and manually via Web UI.
|
16
|
+
* Free for OSS.
|
17
|
+
|
18
|
+
and more detail: https://help.drawerd.com/
|
19
|
+
Full Video: https://www.loom.com/share/e30d06ba299b43bc8b68f369b47f745a
|
20
|
+
|
21
|
+
## Preview
|
22
|
+
|
23
|
+
**Full Mode**
|
24
|
+
|
25
|
+
![](https://gblobscdn.gitbook.com/assets%2F-M4KXP_B-JS37AxVENXr%2F-M4a6EP51_FLk8enrbaN%2F-M4a6OFk5jOzgwlY5IsS%2Fimage.png?alt=media&token=e088afb7-15b3-4e46-9ca3-ee0669809107)
|
26
|
+
|
27
|
+
**Simple Mode**
|
28
|
+
|
29
|
+
![](https://gblobscdn.gitbook.com/assets%2F-M4KXP_B-JS37AxVENXr%2F-M4a6EP51_FLk8enrbaN%2F-M4a6F_hxgSCjxEyWO5m%2Fimage.png?alt=media&token=f079a6ff-695e-495e-88e5-c7e8f754c3c7)
|
30
|
+
|
31
|
+
**Grouping**
|
32
|
+
|
33
|
+
![](https://gblobscdn.gitbook.com/assets%2F-M4KXP_B-JS37AxVENXr%2F-M4a28LNnRt57s9R2qIZ%2F-M4a2Ys8Wfx6qotgxzS6%2Fimage.png?alt=media&token=fbcc87bc-a082-49d3-8ae3-0008e0e68833)
|
6
34
|
|
7
35
|
## Installation
|
8
36
|
|
9
37
|
Add this line to your application's Gemfile:
|
10
38
|
|
11
39
|
```ruby
|
12
|
-
|
40
|
+
group :development do
|
41
|
+
gem 'drawerd'
|
42
|
+
end
|
13
43
|
```
|
14
44
|
|
15
45
|
And then execute:
|
16
46
|
|
17
47
|
$ bundle
|
18
48
|
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install drawerd
|
22
|
-
|
23
49
|
## Usage
|
24
50
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
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.
|
51
|
+
```
|
52
|
+
bundle exec rake drawerd:generate
|
53
|
+
```
|
30
54
|
|
31
|
-
|
55
|
+
and then upload tables.csv & relations.csv via Web UI.
|
32
56
|
|
33
|
-
|
57
|
+
![](https://gblobscdn.gitbook.com/assets%2F-M4KXP_B-JS37AxVENXr%2F-M56Qp7AVYLvGyO_egoS%2F-M56R8QvRsFmGapFdcZr%2Fimage.png?alt=media&token=c80fed1a-57b1-42bf-aa2f-797c8739c24c)
|
34
58
|
|
35
|
-
|
59
|
+
more detail: https://help.drawerd.com/importing/importing-postgresql
|
36
60
|
|
37
61
|
## License
|
38
62
|
|
data/lib/drawerd/version.rb
CHANGED
data/lib/tasks/drawerd.rake
CHANGED
@@ -50,6 +50,7 @@ class DrawerdDiagram < RailsERD::Diagram
|
|
50
50
|
des = relationship.destination
|
51
51
|
source_model = source.model
|
52
52
|
des_model = des.model
|
53
|
+
next if source_model.nil? || des_model.nil?
|
53
54
|
source_table_name = source_model.table_name
|
54
55
|
des_table_name = des_model.table_name
|
55
56
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drawerd
|
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
|
- Hooopo Wang
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails-erd
|