metanorma 0.2.6 → 0.2.7

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
  SHA256:
3
- metadata.gz: 65769038eade4b4613c4a2e8d3afae9937aff96be1de9c2837edf3daaf0b4864
4
- data.tar.gz: c0f88cd2052207059fd87a27fb53ef5ef67d5f34df5f7911e43438a40c853d8f
3
+ metadata.gz: 37f5d6a0dd513734dc755cebf6e716a8ade85fba78d2ccab33d180f360358422
4
+ data.tar.gz: 53555e9a9a25574eea2844fd7e2698890522ca580790045bebea365b6f1c1cf2
5
5
  SHA512:
6
- metadata.gz: 481b22243ec66037111e6e278f5a20fcf838c83de0eb5e4cad5326fe190c8b4ea04d70e3ce2b6f68aca442f7fe36c5e6d49ebcaf537cca86dc2f14fb81498fff
7
- data.tar.gz: b37a1957127ac6b27299d7fddacaf1ad3596834a239993bc83e9be052d8f93faa1e2b823c7251ca1bd39aa73a164851383a5839f8b700a9e5eca0e4ddd0a4710
6
+ metadata.gz: 77749cacaafa260344765c4888261632beaa1b34e94965b20a46e97039f596a97deaeab45fe92862ddce2891c7e565dd9ba19bfcce49fb07817a92a01649d58f
7
+ data.tar.gz: 66691e98af1ff4eebae69370a41985d61f5cbfbcee12b3182b26cf096d23002e680223e9ee9e8bbbbca58d485964997ef6905e06e4aa328c930bc5267eae656e
data/.travis.yml CHANGED
@@ -4,6 +4,7 @@ language: ruby
4
4
  rvm:
5
5
  - 2.5
6
6
  - 2.4
7
+ - 2.3
7
8
  - ruby-head
8
9
  node_js:
9
10
  - "iojs"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- metanorma (0.2.5)
4
+ metanorma (0.2.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.adoc CHANGED
@@ -57,7 +57,7 @@ https://github.com/riboseinc/metanorma-macos-setup
57
57
  This is a one-stop installation script that setups Ruby, Node
58
58
  and all necessary parts for running Metanorma.
59
59
 
60
- === Installation, https://www.ubuntu.com[Ubunto]
60
+ === Installation, https://www.ubuntu.com[Ubuntu]
61
61
 
62
62
  [source,sh]
63
63
  ----
@@ -113,8 +113,8 @@ Help command:
113
113
  ----
114
114
  $ metanorma -h
115
115
  Usage: metanorma [options] <file>
116
- -t, --type TYPE Type of standard to generate: rfc2, rfc3, iso, gb, csd, csand, m3d
117
- -x, --extensions EXT1,EXT2,... Type of extension to generate per type:
116
+ -t, --type TYPE Type of standard to generate: rfc2, rfc3, iso, gb, csd, csand, m3d
117
+ -x, --extensions EXT1,EXT2,... | all Type of extension to generate per type:
118
118
  {
119
119
  :rfc2=>{:xmlrfc=>"v2.xml"},
120
120
  :rfc3=>{:xmlrfc=>"v3.xml"},
@@ -125,7 +125,8 @@ Usage: metanorma [options] <file>
125
125
  :m3d=>{:html=>"html", :doc=>"doc"},
126
126
  :rsd=>{:html=>"html"}
127
127
  }
128
- In addition, xml (outside of rfc2, rfc3) generates IsoDoc XML
128
+ In addition, xml (outside of rfc2, rfc3) generates IsoDoc XML. If the argument is "all" or the option is
129
+ missing, all available extensions are generated.
129
130
  -f, --format FORMAT Format of source file: asciidoc (current default, only format supported)
130
131
  -r, --require LIBRARY Require LIBRARY prior to execution
131
132
  -h, --help Show this message
@@ -16,7 +16,7 @@ module Metanorma
16
16
  end
17
17
 
18
18
  def extract_options(file)
19
- header = file.sub(/\n\n.*$/m, "")
19
+ header = file.sub(/\n\n.*$/m, "\n")
20
20
 
21
21
  /\n:script: (?<script>[^\n]+)\n/ =~ header
22
22
  /\n:body-font: (?<bodyfont>[^\n]+)\n/ =~ header
@@ -1,3 +1,3 @@
1
1
  module Metanorma
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
data/metanorma.gemspec CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  #spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
24
 
25
- spec.required_ruby_version = '>= 2.4.0'
25
+ spec.required_ruby_version = '>= 2.3.0'
26
26
 
27
27
  spec.add_development_dependency "bundler", "~> 1.16"
28
28
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-14 00:00:00.000000000 Z
11
+ date: 2018-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -141,7 +141,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - ">="
143
143
  - !ruby/object:Gem::Version
144
- version: 2.4.0
144
+ version: 2.3.0
145
145
  required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  requirements:
147
147
  - - ">="