metanorma-cli 1.3.7.3 → 1.3.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,7 @@ require "metanorma/cli/compiler"
4
4
  require "metanorma/cli/generator"
5
5
  require "metanorma/cli/git_template"
6
6
  require "metanorma/cli/commands/template_repo"
7
+ require "metanorma"
7
8
 
8
9
  module Metanorma
9
10
  module Cli
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Cli
3
- VERSION = "1.3.7.3"
3
+ VERSION = "1.3.8"
4
4
  end
5
5
  end
@@ -14,28 +14,26 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://www.metanorma.com"
15
15
  spec.license = "BSD-2-Clause"
16
16
 
17
- =begin
18
- spec.files = Dir['**/*'].reject { |f| f.match(%r{^(test|spec|features|templates|.git)/|.(gem|gif|png|jpg|jpeg|xml|html|doc|pdf|dtd|ent)$}) }
19
- spec.files += Dir.glob("templates/base/**", File::FNM_DOTMATCH).reject { |f| File.directory?(f) }
20
- =end
21
-
22
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
23
- f.match(%r{^(test|spec|features)/})
24
- end
25
-
26
- spec.extra_rdoc_files = %w[README.adoc LICENSE]
17
+ spec.extra_rdoc_files = %w[README.adoc LICENSE CODE_OF_CONDUCT.md]
18
+ spec.files = Dir['{lib,bin,exe,docs}/**/*'] \
19
+ + Dir['templates/base/**/*'] \
20
+ + %w[Gemfile Rakefile i18n.yaml metanorma-cli.gemspec]
27
21
  spec.bindir = "exe"
28
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+
29
24
  spec.require_paths = ["lib"]
30
25
  spec.required_ruby_version = '>= 2.4.0'
31
26
 
32
- spec.add_development_dependency "pry"
27
+ #spec.add_development_dependency "pry"
33
28
  spec.add_development_dependency "rake", "~> 12.0"
34
29
  spec.add_development_dependency "rspec", "~> 3.0"
35
30
  spec.add_development_dependency "byebug", "~> 10.0"
36
31
  spec.add_development_dependency "rspec-command", "~> 1.0.3"
37
32
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
38
33
  spec.add_development_dependency "rspec-core", "~> 3.4"
34
+ spec.add_development_dependency "vcr", "~> 5.0.0"
35
+ spec.add_development_dependency "webmock"
36
+ spec.add_development_dependency "simplecov", "~> 0.15"
39
37
 
40
38
  spec.add_runtime_dependency "thor", "~> 1.0"
41
39
  spec.add_runtime_dependency "metanorma-iso", "~> 1.5.0"
@@ -46,17 +44,16 @@ Gem::Specification.new do |spec|
46
44
  spec.add_runtime_dependency 'metanorma-csa', "~> 1.6.0"
47
45
  #spec.add_runtime_dependency 'metanorma-ribose', "~> 1.6.0"
48
46
  spec.add_runtime_dependency 'metanorma-m3aawg', "~> 1.5.0"
49
- spec.add_runtime_dependency 'metanorma-generic', "~> 1.6.0"
50
- spec.add_runtime_dependency 'metanorma-standoc', "~> 1.5.0"
47
+ spec.add_runtime_dependency 'metanorma-generic', "~> 1.7.0"
48
+ spec.add_runtime_dependency 'metanorma-standoc', "~> 1.6.0"
51
49
  #spec.add_runtime_dependency 'metanorma-mpfa', "~> 0.5.0"
52
50
  spec.add_runtime_dependency 'metanorma-un', "~> 0.5.0"
53
51
  spec.add_runtime_dependency 'metanorma-ogc', "~> 1.2.0"
54
52
  spec.add_runtime_dependency 'metanorma-nist', "~> 1.2.0"
55
53
  spec.add_runtime_dependency 'metanorma-itu', "~> 1.2.0"
56
54
  spec.add_runtime_dependency 'metanorma-iho', "~> 0.2.0"
