phlexible 0.4.0 → 0.4.1

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: 27b319da9b017a6659e7a8372c67da3fe5f2d41c60d853a0ff095d97770f9269
4
- data.tar.gz: 2d4ecd695d5b0265f4884eddb7ab90c942687953314b831c292971542377ebcf
3
+ metadata.gz: 4f5bc2167c1561048483003a2409f70153abcb79a94107c3fec5408ccfe33436
4
+ data.tar.gz: 8e59526996b1734e16933da161d42f930febc4f0f960852c2fec6a3a531293da
5
5
  SHA512:
6
- metadata.gz: 2f20789eac80d0b8c65db6552f8528ff63dcd0952f3e2039bfc5ec4c200c700e8795979c9249d3e8f15a1103a2b8a3b79212dbd234632c3b94a7d305eb1442a7
7
- data.tar.gz: df64f02ad32290c863b305db652043119098bc8034744dae36c45901fb23195994260f482ae2c6a9c2a161616f4a6913055abfec0659b5f7db6452ffbf11993e
6
+ metadata.gz: 7f6344c05d305195c98828c7709d229b45616fb31e2bb73403990f8d402aa3184b54c83cb04924e21373923aeaf00a92fd152ed9f780b84a6ba3f5451472f8a4
7
+ data.tar.gz: 2c2e2367325c27ab5055543a2b0e88d573bf186ae1a31ec3c94d2f73515a1db27e93f8b86687e09e968f186a734f392862c0548a295a1a29e56f67be04c3b2b1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- phlexible (0.3.0)
4
+ phlexible (0.4.0)
5
5
  phlex (~> 1.8.1)
6
6
  phlex-rails (~> 1.0.0)
7
7
 
@@ -24,8 +24,10 @@ module Phlexible
24
24
 
25
25
  def assign_phlex_accessors(pview)
26
26
  pview.tap do |view|
27
- view.__controller_attributes__.each do |attr|
28
- view.instance_variable_set :"@#{attr}", view_assigns[attr.to_s]
27
+ if view.respond_to?(:__controller_attributes__)
28
+ view.__controller_attributes__.each do |attr|
29
+ view.instance_variable_set :"@#{attr}", view_assigns[attr.to_s]
30
+ end
29
31
  end
30
32
  end
31
33
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Phlexible
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phlexible
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Moss
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-10 00:00:00.000000000 Z
11
+ date: 2023-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: phlex