nexmo-oas-renderer 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/push-docker-publish.yml +19 -0
- data/CHANGELOG.md +3 -0
- data/Dockerfile +6 -0
- data/Gemfile.lock +1 -1
- data/README.md +17 -0
- data/lib/nexmo/oas/renderer/app.rb +2 -1
- data/lib/nexmo/oas/renderer/version.rb +1 -1
- data/lib/nexmo/oas/renderer/views/open_api/_parameters.erb +2 -2
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b851f13c8369bb28d71c4b0c6ec1fd9f000727b5eb361da8740fa7bae22e74db
|
4
|
+
data.tar.gz: 5c516341b40d8dc5b0992456539367489b3298c08882a1aa425d8a5ed28331cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c65dea2d20a585ba768cd3898c20e90c8684e14631ebab025a7a8f381576cd4d7b3d9732b78985a249b74c31a1bcb2bd23a2840b9d2fe750a3fe0c17f45a1c4d
|
7
|
+
data.tar.gz: b7ebc350a3aec9cbc0e208b51051b2d8a7b6871f8a2e5cab0b56c243a96f269504ce49587cb66f2ecbcb8a0318869b9dc9c9e1cdbcc866f1d129ec381d2c16d8
|
@@ -0,0 +1,19 @@
|
|
1
|
+
name: Publish Docker
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches:
|
5
|
+
- master
|
6
|
+
tags:
|
7
|
+
- '*'
|
8
|
+
jobs:
|
9
|
+
build:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
steps:
|
12
|
+
- uses: actions/checkout@master
|
13
|
+
- name: Publish to Registry
|
14
|
+
uses: elgohr/Publish-Docker-Github-Action@master
|
15
|
+
with:
|
16
|
+
name: nexmodev/nexmo-oas-renderer
|
17
|
+
username: ${{ secrets.DOCKER_USERNAME }}
|
18
|
+
password: ${{ secrets.DOCKER_PASSWORD }}
|
19
|
+
tag_names: true
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
# 0.7.1
|
2
|
+
* Use schema's description when there isn't one at the parameter level
|
3
|
+
|
1
4
|
# 0.7.0
|
2
5
|
* Prevent sinatra from showing error traces, use custom 500 page instead
|
3
6
|
* Bump oas_parser to version 0.23.0. Ensures interoperability between JSON and YAML formats by forcing keys to be strings
|
data/Dockerfile
ADDED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -3,6 +3,7 @@ Sinatra application that provides a preview of how the OAS documents will be ren
|
|
3
3
|
|
4
4
|
* [Dependencies](#requirements)
|
5
5
|
* [Installation and Usage](#installation-and-usage)
|
6
|
+
* [Using Docker](#using-docker)
|
6
7
|
* [As a standalone application](#as-a-standalone-application)
|
7
8
|
* [Mounted into a Rails application](#mounted-into-a-rails-application)
|
8
9
|
* [Specifying the path to the documents](#specifying-the-path-to-the-documents)
|
@@ -14,6 +15,22 @@ Sinatra application that provides a preview of how the OAS documents will be ren
|
|
14
15
|
|
15
16
|
## Installation and Usage
|
16
17
|
|
18
|
+
### Using Docker
|
19
|
+
|
20
|
+
You can run using Docker and it will serve the current directory (this will usually be the api-specification repo):
|
21
|
+
|
22
|
+
```bash
|
23
|
+
docker run --rm -p 4567:4567 -v `pwd`:/definitions -e 'OAS_PATH=/definitions' nexmodev/nexmo-oas-renderer:latest
|
24
|
+
```
|
25
|
+
|
26
|
+
Alternatively, add the following to your `~/.bashrc` file and you'll be able to run `nexmo-oas-renderer`
|
27
|
+
|
28
|
+
```
|
29
|
+
function nexmo-oas-renderer() {
|
30
|
+
docker run --rm -p 4567:4567 -v `pwd`:/definitions -e 'OAS_PATH=/definitions' nexmodev/nexmo-oas-renderer:latest
|
31
|
+
}
|
32
|
+
```
|
33
|
+
|
17
34
|
### As a standalone application
|
18
35
|
|
19
36
|
Install the gem:
|
@@ -75,10 +75,10 @@
|
|
75
75
|
<td>
|
76
76
|
<% if parameter.collection? || parameter.oneOf? %>
|
77
77
|
<% if parameter.raw['x-nexmo-developer-collection-description-shown'] %>
|
78
|
-
<%= (parameter.description
|
78
|
+
<%= (parameter.description || parameter.schema['description'] || '<i>None</i>').render_markdown %>
|
79
79
|
<% end %>
|
80
80
|
<% else %>
|
81
|
-
<%= (parameter.description
|
81
|
+
<%= (parameter.description || parameter.schema['description'] || '<i>None</i>').render_markdown %>
|
82
82
|
<% end %>
|
83
83
|
|
84
84
|
<% if parameter.enum %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nexmo-oas-renderer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fabian Rodriguez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
@@ -229,10 +229,12 @@ extensions: []
|
|
229
229
|
extra_rdoc_files: []
|
230
230
|
files:
|
231
231
|
- ".env.example"
|
232
|
+
- ".github/workflows/push-docker-publish.yml"
|
232
233
|
- ".gitignore"
|
233
234
|
- ".rspec"
|
234
235
|
- CHANGELOG.md
|
235
236
|
- CONTRIBUTING.md
|
237
|
+
- Dockerfile
|
236
238
|
- Gemfile
|
237
239
|
- Gemfile.lock
|
238
240
|
- LICENSE.txt
|