57
- spec.add_runtime_dependency 'isodoc', "~> 1.2.0"
58
- spec.add_runtime_dependency 'metanorma', "~> 1.1.0"
59
- #spec.add_runtime_dependency 'nokogiri', ">= 1"
55
+ spec.add_runtime_dependency 'isodoc', ">= 1.2.0"
56
+ spec.add_runtime_dependency 'metanorma', "~> 1.2.0"
60
57
  spec.add_runtime_dependency "git", "~> 1.5"
61
58
  spec.add_runtime_dependency "relaton-cli", ">= 0.8.2"
62
59
  spec.add_runtime_dependency "fontist", "~> 1.3.0"
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.7.3
4
+ version: 1.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-12 00:00:00.000000000 Z
11
+ date: 2020-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: pry
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rake
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +94,48 @@ dependencies:
108
94
  - - "~>"
109
95
  - !ruby/object:Gem::Version
110
96
  version: '3.4'
97
+ - !ruby/object:Gem::Dependency
98
+ name: vcr
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 5.0.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 5.0.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: webmock
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: simplecov
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.15'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.15'
111
139
  - !ruby/object:Gem::Dependency
112
140
  name: thor
113
141
  requirement: !ruby/object:Gem::Requirement
@@ -226,28 +254,28 @@ dependencies:
226
254
  requirements:
227
255
  - - "~>"
228
256
  - !ruby/object:Gem::Version
229
- version: 1.6.0
257
+ version: 1.7.0
230
258
  type: :runtime
231
259
  prerelease: false
232
260
  version_requirements: !ruby/object:Gem::Requirement
233
261
  requirements:
234
262
  - - "~>"
235
263
  - !ruby/object:Gem::Version
236
- version: 1.6.0
264
+ version: 1.7.0
237
265
  - !ruby/object:Gem::Dependency
238
266
  name: metanorma-standoc
239
267
  requirement: !ruby/object:Gem::Requirement
240
268
  requirements:
241
269
  - - "~>"
242
270
  - !ruby/object:Gem::Version
243
- version: 1.5.0
271
+ version: 1.6.0
244
272
  type: :runtime
245
273
  prerelease: false
246
274
  version_requirements: !ruby/object:Gem::Requirement
247
275
  requirements:
248
276
  - - "~>"
249
277
  - !ruby/object:Gem::Version
250
- version: 1.5.0
278
+ version: 1.6.0
251
279
  - !ruby/object:Gem::Dependency
252
280
  name: metanorma-un
253
281
  requirement: !ruby/object:Gem::Requirement
@@ -322,14 +350,14 @@ dependencies:
322
350
  name: isodoc
323
351
  requirement: !ruby/object:Gem::Requirement
324
352
  requirements:
325
- - - "~>"
353
+ - - ">="
326
354
  - !ruby/object:Gem::Version
327
355
  version: 1.2.0
328
356
  type: :runtime
329
357
  prerelease: false
330
358
  version_requirements: !ruby/object:Gem::Requirement
331
359
  requirements:
332
- - - "~>"
360
+ - - ">="
333
361
  - !ruby/object:Gem::Version
334
362
  version: 1.2.0
335
363
  - !ruby/object:Gem::Dependency
@@ -338,14 +366,14 @@ dependencies:
338
366
  requirements:
339
367
  - - "~>"
340
368
  - !ruby/object:Gem::Version
341
- version: 1.1.0
369
+ version: 1.2.0
342
370
  type: :runtime
343
371
  prerelease: false
344
372
  version_requirements: !ruby/object:Gem::Requirement
345
373
  requirements:
346
374
  - - "~>"
347
375
  - !ruby/object:Gem::Version
348
- version: 1.1.0
376
+ version: 1.2.0
349
377
  - !ruby/object:Gem::Dependency
350
378
  name: git
351
379
  requirement: !ruby/object:Gem::Requirement
@@ -392,21 +420,22 @@ description: Executable to process any Metanorma standard.
392
420
  email:
393
421
  - open.source@ribose.com
394
422
  executables:
423
+ - index.html
424
+ - index.xml
395
425
  - metanorma
396
426
  - metanorma-manifest
