sorbet_view 0.9.0 → 0.10.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 +4 -4
- data/lib/sorbet_view/compiler/template_context.rb +4 -8
- data/lib/sorbet_view/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 41c3eee158110367848eab26fd2e0bc169806678664ea99bb94b49083fcfc93f
|
|
4
|
+
data.tar.gz: ea6261a8eb56f156c0ef3e2ad2f1701264575b4824406fd4913e93dcbe8d0d8b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 80bfaf727683a34e03ba64fce914073843ac0f4846a83844eebb3c96dd6a33e00e5bcab1450e7b6105530bb05221240798c111d78a9278f7a041014c9a8f12d0
|
|
7
|
+
data.tar.gz: bc2fd0b074a08b29b704cc2cf618a0a8d4546309f4915cf9c3644b3167af046ac1b78530be21bf9971dfb54b2ae726b246e3930d592b0e5eb5a47f27eb5b46c5
|
|
@@ -115,9 +115,8 @@ module SorbetView
|
|
|
115
115
|
def resolve_controller_view(path, ruby_path, config)
|
|
116
116
|
new(
|
|
117
117
|
class_name: "SorbetView::Generated::#{path_to_class_name(path, config)}",
|
|
118
|
-
superclass:
|
|
118
|
+
superclass: '::ActionView::Base',
|
|
119
119
|
includes: [
|
|
120
|
-
'::ActionView::Helpers',
|
|
121
120
|
'::ApplicationController::HelperMethods',
|
|
122
121
|
*config.extra_includes
|
|
123
122
|
],
|
|
@@ -130,9 +129,8 @@ module SorbetView
|
|
|
130
129
|
def resolve_mailer_view(path, ruby_path, config)
|
|
131
130
|
new(
|
|
132
131
|
class_name: "SorbetView::Generated::#{path_to_class_name(path, config)}",
|
|
133
|
-
superclass:
|
|
132
|
+
superclass: '::ActionView::Base',
|
|
134
133
|
includes: [
|
|
135
|
-
'::ActionView::Helpers',
|
|
136
134
|
'::ActionMailer::Base',
|
|
137
135
|
*config.extra_includes
|
|
138
136
|
],
|
|
@@ -145,9 +143,8 @@ module SorbetView
|
|
|
145
143
|
def resolve_layout(path, ruby_path, config)
|
|
146
144
|
new(
|
|
147
145
|
class_name: "SorbetView::Generated::#{path_to_class_name(path, config)}",
|
|
148
|
-
superclass:
|
|
146
|
+
superclass: '::ActionView::Base',
|
|
149
147
|
includes: [
|
|
150
|
-
'::ActionView::Helpers',
|
|
151
148
|
'::ApplicationController::HelperMethods',
|
|
152
149
|
*config.extra_includes
|
|
153
150
|
],
|
|
@@ -160,9 +157,8 @@ module SorbetView
|
|
|
160
157
|
def resolve_partial(path, ruby_path, config)
|
|
161
158
|
new(
|
|
162
159
|
class_name: "SorbetView::Generated::#{path_to_class_name(path, config)}",
|
|
163
|
-
superclass:
|
|
160
|
+
superclass: '::ActionView::Base',
|
|
164
161
|
includes: [
|
|
165
|
-
'::ActionView::Helpers',
|
|
166
162
|
'::ApplicationController::HelperMethods',
|
|
167
163
|
*config.extra_includes
|
|
168
164
|
],
|
data/lib/sorbet_view/version.rb
CHANGED