apiaryio 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. data/.gitignore +34 -12
  2. data/.travis.yml +1 -0
  3. data/Rakefile +8 -0
  4. data/apiary.gemspec +5 -2
  5. data/circle.yml +4 -0
  6. data/features/fetch.feature +7 -0
  7. data/features/fixtures/apiary.apib +48 -0
  8. data/features/preview.feature +7 -0
  9. data/features/publish.feature +7 -0
  10. data/features/step_definitions/file_content_step.rb +19 -0
  11. data/features/support/env.rb +7 -0
  12. data/features/support/setup.rb +1 -0
  13. data/features/version.feature +10 -0
  14. data/lib/apiary/cli.rb +37 -74
  15. data/lib/apiary/command/fetch.rb +2 -2
  16. data/lib/apiary/command/preview.rb +16 -5
  17. data/lib/apiary/command/publish.rb +3 -2
  18. data/lib/apiary/version.rb +1 -1
  19. data/spec/cli_spec.rb +1 -1
  20. data/spec/command/fetch_spec.rb +11 -9
  21. data/spec/spec_helper.rb +7 -0
  22. data/spec/support/aruba.rb +11 -0
  23. metadata +108 -52
  24. checksums.yaml +0 -7
  25. data/doc/Apiary.html +0 -131
  26. data/doc/Apiary/CLI.html +0 -528
  27. data/doc/Apiary/Command.html +0 -117
  28. data/doc/Apiary/Command/Fetch.html +0 -652
  29. data/doc/Apiary/Command/Help.html +0 -338
  30. data/doc/Apiary/Command/Preview.html +0 -1089
  31. data/doc/Apiary/Command/Publish.html +0 -658
  32. data/doc/Apiary/Command/Runner.html +0 -200
  33. data/doc/Apiary/Command/Version.html +0 -200
  34. data/doc/_index.html +0 -214
  35. data/doc/class_list.html +0 -54
  36. data/doc/css/common.css +0 -1
  37. data/doc/css/full_list.css +0 -57
  38. data/doc/css/style.css +0 -339
  39. data/doc/file.README.html +0 -169
  40. data/doc/file_list.html +0 -56
  41. data/doc/frames.html +0 -26
  42. data/doc/index.html +0 -169
  43. data/doc/js/app.js +0 -219
  44. data/doc/js/full_list.js +0 -178
  45. data/doc/js/jquery.js +0 -4
  46. data/doc/method_list.html +0 -281
  47. data/doc/top-level-namespace.html +0 -112
  48. data/lib/apiary/command/help.rb +0 -38
  49. data/lib/apiary/command/runner.rb +0 -13
  50. data/lib/apiary/command/version.rb +0 -13
