middleman-core 4.6.0 → 4.6.1

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: 4f75b57d4f7b5046290d41e0748282ab8fa02a2b230be9fb5045242432f2a72d
4
- data.tar.gz: 4aba8ff90a5e723281990b3a1a7341509c1aa8891d231ecc3fe3ad39de29c7e9
3
+ metadata.gz: da8b311e43fa228d2da268e35cf2989a58608b3d77a89caea4517fafc49cb913
4
+ data.tar.gz: a1ac754b14972b459d104adc99a1d1f760858b75c03e5e73fcc67cecee9794b0
5
5
  SHA512:
6
- metadata.gz: 3e63cf33f58076d4b2d8ebcaf7803157236a86443e273ea0400d93aa6a8456c7e641ca0552a6ed9197f3494ba045dd22c8fafef293f6aad5273d1bc9cc8cc5b6
7
- data.tar.gz: d2012044ebe3eaf1aaba82208b945d03fc18bc9830373cc5603242bc90eef9183c852ad0c7e2cf2ad6e047b7eace0c14228ca77e152c32579d34f9e5d4cfe393
6
+ metadata.gz: 333100cd1ffc52ec7bc3d0f1456a97cdb81a827902b135078411924b34a502b6097768df1e16cb60cf03a8a3b4e630cf79d380220f3fd0af9e3be79e19031da2
7
+ data.tar.gz: d4be7e55116af638717ac5ea1b662273118ea5925dc9afc644b20c9702caf717641ba19b2a8de4294d86b4b5cdb5fd9e24dfbd1fcfee36f150baa3797a211f20
@@ -25,7 +25,11 @@ module Middleman
25
25
  # Force the template the use the configured encoding.
26
26
  #
27
27
  def precompiled_template(locals)
28
- super.dup.force_encoding(@context.app.config[:encoding])
28
+ if @context
29
+ super.dup.force_encoding(@context.app.config[:encoding])
30
+ else
31
+ super
32
+ end
29
33
  end
30
34
  end
31
35
  end
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  # Current Version
3
3
  # @return [String]
4
- VERSION = '4.6.0'.freeze unless const_defined?(:VERSION)
4
+ VERSION = '4.6.1'.freeze unless const_defined?(:VERSION)
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.0
4
+ version: 4.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Reynolds
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2025-03-05 00:00:00.000000000 Z
13
+ date: 2025-06-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler