apiaryio 0.1.1 → 0.2.0

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.
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,112 +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
- Top Level Namespace
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#!top-level-namespace.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</a> &raquo;
35
-
36
-
37
- <span class="title">Top Level Namespace</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>Top Level Namespace
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
- </dl>
82
- <div class="clear"></div>
83
-
84
- <h2>Defined Under Namespace</h2>
85
- <p class="children">
86
-
87
-
88
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="Apiary.html" title="Apiary (module)">Apiary</a></span>
89
-
90
-
91
-
92
-
93
- </p>
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
- </div>
104
-
105
- <div id="footer">
106
- Generated on Mon May 12 13:32:43 2014 by
107
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
- 0.8.7.4 (ruby-2.0.0).
109
- </div>
110
-
111
- </body>
112
- </html>
@@ -1,38 +0,0 @@
1
- # encoding: utf-8
2
- module Apiary
3
- module Command
4
- # Display help
5
- class Help
6
-
7
- def self.execute(options)
8
- banner
9
- commands
10
- end
11
-
12
- def self.banner
13
- puts "\nUsage: apiary command [options]"
14
- puts "Try 'apiary help' for more information."
15
- end
16
-
17
- def self.commands
18
- puts "\nCurrently available apiary commands are:\n\n"
19
- puts "\tpreview Show API documentation in default browser"
20
- puts "\tpreview --browser [chrome|safari|firefox] Show API documentation in specified browser"
21
- puts "\tpreview --output [FILE] Write generated HTML into specified file"
22
- puts "\tpreview --path [PATH] Specify path to blueprint file"
23
- puts "\tpreview --api_host [HOST] Specify apiary host"
24
- puts "\tpreview --server Start standalone web server on port 8080"
25
- puts "\tpreview --server --port [PORT] Start standalone web server on specified port"
26
- puts "\tpublish --api-name [API_NAME] Publish apiary.apib on docs.API_NAME.apiary.io"
27
- puts "\tpublish --api-name [API_NAME] \\"
28
- puts "\t --message [COMMIT_MESSAGE] Publish with custom commit message"
29
- puts "\tfetch --api-name [API_NAME] Fetch apiary.apib from API_NAME.apiary.io"
30
- puts "\n"
31
- puts "\thelp Show this help"
32
- puts "\tversion Show version"
33
- puts "\n"
34
- end
35
-
36
- end
37
- end
38
- end
@@ -1,13 +0,0 @@
1
- # encoding: utf-8
2
- module Apiary
3
- module Command
4
- # Run commands
5
- class Runner
6
-
7
- def self.run(cmd, options)
8
- Apiary::Command.const_get(cmd.to_s.capitalize).send(:execute, options)
9
- end
10
-
11
- end
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- # encoding: utf-8
2
- module Apiary
3
- module Command
4
- # Display version
5
- class Version
6
-
7
- def self.execute(options)
8
- puts Apiary::VERSION
9
- end
10
-
11
- end
12
- end
13
- end