marked-conductor 1.0.26 → 1.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 580473330204caa4600148bf8ed0a29662b82b75f47443f71430d374eaff3b37
4
- data.tar.gz: cb938a20bdd2e13cb001961b45f32a3003a323853867d880826a8cc7a4eaf48c
3
+ metadata.gz: ab841b7eae48110c76bd6b8b8d86f8f02ddbff220672d80b40e89410c473f9e4
4
+ data.tar.gz: c077fa6c66ebad09df4047fc66f5a28b0202045d530de04dad338b707607ba9a
5
5
  SHA512:
6
- metadata.gz: c19b9f0b8485847b1ebc00d7e295c6344aeed0b1ba098e6d66742ad57118e6072d37e796a2ee6cd3b25715a74d1da026738e79874cd62cdbb7f68229cb985259
7
- data.tar.gz: 9da479816110281f22948875946f12beb2f7883311c702a41bce6133eea877fa26751c321ac6a9c1aaa80c43e78338733d4366af656d7dc59f2d31ab243854fe
6
+ metadata.gz: cfe5a81efc6edf85876b749756fe175c7c6bfe272958c842e19a4f795f8a6339ff4ed32373a339e9921917902d4a589ad5cf3c5bd1f2f8a265c4e2b17326c849
7
+ data.tar.gz: 11344262daf5b09c48c7304267c3294125daa65e3e2f98c1e50dbc809bf6981e538304b7229208e9bd7a06bed67804ab2fb575d8105802243ca7c4d048049f8c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 1.0.27
2
+
3
+ 2024-07-24 13:55
4
+
5
+ #### FIXED
6
+
7
+ - StripMeta bad regex
8
+
1
9
  ### 1.0.26
2
10
 
3
11
  2024-07-24 13:49
@@ -47,7 +47,7 @@ class ::String
47
47
  lines = split(/\n/)
48
48
  lines.shift
49
49
  lines.each_with_index do |line, idx|
50
- next unless line =~ /^(...|---) *$/
50
+ next unless line =~ /^(\.\.\.|---) *$/
51
51
 
52
52
  insert_point = idx + 1
53
53
  break
@@ -370,7 +370,7 @@ class ::String
370
370
  def strip_meta
371
371
  case meta_type
372
372
  when :yaml
373
- sub(/^---.*?(---|...)/m, "")
373
+ sub(/^---.*?(---|\.\.\.)/m, "")
374
374
  when :mmd
375
375
  lines = split(/\n/)
376
376
  lines[meta_insert_point..]
@@ -596,7 +596,7 @@ class Filter < String
596
596
  # should recognize yaml and mmd
597
597
  content.set_meta(@params[0], @params[1], style: content.meta_type)
598
598
  when /(strip|remove|delete)meta/
599
- if @params.count.positive?
599
+ if @params&.count&.positive?
600
600
  content.delete_meta(@params[0])
601
601
  else
602
602
  content.strip_meta
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Conductor
4
- VERSION = '1.0.26'
4
+ VERSION = '1.0.27'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marked-conductor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.26
4
+ version: 1.0.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra