tapioca 0.17.4 → 0.17.5
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/ruby_lsp/tapioca/server_addon.rb +9 -7
- data/lib/tapioca/dsl/compilers/smart_properties.rb +20 -16
- data/lib/tapioca/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: 302108d7d02504d88d18e3b0ae4832e2fd6c891e83f6428d69d5c4f6773a3a73
|
4
|
+
data.tar.gz: 646642051b0b9d8736ad30e45d0b1bcfbe82f92b980f0909c45dc7f2337e0ce1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6a75f400e82b9f311f0f53713a843a94a3e444a6a52b09d83abd818226a058ec78f02e43b193e864fc90f895ecad0425e7b9d160aaa7c4681b354392a7ad594
|
7
|
+
data.tar.gz: 831256628c364563d69fe8d742f9fe0a973e12275bdbb5498a6af83c664036aa199ec0a94bf9ba527d3165723bf17aa5852e9eb2b993ccc0ed7439ef0f663a68
|
@@ -19,13 +19,15 @@ module RubyLsp
|
|
19
19
|
when "load_compilers_and_extensions"
|
20
20
|
# Load DSL extensions and compilers ahead of time, so that we don't have to pay the price of invoking
|
21
21
|
# `Gem.find_files` on every execution, which is quite expensive
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
22
|
+
with_notification_wrapper("load_compilers_and_extensions", "Loading DSL compilers") do
|
23
|
+
@loader = ::Tapioca::Loaders::Dsl.new(
|
24
|
+
tapioca_path: ::Tapioca::TAPIOCA_DIR,
|
25
|
+
eager_load: false,
|
26
|
+
app_root: params[:workspace_path],
|
27
|
+
halt_upon_load_error: false,
|
28
|
+
)
|
29
|
+
@loader.load_dsl_extensions_and_compilers
|
30
|
+
end
|
29
31
|
when "dsl"
|
30
32
|
fork do
|
31
33
|
with_notification_wrapper("dsl", "Generating DSL RBIs") do
|
@@ -29,29 +29,33 @@ module Tapioca
|
|
29
29
|
# # post.rbi
|
30
30
|
# # typed: true
|
31
31
|
# class Post
|
32
|
-
#
|
33
|
-
# def title; end
|
32
|
+
# include SmartPropertiesGeneratedMethods
|
34
33
|
#
|
35
|
-
#
|
36
|
-
#
|
34
|
+
# module SmartPropertiesGeneratedMethods
|
35
|
+
# sig { returns(T.nilable(::String)) }
|
36
|
+
# def title; end
|
37
37
|
#
|
38
|
-
#
|
39
|
-
#
|
38
|
+
# sig { params(title: T.nilable(::String)).returns(T.nilable(::String)) }
|
39
|
+
# def title=(title); end
|
40
40
|
#
|
41
|
-
#
|
42
|
-
#
|
41
|
+
# sig { returns(::String) }
|
42
|
+
# def description; end
|
43
43
|
#
|
44
|
-
#
|
45
|
-
#
|
44
|
+
# sig { params(description: ::String).returns(::String) }
|
45
|
+
# def description=(description); end
|
46
46
|
#
|
47
|
-
#
|
48
|
-
#
|
47
|
+
# sig { returns(T.nilable(T::Boolean)) }
|
48
|
+
# def published?; end
|
49
49
|
#
|
50
|
-
#
|
51
|
-
#
|
50
|
+
# sig { params(published: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
|
51
|
+
# def published=(published); end
|
52
52
|
#
|
53
|
-
#
|
54
|
-
#
|
53
|
+
# sig { returns(T.nilable(T::Boolean)) }
|
54
|
+
# def enabled; end
|
55
|
+
#
|
56
|
+
# sig { params(enabled: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
|
57
|
+
# def enabled=(enabled); end
|
58
|
+
# end
|
55
59
|
# end
|
56
60
|
# ~~~
|
57
61
|
#: [ConstantType = singleton(::SmartProperties)]
|
data/lib/tapioca/version.rb
CHANGED