metanorma 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/Gemfile.lock +22 -21
- data/README.adoc +1 -1
- data/appveyor.yml +26 -4
- data/lib/metanorma/output/pdf.rb +1 -1
- data/lib/metanorma/version.rb +1 -1
- data/metanorma.gemspec +4 -3
- metadata +24 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d843209061879c8c480450a7b96dcb18316b3a548b3251ecb3e2b6c82de2a83
|
4
|
+
data.tar.gz: fa86d23716b90c30e67ae3a2ff591ce519e6cd93e3026acb60b02864c1d6fea8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 456219d55650a7a12c3f7d70aba2fcdf379ce7545a511c6debc26214e47ce95ccf4234e3efad70d75af6e12999868bf9ddb00681320f039c27a7a2828d835ae7
|
7
|
+
data.tar.gz: '081e968760169e138184897552b0489b2d1496f81b9b2ae23884b1eb81c082218b8a2a325cc7f3cc0358c72bea5a81659da5c8ae3ef9fedbe391faba5fe3f939'
|
data/Gemfile
CHANGED
@@ -4,3 +4,5 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
|
4
4
|
|
5
5
|
# Specify your gem's dependencies in metanorma.gemspec
|
6
6
|
gemspec
|
7
|
+
|
8
|
+
#gem 'metanorma-standoc', :git => 'https://github.com/riboseinc/metanorma-standoc.git', :branch => 'fix-dont-open-binary-files-as-utf8-encoded'
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
metanorma (0.3.
|
4
|
+
metanorma (0.3.6)
|
5
5
|
asciidoctor
|
6
6
|
|
7
7
|
GEM
|
@@ -9,14 +9,14 @@ GEM
|
|
9
9
|
specs:
|
10
10
|
addressable (2.5.2)
|
11
11
|
public_suffix (>= 2.0.2, < 4.0)
|
12
|
-
algoliasearch (1.
|
12
|
+
algoliasearch (1.25.2)
|
13
13
|
httpclient (~> 2.8, >= 2.8.3)
|
14
14
|
json (>= 1.5.1)
|
15
15
|
asciidoctor (1.5.8)
|
16
|
-
asciimath (1.0.
|
16
|
+
asciimath (1.0.7)
|
17
17
|
byebug (10.0.2)
|
18
18
|
cnccs (0.1.3)
|
19
|
-
concurrent-ruby (1.1.
|
19
|
+
concurrent-ruby (1.1.4)
|
20
20
|
diff-lcs (1.3)
|
21
21
|
equivalent-xml (0.6.0)
|
22
22
|
nokogiri (>= 1.4.3)
|
@@ -26,8 +26,8 @@ GEM
|
|
26
26
|
cnccs (~> 0.1.1)
|
27
27
|
gb-agencies (~> 0.0.1)
|
28
28
|
iso-bib-item (~> 0.4.2)
|
29
|
-
html2doc (0.8.
|
30
|
-
asciimath
|
29
|
+
html2doc (0.8.8)
|
30
|
+
asciimath (~> 1.0.7)
|
31
31
|
htmlentities (~> 4.3.4)
|
32
32
|
image_size
|
33
33
|
mime-types
|
@@ -49,11 +49,11 @@ GEM
|
|
49
49
|
isoics (~> 0.1.6)
|
50
50
|
nokogiri (~> 1.8.4)
|
51
51
|
ruby_deep_clone (~> 0.8.0)
|
52
|
-
isobib (0.4.
|
52
|
+
isobib (0.4.3)
|
53
53
|
algoliasearch
|
54
54
|
iecbib (~> 0.2.1)
|
55
55
|
iso-bib-item (~> 0.4.2)
|
56
|
-
isodoc (0.9.
|
56
|
+
isodoc (0.9.13)
|
57
57
|
asciimath
|
58
58
|
html2doc (~> 0.8.6)
|
59
59
|
htmlentities (~> 4.3.4)
|
@@ -69,33 +69,33 @@ GEM
|
|
69
69
|
isoics (0.1.7)
|
70
70
|
json (2.1.0)
|
71
71
|
liquid (4.0.1)
|
72
|
-
metanorma-iso (1.0.
|
72
|
+
metanorma-iso (1.0.14)
|
73
73
|
asciidoctor (~> 1.5.7)
|
74
74
|
iev (~> 0.2.0)
|
75
75
|
isodoc (~> 0.9.8)
|
76
|
-
metanorma-standoc (~> 1.
|
76
|
+
metanorma-standoc (~> 1.1.0)
|
77
77
|
ruby-jing
|
78
|
-
metanorma-standoc (1.0
|
78
|
+
metanorma-standoc (1.1.0)
|
79
79
|
asciidoctor (~> 1.5.7)
|
80
80
|
concurrent-ruby
|
81
81
|
iev (~> 0.2.0)
|
82
82
|
isodoc (~> 0.9.0)
|
83
83
|
relaton (~> 0.3.1)
|
84
84
|
ruby-jing
|
85
|
-
sterile
|
85
|
+
sterile (~> 1.0.14)
|
86
86
|
mime-types (3.2.2)
|
87
87
|
mime-types-data (~> 3.2015)
|
88
88
|
mime-types-data (3.2018.0812)
|
89
89
|
mini_portile2 (2.3.0)
|
90
|
-
mixlib-shellout (2.4.
|
90
|
+
mixlib-shellout (2.4.4)
|
91
91
|
nokogiri (1.8.5)
|
92
92
|
mini_portile2 (~> 2.3.0)
|
93
93
|
optout (0.0.2)
|
94
94
|
public_suffix (3.0.3)
|
95
95
|
rake (12.3.2)
|
96
96
|
rb-fsevent (0.10.3)
|
97
|
-
rb-inotify (0.
|
98
|
-
ffi (
|
97
|
+
rb-inotify (0.10.0)
|
98
|
+
ffi (~> 1.0)
|
99
99
|
relaton (0.3.1)
|
100
100
|
algoliasearch
|
101
101
|
gbbib (~> 0.4.0)
|
@@ -128,7 +128,7 @@ GEM
|
|
128
128
|
optout (>= 0.0.2)
|
129
129
|
ruby-xslt (0.9.10)
|
130
130
|
ruby_deep_clone (0.8.0)
|
131
|
-
sass (3.7.
|
131
|
+
sass (3.7.3)
|
132
132
|
sass-listen (~> 4.0.0)
|
133
133
|
sass-listen (4.0.0)
|
134
134
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
@@ -136,7 +136,7 @@ GEM
|
|
136
136
|
sassc (1.12.1)
|
137
137
|
ffi (~> 1.9.6)
|
138
138
|
sass (>= 3.3.0)
|
139
|
-
sterile (1.0.
|
139
|
+
sterile (1.0.14)
|
140
140
|
nokogiri
|
141
141
|
thread_safe (0.3.6)
|
142
142
|
uuidtools (2.1.5)
|
@@ -145,15 +145,16 @@ PLATFORMS
|
|
145
145
|
ruby
|
146
146
|
|
147
147
|
DEPENDENCIES
|
148
|
-
bundler (~> 1
|
148
|
+
bundler (~> 2.0.1)
|
149
149
|
byebug (~> 10.0)
|
150
150
|
equivalent-xml (~> 0.6)
|
151
|
-
isodoc (= 0.9.
|
151
|
+
isodoc (= 0.9.13)
|
152
152
|
metanorma!
|
153
|
-
metanorma-iso
|
153
|
+
metanorma-iso (~> 1.0.14)
|
154
|
+
metanorma-standoc (~> 1.1.0)
|
154
155
|
rake (~> 12.0)
|
155
156
|
rspec (~> 3.0)
|
156
157
|
rspec-command (~> 1.0.3)
|
157
158
|
|
158
159
|
BUNDLED WITH
|
159
|
-
|
160
|
+
2.0.1
|
data/README.adoc
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
= Metanorma: the standard for standards
|
2
2
|
|
3
3
|
image:https://img.shields.io/gem/v/metanorma.svg["Gem Version", link="https://rubygems.org/gems/metanorma"]
|
4
|
-
image:https://img.shields.io/travis/riboseinc/metanorma/master.svg["Build Status", link="https://travis-ci.
|
4
|
+
image:https://img.shields.io/travis/riboseinc/metanorma/master.svg["Build Status", link="https://travis-ci.com/riboseinc/metanorma"]
|
5
5
|
image:https://codeclimate.com/github/riboseinc/metanorma/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/riboseinc/metanorma"]
|
6
6
|
|
7
7
|
Metanorma is dedicated to harmonizing standard documents
|
data/appveyor.yml
CHANGED
@@ -13,12 +13,34 @@ matrix:
|
|
13
13
|
|
14
14
|
install:
|
15
15
|
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
|
16
|
-
- gem install bundler -v
|
16
|
+
- gem install bundler -v 2.0.1
|
17
17
|
- npm install -g puppeteer
|
18
18
|
- npm install
|
19
|
-
|
19
|
+
# install libxml2 & libxslt
|
20
|
+
- ps: Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
21
|
+
- refreshenv
|
22
|
+
- cinst --x86 xsltproc
|
23
|
+
- set XSLT_PROC=%ChocolateyInstall%\lib\xsltproc\dist
|
24
|
+
# RUBY_DLL_PATH looks broken in ruby23
|
25
|
+
- if "%RUBY_VERSION%" == "23" (
|
26
|
+
XCOPY /Y %XSLT_PROC%\bin\lib*.dll C:\Ruby%RUBY_VERSION%\bin\*
|
27
|
+
) else (
|
28
|
+
XCOPY /Y %XSLT_PROC%\bin\libxml2*.dll %XSLT_PROC%\bin\libxml2.dll* &
|
29
|
+
XCOPY /Y %XSLT_PROC%\bin\libxslt*.dll %XSLT_PROC%\bin\libxslt.dll* &
|
30
|
+
XCOPY /Y %XSLT_PROC%\bin\libexslt*.dll %XSLT_PROC%\bin\libexslt.dll*
|
31
|
+
)
|
32
|
+
- echo @ECHO OFF > %ChocolateyInstall%\bin\xml2-config.bat
|
33
|
+
- echo @ECHO OFF > %ChocolateyInstall%\bin\xslt-config.bat
|
20
34
|
|
21
|
-
|
35
|
+
build_script:
|
36
|
+
# RUBY_DLL_PATH looks broken in ruby23
|
37
|
+
- if NOT "%RUBY_VERSION%" == "23" setx /M RUBY_DLL_PATH "%ChocolateyInstall%\lib\xsltproc\dist\bin;%RUBY_DLL_PATH%"
|
38
|
+
- refreshenv
|
39
|
+
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
|
40
|
+
- set XSLT_PROC=%ChocolateyInstall%\lib\xsltproc\dist
|
41
|
+
- bundle config build.ruby-xslt --with-xml2-include=%XSLT_PROC%\include\libxml2 --with-xslt-include=%XSLT_PROC%\include --with-xml2-lib=%XSLT_PROC%\lib --with-xslt-lib=%XSLT_PROC%\lib
|
42
|
+
- bundle update
|
43
|
+
- bundle install
|
22
44
|
|
23
45
|
before_test:
|
24
46
|
- ruby -v
|
@@ -26,4 +48,4 @@ before_test:
|
|
26
48
|
- bundle -v
|
27
49
|
|
28
50
|
test_script:
|
29
|
-
- bundle exec rake
|
51
|
+
- bundle exec rake
|
data/lib/metanorma/output/pdf.rb
CHANGED
@@ -5,7 +5,7 @@ module Metanorma
|
|
5
5
|
def convert(url_path, output_path)
|
6
6
|
file_url = "file://#{Dir.pwd}/#{url_path}"
|
7
7
|
pdfjs = File.join(File.dirname(__FILE__), '../../../bin/metanorma-pdf.js')
|
8
|
-
ENV['NODE_PATH']
|
8
|
+
ENV['NODE_PATH'] ||= `npm root --quiet -g`.strip
|
9
9
|
system "node #{pdfjs} #{file_url} #{output_path}"
|
10
10
|
#Phantomjs.path
|
11
11
|
#pdfjs = File.join(File.dirname(__FILE__), "../../../bin/rasterize.js")
|
data/lib/metanorma/version.rb
CHANGED
data/metanorma.gemspec
CHANGED
@@ -26,12 +26,13 @@ Gem::Specification.new do |spec|
|
|
26
26
|
|
27
27
|
spec.add_runtime_dependency 'asciidoctor'
|
28
28
|
|
29
|
-
spec.add_development_dependency "bundler", "~> 1
|
29
|
+
spec.add_development_dependency "bundler", "~> 2.0.1"
|
30
30
|
spec.add_development_dependency "rake", "~> 12.0"
|
31
31
|
spec.add_development_dependency "rspec", "~> 3.0"
|
32
32
|
spec.add_development_dependency "byebug", "~> 10.0"
|
33
33
|
spec.add_development_dependency "rspec-command", "~> 1.0.3"
|
34
34
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
35
|
-
spec.add_development_dependency "metanorma-iso"
|
36
|
-
spec.add_development_dependency "
|
35
|
+
spec.add_development_dependency "metanorma-iso", "~> 1.0.14"
|
36
|
+
spec.add_development_dependency "metanorma-standoc", "~> 1.1.0"
|
37
|
+
spec.add_development_dependency "isodoc", "0.9.13"
|
37
38
|
end
|
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.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.0.1
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 2.0.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,30 +112,44 @@ dependencies:
|
|
112
112
|
name: metanorma-iso
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 1.0.14
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 1.0.14
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: metanorma-standoc
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 1.1.0
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 1.1.0
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
140
|
name: isodoc
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
128
142
|
requirements:
|
129
143
|
- - '='
|
130
144
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.9.
|
145
|
+
version: 0.9.13
|
132
146
|
type: :development
|
133
147
|
prerelease: false
|
134
148
|
version_requirements: !ruby/object:Gem::Requirement
|
135
149
|
requirements:
|
136
150
|
- - '='
|
137
151
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0.9.
|
152
|
+
version: 0.9.13
|
139
153
|
description: Library to process any Metanorma standard.
|
140
154
|
email:
|
141
155
|
- open.source@ribose.com
|