metanorma-plugin-datastruct 0.1.4 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +3 -30
- data/.github/workflows/release.yml +24 -0
- data/.hound.yml +5 -0
- data/.rubocop.yml +10 -0
- data/lib/liquid/custom_blocks/with_yaml_nested_context.rb +3 -3
- data/lib/liquid/custom_filters/replace_regex.rb +8 -0
- data/lib/metanorma/plugin/datastruct/base_structured_text_preprocessor.rb +1 -0
- data/lib/metanorma/plugin/datastruct/version.rb +1 -1
- data/lib/metanorma/plugin/datastruct/yaml2_text_preprocessor.rb +3 -3
- data/metanorma-plugin-datastruct.gemspec +3 -3
- metadata +28 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2df7a54019a9c960234097bdf347213643900712c88c38237e45e8188aa1ab4
|
4
|
+
data.tar.gz: ac5d3580256a1f059354faa6d53cfa32b0e7a14ea573e2a74f58582c69149a91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cc9a6f6ea77e72beed6253bb260b3edb01eab07568148e6482f8777c49636806cb22ed0d7a418c9b69c0905065998890df28172edbdbfd088eb0fea9de7d83e
|
7
|
+
data.tar.gz: cd545f742fff9b0c0d77294eed728738d6b7564fd3a7aa77c763013472b0abf108076fc35de05ac80a80e2a5b008de07f94f6743d1d90d54c2e140d0bd601401
|
data/.github/workflows/rake.yml
CHANGED
@@ -10,33 +10,6 @@ on:
|
|
10
10
|
|
11
11
|
jobs:
|
12
12
|
rake:
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
strategy:
|
17
|
-
fail-fast: false
|
18
|
-
matrix:
|
19
|
-
ruby: [ '2.7', '2.6', '2.5', '2.4' ]
|
20
|
-
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
21
|
-
experimental: [ false ]
|
22
|
-
include:
|
23
|
-
- ruby: '3.0'
|
24
|
-
os: 'ubuntu-latest'
|
25
|
-
experimental: true
|
26
|
-
- ruby: '3.0'
|
27
|
-
os: 'windows-latest'
|
28
|
-
experimental: true
|
29
|
-
- ruby: '3.0'
|
30
|
-
os: 'macos-latest'
|
31
|
-
experimental: true
|
32
|
-
steps:
|
33
|
-
- uses: actions/checkout@v2
|
34
|
-
with:
|
35
|
-
submodules: true
|
36
|
-
|
37
|
-
- uses: ruby/setup-ruby@v1
|
38
|
-
with:
|
39
|
-
ruby-version: ${{ matrix.ruby }}
|
40
|
-
bundler-cache: true
|
41
|
-
|
42
|
-
- run: bundle exec rake
|
13
|
+
uses: metanorma/ci/.github/workflows/generic-rake.yml@main
|
14
|
+
secrets:
|
15
|
+
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
+
# See https://github.com/metanorma/cimas
|
3
|
+
name: release
|
4
|
+
|
5
|
+
on:
|
6
|
+
workflow_dispatch:
|
7
|
+
inputs:
|
8
|
+
next_version:
|
9
|
+
description: |
|
10
|
+
Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
|
11
|
+
required: true
|
12
|
+
default: 'skip'
|
13
|
+
push:
|
14
|
+
tags: [ v* ]
|
15
|
+
|
16
|
+
jobs:
|
17
|
+
release:
|
18
|
+
uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
|
19
|
+
with:
|
20
|
+
next_version: ${{ github.event.inputs.next_version }}
|
21
|
+
secrets:
|
22
|
+
rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
|
23
|
+
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
24
|
+
|
data/.hound.yml
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
+
# See https://github.com/metanorma/cimas
|
3
|
+
inherit_from:
|
4
|
+
- https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
|
5
|
+
|
6
|
+
# local repo-specific modifications
|
7
|
+
# ...
|
8
|
+
|
9
|
+
AllCops:
|
10
|
+
TargetRubyVersion: 2.5
|
@@ -10,9 +10,9 @@ module Liquid
|
|
10
10
|
context_file = context[@context_file_variable].to_s.strip
|
11
11
|
context[@context_name] = YAML.safe_load(
|
12
12
|
File.read(context_file, encoding: "utf-8"),
|
13
|
-
[Date, Time],
|
14
|
-
[],
|
15
|
-
true
|
13
|
+
permitted_classes: [Date, Time],
|
14
|
+
permitted_symbols: [],
|
15
|
+
aliases: true
|
16
16
|
)
|
17
17
|
super
|
18
18
|
end
|
@@ -7,6 +7,7 @@ require "liquid/custom_blocks/key_iterator"
|
|
7
7
|
require "liquid/custom_blocks/with_yaml_nested_context"
|
8
8
|
require "liquid/custom_blocks/with_json_nested_context"
|
9
9
|
require "liquid/custom_filters/values"
|
10
|
+
require "liquid/custom_filters/replace_regex"
|
10
11
|
|
11
12
|
Liquid::Template.register_tag("keyiterator", Liquid::CustomBlocks::KeyIterator)
|
12
13
|
Liquid::Template
|
@@ -41,9 +41,9 @@ module Metanorma
|
|
41
41
|
def content_from_file(document, file_path)
|
42
42
|
YAML.safe_load(
|
43
43
|
File.read(relative_file_path(document, file_path), encoding: "UTF-8"),
|
44
|
-
[Date, Time],
|
45
|
-
[],
|
46
|
-
true
|
44
|
+
permitted_classes: [Date, Time],
|
45
|
+
permitted_symbols: [],
|
46
|
+
aliases: true
|
47
47
|
)
|
48
48
|
end
|
49
49
|
end
|
@@ -24,19 +24,19 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.require_paths = ["lib"]
|
25
25
|
|
26
26
|
spec.add_dependency "asciidoctor", "~> 2.0.0"
|
27
|
-
spec.add_dependency "metanorma"
|
28
27
|
spec.add_dependency "relaton-cli"
|
29
28
|
spec.add_dependency "isodoc"
|
30
29
|
spec.add_dependency "liquid", "~> 4"
|
31
30
|
|
32
31
|
spec.add_development_dependency "byebug"
|
33
32
|
spec.add_development_dependency "equivalent-xml"
|
33
|
+
spec.add_development_dependency "metanorma"
|
34
34
|
spec.add_development_dependency "metanorma-standoc"
|
35
|
-
spec.add_development_dependency "rake", "~>
|
35
|
+
spec.add_development_dependency "rake", "~> 13"
|
36
36
|
spec.add_development_dependency "rspec", "~> 3.6"
|
37
37
|
spec.add_development_dependency "rubocop", "= 0.54.0"
|
38
38
|
spec.add_development_dependency "simplecov", "~> 0.15"
|
39
39
|
spec.add_development_dependency "timecop", "~> 0.9"
|
40
|
-
spec.add_development_dependency "vcr", "~>
|
40
|
+
spec.add_development_dependency "vcr", "~> 6.1.0"
|
41
41
|
spec.add_development_dependency "webmock"
|
42
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-plugin-datastruct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
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:
|
11
|
+
date: 2023-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 2.0.0
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: metanorma
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: relaton-cli
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +94,20 @@ dependencies:
|
|
108
94
|
- - ">="
|
109
95
|
- !ruby/object:Gem::Version
|
110
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: metanorma
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: metanorma-standoc
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
131
|
+
version: '13'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
138
|
+
version: '13'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rspec
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,14 +198,14 @@ dependencies:
|
|
198
198
|
requirements:
|
199
199
|
- - "~>"
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
201
|
+
version: 6.1.0
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
206
|
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
208
|
+
version: 6.1.0
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
210
|
name: webmock
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -228,8 +228,11 @@ extensions: []
|
|
228
228
|
extra_rdoc_files: []
|
229
229
|
files:
|
230
230
|
- ".github/workflows/rake.yml"
|
231
|
+
- ".github/workflows/release.yml"
|
231
232
|
- ".gitignore"
|
233
|
+
- ".hound.yml"
|
232
234
|
- ".rspec"
|
235
|
+
- ".rubocop.yml"
|
233
236
|
- CODE_OF_CONDUCT.md
|
234
237
|
- Gemfile
|
235
238
|
- LICENSE
|
@@ -240,6 +243,7 @@ files:
|
|
240
243
|
- lib/liquid/custom_blocks/key_iterator.rb
|
241
244
|
- lib/liquid/custom_blocks/with_json_nested_context.rb
|
242
245
|
- lib/liquid/custom_blocks/with_yaml_nested_context.rb
|
246
|
+
- lib/liquid/custom_filters/replace_regex.rb
|
243
247
|
- lib/liquid/custom_filters/values.rb
|
244
248
|
- lib/metanorma-plugin-datastruct.rb
|
245
249
|
- lib/metanorma/plugin/datastruct/base_structured_text_preprocessor.rb
|
@@ -251,7 +255,7 @@ homepage: https://github.com/metanorma/metanorma-plugin-datastruct
|
|
251
255
|
licenses:
|
252
256
|
- BSD-2-Clause
|
253
257
|
metadata: {}
|
254
|
-
post_install_message:
|
258
|
+
post_install_message:
|
255
259
|
rdoc_options: []
|
256
260
|
require_paths:
|
257
261
|
- lib
|
@@ -266,8 +270,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
266
270
|
- !ruby/object:Gem::Version
|
267
271
|
version: '0'
|
268
272
|
requirements: []
|
269
|
-
rubygems_version: 3.
|
270
|
-
signing_key:
|
273
|
+
rubygems_version: 3.3.26
|
274
|
+
signing_key:
|
271
275
|
specification_version: 4
|
272
276
|
summary: Metanorma plugin for yaml2text and json2text
|
273
277
|
test_files: []
|