mdless 2.1.24 → 2.1.25

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: daa606283636cef493f39150cf92cba89cb92774e1a1d864f08b8e3f30c1d956
4
- data.tar.gz: 22aa99bdb5ecf9eb1e29a79595048098101ccb12b676481cf219bf00fff56ff2
3
+ metadata.gz: 7e20c93485c7b39a9b31627f779b9d36c1671cbc13649b079edbe6a4b97a6cd5
4
+ data.tar.gz: f0c098c1b89fc82d532dd446152e5f8c24a4ff5e8c9ea1cfa0db5cdb7c749419
5
5
  SHA512:
6
- metadata.gz: 351d4923b3d652d4ca6900ad691ceea22f33be02127c2ed5c654a4a48ef2b3feb6daa1f086cb98c398bc4f2ed40b7e797d6946d2358c0fb3c721ee5068437176
7
- data.tar.gz: 992a8936d9426acbd56f146606d0b3f42c49900a9e60a70e943a17eef17b450fbe40ee106150135cc755c61407ee05aa2ba2337f400ad38528e0c8a0d0949f03
6
+ metadata.gz: e7769b7398ce44574926efe08e97ac52e1f0cd5e0d39ed47a10b34da6e596fd37d7b88a498bed4c8ce88a70019c09d7ccc5ec9c255de04147921ad3fea1b36c1
7
+ data.tar.gz: ee7eabac8aacf7e268ac5708cdf97ade953d0dd1df50c1b83ca9dc20dd25a4a41c29068514b6ed3682d374e1c8b6ece6a2b6c484681b85213cc590d4293e2a5b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ 2.1.25
2
+ : YAML loading issues caused by safe_load
3
+
1
4
  2.1.24
2
5
  : Save MultiMarkdown metadata into a hash
3
6
  : Allow [%metakey] replacements
@@ -752,7 +752,7 @@ module Redcarpet
752
752
  input.sub!(/(?i-m)^---[ \t]*\n(?<content>(?:[\s\S]*?))\n[-.]{3}[ \t]*\n/m) do
753
753
  m = Regexp.last_match
754
754
  MDLess.log.info('Processing YAML Header')
755
- MDLess.meta = YAML.safe_load(m['content']).map { |k, v| "#{k.downcase}" => v }
755
+ MDLess.meta = YAML.load(m['content']).map { |k, v| "#{k.downcase}" => v }
756
756
  lines = m[0].split(/\n/)
757
757
  longest = lines.longest_element.length
758
758
  longest = longest < MDLess.cols ? longest + 1 : MDLess.cols
data/lib/mdless/string.rb CHANGED
@@ -67,7 +67,7 @@ class ::String
67
67
  input.sub!(/(?i-m)^---[ \t]*\n(?<content>[\s\S]*?)\n[-.]{3}[ \t]*\n/m) do
68
68
  m = Regexp.last_match
69
69
  MDLess.log.info('Processing YAML Header')
70
- MDLess.meta = YAML.safe_load(m['content']).map { |k, v| "#{k.downcase}" => v }
70
+ MDLess.meta = YAML.load(m['content']).map { |k, v| "#{k.downcase}" => v }
71
71
  lines = m['content'].split(/\n/)
72
72
  longest = lines.inject { |memo, word| memo.length > word.length ? memo : word }.length
73
73
  longest = longest < @cols ? longest + 1 : @cols
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CLIMarkdown
4
- VERSION = '2.1.24'
4
+ VERSION = '2.1.25'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdless
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.24
4
+ version: 2.1.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-04 00:00:00.000000000 Z
11
+ date: 2023-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redcarpet