hanami-view 2.1.0.rc2 → 2.1.0.rc3
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/hanami/view/version.rb +2 -2
- metadata +5 -6
- data/lib/hanami/view/context_helpers/content_helpers.rb +0 -26
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 11a5c7cdcd4849cf3381dd18324eec8e0dffc31696cc88cd9e90e2783c1dfa6a
|
|
4
|
+
data.tar.gz: 6bdfa9391d70f56e12ea69629e2c55d63ce8d1d6bc28593262d872626d147ba8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d2d6ef206e60187f346052063ed344c0fa491cac0c574729b8b0816d1572f94cad31a8474acd66ce6e2c855914e79c3c0bd02f2cd9c1ac6fad871b77aaf7f2d
|
|
7
|
+
data.tar.gz: bd6551359c1936d808102a17d810fac312094f8a53e784edd56ac9494adb22de630b5f7ae773645bda85840174375104f2590c6e627ff5a11efd966df80930cb
|
data/CHANGELOG.md
CHANGED
data/lib/hanami/view/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hanami-view
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.0.
|
|
4
|
+
version: 2.1.0.rc3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tim Riley
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2024-02-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: dry-configurable
|
|
@@ -165,7 +165,6 @@ files:
|
|
|
165
165
|
- lib/hanami/view.rb
|
|
166
166
|
- lib/hanami/view/cache.rb
|
|
167
167
|
- lib/hanami/view/context.rb
|
|
168
|
-
- lib/hanami/view/context_helpers/content_helpers.rb
|
|
169
168
|
- lib/hanami/view/decorated_attributes.rb
|
|
170
169
|
- lib/hanami/view/erb/engine.rb
|
|
171
170
|
- lib/hanami/view/erb/filters/block.rb
|
|
@@ -214,11 +213,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
214
213
|
version: '3.0'
|
|
215
214
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
215
|
requirements:
|
|
217
|
-
- - "
|
|
216
|
+
- - ">="
|
|
218
217
|
- !ruby/object:Gem::Version
|
|
219
|
-
version:
|
|
218
|
+
version: '0'
|
|
220
219
|
requirements: []
|
|
221
|
-
rubygems_version: 3.
|
|
220
|
+
rubygems_version: 3.5.6
|
|
222
221
|
signing_key:
|
|
223
222
|
specification_version: 4
|
|
224
223
|
summary: A complete, standalone view rendering system that gives you everything you
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
module Hanami
|
|
2
|
-
class View
|
|
3
|
-
module ContextHelpers
|
|
4
|
-
module ContentHelpers
|
|
5
|
-
def initialize(**)
|
|
6
|
-
@content_for = {}
|
|
7
|
-
super
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
def content_for(key, value = nil, &block)
|
|
11
|
-
output = nil
|
|
12
|
-
|
|
13
|
-
if block
|
|
14
|
-
@content_for[key] = yield
|
|
15
|
-
elsif value
|
|
16
|
-
@content_for[key] = value
|
|
17
|
-
else
|
|
18
|
-
output = @content_for[key]
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
output
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|