adiwg-mdtranslator 0.8.5 → 0.8.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/mdtranslator +1 -1
- data/lib/adiwg/mdtranslator/version.rb +2 -1
- data/mdtranslator.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: 33d88910886287dc0c89238e8beba62d7871315f
|
4
|
+
data.tar.gz: 8c50527b56e4bce5d5b130f1f767ab3e30d18877
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b4d1d298a11e19eb17e928f1e4b0cae68e28f8792117f6f01a1db7fbcd1e06a7a6c9e8bb6c9366e8102747f6669184a76f170431b9d5d53c32dfb48d060e323
|
7
|
+
data.tar.gz: f6dbbfe2083d67f9963c61f87cead13a9b6b35ae877c476631ae8cd82f03c6d93d7e6e3cf4e6a1cd0dd246ef8990a3044daabd7c2d2845e61cb0f5fdcf7989d9
|
data/bin/mdtranslator
CHANGED
@@ -31,7 +31,7 @@ class Mdtranslator < Thor
|
|
31
31
|
method_option :validate, :aliases => '-v', :desc => 'Specify level of validation to be performed', :enum => %w{none normal strict}, :default => 'normal'
|
32
32
|
method_option :showAllTags, :aliases => '-s', :desc => 'Include tags for unused attributes', :type => :boolean, :default => false
|
33
33
|
method_option :messages, :aliases => '-m', :desc => 'On error return messages as formatted text or json object', :enum => %w{json text}, :default => 'text'
|
34
|
-
|
34
|
+
method_option :returnObject, :aliases => '-o', :desc => 'Return full JSON object generated by translator', :type => :boolean, :default => false
|
35
35
|
|
36
36
|
# accept command and options
|
37
37
|
def translate(file)
|
@@ -13,11 +13,12 @@
|
|
13
13
|
# ... test were added to handle a missing metadata > metadataInfo
|
14
14
|
# ... block in the input.
|
15
15
|
# 0.8.5 2014-10-11 added methods to pass content of readme files
|
16
|
+
# 0.8.6 2014-10-15 added cli option to return entire content mdTranslator response
|
16
17
|
|
17
18
|
module ADIWG
|
18
19
|
module Mdtranslator
|
19
20
|
# current mdtranslator version
|
20
|
-
VERSION = "0.8.
|
21
|
+
VERSION = "0.8.6"
|
21
22
|
end
|
22
23
|
end
|
23
24
|
|
data/mdtranslator.rb
CHANGED
@@ -35,7 +35,7 @@ class Mdtranslator < Thor
|
|
35
35
|
method_option :validate, :aliases => '-v', :desc => 'Specify level of validation to be performed', :enum => %w{none normal strict}, :default => 'normal'
|
36
36
|
method_option :showAllTags, :aliases => '-s', :desc => 'Include tags for unused attributes', :type => :boolean, :default => false
|
37
37
|
method_option :messages, :aliases => '-m', :desc => 'On error return messages as formatted text or json object', :enum => %w{json text}, :default => 'text'
|
38
|
-
|
38
|
+
method_option :returnObject, :aliases => '-o', :desc => 'Return full JSON object generated by translator', :type => :boolean, :default => false
|
39
39
|
|
40
40
|
# accept command and options
|
41
41
|
def translate(file)
|