metanorma-plugin-datastruct 0.2.0 → 0.2.3

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: b2120d47fc3b9ad88028f35322aece98b0dd99435bb4f2e73b7c65b69c63fee4
4
- data.tar.gz: a3c29186cd189e45fbd177c90c6a0240abfdee1909897e73c9110a22746040ad
3
+ metadata.gz: fe622d105e9790da8f5d61265addc954c5718827464c6b7069bfcf4f28b854e2
4
+ data.tar.gz: aa6fd9ec16c14b9d558631ce6dd3f87a4a5547d7cd917a8651489018ca7b9bdc
5
5
  SHA512:
6
- metadata.gz: 3e8cc19438b029150a3412723866e11e43c832622444282a0b2da7be3936e44019922ef351f62669532f25ec1e1c3adbe8155d531b96bd33bc54f7cf1858f37d
7
- data.tar.gz: f3c37216fc38619cd24394255a7d294faa6472c3111f48be1c1cb62c5d02226467d4a519731618fc27c39414417c4cdee00858fc8d72f44e34df675c0bbaa466
6
+ metadata.gz: 57afedfbda26e055e3b09cc7ea5fd84978c95862039ce7894438ad6acead8dff3551fc9c7980fa006ad98eadfc6d3ed5d1c76dbe465c89df487aaa69be44c642
7
+ data.tar.gz: 23171c33074450db80cd6c6ab310cfdab19153428bf147beb9a7478edc3d7a61c55a89e29274debece82663ffc9d98d9d886a3193cce259b37e78a1bc40fe046
@@ -10,6 +10,6 @@ on:
10
10
 
11
11
  jobs:
12
12
  rake:
13
- uses: metanorma/metanorma-build-scripts/.github/workflows/generic-rake.yml@main
13
+ uses: metanorma/ci/.github/workflows/generic-rake.yml@main
14
14
  secrets:
15
15
  pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
@@ -15,10 +15,10 @@ on:
15
15
 
16
16
  jobs:
17
17
  release:
18
- uses: metanorma/metanorma-build-scripts/.github/workflows/rubygems-release.yml@main
18
+ uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
19
19
  with:
20
20
  next_version: ${{ github.event.inputs.next_version }}
21
- event_name: ${{ github.event_name }}
22
21
  secrets:
23
22
  rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
23
+ pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
24
24
 
data/Gemfile CHANGED
@@ -2,3 +2,4 @@ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in metanorma-plugin-datastruct.gemspec
4
4
  gemspec
5
+ gem "debug"
@@ -0,0 +1,8 @@
1
+ module Liquid
2
+ module CustomFilters
3
+ def replace_regex(text, regex_search, replace_value)
4
+ regex = /#{regex_search}/
5
+ text.to_s.gsub(regex, replace_value)
6
+ end
7
+ end
8
+ 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
@@ -1,7 +1,7 @@
1
1
  module Metanorma
2
2
  module Plugin
3
3
  module Datastruct
4
- VERSION = "0.2.0".freeze
4
+ VERSION = "0.2.3".freeze
5
5
  end
6
6
  end
7
7
  end
@@ -17,16 +17,17 @@ Gem::Specification.new do |spec|
17
17
  # Specify which files should be added to the gem when it is released.
18
18
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
19
19
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
20
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ `git ls-files -z`.split("\x0").reject do |f|
21
+ f.match(%r{^(test|spec|features)/})
22
+ end
21
23
  end
22
24
  spec.bindir = "exe"
23
25
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
26
  spec.require_paths = ["lib"]
25
27
 
26
28
  spec.add_dependency "asciidoctor", "~> 2.0.0"
27
- spec.add_dependency "relaton-cli"
28
29
  spec.add_dependency "isodoc"
29
- spec.add_dependency "liquid", "~> 4"
30
+ spec.add_dependency "relaton-cli"
30
31
 
31
32
  spec.add_development_dependency "byebug"
32
33
  spec.add_development_dependency "equivalent-xml"
@@ -37,6 +38,7 @@ Gem::Specification.new do |spec|
37
38
  spec.add_development_dependency "rubocop", "= 0.54.0"
38
39
  spec.add_development_dependency "simplecov", "~> 0.15"
39
40
  spec.add_development_dependency "timecop", "~> 0.9"
40
- spec.add_development_dependency "vcr", "~> 5.0.0"
41
+ spec.add_development_dependency "vcr", "~> 6.1.0"
41
42
  spec.add_development_dependency "webmock"
43
+ spec.metadata["rubygems_mfa_required"] = "false"
42
44
  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.2.0
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-14 00:00:00.000000000 Z
11
+ date: 2023-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 2.0.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: relaton-cli
28
+ name: isodoc
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: isodoc
42
+ name: relaton-cli
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: liquid
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '4'
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '4'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: byebug
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -198,14 +184,14 @@ dependencies:
198
184
  requirements:
199
185
  - - "~>"
200
186
  - !ruby/object:Gem::Version
201
- version: 5.0.0
187
+ version: 6.1.0
202
188
  type: :development
203
189
  prerelease: false
204
190
  version_requirements: !ruby/object:Gem::Requirement
205
191
  requirements:
206
192
  - - "~>"
207
193
  - !ruby/object:Gem::Version
208
- version: 5.0.0
194
+ version: 6.1.0
209
195
  - !ruby/object:Gem::Dependency
210
196
  name: webmock
211
197
  requirement: !ruby/object:Gem::Requirement
@@ -243,6 +229,7 @@ files:
243
229
  - lib/liquid/custom_blocks/key_iterator.rb
244
230
  - lib/liquid/custom_blocks/with_json_nested_context.rb
245
231
  - lib/liquid/custom_blocks/with_yaml_nested_context.rb
232
+ - lib/liquid/custom_filters/replace_regex.rb
246
233
  - lib/liquid/custom_filters/values.rb
247
234
  - lib/metanorma-plugin-datastruct.rb
248
235
  - lib/metanorma/plugin/datastruct/base_structured_text_preprocessor.rb
@@ -253,7 +240,8 @@ files:
253
240
  homepage: https://github.com/metanorma/metanorma-plugin-datastruct
254
241
  licenses:
255
242
  - BSD-2-Clause
256
- metadata: {}
243
+ metadata:
244
+ rubygems_mfa_required: 'false'
257
245
  post_install_message:
258
246
  rdoc_options: []
259
247
  require_paths:
@@ -269,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
269
257
  - !ruby/object:Gem::Version
270
258
  version: '0'
271
259
  requirements: []
272
- rubygems_version: 3.1.6
260
+ rubygems_version: 3.3.26
273
261
  signing_key:
274
262
  specification_version: 4
275
263
  summary: Metanorma plugin for yaml2text and json2text