@@ -1,200 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Class: Apiary::Command::Runner
8
-
9
- &mdash; Documentation by YARD 0.8.7.4
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '../../';
20
- framesUrl = "../../frames.html#!Apiary/Command/Runner.html";
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="../../_index.html">Index (R)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../../Apiary.html" title="Apiary (module)">Apiary</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Command.html" title="Apiary::Command (module)">Command</a></span></span>
36
- &raquo;
37
- <span class="title">Runner</span>
38
-
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
- </div>
42
-
43
- <div id="search">
44
-
45
- <a class="full_list_link" id="class_list_link"
46
- href="../../class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="../../method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="../../file_list.html">
57
- File List
58
- </a>
59
-
60
- </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Class: Apiary::Command::Runner
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
- <dt class="r1">Inherits:</dt>
75
- <dd class="r1">
76
- <span class="inheritName">Object</span>
77
-
78
- <ul class="fullTree">
79
- <li>Object</li>
80
-
81
- <li class="next">Apiary::Command::Runner</li>
82
-
83
- </ul>
84
- <a href="#" class="inheritanceTree">show all</a>
85
-
86
- </dd>
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
- <dt class="r2 last">Defined in:</dt>
97
- <dd class="r2 last">lib/apiary/command/runner.rb</dd>
98
-
99
- </dl>
100
- <div class="clear"></div>
101
-
102
- <h2>Overview</h2><div class="docstring">
103
- <div class="discussion">
104
-
105
- <p>Run commands</p>
106
-
107
-
108
- </div>
109
- </div>
110
- <div class="tags">
111
-
112
-
113
- </div>
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
- <h2>
122
- Class Method Summary
123
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
124
- </h2>
125
-
126
- <ul class="summary">
127
-
128
- <li class="public ">
129
- <span class="summary_signature">
130
-
131
- <a href="#run-class_method" title="run (class method)">+ (Object) <strong>run</strong>(cmd, options) </a>
132
-
133
-
134
-
135
- </span>
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
- <span class="summary_desc"><div class='inline'></div></span>
146
-
147
- </li>
148
-
149
-
150
- </ul>
151
-
152
-
153
-
154
-
155
- <div id="class_method_details" class="method_details_list">
156
- <h2>Class Method Details</h2>
157
-
158
-
159
- <div class="method_details first">
160
- <h3 class="signature first" id="run-class_method">
161
-
162
- + (<tt>Object</tt>) <strong>run</strong>(cmd, options)
163
-
164
-
165
-
166
-
167
-
168
- </h3><table class="source_code">
169
- <tr>
170
- <td>
171
- <pre class="lines">
172
-
173
-
174
- 7
175
- 8
176
- 9</pre>
177
- </td>
178
- <td>
179
- <pre class="code"><span class="info file"># File 'lib/apiary/command/runner.rb', line 7</span>
180
-
181
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd'>cmd</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
182
- <span class='const'>Apiary</span><span class='op'>::</span><span class='const'>Command</span><span class='period'>.</span><span class='id identifier rubyid_const_get'>const_get</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd'>cmd</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_capitalize'>capitalize</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:execute</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
183
- <span class='kw'>end</span></pre>
184
- </td>
185
- </tr>
186
- </table>
187
- </div>
188
-
189
- </div>
190
-
191
- </div>
192
-
193
- <div id="footer">
194
- Generated on Mon May 12 13:32:43 2014 by
195
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
196
- 0.8.7.4 (ruby-2.0.0).
197
- </div>
198
-
199
- </body>
200
- </html>
@@ -1,200 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Class: Apiary::Command::Version
8
-
9
- &mdash; Documentation by YARD 0.8.7.4
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '../../';
20
- framesUrl = "../../frames.html#!Apiary/Command/Version.html";
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="../../_index.html">Index (V)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../../Apiary.html" title="Apiary (module)">Apiary</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Command.html" title="Apiary::Command (module)">Command</a></span></span>
36
- &raquo;
37
- <span class="title">Version</span>
38
-
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
- </div>
42
-
43
- <div id="search">
44
-
45
- <a class="full_list_link" id="class_list_link"
46
- href="../../class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="../../method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="../../file_list.html">
57
- File List
58
- </a>
59
-
60
- </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Class: Apiary::Command::Version
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
- <dt class="r1">Inherits:</dt>
75
- <dd class="r1">
76
- <span class="inheritName">Object</span>
77
-
78
- <ul class="fullTree">
79
- <li>Object</li>
80
-
81
- <li class="next">Apiary::Command::Version</li>
82
-
83
- </ul>
84
- <a href="#" class="inheritanceTree">show all</a>
85
-
86
- </dd>
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
- <dt class="r2 last">Defined in:</dt>
97
- <dd class="r2 last">lib/apiary/command/version.rb</dd>
98
-
99
- </dl>
100
- <div class="clear"></div>
101
-
102
- <h2>Overview</h2><div class="docstring">
103
- <div class="discussion">
104
-
105
- <p>Display version</p>
106
-
107
-
108
- </div>
109
- </div>
110
- <div class="tags">
111
-
112
-
113
- </div>
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
- <h2>
122
- Class Method Summary
123
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
124
- </h2>
125
-
126
- <ul class="summary">
127
-
128
- <li class="public ">
129
- <span class="summary_signature">
130
-
131
- <a href="#execute-class_method" title="execute (class method)">+ (Object) <strong>execute</strong>(options) </a>
132
-
133
-
134
-
135
- </span>
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
- <span class="summary_desc"><div class='inline'></div></span>
146
-
147
- </li>
148
-
149
-
150
- </ul>
151
-
152
-
153
-
154
-
155
- <div id="class_method_details" class="method_details_list">
156
- <h2>Class Method Details</h2>
157
-
158
-
159
- <div class="method_details first">
160
- <h3 class="signature first" id="execute-class_method">
161
-
162
- + (<tt>Object</tt>) <strong>execute</strong>(options)
163
-
164
-
165
-
166
-
167
-
168
- </h3><table class="source_code">
169
- <tr>
170
- <td>
171
- <pre class="lines">
172
-
173
-
174
- 7
175
- 8
176
- 9</pre>
177
- </td>
178
- <td>
179
- <pre class="code"><span class="info file"># File 'lib/apiary/command/version.rb', line 7</span>
180
-
181
- <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_options'>options</span><span class='rparen'>)</span>
182
- <span class='id identifier rubyid_puts'>puts</span> <span class='const'>Apiary</span><span class='op'>::</span><span class='const'>VERSION</span>
183
- <span class='kw'>end</span></pre>
184
- </td>
185
- </tr>
186
- </table>
187
- </div>
188
-
189
- </div>
190
-
191
- </div>
192
-
193
- <div id="footer">
194
- Generated on Mon May 12 13:32:43 2014 by
195
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
196
- 0.8.7.4 (ruby-2.0.0).
197
- </div>
198
-
199
- </body>
200
- </html>
data/doc/_index.html DELETED
@@ -1,214 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Documentation by YARD 0.8.7.4
8
-
9
- </title>
10
-
11
- <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
12
-
13
- <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
14
-
15
- <script type="text/javascript" charset="utf-8">
16
- hasFrames = window.top.frames.main ? true : false;
17
- relpath = '';
18
- framesUrl = "frames.html#!_index.html";
19
- </script>
20
-
21
-
22
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
23
-
24
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
25
-
26
-
27
- </head>
28
- <body>
29
- <div id="header">
30
- <div id="menu">
31
-
32
-
33
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
34
- </div>
35
-
36
- <div id="search">
37
-
38
- <a class="full_list_link" id="class_list_link"
39
- href="class_list.html">
40
- Class List
41
- </a>
42
-
43
- <a class="full_list_link" id="method_list_link"
44
- href="method_list.html">
45
- Method List
46
- </a>
47
-
48
- <a class="full_list_link" id="file_list_link"
49
- href="file_list.html">
50
- File List
51
- </a>
52
-
53
- </div>
54
- <div class="clear"></div>
55
- </div>
56
-
57
- <iframe id="search_frame"></iframe>
58
-
59
- <div id="content"><h1 class="noborder title">Documentation by YARD 0.8.7.4</h1>
60
- <div id="listing">
61
- <h1 class="alphaindex">Alphabetic Index</h1>
62
-
63
- <h2>File Listing</h2>
64
- <ul id="files" class="index_inline_list">
65
-
66
-
67
- <li class="r1"><a href="index.html" title="README">README</a></li>
68
-
69
-
70
- </ul>
71
-
72
- <div class="clear"></div>
73
- <h2>Namespace Listing A-Z</h2>
74
-
75
-
76
-
77
-
78
- <table>
79
- <tr>
80
- <td valign='top' width="33%">
81
-
82
-
83
- <ul id="alpha_A" class="alpha">
84
- <li class="letter">A</li>
85
- <ul>
86
-
87
- <li>
88
- <span class='object_link'><a href="Apiary.html" title="Apiary (module)">Apiary</a></span>
89
-
90
- </li>
91
-
92
- </ul>
93
- </ul>
94
-
95
-
96
- <ul id="alpha_C" class="alpha">
97
- <li class="letter">C</li>
98
- <ul>
99
-
100
- <li>
101
- <span class='object_link'><a href="Apiary/CLI.html" title="Apiary::CLI (class)">CLI</a></span>
102
-
103
- <small>(Apiary)</small>
104
-
105
- </li>
106
-
107
- <li>
108
- <span class='object_link'><a href="Apiary/Command.html" title="Apiary::Command (module)">Command</a></span>
109
-
110
- <small>(Apiary)</small>
111
-
112
- </li>
113
-
114
- </ul>
115
- </ul>
116
-
117
-
118
- <ul id="alpha_F" class="alpha">
119
- <li class="letter">F</li>
120
- <ul>
121
-
122
- <li>
123
- <span class='object_link'><a href="Apiary/Command/Fetch.html" title="Apiary::Command::Fetch (class)">Fetch</a></span>
124
-
125
- <small>(Apiary::Command)</small>
126
-
127
- </li>
128
-
129
- </ul>
130
- </ul>
131
-
132
-
133
- <ul id="alpha_H" class="alpha">
134
- <li class="letter">H</li>
135
- <ul>
136
-
137
- <li>
138
- <span class='object_link'><a href="Apiary/Command/Help.html" title="Apiary::Command::Help (class)">Help</a></span>
139
-
140
- <small>(Apiary::Command)</small>
141
-
142
- </li>
143
-
144
- </ul>
145
- </ul>
146
-
147
-
148
- <ul id="alpha_P" class="alpha">
149
- <li class="letter">P</li>
150
- <ul>
151
-
152
- <li>
153
- <span class='object_link'><a href="Apiary/Command/Preview.html" title="Apiary::Command::Preview (class)">Preview</a></span>
154
-
155
- <small>(Apiary::Command)</small>
156
-
157
- </li>
158
-
159
- <li>
160
- <span class='object_link'><a href="Apiary/Command/Publish.html" title="Apiary::Command::Publish (class)">Publish</a></span>
161
-
162
- <small>(Apiary::Command)</small>
163
-
164
- </li>
165
-
166
- </ul>
167
- </ul>
168
-
169
-
170
- <ul id="alpha_R" class="alpha">
171
- <li class="letter">R</li>
172
- <ul>
173
-
174
- <li>
175
- <span class='object_link'><a href="Apiary/Command/Runner.html" title="Apiary::Command::Runner (class)">Runner</a></span>
176
-
177
- <small>(Apiary::Command)</small>
178
-
179
- </li>
180
-
181
- </ul>
182
- </ul>
183
-
184
-
185
- <ul id="alpha_V" class="alpha">
186
- <li class="letter">V</li>
187
- <ul>
188
-
189
- <li>
190
- <span class='object_link'><a href="Apiary/Command/Version.html" title="Apiary::Command::Version (class)">Version</a></span>
191
-
192
- <small>(Apiary::Command)</small>
193
-
194
- </li>
195
-
196
- </ul>
197
- </ul>
198
-
199
- </td>
200
- </tr>
201
- </table>
202
-
203
- </div>
204
-
205
- </div>
206
-
207
- <div id="footer">
208
- Generated on Mon May 12 13:32:43 2014 by
209
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
210
- 0.8.7.4 (ruby-2.0.0).
211
- </div>
212
-
213
- </body>
214
- </html>