427
+ - metanorma.old
428
+ - rfc2629-other.ent
429
+ - rfc2629-xhtml.ent
430
+ - rfc2629.dtd
431
+ - rfc6350.adoc
432
+ - rfc6350.xml
397
433
  extensions: []
398
434
  extra_rdoc_files:
399
435
  - README.adoc
400
436
  - LICENSE
437
+ - CODE_OF_CONDUCT.md
401
438
  files:
402
- - ".github/workflows/dependent_repos.env"
403
- - ".github/workflows/macos.yml"
404
- - ".github/workflows/ubuntu.yml"
405
- - ".github/workflows/windows.yml"
406
- - ".gitignore"
407
- - ".hound.yml"
408
- - ".rspec"
409
- - ".rubocop.yml"
410
439
  - CODE_OF_CONDUCT.md
411
440
  - Gemfile
412
441
  - LICENSE
@@ -418,8 +447,16 @@ files:
418
447
  - docs/installation.adoc
419
448
  - docs/navigation.adoc
420
449
  - docs/usage.adoc
450
+ - exe/index.html
451
+ - exe/index.xml
421
452
  - exe/metanorma
422
453
  - exe/metanorma-manifest
454
+ - exe/metanorma.old
455
+ - exe/rfc2629-other.ent
456
+ - exe/rfc2629-xhtml.ent
457
+ - exe/rfc2629.dtd
458
+ - exe/rfc6350.adoc
459
+ - exe/rfc6350.xml
423
460
  - i18n.yaml
424
461
  - lib/metanorma-cli.rb
425
462
  - lib/metanorma/cli.rb
@@ -434,12 +471,6 @@ files:
434
471
  - lib/metanorma/cli/ui.rb
435
472
  - lib/metanorma/cli/version.rb
436
473
  - metanorma-cli.gemspec
437
- - templates/base/.github/workflows/docker.yml
438
- - templates/base/.github/workflows/macos.yml
439
- - templates/base/.github/workflows/ubuntu.yml
440
- - templates/base/.github/workflows/windows.yml
441
- - templates/base/.gitignore
442
- - templates/base/.gitlab-ci.yml
443
474
  - templates/base/Gemfile
444
475
  - templates/base/Makefile
445
476
  - templates/base/Makefile.win
@@ -448,7 +479,7 @@ homepage: https://www.metanorma.com
448
479
  licenses:
449
480
  - BSD-2-Clause
450
481
  metadata: {}
451
- post_install_message:
482
+ post_install_message:
452
483
  rdoc_options: []
453
484
  require_paths:
454
485
  - lib
@@ -464,7 +495,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
464
495
  version: '0'
465
496
  requirements: []
466
497
  rubygems_version: 3.0.3
467
- signing_key:
498
+ signing_key:
468
499
  specification_version: 4
469
500
  summary: Metanorma is the standard of standards; the metanorma gem allows you to create
470
501
  any standard document type supported by Metanorma.
