raml_doc 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/bin/raml-doc +1 -1
- data/lib/raml_doc.rb +1 -1
- data/lib/raml_doc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 879db6d7dd08d087491f65d4d9855a8a7d677826
|
4
|
+
data.tar.gz: 5898ea73d20f2f3c872b82c0393e52b90c8ac524
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faca86782cc34da12f5aba1e94a90f6482e364c4c942c4e5c107e02df3f85064f68067f3d66aee37c6477cff0f71e498b157249c452a7e820d7dcf3e7dfcdde8
|
7
|
+
data.tar.gz: fd973479d9df966907958eb502674e680e637b267dd650f5448d68dc2204ac0751f9128d7ac9a55f516a084fc1c0e0c106af9bee982a8e0ffc7e5d46c7468259
|
data/Gemfile.lock
CHANGED
data/bin/raml-doc
CHANGED
@@ -12,7 +12,7 @@ options = {
|
|
12
12
|
option_parser = OptionParser.new do |opts|
|
13
13
|
opts.banner = "Usage: ramldoc [options]"
|
14
14
|
|
15
|
-
opts.on("-v", "--version", "
|
15
|
+
opts.on("-v", "--version", "Prints the version") do |value|
|
16
16
|
if value
|
17
17
|
puts "RamlDoc #{RamlDoc::VERSION}"
|
18
18
|
exit 0
|
data/lib/raml_doc.rb
CHANGED
@@ -4,7 +4,7 @@ require "raml_doc/version"
|
|
4
4
|
require "raml_doc/view"
|
5
5
|
|
6
6
|
module RamlDoc
|
7
|
-
def self.generate(file_path, template, format)
|
7
|
+
def self.generate(file_path, template="default", format="html")
|
8
8
|
raml = Raml.parse_file(file_path)
|
9
9
|
view = View.new(raml)
|
10
10
|
view.render template, format
|
data/lib/raml_doc/version.rb
CHANGED