props_template 0.23.0 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb11a454a1e500ed9621d34fbe8de5ace212f85997e182ca77c934f42d2ae27e
4
- data.tar.gz: 037ae1fa177ff7c6e50d80ae46a963f70dec15b028c4a46941401c3f4489dfed
3
+ metadata.gz: ed3fa0a5fda4993c730d2391de3e2a1d7f05e43580dc5e429734b5f8e7b07391
4
+ data.tar.gz: 005ed8fa15532e3e80530fae2a4c1bbd0002d9b9dcf5e2a41c64d34c62df2db0
5
5
  SHA512:
6
- metadata.gz: acb7e89f553db08953ee7544590dae0c516f21fe4943a6012d77c0c63d865e98fd4926dfda597f3cf17d128f04fa163269dc6e046d884bc24d4f52bd28333758
7
- data.tar.gz: 5a7262526a5dbc19c28ec7235f72ec557acd9a95ba27fcf955a7d6beb08107ec6ea999cbb9e0d247de7b3640cfe94e41b6523059ae6748da3283feca10b005dc
6
+ metadata.gz: 2a65e69050103126e02af67ebbf44af9817edd221467fef1ae6f9c715964b8c212ecc9d3a8796e9ec0868e395911668f11176dae3ce5c722620f9eccb326cede
7
+ data.tar.gz: b59b42c55eee9fb209093c38aeab2d369da005a6be41feecd73ecef62f6323b61ac41e879e005b40b584817d80e2b8873fb37c2c62dc22015177053371b5c08f
@@ -10,6 +10,12 @@ module Props
10
10
  end
11
11
 
12
12
  def render_props_template(view, template, path, locals)
13
+ view.instance_eval <<~RUBY, __FILE__, __LINE__ + 1
14
+ def virtual_path_of_template;"#{template.virtual_path}";end
15
+ RUBY
16
+
17
+ # Deprecated: Usage of virtual_path_of_template in local_assigns will
18
+ # be removed for a method definition above
13
19
  layout_locals = locals.dup
14
20
  layout_locals[:virtual_path_of_template] = template.virtual_path
15
21
 
@@ -1,3 +1,3 @@
1
1
  module Props
2
- VERSION = "0.23.0".freeze
2
+ VERSION = "0.24.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.23.0
4
+ version: 0.24.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: 2023-06-30 00:00:00.000000000 Z
11
+ date: 2023-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport