metanorma-plugin-datastruct 0.1.2 → 0.2.0

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: 05ff3965fb8f246cb1c376a7f21d1ba4e1306edab31626becbb8ac7d607e6508
4
- data.tar.gz: bbc073882463a1f6719ee9d8f52d8814fe7ff9169b39d6b48cbb3ebc91a0f3a3
3
+ metadata.gz: b2120d47fc3b9ad88028f35322aece98b0dd99435bb4f2e73b7c65b69c63fee4
4
+ data.tar.gz: a3c29186cd189e45fbd177c90c6a0240abfdee1909897e73c9110a22746040ad
5
5
  SHA512:
6
- metadata.gz: 1539c1c2dfbd683702e0bc3962a7c5992b635bd09347a50c7cff6ccc49906149df920f45be4588dd765bb497dc7a5c3d6b625788ae137288e587f1ed516faa98
7
- data.tar.gz: 8c4c7a9ccaf8608d11b88015cb7cd068d09a6df6d0caaf571f1d139627dda3a18863e728d40bcdc00eced82c0684dc8b204cc6e27f7d68f860b375d1813dc196
6
+ metadata.gz: 3e8cc19438b029150a3412723866e11e43c832622444282a0b2da7be3936e44019922ef351f62669532f25ec1e1c3adbe8155d531b96bd33bc54f7cf1858f37d
7
+ data.tar.gz: f3c37216fc38619cd24394255a7d294faa6472c3111f48be1c1cb62c5d02226467d4a519731618fc27c39414417c4cdee00858fc8d72f44e34df675c0bbaa466
@@ -10,33 +10,6 @@ on:
10
10
 
11
11
  jobs:
12
12
  rake:
13
- name: Test on Ruby ${{ matrix.ruby }} ${{ matrix.os }}
14
- runs-on: ${{ matrix.os }}
15
- continue-on-error: ${{ matrix.experimental }}
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/metanorma-build-scripts/.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/metanorma-build-scripts/.github/workflows/rubygems-release.yml@main
19
+ with:
20
+ next_version: ${{ github.event.inputs.next_version }}
21
+ event_name: ${{ github.event_name }}
22
+ secrets:
23
+ rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
24
+
data/.hound.yml ADDED
@@ -0,0 +1,5 @@
1
+ # Auto-generated by Cimas: Do not edit it manually!
2
+ # See https://github.com/metanorma/cimas
3
+ ruby:
4
+ enabled: true
5
+ config_file: .rubocop.yml
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,7 +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]
13
+ permitted_classes: [Date, Time],
14
+ permitted_symbols: [],
15
+ aliases: true
14
16
  )
15
17
  super
16
18
  end
@@ -1,7 +1,7 @@
1
1
  module Metanorma
2
2
  module Plugin
3
3
  module Datastruct
4
- VERSION = "0.1.2".freeze
4
+ VERSION = "0.2.0".freeze
5
5
  end
6
6
  end
7
7
  end
@@ -37,11 +37,13 @@ module Metanorma
37
37
 
38
38
  protected
39
39
 
40
+ # https://ruby-doc.org/stdlib-2.5.1/libdoc/psych/rdoc/Psych.html#method-c-safe_load
40
41
  def content_from_file(document, file_path)
41
42
  YAML.safe_load(
42
- File.read(relative_file_path(document, file_path),
43
- encoding: "UTF-8"),
44
- [Date, Time]
43
+ File.read(relative_file_path(document, file_path), encoding: "UTF-8"),
44
+ permitted_classes: [Date, Time],
45
+ permitted_symbols: [],
46
+ aliases: true
45
47
  )
46
48
  end
47
49
  end
@@ -24,15 +24,15 @@ 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", "~> 12.0"
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"
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.2
4
+ version: 0.2.0
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: 2021-05-05 00:00:00.000000000 Z
11
+ date: 2022-03-14 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: '12.0'
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: '12.0'
138
+ version: '13'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rspec
141
141
  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
@@ -251,7 +254,7 @@ homepage: https://github.com/metanorma/metanorma-plugin-datastruct
251
254
  licenses:
252
255
  - BSD-2-Clause
253
256
  metadata: {}
254
- post_install_message:
257
+ post_install_message:
255
258
  rdoc_options: []
256
259
  require_paths:
257
260
  - lib
@@ -266,8 +269,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
266
269
  - !ruby/object:Gem::Version
267
270
  version: '0'
268
271
  requirements: []
269
- rubygems_version: 3.0.3
270
- signing_key:
272
+ rubygems_version: 3.1.6
273
+ signing_key:
271
274
  specification_version: 4
272
275
  summary: Metanorma plugin for yaml2text and json2text
273
276
  test_files: []