documentation-zero 0.0.4 → 0.0.5

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: 2650852c4529a8d663213c01b7c0b492fd81c601247c817ce17cf204a5f44872
4
- data.tar.gz: b2eee6d289c54bf1ef547b0e8cf4f52df36bfd6b164ca96523b095daa37e35c4
3
+ metadata.gz: 2989992b190b783b8c1b3ce258176d949e229ce32bb7e045aa0257df0a084abd
4
+ data.tar.gz: 828dd73c95fe502c16e0b871e75c197cff726cb5de25da3c0c5a669d7b4b2210
5
5
  SHA512:
6
- metadata.gz: b8d1ef81d109b58cab60dd37b06eb9ba310a7fcfc8c59efcd7de8bc14fb907e90820dfeb6aefb62c4dea09326b367ec9f41d70dfab991b69e56608e2e3eb695d
7
- data.tar.gz: a8de4dc6df6b59904c9b649fd27f9d443e98e6765234d1348fc55295718522ec638370f8f3b1dc34ffc41111747f99bb615a888d4031a43b6962ea74d013b356
6
+ metadata.gz: fa4e0d3497944a64a5a65f5a1a084d4db098c4ee299c6d5dce05dc134a0994c910aeb2a32cc9538e851d8f499ae7799753d62676c6eff42523cc19a32f7fc69c
7
+ data.tar.gz: eb239336346a5209254083744c3c1ea257da446d3be6e78bbd5071a35be4fbe4d0c872e9ac248b2406ea664d5269b4562a84088bd97ea16e7bb60cd2ccf97215
@@ -68,10 +68,11 @@ This endpoint will return `204 No Content` if successful. No parameters are requ
68
68
  ---
69
69
 
70
70
  ## Model
71
- ```json
72
- {
73
- "title": "string",
74
- "content": "string",
75
- "published": "boolean",
71
+ ```mermaid
72
+ classDiagram
73
+ class Post {
74
+ string title
75
+ string content
76
+ boolean published
76
77
  }
77
78
  ```
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- documentation-zero (0.0.4)
4
+ documentation-zero (0.0.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module DocumentationZero
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -68,17 +68,18 @@ This endpoint will return `204 No Content` if successful. No parameters are requ
68
68
  ---
69
69
 
70
70
  ## Model
71
- ```json
72
- {
71
+ ```mermaid
72
+ classDiagram
73
+ class <%= class_name %> {
73
74
  <% attributes.each do |attribute| -%>
74
75
  <% if attribute.password_digest? -%>
75
- "password_digest": "string",
76
+ string password_digest
76
77
  <% elsif attribute.token? -%>
77
- "<%= attribute.column_name %>": "string",
78
+ string <%= attribute.column_name %>
78
79
  <% elsif attribute.reference? -%>
79
- "<%= attribute.column_name %>": "integer",
80
+ integer <%= attribute.column_name %>
80
81
  <% elsif !attribute.virtual? -%>
81
- "<%= attribute.column_name %>": "<%= attribute.type %>",
82
+ <%= attribute.type %> <%= attribute.column_name %>
82
83
  <% end -%>
83
84
  <% end -%>
84
85
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: documentation-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nixon