matestack-ui-core 3.0.0.rc1 → 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: 6d8cba56b21f3321dba109893e1b3d1788ab2bfd72769f72ef28d5cc12e4e8cc
4
- data.tar.gz: 86a8df3fb1073d8f58ec40722328e0a4fac806e78e4b9ed7c7cc4fece372b4cf
3
+ metadata.gz: a07026d4b16d912c6a7618b95a8e87604c31bc91277eb983e071e5b9e19106c8
4
+ data.tar.gz: 942f8dba3c8a117ef980c4c7a8f76f4fb8993399d605f46c9c8f2acc3b1b7190
5
5
  SHA512:
6
- metadata.gz: f52ec0fcd85b24c44f1c5819364335981a6a388729e5ebad01522cefb9767ff79a41370156b6e836f4c8eb058a0a0048a8cfe1ff201a5c072ea1e7640dcbb5eb
7
- data.tar.gz: 2ccf5d4371fd1afa62559367af6e1531c00b644af582fb3f0b3743428c2f29c587c8a49ddd5a7cca82cb83e5b36699e32cea7ba8806f1ca050749fe556a59186
6
+ metadata.gz: 1121b6029b79907edd42b686ad05b98f3bde3775bceba679390d071e475c71117c9a66fea3616ae6dbc94e8b6c15f8922617d54405db95a99aa65db2524c2473
7
+ data.tar.gz: 3b16c00a0014f0d60260450e0498ad69cd34fe126f03f2a71ebd6a192631b763d90a74f5f1ed1ee6487f90b0a2a738587ee46195a65175c92519187134fa918f
@@ -104,15 +104,10 @@ module Matestack
104
104
  end
105
105
  end
106
106
 
107
- def method_missing(name, *args, &block)
107
+ def method_missing(name, *args, **kwargs, &block)
108
108
  if view_context && view_context.respond_to?(name, true)
109
- if block_given?
110
- view_context_response = view_context.send(name, *args, &Proc.new)
111
- return view_context_response
112
- else
113
- view_context_response = view_context.send(name, *args)
114
- return view_context_response
115
- end
109
+ view_context_response = view_context.send(name, *args, **kwargs, &block)
110
+ return view_context_response
116
111
  end
117
112
  if Rails.application.routes.url_helpers.respond_to?(name, true)
118
113
  return Rails.application.routes.url_helpers.send(name, *args, &block)
@@ -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.rc1'
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.rc1
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-02-11 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
@@ -67,11 +67,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
67
67
  version: '0'
68
68
  required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  requirements:
70
- - - ">"
70
+ - - ">="
71
71
  - !ruby/object:Gem::Version
72
- version: 1.3.1
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.