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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc012ee4e6a0c7032553609f4354ce5a0a4274ed
4
- data.tar.gz: 07ed2ad378f1c4bd4ff3e64790172956011f8251
3
+ metadata.gz: 879db6d7dd08d087491f65d4d9855a8a7d677826
4
+ data.tar.gz: 5898ea73d20f2f3c872b82c0393e52b90c8ac524
5
5
  SHA512:
6
- metadata.gz: 0ffa2e35a55fc56ae093947a964b2545003ce1101ec8fb3f80257d4b3ef8da3b405b2baca4fc7cf8da9527791ed51596a0c4a75fe9c2f57066332733d01fd6f5
7
- data.tar.gz: d9f3282c09f2862bda6b13626946e4205b33fa56da766e306ef006d66caa6c147e8e5a790080e3818e35275a16408032defeebbe35e41c96666c50df0e485aeb
6
+ metadata.gz: faca86782cc34da12f5aba1e94a90f6482e364c4c942c4e5c107e02df3f85064f68067f3d66aee37c6477cff0f71e498b157249c452a7e820d7dcf3e7dfcdde8
7
+ data.tar.gz: fd973479d9df966907958eb502674e680e637b267dd650f5448d68dc2204ac0751f9128d7ac9a55f516a084fc1c0e0c106af9bee982a8e0ffc7e5d46c7468259
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- raml_doc (0.0.1)
4
+ raml_doc (0.0.2)
5
5
  kramdown (= 1.11.1)
6
6
  raml_ruby (= 0.1.2)
7
7
 
@@ -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", "The source RAML file") do |value|
15
+ opts.on("-v", "--version", "Prints the version") do |value|
16
16
  if value
17
17
  puts "RamlDoc #{RamlDoc::VERSION}"
18
18
  exit 0
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RamlDoc
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raml_doc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins