props_template 0.33.0 → 0.35.0

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: b586e88a8525a50dca7c4c045c965e150db70214dcd409c8f548eb00f2b229c9
4
- data.tar.gz: 03f66f95514d80127c949b2aa6de035885718887d5ca300a6052e2b7b1215f2a
3
+ metadata.gz: 8400f382bf1e777d3b2a863228bfec9486388f1f3ef77e127cbc1220a9917e32
4
+ data.tar.gz: 5847aae3d52a018f4c31e437a46147882da8c6cf35d38bc282fb068bc4b3b678
5
5
  SHA512:
6
- metadata.gz: d328e82015fb1079fc6593f9441b30259bbfe54b414ce260f6522e66754537e7cb8b5449c2bdcd835b6df4a8246d5dedfb318faefeccb8a270b0419a2453de2a
7
- data.tar.gz: 1066e3c36218fc2c5d87f8a309439c0fc01f44ef4a60c5fe173076ab6f2c5b662fb92e8c75b95ce20797760b173ac58f615baded52aea272b5d36e4706b41952
6
+ metadata.gz: d730232224bfea323784f896dd51f4f00025cf922ee5e5791e767520b852b0af8b717bd787183cd02a30a985ee9821d8b19eddf362adf64225d2959ca22dfa9f
7
+ data.tar.gz: 29c1a6a96ebc9fca218d7aaea1064d5b916e494dae534c11b0572c06f8d1543b8c0f5c651d1df00144fa372546a6992058d9c73dd810a8d57c78bacc2e078fb1
data/README.md CHANGED
@@ -72,7 +72,7 @@ gem 'props_template'
72
72
  and run `bundle`.
73
73
 
74
74
  Optionally add the [core ext](#array-core-extension) to an initializer if you
75
- want to [dig](#traverse) into your templates.
75
+ want to [dig](#traversing) into your templates.
76
76
 
77
77
  ```ruby
78
78
  require 'props_template/core_ext'
@@ -137,7 +137,7 @@ module Props
137
137
 
138
138
  partial, rest = [*options[:partial]]
139
139
  rest = (rest || {}).clone
140
- locals = rest[:locals] || {}
140
+ locals = (rest[:locals] || {}).clone
141
141
  rest[:locals] = locals
142
142
 
143
143
  if item
@@ -1,7 +1,7 @@
1
1
  module Props
2
2
  module LayoutPatch
3
3
  def render_template(view, template, layout_name, locals)
4
- unless view.respond_to? :active_template_virtual_path
4
+ if !view.respond_to?(:active_template_virtual_path) && template.respond_to?(:virtual_path)
5
5
  view.instance_eval <<~RUBY, __FILE__, __LINE__ + 1
6
6
  def active_template_virtual_path; "#{template.virtual_path}";end
7
7
  RUBY
@@ -1,3 +1,3 @@
1
1
  module Props
2
- VERSION = "0.33.0".freeze
2
+ VERSION = "0.35.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: props_template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.0
4
+ version: 0.35.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johny Ho
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-07 00:00:00.000000000 Z
11
+ date: 2024-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport