documentation-zero 0.0.8 → 0.0.9

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: ff0cfd8d7c31a648ac6ffb886529c5dbc3b52ec4b23cb5edff680332d6196823
4
- data.tar.gz: 3e2452da26d4e5cdc39a86e94a0ce654becfc4e1e518512c16401caf57c737d2
3
+ metadata.gz: 25b3388ee2af025b7d1144d1f359c18ce4d75daf4d2d6e69845b4c642174cc43
4
+ data.tar.gz: 50e5e4c9b83f9a1315861cef29a97f1415394357adb82b97f69504a095ca7205
5
5
  SHA512:
6
- metadata.gz: 9dda90a920a2e861c89419c0a8805eded8016f7f2944d7d5e276b6e60dcb3bd52f041aa7a7b5002a3adbb0e62a2711ad60abfd02d8cc9f4c1290800675b523fc
7
- data.tar.gz: 3e3c0f3b5a7608f19d4606ef1d52b51518b82871891bb616716f4f68409c03c2f35c73fcf9246f0e27b402fd73c4ad7accfa6a31b095795f28f938d2a1780010
6
+ metadata.gz: 6f093fa94fd57cc9159a0130635164c468e2541744ecee8d7b9693569a9c04542179a65d37dcd07083ad4006c9e71b8a5b4d8e52dd035dde4f71a09e338f17cf
7
+ data.tar.gz: 0ae4198e2eca599ae54a4594692e712e31e42a33f62fb8a7cf497a40a7abb97bf75b64555f1606b57f3816a274bdfeceb9245809fc9aa97075316993d63dffaf
@@ -78,6 +78,8 @@ This endpoint will return `204 No Content` if successful. No parameters are requ
78
78
  "title": "string",
79
79
  "content": "string",
80
80
  "published": "boolean",
81
- "user": "references",
81
+ "user_id": "integer",
82
+ "created_at": "datetime",
83
+ "updated_at": "datetime"
82
84
  }
83
85
  ```
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- documentation-zero (0.0.8)
4
+ documentation-zero (0.0.9)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -24,7 +24,7 @@ rails generate documentation:readme
24
24
  rails generate documentation:scaffold posts title:string body:text published:boolean user:references
25
25
  ```
26
26
 
27
- Add ```- [Posts](sections/posts.md)``` to API endpoints section.
27
+ Add `- [Posts](sections/posts.md)` to API endpoints section.
28
28
 
29
29
  ## Development
30
30
 
@@ -1,3 +1,3 @@
1
1
  module DocumentationZero
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -77,10 +77,14 @@ This endpoint will return `204 No Content` if successful. No parameters are requ
77
77
  <% if attribute.password_digest? -%>
78
78
  "password_digest": "string",
79
79
  <% elsif attribute.token? -%>
80
- "<%= attribute.name %>": "string",
80
+ "<%= attribute.column_name %>": "string",
81
+ <% elsif attribute.reference? -%>
82
+ "<%= attribute.column_name %>": "integer",
81
83
  <% elsif !attribute.virtual? -%>
82
- "<%= attribute.name %>": "<%= attribute.type %>",
84
+ "<%= attribute.column_name %>": "<%= attribute.type %>",
83
85
  <% end -%>
84
86
  <% end -%>
87
+ "created_at": "datetime",
88
+ "updated_at": "datetime"
85
89
  }
86
90
  ```
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.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nixon