schema_doctor 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb30a32516182031828f9be6b2f30a5496d5322ba77f7a4e17aa8655e2ef8596
4
- data.tar.gz: 40a59308e3e55209061d7995c393ff45071352ee168af12ea09387edf07fcff2
3
+ metadata.gz: 74042fa873e37695d586611d9dc2b5c54c6b293f2c0bf545769ff165cf3972e3
4
+ data.tar.gz: b65964fe3c1c06ed555fdbad5c5ad78a876513605c84e4776dfcaff2f060042a
5
5
  SHA512:
6
- metadata.gz: f7cd15084b68dd5b4c7993f5346344f01c2de301f2061ee7230267f2bf738a31b93611924a8532807ae25df8524e44f087d305116c988a6ed78d37ca0ebf2fb3
7
- data.tar.gz: de186a77d0f1afec160804205a521784919a75f92452558baa8453eebfceebd34cef33fa190519872d4c2a0fdfed0a54f5ebe8bf79c025c0b44a85da45cd9fde
6
+ metadata.gz: b40f4e2c85e7530fc7ec798c203f19a2b96a5ae01439c2118fcaa290dd0ce02e13ce695f02a3fda308a376be3ee2350a269b9f77eb7fa6bbb3db997a8d8972d9
7
+ data.tar.gz: 13ba870f8f7f3e675b1f209fe5f07f243ebdd377f3de72774e94d65600feb23c4e3fe196e3bd047d3e753cdfc81a6da442b76b7fbbf37e1d3bdc37c839ff5713
data/README.md CHANGED
@@ -1,11 +1,29 @@
1
1
  # SchemaDoctor
2
2
 
3
- TBD
3
+ Automatic database documentation tool, for Ruby on Rails project.
4
+
5
+ ## Demo
6
+
7
+ - **[Sample Output](https://lnit.github.io/schema_doctor/)**
8
+ - Generated from [Mastodon](https://github.com/mastodon/mastodon)'s [schema](https://github.com/mastodon/mastodon/blob/9be77fc0dbb01c1a8a54cd3da97e16c7941df367/db/schema.rb).
4
9
 
5
10
  ## Installation
6
11
 
7
- TBD
12
+ Add the gem to your project
13
+
14
+ ```rb
15
+ gem "rails"
16
+
17
+ group :development do
18
+ gem "schema_doctor"
19
+ end
20
+ ```
21
+
22
+ Then `bundle install` and you are ready to go.
8
23
 
9
24
  ## Usage
10
25
 
11
- TBD
26
+ ```sh
27
+ rails schema:analyze # Analyze Database Schema.
28
+ rails schema:export # Export HTML.
29
+ ```
@@ -36,6 +36,9 @@ module SchemaDoctor
36
36
  }
37
37
  rescue ActiveRecord::TableNotSpecified
38
38
  nil
39
+ rescue => e
40
+ puts "Failed to process #{model.name}: #{e.inspect}"
41
+ puts "\e[31mWe're sorry, Failed to process \e[33m#{model.name}\e[31m:\n #{e.inspect}\e[0m"
39
42
  end
40
43
 
41
44
  schema
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SchemaDoctor
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schema_doctor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - lni_T
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-02 00:00:00.000000000 Z
11
+ date: 2024-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord