tapioca 0.17.0 → 0.17.1
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/tapioca/helpers/test/isolation.rb +5 -4
- data/lib/tapioca/internal.rb +7 -7
- data/lib/tapioca/loaders/loader.rb +3 -7
- 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: a8f3834c7af239f3ba9c26395de29e0abb2b6345d10cc2c18418d9ac3eebb7a4
|
4
|
+
data.tar.gz: ca86a67b0d22cfc65a25e185cc93184e9ee9c94fd8dbb082973978feaf566cb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19cd7a29877ae6abbd68d19d6375b3654339fd8b3f5605d0b242db29713401a403cf16c516dfee65e6cbf65b0141d96b3514337d28b0fd612e204524e9a7f3f4
|
7
|
+
data.tar.gz: ab450b1fa72023fdd7daab0df32aa3e435637cceb608545d67c0b98ed9e114b1c56232fac9ba51305c7ddbe300910370d7085cf8bfebf286cd031fcb444bafcb
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# typed:
|
1
|
+
# typed: strict
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
module Tapioca
|
@@ -19,6 +19,7 @@ module Tapioca
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
+
#: -> Object
|
22
23
|
def run
|
23
24
|
serialized = T.unsafe(self).run_in_isolation do
|
24
25
|
super
|
@@ -67,8 +68,8 @@ module Tapioca
|
|
67
68
|
result = read.read
|
68
69
|
read.close
|
69
70
|
|
70
|
-
Process.wait2(
|
71
|
-
|
71
|
+
Process.wait2(pid)
|
72
|
+
result.unpack1("m")
|
72
73
|
end
|
73
74
|
end
|
74
75
|
|
@@ -78,7 +79,7 @@ module Tapioca
|
|
78
79
|
|
79
80
|
requires_ancestor { Kernel }
|
80
81
|
|
81
|
-
ORIG_ARGV = ARGV.dup
|
82
|
+
ORIG_ARGV = ARGV.dup #: Array[String]
|
82
83
|
|
83
84
|
# Crazy H4X to get this working in windows / jruby with
|
84
85
|
# no forking.
|
data/lib/tapioca/internal.rb
CHANGED
@@ -7,6 +7,13 @@ require "tapioca"
|
|
7
7
|
require "tapioca/runtime/reflection"
|
8
8
|
require "tapioca/runtime/trackers"
|
9
9
|
|
10
|
+
require "tapioca/runtime/dynamic_mixin_compiler"
|
11
|
+
require "tapioca/sorbet_ext/backcompat_patches"
|
12
|
+
require "tapioca/sorbet_ext/name_patch"
|
13
|
+
require "tapioca/sorbet_ext/generic_name_patch"
|
14
|
+
require "tapioca/sorbet_ext/proc_bind_patch"
|
15
|
+
require "tapioca/runtime/generic_type_registry"
|
16
|
+
|
10
17
|
# The rewriter needs to be loaded very early so RBS comments within Tapioca itself are rewritten
|
11
18
|
require "spoom"
|
12
19
|
require "tapioca/rbs/rewriter"
|
@@ -30,13 +37,6 @@ require "yaml"
|
|
30
37
|
require "yard-sorbet"
|
31
38
|
require "prism"
|
32
39
|
|
33
|
-
require "tapioca/runtime/dynamic_mixin_compiler"
|
34
|
-
require "tapioca/sorbet_ext/backcompat_patches"
|
35
|
-
require "tapioca/sorbet_ext/name_patch"
|
36
|
-
require "tapioca/sorbet_ext/generic_name_patch"
|
37
|
-
require "tapioca/sorbet_ext/proc_bind_patch"
|
38
|
-
require "tapioca/runtime/generic_type_registry"
|
39
|
-
|
40
40
|
require "tapioca/helpers/gem_helper"
|
41
41
|
require "tapioca/helpers/git_attributes"
|
42
42
|
require "tapioca/helpers/sorbet_helper"
|
@@ -98,20 +98,16 @@ module Tapioca
|
|
98
98
|
|
99
99
|
#: -> void
|
100
100
|
def load_engines_in_zeitwerk_mode
|
101
|
-
# Collect all the directories that are already managed by all existing Zeitwerk loaders.
|
102
|
-
managed_dirs = Zeitwerk::Loader.all_dirs.to_set
|
103
101
|
# We use a fresh loader to load the engine directories, so that we don't interfere with
|
104
102
|
# any of the existing loaders.
|
105
103
|
autoloader = Zeitwerk::Loader.new
|
106
104
|
|
107
105
|
engines.each do |engine|
|
108
106
|
eager_load_paths(engine).each do |path|
|
109
|
-
# Zeitwerk only accepts existing directories in `push_dir`.
|
110
|
-
next unless File.directory?(path)
|
111
|
-
# We should not add directories that are already managed by a Zeitwerk loader.
|
112
|
-
next if managed_dirs.member?(path)
|
113
|
-
|
114
107
|
autoloader.push_dir(path)
|
108
|
+
rescue Zeitwerk::Error
|
109
|
+
# The path is not an existing directory, or it is managed by
|
110
|
+
# some other loader, ..., it is fine, just skip it.
|
115
111
|
end
|
116
112
|
end
|
117
113
|
|
data/lib/tapioca/version.rb
CHANGED