apiaryio 0.11.0 → 0.11.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 +4 -4
- data/README.md +0 -3
- data/lib/apiary/cli.rb +3 -3
- data/lib/apiary/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1417d99a9e588c993ef580607fcc2025e0d61c70
|
|
4
|
+
data.tar.gz: 1985f7eef3dab74baaeadf733a12d2292c0727c4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 11fa8c0d486ee15f901a63940578954090bd68bf2fe7357acc26f68d43b767929f62bfe9d605abfde97e608dc1a380912eae6b7081ef2d9c02e5aff28bc89897
|
|
7
|
+
data.tar.gz: 6337d8bf20fc985c68d5c73725d15a88053463135c5db62d38176090026eb04b810b84574730de8cdf244aa364f48693ac37fa8ee39c9b6a9b7cd59a109c338f
|
data/README.md
CHANGED
|
@@ -77,7 +77,6 @@ Usage:
|
|
|
77
77
|
|
|
78
78
|
Options:
|
|
79
79
|
--api-name=API_NAME
|
|
80
|
-
[--api-host=HOST] # Specify apiary host
|
|
81
80
|
[--output=FILE] # Write API Description Document into specified file
|
|
82
81
|
|
|
83
82
|
Fetch API Description Document from API_NAME.apiary.io
|
|
@@ -95,7 +94,6 @@ Options:
|
|
|
95
94
|
[--output=FILE] # Write generated HTML into specified file
|
|
96
95
|
[--path=PATH] # Specify path to API Description Document. When given a directory, it will look for `apiary.apib` and `swagger.yaml` file
|
|
97
96
|
[--json], [--no-json] # Specify that Swagger API Description Document is in json format. Document will be converted to yaml before processing
|
|
98
|
-
[--api-host=HOST] # Specify apiary host
|
|
99
97
|
[--server], [--no-server] # Start standalone web server on port 8080
|
|
100
98
|
[--port=PORT] # Set port for --server option
|
|
101
99
|
[--host=HOST] # Set host for --server option
|
|
@@ -115,7 +113,6 @@ Options:
|
|
|
115
113
|
[--message=COMMIT_MESSAGE] # Publish with custom commit message
|
|
116
114
|
[--path=PATH] # Specify path to API Description Document. When given a directory, it will look for `apiary.apib` and `swagger.yaml` file
|
|
117
115
|
[--json], [--no-json] # Specify that Swagger API Description Document is in json format. Document will be converted to yaml before processing
|
|
118
|
-
[--api-host=HOST] # Specify apiary host
|
|
119
116
|
[--push], [--no-push] # Push API Description to the GitHub when API Project is associated with GitHub repository in Apiary
|
|
120
117
|
# Default: true
|
|
121
118
|
--api-name=API_NAME
|
data/lib/apiary/cli.rb
CHANGED
|
@@ -10,7 +10,7 @@ module Apiary
|
|
|
10
10
|
class CLI < Thor
|
|
11
11
|
desc 'fetch', 'Fetch API Description Document from API_NAME.apiary.io'
|
|
12
12
|
method_option :api_name, type: :string, required: true
|
|
13
|
-
method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host'
|
|
13
|
+
method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host', hide: true
|
|
14
14
|
method_option :output, type: :string, banner: 'FILE', desc: 'Write API Description Document into specified file'
|
|
15
15
|
|
|
16
16
|
def fetch
|
|
@@ -23,7 +23,7 @@ module Apiary
|
|
|
23
23
|
method_option :output, type: :string, banner: 'FILE', desc: 'Write generated HTML into specified file'
|
|
24
24
|
method_option :path, type: :string, desc: 'Specify path to API Description Document. When given a directory, it will look for `apiary.apib` and `swagger.yaml` file'
|
|
25
25
|
method_option :json, type: :boolean, desc: 'Specify that Swagger API Description Document is in json format. Document will be converted to yaml before processing'
|
|
26
|
-
method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host'
|
|
26
|
+
method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host', hide: true
|
|
27
27
|
method_option :server, type: :boolean, desc: 'Start standalone web server on port 8080'
|
|
28
28
|
method_option :port, type: :numeric, banner: 'PORT', desc: 'Set port for --server option'
|
|
29
29
|
method_option :host, type: :string, desc: 'Set host for --server option'
|
|
@@ -38,7 +38,7 @@ module Apiary
|
|
|
38
38
|
method_option :message, type: :string, banner: 'COMMIT_MESSAGE', desc: 'Publish with custom commit message'
|
|
39
39
|
method_option :path, type: :string, desc: 'Specify path to API Description Document. When given a directory, it will look for `apiary.apib` and `swagger.yaml` file'
|
|
40
40
|
method_option :json, type: :boolean, desc: 'Specify that Swagger API Description Document is in json format. Document will be converted to yaml before processing'
|
|
41
|
-
method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host'
|
|
41
|
+
method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host', hide: true
|
|
42
42
|
method_option :push, type: :boolean, default: true, desc: 'Push API Description to the GitHub when API Project is associated with GitHub repository in Apiary'
|
|
43
43
|
method_option :api_name, type: :string, required: true
|
|
44
44
|
|
data/lib/apiary/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: apiaryio
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.11.
|
|
4
|
+
version: 0.11.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Apiary Ltd.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-04-
|
|
11
|
+
date: 2018-04-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|