matestack-ui-core 3.0.0 → 3.0.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: d1493f1aa4ec1d28a7bd4985d13c4da624c735756a05dcabf2c08411af3ceefb
4
- data.tar.gz: 7028c05a14b2004246a4b402675485ee8eb64e9524425ed754d8e9690a55880e
3
+ metadata.gz: a07026d4b16d912c6a7618b95a8e87604c31bc91277eb983e071e5b9e19106c8
4
+ data.tar.gz: 942f8dba3c8a117ef980c4c7a8f76f4fb8993399d605f46c9c8f2acc3b1b7190
5
5
  SHA512:
6
- metadata.gz: b667ff1d565d6fa0907b6ec1ad1b482e020550da49491f9a17be58a5a2632a2261c0c7debe4e407ebb5b715ca8d8ffb9fa8b5d8234ef9e96f4ad01070604676e
7
- data.tar.gz: 58c578fcb0160dd9710e8c83bc88f47df280eca26a15c50d882fec0ae5adbf0919ae570b855017c5d632c5afc4a747109c2510ff798320e1e8b6074ccdd42421
6
+ metadata.gz: 1121b6029b79907edd42b686ad05b98f3bde3775bceba679390d071e475c71117c9a66fea3616ae6dbc94e8b6c15f8922617d54405db95a99aa65db2524c2473
7
+ data.tar.gz: 3b16c00a0014f0d60260450e0498ad69cd34fe126f03f2a71ebd6a192631b763d90a74f5f1ed1ee6487f90b0a2a738587ee46195a65175c92519187134fa918f
@@ -36,7 +36,10 @@ module Matestack
36
36
  if controller_layout == false
37
37
  root_layout = layout ? layout.layout : false
38
38
  else
39
- if controller_layout.nil?
39
+ # when using the turbo-rails gem, controller_layout is a Proc
40
+ # https://github.com/hotwired/turbo-rails/blob/v1.0.1/app/controllers/turbo/frames/frame_request.rb#L16
41
+ # and not nil or a string indicating which layout to be used like before
42
+ if controller_layout.nil? || controller_layout.is_a?(Proc)
40
43
  root_layout = "application"
41
44
  else
42
45
  root_layout = controller_layout
@@ -1,7 +1,7 @@
1
1
  module Matestack
2
2
  module Ui
3
3
  module Core
4
- VERSION = '3.0.0'
4
+ VERSION = '3.0.1'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matestack-ui-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Jabari
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-04 00:00:00.000000000 Z
11
+ date: 2022-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  requirements: []
74
- rubygems_version: 3.1.4
74
+ rubygems_version: 3.2.15
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: Escape the frontend hustle & easily create interactive web apps in pure Ruby.