metanorma-plugin-datastruct 0.2.0 → 0.2.1

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: e2df7a54019a9c960234097bdf347213643900712c88c38237e45e8188aa1ab4
4
+ data.tar.gz: ac5d3580256a1f059354faa6d53cfa32b0e7a14ea573e2a74f58582c69149a91
5
5
  SHA512:
6
- metadata.gz: 3e8cc19438b029150a3412723866e11e43c832622444282a0b2da7be3936e44019922ef351f62669532f25ec1e1c3adbe8155d531b96bd33bc54f7cf1858f37d
7
- data.tar.gz: f3c37216fc38619cd24394255a7d294faa6472c3111f48be1c1cb62c5d02226467d4a519731618fc27c39414417c4cdee00858fc8d72f44e34df675c0bbaa466
6
+ metadata.gz: 0cc9a6f6ea77e72beed6253bb260b3edb01eab07568148e6482f8777c49636806cb22ed0d7a418c9b69c0905065998890df28172edbdbfd088eb0fea9de7d83e
7
+ data.tar.gz: cd545f742fff9b0c0d77294eed728738d6b7564fd3a7aa77c763013472b0abf108076fc35de05ac80a80e2a5b008de07f94f6743d1d90d54c2e140d0bd601401
@@ -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
 
@@ -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.1".freeze
5
5
  end
6
6
  end
7
7
  end
@@ -37,6 +37,6 @@ Gem::Specification.new do |spec|
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", "~> 5.0.0"
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.2.0
4
+ version: 0.2.1
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-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -198,14 +198,14 @@ dependencies:
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: 5.0.0
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: 5.0.0
208
+ version: 6.1.0
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: webmock
211
211
  requirement: !ruby/object:Gem::Requirement
@@ -243,6 +243,7 @@ files:
243
243
  - lib/liquid/custom_blocks/key_iterator.rb
244
244
  - lib/liquid/custom_blocks/with_json_nested_context.rb
245
245
  - lib/liquid/custom_blocks/with_yaml_nested_context.rb
246
+ - lib/liquid/custom_filters/replace_regex.rb
246
247
  - lib/liquid/custom_filters/values.rb
247
248
  - lib/metanorma-plugin-datastruct.rb
248
249
  - lib/metanorma/plugin/datastruct/base_structured_text_preprocessor.rb
@@ -269,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
269
270
  - !ruby/object:Gem::Version
270
271
  version: '0'
271
272
  requirements: []
272
- rubygems_version: 3.1.6
273
+ rubygems_version: 3.3.26
273
274
  signing_key:
274
275
  specification_version: 4
275
276
  summary: Metanorma plugin for yaml2text and json2text