streamlined 0.5.0 → 0.5.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: 2f6d5e0e63a6f2acc9944f0b703943dc3481e6430cfd19c89df6bd3b68e84a2b
4
- data.tar.gz: 1b9c27c5af0cd0cf0dde74aaae73c6cb1add9ebd32a510ca3b2b119749b84994
3
+ metadata.gz: dcc0a9b6b0ecfe8dea09c22adf936d6de78a260fc5948670b7d5f650d08f2a9c
4
+ data.tar.gz: 340bb32a6e17eb18b34d9ceeda061890cf1209f7d9777451542e98e612057a7e
5
5
  SHA512:
6
- metadata.gz: 662a0b51ff471acb258b6529c6a9a9b64d1de6062d082301e030f03e4821b82537b050ccdf2ba690426c5441e717f7ba70f6e41e42fa0a28fefd090d4f00b9f6
7
- data.tar.gz: 13978e66cd60115cacfeed50d7397c016a04343bad73c862eb6fbd6bd9c21bdd90e1eb3cb292b2b73c73b68822cf90a4f818957e0b33c6cfdf7f855f11912360
6
+ metadata.gz: 13c5d919ca388018eaade16466e3e74f58a289a6fbfc632d948ec45c22f40d784b5a657e1c61f76780263766c22fc896a12f06e2d593a3c3874a1bafeeb1683e
7
+ data.tar.gz: 8bdbf7d17cec2924d09e3597844080bba08c01d962f3c0d3bbf3ac9cb4ad89a7fde4feedc83b49d0fd05de22a3ce6b7b62acf4ca6a57577b819a0142595c7264
data/CHANGELOG.md CHANGED
@@ -2,9 +2,13 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
- ## [0.5.0 - 2024-04-06
5
+ ## [0.5.1] - 2024-04-06
6
6
 
7
- - Simplify syntax of pipe procs for text & html
7
+ - Fix logic bug in `html`
8
+
9
+ ## [0.5.0] - 2024-04-06
10
+
11
+ - Simplify syntax of pipe procs for `text` & `html`
8
12
 
9
13
  ## [0.4.0] — 2024-04-04
10
14
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- streamlined (0.5.0)
4
+ streamlined (0.5.1)
5
5
  serbea (>= 2.1)
6
6
  zeitwerk (~> 2.5)
7
7
 
@@ -89,7 +89,11 @@ module Streamlined
89
89
  end
90
90
 
91
91
  def html(callback, piping = nil)
92
- callback = Serbea::Pipeline.new(binding, callback).tap { _1.instance_exec(&piping) } if piping
92
+ if piping
93
+ callback = Serbea::Pipeline.new(binding, callback).tap { _1.instance_exec(&piping) }.then do |pipeline|
94
+ -> { pipeline.value }
95
+ end
96
+ end
93
97
 
94
98
  callback.html_safe.touch
95
99
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Streamlined
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: streamlined
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bridgetown Team