nice_partials 0.9.0 → 0.9.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: b3b70755595cff02588aa600004e44ec9f20847a4fdd026e0326876a2cad7f52
4
- data.tar.gz: 24e42267606eb6a56ed481d2b82d137210618dff3282f6586036aa68bfad71c0
3
+ metadata.gz: 3a1bc9c01590139038135f1cd6856c79529485c970225a5aa4d82a35d11bc33a
4
+ data.tar.gz: 19f2f3754c6c590745ee649a94e32de934ced12a2602956d0aa7fff7a8db4c74
5
5
  SHA512:
6
- metadata.gz: de339636e922f606a268eb0a9888686e3f0c6b3bdd0f874c8c50998a55437dfc8dff7f4a1c4293d4814277f75a49a959aa47ba9318ad9d9898d651c87d5fc6f8
7
- data.tar.gz: ed7d3ff442df563d12aba16982a7a3ecae8a5f5b3022255e733bd2b5fd816c828064ddb659162839ef234fc26b22bd3f3a3a6be175e918a5518688a5cfe8bde2
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
- def respond_to_missing?(...) = @view_context.respond_to?(...)
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() = @chunks ||= []
49
+ def chunks
50
+ @chunks ||= []
51
+ end
48
52
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NicePartials
4
- VERSION = "0.9.0"
4
+ VERSION = "0.9.1"
5
5
  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.0
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-15 00:00:00.000000000 Z
12
+ date: 2023-01-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionview