nice_partials 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nice_partials/partial/section.rb +7 -3
- data/lib/nice_partials/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a1bc9c01590139038135f1cd6856c79529485c970225a5aa4d82a35d11bc33a
|
4
|
+
data.tar.gz: 19f2f3754c6c590745ee649a94e32de934ced12a2602956d0aa7fff7a8db4c74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99fca66a8450503cbd2348187680c0f82b995d1830515cebe35401d9fd4e1d2395ba35fceedeb18bf4bf36ffbc8a4273811344a4c5fa58d7e5981d6d0ac9b866
|
7
|
+
data.tar.gz: b3215bcdb6c639faeed18ec17b57bdcaba2c71c70a738c25c48faf00201535198b5dbb56f18686a2b2a2877d5896246275012cad0555ff2e558c13684291f805
|
@@ -24,7 +24,6 @@ class NicePartials::Partial::Section < NicePartials::Partial::Content
|
|
24
24
|
# <% partial.title.h2 ", appended" %> # => <h2 class="xl">Some title content, appended</h2>
|
25
25
|
#
|
26
26
|
# Note that NicePartials don't support deep merging attributes out of the box.
|
27
|
-
# For that, bundle https://github.com/seanpdoyle/attributes_and_token_lists
|
28
27
|
def method_missing(meth, *arguments, **keywords, &block)
|
29
28
|
if meth != :p && @view_context.respond_to?(meth)
|
30
29
|
append @view_context.public_send(meth, *arguments, **keywords, &block)
|
@@ -32,7 +31,10 @@ class NicePartials::Partial::Section < NicePartials::Partial::Content
|
|
32
31
|
@view_context.tag.public_send(meth, @content + arguments.first.to_s, **options.merge(keywords), &block)
|
33
32
|
end
|
34
33
|
end
|
35
|
-
|
34
|
+
|
35
|
+
def respond_to_missing?(...)
|
36
|
+
@view_context.respond_to?(...)
|
37
|
+
end
|
36
38
|
|
37
39
|
private
|
38
40
|
|
@@ -44,5 +46,7 @@ class NicePartials::Partial::Section < NicePartials::Partial::Content
|
|
44
46
|
end
|
45
47
|
end
|
46
48
|
|
47
|
-
def chunks
|
49
|
+
def chunks
|
50
|
+
@chunks ||= []
|
51
|
+
end
|
48
52
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nice_partials
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-01-
|
12
|
+
date: 2023-01-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionview
|