trmnl_preview 0.8.4 → 0.8.5

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: 9fe003b113f4c1d832529b4d01cc931a8eb63259f385db8d6ff2dfca919a7cb9
4
- data.tar.gz: 2254239e25186dab5f29bebf22ea8a87a180362521cf89a40900d86dda9bb9fc
3
+ metadata.gz: a17153f7c4006dac8aaf9c0bd64e98c4c9a088ca454e10833bf2c7900e0b86cd
4
+ data.tar.gz: 39d9949a8be9e303360520b2020b7fa049ebd14def1a04fa9c4c9ecfa7b6c547
5
5
  SHA512:
6
- metadata.gz: d5e588f871e595f7c8dd637b6a2203cc1bde1696b91a5c397b1c176c4306f28e4f96ecc76a583f23da75ab3355a4288897b2ee823c7d8e1d658a2114c13d6f6d
7
- data.tar.gz: 55efd439389300e0b18fe29025446632dd04412564a6ff36f8bea60d06f12e324bf18c97429b237d90df3eda94262a6009158cd82df8aab30b3b629dd6d1ff5e
6
+ metadata.gz: a564054b286184663e21f9f60c3757e0207ca6f8be9a571e45150a32bd4546f4707f4e129aaa5bfe4403184fa7467031d3fa53bee41fad09232cfb37ca32fdb1
7
+ data.tar.gz: 19f8fab4f4bed1397592645a61b73fea89947887dff1e87f813d88c37db671d0a8a2e04fdd3e382726331a41fd30bd5ca0ab5519144ea63904bf370d21aeb6cc
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
 
2
2
  # Changelog
3
3
 
4
+ ## 0.8.5
5
+
6
+ - Fixed `pluralize`, `number_with_delimiter`, and `number_to_currency` Liquid filters raising `Liquid error: internal`. `trmnl-liquid` 0.7 moved `RailsHelpers` behind an opt-in `load(:rails)`, but the filters still probed `RailsHelpers.respond_to?` against the now-undefined constant. Stubbing an empty module makes the probe return false so the bundled fallback implementations run. (#105)
7
+
4
8
  ## 0.8.4
5
9
 
6
10
  - Fixed `trmnlp serve` hanging after switching between browser tabs. Live reload now uses `rack.hijack` so SSE connections release their Puma worker thread immediately instead of holding it for the lifetime of the tab.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TRMNLP
4
- VERSION = '0.8.4'
4
+ VERSION = '0.8.5'
5
5
  end
data/lib/trmnlp.rb CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  module TRMNLP; end
4
4
  require 'oj'
5
+ require 'trmnl/liquid'
5
6
  Oj.mimic_JSON
7
+ TRMNL::Liquid::RailsHelpers = Module.new unless defined?(TRMNL::Liquid::RailsHelpers)
6
8
  require_relative 'trmnlp/errors'
7
9
  require_relative 'trmnlp/config'
8
10
  require_relative 'trmnlp/context'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trmnl_preview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rockwell Schrock