@@ -1,3 +0,0 @@
1
- ORGANISATION=metanorma
2
- DEPENDENT_REPOS="metanorma-docker metanorma.com packed-mn chocolatey-metanorma homebrew-metanorma metanorma-snap"
3
- TEMPLATE_REPOS="mn-templates-nist mn-templates-ietf mn-templates-ogc mn-templates-iso mn-templates-csd mn-templates-itu mn-templates-iec"
@@ -1,38 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- name: macos
4
-
5
- on:
6
- push:
7
- branches: [ master ]
8
- pull_request:
9
- paths-ignore:
10
- - .github/workflows/ubuntu.yml
11
- - .github/workflows/windows.yml
12
-
13
- jobs:
14
- test-macos:
15
- name: Test on Ruby ${{ matrix.ruby }} macOS
16
- runs-on: macos-latest
17
- continue-on-error: ${{ matrix.experimental }}
18
- strategy:
19
- fail-fast: false
20
- matrix:
21
- ruby: [ '2.6', '2.5', '2.4' ]
22
- experimental: [false]
23
- include:
24
- - ruby: '2.7'
25
- experimental: true
26
- steps:
27
- - uses: actions/checkout@master
28
- - name: Use Ruby
29
- uses: actions/setup-ruby@v1
30
- with:
31
- ruby-version: ${{ matrix.ruby }}
32
- - name: Update gems
33
- run: |
34
- sudo gem install bundler --force
35
- bundle install --jobs 4 --retry 3
36
- - name: Run specs
37
- run: |
38
- bundle exec rake
@@ -1,72 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- name: ubuntu
4
-
5
- on:
6
- push:
7
- branches: [ master ]
8
- tags:
9
- - '*'
10
- pull_request:
11
- paths-ignore:
12
- - .github/workflows/macos.yml
13
- - .github/workflows/windows.yml
14
-
15
- jobs:
16
- test-linux:
17
- name: Test on Ruby ${{ matrix.ruby }} Ubuntu
18
- runs-on: ubuntu-latest
19
- continue-on-error: ${{ matrix.experimental }}
20
- strategy:
21
- fail-fast: false
22
- matrix:
23
- ruby: [ '2.6', '2.5', '2.4' ]
24
- experimental: [false]
25
- include:
26
- - ruby: '2.7'
27
- experimental: true
28
- steps:
29
- - uses: actions/checkout@master
30
- - name: Use Ruby
31
- uses: actions/setup-ruby@v1
32
- with:
33
- ruby-version: ${{ matrix.ruby }}
34
- - name: Update gems
35
- run: |
36
- gem install bundler
37
- bundle install --jobs 4 --retry 3
38
- - name: Run specs
39
- run: |
40
- bundle exec rake
41
- - name: Trigger repositories
42
- if: matrix.ruby == '2.6'
43
- env:
44
- GH_USERNAME: metanorma-ci
45
- GH_ACCESS_TOKEN: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
46
- run: |
47
- curl -LO --retry 3 https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/trigger-gh-actions.sh
48
- [[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env
49
- CLIENT_PAYLOAD=$(cat <<EOF
50
- "{ "ref": "${GITHUB_REF}", "repo": "${GITHUB_REPOSITORY}" }"
51
- EOF
52
- )
53
- for repo in $TEMPLATE_REPOS" $SAMPLES_REPOS"
54
- do
55
- sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY "$CLIENT_PAYLOAD"
56
- done
57
- - name: Trigger release repositories
58
- if: (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')) && matrix.ruby == '2.6'
59
- env:
60
- GH_USERNAME: metanorma-ci
61
- GH_ACCESS_TOKEN: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
62
- run: |
63
- curl -LO --retry 3 https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/trigger-gh-actions.sh
64
- [[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env
65
- CLIENT_PAYLOAD=$(cat <<EOF
66
- "{ "ref": "${GITHUB_REF}", "repo": "${GITHUB_REPOSITORY}" }"
67
- EOF
68
- )
69
- for repo in $DEPENDENT_REPOS
70
- do
71
- sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY "$CLIENT_PAYLOAD"
72
- done
@@ -1,40 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- name: windows
4
-
5
- on:
6
- push:
7
- branches: [ master ]
8
- pull_request:
9
- paths-ignore:
10
- - .github/workflows/macos.yml
11
- - .github/workflows/ubuntu.yml
12
-
13
- jobs:
14
- test-windows:
15
- name: Test on Ruby ${{ matrix.ruby }} Windows
16
- runs-on: windows-latest
17
- continue-on-error: ${{ matrix.experimental }}
18
- strategy:
19
- fail-fast: false
20
- matrix:
21
- ruby: [ '2.6', '2.5', '2.4' ]
22
- experimental: [false]
23
- include:
24
- - ruby: '2.7'
25
- experimental: true
26
- steps:
27
- - uses: actions/checkout@master
28
- - name: Use Ruby
29
- uses: actions/setup-ruby@v1
30
- with:
31
- ruby-version: ${{ matrix.ruby }}
32
- - name: Update gems
33
- shell: pwsh
34
- run: |
35
- gem install bundler
36
- bundle config --local path vendor/bundle
37
- bundle install --jobs 4 --retry 3
38
- - name: Run specs
39
- run: |
40
- bundle exec rake