drawerd 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae10c530c0301c3a0d363cb7bb877f0d0e98bbd9c4f2defee45392cce5287040
4
- data.tar.gz: '08b07ecc0ccf861a8582a76cabd619541c3ed0a3b91f99ff6b90d3a361fc4ec7'
3
+ metadata.gz: c14ecca01c0c946e1b0e24ec6d33e733ee183d15d9658ed0fb8dd2b1fcc58c25
4
+ data.tar.gz: cc0dc6fcca7830d19618d29185032459b140e005fd65bfe518d7470f6a792b24
5
5
  SHA512:
6
- metadata.gz: 0cfde721641347a5f1a07769a3e67911ecc9ebea944298d6d969eff42a3c5e302354100ca926ef8e434d0a603603d6edc0eb97c0b8baf20427342cdcfcb82450
7
- data.tar.gz: ee91480ba75b1cd680ae86f72c861c58f349067e35caa2604deba05ce9b322f3edd2bfd780edef957ee3591a789a471224805080e6134aa05ed7a45672e0b39f
6
+ metadata.gz: 131249135bf93b87ce82c09326d025315f97f6d0dcae8e764b506d3849ecfee0f6d878a9ec2cad72afaee8548703222ea8d76389a3de246baa61194c8d91d1ad
7
+ data.tar.gz: 1bacefa87d0a0f80ad9ea4ac5b3c72af38a6786e474daa8b8421441a61fb82ea97b1f79eaf95f4a2a6ad345cbc4c1395374e1b7485884575acdd112a84977ecb
@@ -1,27 +1,27 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- drawerd (0.1.0)
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.2.2)
11
- activesupport (= 6.0.2.2)
12
- activerecord (6.0.2.2)
13
- activemodel (= 6.0.2.2)
14
- activesupport (= 6.0.2.2)
15
- activesupport (6.0.2.2)
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.2)
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
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/drawerd`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Delete this and the text above, and describe your gem
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
- gem 'drawerd'
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
- TODO: Write usage instructions here
26
-
27
- ## Development
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
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
55
+ and then upload tables.csv & relations.csv via Web UI.
32
56
 
33
- ## Contributing
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
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/drawerd.
59
+ more detail: https://help.drawerd.com/importing/importing-postgresql
36
60
 
37
61
  ## License
38
62
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Drawerd
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
@@ -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.0
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-04-25 00:00:00.000000000 Z
11
+ date: 2020-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails-erd