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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aae584802448b64d85f5d3da609325b145bc698816d6564a09a45696aa338901
4
- data.tar.gz: d2673e9edcb91ba6fd7253a7bbd1b83505a4f2bb79ecde5159327f8775187d33
3
+ metadata.gz: a8f3834c7af239f3ba9c26395de29e0abb2b6345d10cc2c18418d9ac3eebb7a4
4
+ data.tar.gz: ca86a67b0d22cfc65a25e185cc93184e9ee9c94fd8dbb082973978feaf566cb4
5
5
  SHA512:
6
- metadata.gz: c1bbcb3975a85609b72642c849489743d4ba784c6ac5c5d1fe5f698dbadec683d141c8e8b42e63bd537f5c5770571d9446a05d865d381619b21ffe16acea8a89
7
- data.tar.gz: dc09f320a84af9eac62d79219cfa282c630b2b01b72ddf33971b7e235757a9e96249f7c98c34ba13679c2d1e2a7148bf6609418fb03bbd904b991a665dfe76e1
6
+ metadata.gz: 19cd7a29877ae6abbd68d19d6375b3654339fd8b3f5605d0b242db29713401a403cf16c516dfee65e6cbf65b0141d96b3514337d28b0fd612e204524e9a7f3f4
7
+ data.tar.gz: ab450b1fa72023fdd7daab0df32aa3e435637cceb608545d67c0b98ed9e114b1c56232fac9ba51305c7ddbe300910370d7085cf8bfebf286cd031fcb444bafcb
@@ -1,4 +1,4 @@
1
- # typed: true
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(T.must(pid))
71
- T.must(result).unpack1("m")
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 unless defined?(ORIG_ARGV) #: as !nil
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.
@@ -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
 
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Tapioca
5
- VERSION = "0.17.0"
5
+ VERSION = "0.17.1"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tapioca
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ufuk Kayserilioglu