apiaryio 0.1.0 → 0.1.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 +7 -0
- data/.travis.yml +5 -2
- data/Gemfile +0 -5
- data/README.md +23 -5
- data/doc/Apiary.html +6 -6
- data/doc/Apiary/CLI.html +15 -5
- data/doc/Apiary/Command.html +5 -5
- data/doc/Apiary/Command/Fetch.html +4 -4
- data/doc/Apiary/Command/Help.html +9 -7
- data/doc/Apiary/Command/Preview.html +4 -4
- data/doc/Apiary/Command/Publish.html +32 -28
- data/doc/Apiary/Command/Runner.html +4 -4
- data/doc/Apiary/Command/Version.html +4 -4
- data/doc/_index.html +5 -5
- data/doc/css/style.css +1 -0
- data/doc/file.README.html +48 -14
- data/doc/frames.html +1 -1
- data/doc/index.html +48 -14
- data/doc/method_list.html +34 -34
- data/doc/top-level-namespace.html +4 -4
- data/lib/apiary/cli.rb +5 -0
- data/lib/apiary/command/help.rb +3 -2
- data/lib/apiary/command/publish.rb +10 -8
- data/lib/apiary/version.rb +1 -1
- metadata +96 -122
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 359e69d0d6e45ed64f46ae2d9b4e74594849e2d4
|
4
|
+
data.tar.gz: 7565ee20da4cb1cd47b2eec59ce3093b32e525b0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0bbd90dd68c53870f038f80b7cd94972af29d80f80e754f8a67b91aab74172e103e28abf12178f8122d240d4704f44cdb8f3fe8060dd4307502ae15d5e98f4bb
|
7
|
+
data.tar.gz: 4dea673fcf080f6966f468c0d0a090b774aefa6c7890aaf4ef7ab3c17e698cd2d96f2aa46f9b129602fc848d4b1d63c7a51c8cf8e1a5ad53083183356a6605e5
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -8,10 +8,19 @@ Apiary.io CLI
|
|
8
8
|
|
9
9
|
## Install
|
10
10
|
|
11
|
+
**install gem** (required)
|
11
12
|
``` bash
|
12
13
|
gem install apiaryio
|
13
14
|
```
|
14
15
|
|
16
|
+
**setup APIARY.io credentials** (required for publish and fetch command only)
|
17
|
+
|
18
|
+
1. Retrieve APIKEY on `https://login.apiary.io/tokens`
|
19
|
+
2. Save it to your environment variables :
|
20
|
+
|
21
|
+
```bash
|
22
|
+
export APIARY_API_KEY=<your_token_retrieved_on_step_1>
|
23
|
+
```
|
15
24
|
|
16
25
|
## Description
|
17
26
|
|
@@ -35,10 +44,11 @@ machine, either using static files or using a standalone web server...
|
|
35
44
|
preview --server Start standalone web server on port 8080
|
36
45
|
preview --server --port [PORT] Start standalone web server on specified port
|
37
46
|
publish --api-name [API_NAME] Publish apiary.apib on docs.API_NAME.apiary.io
|
38
|
-
|
39
|
-
|
40
|
-
|
47
|
+
publish --api-name [API_NAME] \
|
48
|
+
--message [COMMIT_MESSAGE] Publish with custom commit message
|
49
|
+
fetch --api-name [API_NAME] Fetch apiary.apib from API_NAME.apiary.io
|
41
50
|
|
51
|
+
help Show this help
|
42
52
|
version Show version
|
43
53
|
|
44
54
|
## Copyright
|
@@ -48,11 +58,19 @@ Copyright 2012-14 (c) Apiary Ltd.
|
|
48
58
|
## Contributors
|
49
59
|
|
50
60
|
- Jakub Nešetřil
|
51
|
-
- James Charles Russell
|
52
|
-
- Lukáš Linhart
|
61
|
+
- James Charles Russell [botanicus]
|
62
|
+
- Lukáš Linhart [Almad]
|
53
63
|
- Emili Parreño
|
54
64
|
- Peter Grilli [Tu1ly]
|
55
65
|
- Ladislav Prskavec
|
66
|
+
- Honza Javorek
|
67
|
+
- Matthew Rudy Jacobs
|
68
|
+
- Adam Kliment
|
69
|
+
- Jack Repenning
|
70
|
+
- Peter Strapp
|
71
|
+
- Pierre Merlin
|
72
|
+
- František Hába
|
73
|
+
- Benjamin Arthur Lupton
|
56
74
|
|
57
75
|
## License
|
58
76
|
|
data/doc/Apiary.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Apiary
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '';
|
20
|
-
framesUrl = "frames.html#!"
|
20
|
+
framesUrl = "frames.html#!Apiary.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -80,7 +80,7 @@
|
|
80
80
|
|
81
81
|
<dt class="r1 last">Defined in:</dt>
|
82
82
|
<dd class="r1 last">lib/apiary.rb<span class="defines">,<br />
|
83
|
-
lib/apiary/cli.rb,<br /> lib/apiary/version.rb,<br /> lib/apiary/command/help.rb,<br /> lib/apiary/command/fetch.rb,<br /> lib/apiary/command/runner.rb,<br /> lib/apiary/command/
|
83
|
+
lib/apiary/cli.rb,<br /> lib/apiary/version.rb,<br /> lib/apiary/command/help.rb,<br /> lib/apiary/command/fetch.rb,<br /> lib/apiary/command/runner.rb,<br /> lib/apiary/command/preview.rb,<br /> lib/apiary/command/publish.rb,<br /> lib/apiary/command/version.rb</span>
|
84
84
|
</dd>
|
85
85
|
|
86
86
|
</dl>
|
@@ -106,7 +106,7 @@
|
|
106
106
|
<dt id="VERSION-constant" class="">VERSION =
|
107
107
|
|
108
108
|
</dt>
|
109
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0.1.
|
109
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0.1.1</span><span class='tstring_end'>"</span></span></pre></dd>
|
110
110
|
|
111
111
|
</dl>
|
112
112
|
|
@@ -122,9 +122,9 @@
|
|
122
122
|
</div>
|
123
123
|
|
124
124
|
<div id="footer">
|
125
|
-
Generated on
|
125
|
+
Generated on Mon May 12 13:32:43 2014 by
|
126
126
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
127
|
-
0.8.7.
|
127
|
+
0.8.7.4 (ruby-2.0.0).
|
128
128
|
</div>
|
129
129
|
|
130
130
|
</body>
|
data/doc/Apiary/CLI.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Apiary::CLI
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!"
|
20
|
+
framesUrl = "../frames.html#!Apiary/CLI.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -401,7 +401,12 @@
|
|
401
401
|
77
|
402
402
|
78
|
403
403
|
79
|
404
|
-
80
|
404
|
+
80
|
405
|
+
81
|
406
|
+
82
|
407
|
+
83
|
408
|
+
84
|
409
|
+
85</pre>
|
405
410
|
</td>
|
406
411
|
<td>
|
407
412
|
<pre class="code"><span class="info file"># File 'lib/apiary/cli.rb', line 18</span>
|
@@ -434,6 +439,11 @@
|
|
434
439
|
<span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:api_name</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_api_name'>api_name</span>
|
435
440
|
<span class='kw'>end</span>
|
436
441
|
|
442
|
+
<span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>--message COMMIT_MESSAGE</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_commit_message'>commit_message</span><span class='op'>|</span>
|
443
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>OptionParser</span><span class='op'>::</span><span class='const'>InvalidOption</span> <span class='kw'>if</span> <span class='id identifier rubyid_command'>command</span> <span class='op'>!=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>publish</span><span class='tstring_end'>"</span></span>
|
444
|
+
<span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:commit_message</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_commit_message'>commit_message</span>
|
445
|
+
<span class='kw'>end</span>
|
446
|
+
|
437
447
|
<span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>--browser BROWSER</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_browser'>browser</span><span class='op'>|</span>
|
438
448
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>OptionParser</span><span class='op'>::</span><span class='const'>InvalidOption</span> <span class='kw'>if</span> <span class='id identifier rubyid_command'>command</span> <span class='op'>!=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>preview</span><span class='tstring_end'>"</span></span>
|
439
449
|
<span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:browser</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_browser'>browser</span>
|
@@ -509,9 +519,9 @@
|
|
509
519
|
</div>
|
510
520
|
|
511
521
|
<div id="footer">
|
512
|
-
Generated on
|
522
|
+
Generated on Mon May 12 13:32:43 2014 by
|
513
523
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
514
|
-
0.8.7.
|
524
|
+
0.8.7.4 (ruby-2.0.0).
|
515
525
|
</div>
|
516
526
|
|
517
527
|
</body>
|
data/doc/Apiary/Command.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Apiary::Command
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!"
|
20
|
+
framesUrl = "../frames.html#!Apiary/Command.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -80,7 +80,7 @@
|
|
80
80
|
|
81
81
|
<dt class="r1 last">Defined in:</dt>
|
82
82
|
<dd class="r1 last">lib/apiary/command/help.rb<span class="defines">,<br />
|
83
|
-
lib/apiary/command/fetch.rb,<br /> lib/apiary/command/runner.rb,<br /> lib/apiary/command/
|
83
|
+
lib/apiary/command/fetch.rb,<br /> lib/apiary/command/runner.rb,<br /> lib/apiary/command/preview.rb,<br /> lib/apiary/command/publish.rb,<br /> lib/apiary/command/version.rb</span>
|
84
84
|
</dd>
|
85
85
|
|
86
86
|
</dl>
|
@@ -108,9 +108,9 @@
|
|
108
108
|
</div>
|
109
109
|
|
110
110
|
<div id="footer">
|
111
|
-
Generated on
|
111
|
+
Generated on Mon May 12 13:32:43 2014 by
|
112
112
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
113
|
-
0.8.7.
|
113
|
+
0.8.7.4 (ruby-2.0.0).
|
114
114
|
</div>
|
115
115
|
|
116
116
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Apiary::Command::Fetch
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!"
|
20
|
+
framesUrl = "../../frames.html#!Apiary/Command/Fetch.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -643,9 +643,9 @@
|
|
643
643
|
</div>
|
644
644
|
|
645
645
|
<div id="footer">
|
646
|
-
Generated on
|
646
|
+
Generated on Mon May 12 13:32:43 2014 by
|
647
647
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
648
|
-
0.8.7.
|
648
|
+
0.8.7.4 (ruby-2.0.0).
|
649
649
|
</div>
|
650
650
|
|
651
651
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Apiary::Command::Help
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!"
|
20
|
+
framesUrl = "../../frames.html#!Apiary/Command/Help.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -263,7 +263,8 @@
|
|
263
263
|
30
|
264
264
|
31
|
265
265
|
32
|
266
|
-
33
|
266
|
+
33
|
267
|
+
34</pre>
|
267
268
|
</td>
|
268
269
|
<td>
|
269
270
|
<pre class="code"><span class="info file"># File 'lib/apiary/command/help.rb', line 17</span>
|
@@ -278,10 +279,11 @@
|
|
278
279
|
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\tpreview --server Start standalone web server on port 8080</span><span class='tstring_end'>"</span></span>
|
279
280
|
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\tpreview --server --port [PORT] Start standalone web server on specified port</span><span class='tstring_end'>"</span></span>
|
280
281
|
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\tpublish --api-name [API_NAME] Publish apiary.apib on docs.API_NAME.apiary.io</span><span class='tstring_end'>"</span></span>
|
281
|
-
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\
|
282
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\tpublish --api-name [API_NAME] \\</span><span class='tstring_end'>"</span></span>
|
283
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\t --message [COMMIT_MESSAGE] Publish with custom commit message</span><span class='tstring_end'>"</span></span>
|
284
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\tfetch --api-name [API_NAME] Fetch apiary.apib from API_NAME.apiary.io</span><span class='tstring_end'>"</span></span>
|
282
285
|
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span>
|
283
286
|
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\thelp Show this help</span><span class='tstring_end'>"</span></span>
|
284
|
-
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span>
|
285
287
|
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\tversion Show version</span><span class='tstring_end'>"</span></span>
|
286
288
|
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span>
|
287
289
|
<span class='kw'>end</span></pre>
|
@@ -327,9 +329,9 @@
|
|
327
329
|
</div>
|
328
330
|
|
329
331
|
<div id="footer">
|
330
|
-
Generated on
|
332
|
+
Generated on Mon May 12 13:32:43 2014 by
|
331
333
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
332
|
-
0.8.7.
|
334
|
+
0.8.7.4 (ruby-2.0.0).
|
333
335
|
</div>
|
334
336
|
|
335
337
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Apiary::Command::Preview
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!"
|
20
|
+
framesUrl = "../../frames.html#!Apiary/Command/Preview.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -1080,9 +1080,9 @@
|
|
1080
1080
|
</div>
|
1081
1081
|
|
1082
1082
|
<div id="footer">
|
1083
|
-
Generated on
|
1083
|
+
Generated on Mon May 12 13:32:43 2014 by
|
1084
1084
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1085
|
-
0.8.7.
|
1085
|
+
0.8.7.4 (ruby-2.0.0).
|
1086
1086
|
</div>
|
1087
1087
|
|
1088
1088
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Apiary::Command::Publish
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!"
|
20
|
+
framesUrl = "../../frames.html#!Apiary/Command/Publish.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -349,24 +349,26 @@
|
|
349
349
|
25
|
350
350
|
26
|
351
351
|
27
|
352
|
-
28
|
352
|
+
28
|
353
|
+
29</pre>
|
353
354
|
</td>
|
354
355
|
<td>
|
355
356
|
<pre class="code"><span class="info file"># File 'lib/apiary/command/publish.rb', line 15</span>
|
356
357
|
|
357
358
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
358
359
|
<span class='ivar'>@options</span> <span class='op'>=</span> <span class='const'>OpenStruct</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
359
|
-
<span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span>
|
360
|
-
<span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_api_host'>api_host</span>
|
361
|
-
<span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_port'>port</span>
|
362
|
-
<span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_api_name'>api_name</span>
|
363
|
-
<span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_api_key'>api_key</span>
|
364
|
-
<span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_proxy'>proxy</span>
|
365
|
-
<span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_headers'>headers</span>
|
360
|
+
<span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>apiary.apib</span><span class='tstring_end'>"</span></span>
|
361
|
+
<span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_api_host'>api_host</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>api.apiary.io</span><span class='tstring_end'>"</span></span>
|
362
|
+
<span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_port'>port</span> <span class='op'>||=</span> <span class='int'>8080</span>
|
363
|
+
<span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_api_name'>api_name</span> <span class='op'>||=</span> <span class='kw'>false</span>
|
364
|
+
<span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_api_key'>api_key</span> <span class='op'>||=</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>APIARY_API_KEY</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
365
|
+
<span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_proxy'>proxy</span> <span class='op'>||=</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>http_proxy</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
366
|
+
<span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_headers'>headers</span> <span class='op'>||=</span> <span class='lbrace'>{</span>
|
366
367
|
<span class='symbol'>:accept</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>text/html</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
367
368
|
<span class='symbol'>:content_type</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>text/plain</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
368
369
|
<span class='symbol'>:authentication</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Token </span><span class='embexpr_beg'>#{</span><span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_api_key'>api_key</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
369
370
|
<span class='rbrace'>}</span>
|
371
|
+
<span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_commit_message'>commit_message</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Saving blueprint from apiary-client</span><span class='tstring_end'>"</span></span>
|
370
372
|
<span class='kw'>end</span></pre>
|
371
373
|
</td>
|
372
374
|
</tr>
|
@@ -443,12 +445,12 @@
|
|
443
445
|
<pre class="lines">
|
444
446
|
|
445
447
|
|
446
|
-
30
|
447
448
|
31
|
448
|
-
32
|
449
|
+
32
|
450
|
+
33</pre>
|
449
451
|
</td>
|
450
452
|
<td>
|
451
|
-
<pre class="code"><span class="info file"># File 'lib/apiary/command/publish.rb', line
|
453
|
+
<pre class="code"><span class="info file"># File 'lib/apiary/command/publish.rb', line 31</span>
|
452
454
|
|
453
455
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_execute'>execute</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
454
456
|
<span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_publish_on_apiary'>publish_on_apiary</span>
|
@@ -479,12 +481,12 @@
|
|
479
481
|
<pre class="lines">
|
480
482
|
|
481
483
|
|
482
|
-
53
|
483
484
|
54
|
484
|
-
55
|
485
|
+
55
|
486
|
+
56</pre>
|
485
487
|
</td>
|
486
488
|
<td>
|
487
|
-
<pre class="code"><span class="info file"># File 'lib/apiary/command/publish.rb', line
|
489
|
+
<pre class="code"><span class="info file"># File 'lib/apiary/command/publish.rb', line 54</span>
|
488
490
|
|
489
491
|
<span class='kw'>def</span> <span class='id identifier rubyid_path'>path</span>
|
490
492
|
<span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_basename'>basename</span><span class='lparen'>(</span><span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_pwd'>pwd</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'>.apib</span><span class='tstring_end'>"</span></span>
|
@@ -509,7 +511,6 @@
|
|
509
511
|
<pre class="lines">
|
510
512
|
|
511
513
|
|
512
|
-
34
|
513
514
|
35
|
514
515
|
36
|
515
516
|
37
|
@@ -520,10 +521,11 @@
|
|
520
521
|
42
|
521
522
|
43
|
522
523
|
44
|
523
|
-
45
|
524
|
+
45
|
525
|
+
46</pre>
|
524
526
|
</td>
|
525
527
|
<td>
|
526
|
-
<pre class="code"><span class="info file"># File 'lib/apiary/command/publish.rb', line
|
528
|
+
<pre class="code"><span class="info file"># File 'lib/apiary/command/publish.rb', line 35</span>
|
527
529
|
|
528
530
|
<span class='kw'>def</span> <span class='id identifier rubyid_publish_on_apiary'>publish_on_apiary</span>
|
529
531
|
<span class='kw'>unless</span> <span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_api_name'>api_name</span>
|
@@ -557,7 +559,6 @@
|
|
557
559
|
<pre class="lines">
|
558
560
|
|
559
561
|
|
560
|
-
57
|
561
562
|
58
|
562
563
|
59
|
563
564
|
60
|
@@ -576,15 +577,18 @@
|
|
576
577
|
73
|
577
578
|
74
|
578
579
|
75
|
579
|
-
76
|
580
|
+
76
|
581
|
+
77
|
582
|
+
78</pre>
|
580
583
|
</td>
|
581
584
|
<td>
|
582
|
-
<pre class="code"><span class="info file"># File 'lib/apiary/command/publish.rb', line
|
585
|
+
<pre class="code"><span class="info file"># File 'lib/apiary/command/publish.rb', line 58</span>
|
583
586
|
|
584
587
|
<span class='kw'>def</span> <span class='id identifier rubyid_query_apiary'>query_apiary</span><span class='lparen'>(</span><span class='id identifier rubyid_host'>host</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
585
588
|
<span class='id identifier rubyid_url'>url</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>https://</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_host'>host</span><span class='embexpr_end'>}</span><span class='tstring_content'>/blueprint/publish/</span><span class='embexpr_beg'>#{</span><span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_api_name'>api_name</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
586
589
|
<span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
587
|
-
<span class='symbol'>:code</span> <span class='op'>=></span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
590
|
+
<span class='symbol'>:code</span> <span class='op'>=></span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span><span class='comma'>,</span>
|
591
|
+
<span class='symbol'>:messageToSave</span> <span class='op'>=></span> <span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_commit_message'>commit_message</span>
|
588
592
|
<span class='rbrace'>}</span>
|
589
593
|
<span class='const'>RestClient</span><span class='period'>.</span><span class='id identifier rubyid_proxy'>proxy</span> <span class='op'>=</span> <span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_proxy'>proxy</span>
|
590
594
|
|
@@ -621,14 +625,14 @@
|
|
621
625
|
<pre class="lines">
|
622
626
|
|
623
627
|
|
624
|
-
47
|
625
628
|
48
|
626
629
|
49
|
627
630
|
50
|
628
|
-
51
|
631
|
+
51
|
632
|
+
52</pre>
|
629
633
|
</td>
|
630
634
|
<td>
|
631
|
-
<pre class="code"><span class="info file"># File 'lib/apiary/command/publish.rb', line
|
635
|
+
<pre class="code"><span class="info file"># File 'lib/apiary/command/publish.rb', line 48</span>
|
632
636
|
|
633
637
|
<span class='kw'>def</span> <span class='id identifier rubyid_validate_apib_file'>validate_apib_file</span><span class='lparen'>(</span><span class='id identifier rubyid_apib_file'>apib_file</span><span class='rparen'>)</span>
|
634
638
|
<span class='kw'>unless</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span><span class='lparen'>(</span><span class='id identifier rubyid_apib_file'>apib_file</span><span class='rparen'>)</span>
|
@@ -645,9 +649,9 @@
|
|
645
649
|
</div>
|
646
650
|
|
647
651
|
<div id="footer">
|
648
|
-
Generated on
|
652
|
+
Generated on Mon May 12 13:32:43 2014 by
|
649
653
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
650
|
-
0.8.7.
|
654
|
+
0.8.7.4 (ruby-2.0.0).
|
651
655
|
</div>
|
652
656
|
|
653
657
|
</body>
|