apiaryio 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +3 -1
- data/README.md +2 -0
- data/lib/apiary/cli.rb +1 -0
- data/lib/apiary/command/publish.rb +3 -1
- 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: 873f63f23317c10660a702e11bc1c489f8708d2a
|
4
|
+
data.tar.gz: 120fd21dde799a164288915e51ccabb95cc98b78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6211eed03bb1e8cae4a0d0b50e244073e20a9a08d7008688356788cc2d2eb4c6e6bbe0c0e5955386b7bee804293c46429436131816f7bbbd94d94f4f1d593a1
|
7
|
+
data.tar.gz: 8ce67899902657078debff5e25f0f4de0ddd18cc23a0edf1b1cb0286a9ba8a37080ad7e666e32298c061d9238a3598a225d2c18708630ca8d4ddf32a16c97c2c
|
data/.rubocop_todo.yml
CHANGED
data/README.md
CHANGED
@@ -112,6 +112,8 @@ Options:
|
|
112
112
|
[--message=COMMIT_MESSAGE] # Publish with custom commit message
|
113
113
|
[--path=PATH] # Specify path to API Description Document. When given a directory, it will look for apiary.apib or swagger.yaml file
|
114
114
|
[--api-host=HOST] # Specify apiary host
|
115
|
+
[--push], [--no-push] # Push API Description to the GitHub when API Project is associated with GitHub repository in Apiary
|
116
|
+
# Default: true
|
115
117
|
--api-name=API_NAME
|
116
118
|
|
117
119
|
Publish API Description Document on docs.API_NAME.apiary.io (API Description must exist on apiary.io)
|
data/lib/apiary/cli.rb
CHANGED
@@ -34,6 +34,7 @@ module Apiary
|
|
34
34
|
method_option :message, type: :string, banner: 'COMMIT_MESSAGE', desc: 'Publish with custom commit message'
|
35
35
|
method_option :path, type: :string, desc: 'Specify path to API Description Document. When given a directory, it will look for apiary.apib or swagger.yaml file'
|
36
36
|
method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host'
|
37
|
+
method_option :push, type: :boolean, default: true, desc: 'Push API Description to the GitHub when API Project is associated with GitHub repository in Apiary'
|
37
38
|
method_option :api_name, type: :string, required: true
|
38
39
|
|
39
40
|
def publish
|
@@ -57,9 +57,11 @@ module Apiary::Command
|
|
57
57
|
source = api_description_source(@source_path)
|
58
58
|
|
59
59
|
return if source.nil?
|
60
|
+
|
60
61
|
data = {
|
61
62
|
code: source,
|
62
|
-
messageToSave: @options.message
|
63
|
+
messageToSave: @options.message,
|
64
|
+
shouldCommit: @options.push ? 'yes' : 'no'
|
63
65
|
}
|
64
66
|
|
65
67
|
RestClient.proxy = @options.proxy
|
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.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Apiary Ltd.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|