orthoses 1.20.1 → 1.20.2

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: 4afc081ffb25e92f7bc87870c966ba41ed2d148ecf545f66630568d796383b5d
4
- data.tar.gz: d374c8117a5b795ef7c60f8096e97b610b76ea61c108f5b1695be571020b973c
3
+ metadata.gz: a87c48ef1b0cd96027fd8a11b2ea1cf6c17b604e4b9b1ff0a87e455a4aaaa0e4
4
+ data.tar.gz: d5810095b79427d25d8389fe468bf073569809696cedeb7b0b2271b97f35aac7
5
5
  SHA512:
6
- metadata.gz: 0e7514a41e28c172c32bfe54859ed43ddc389bc345087ed1f18a963c1975fb595c3378ecc8ca614d1c4ee406b10a0072fab0f0a81a2e534541b614ada07cff11
7
- data.tar.gz: 9f173a3a93eb3e38aeac71f456fe0c20cf2cf5f8bd8daa360f1e5df496162c1796d647de8c3ab2217bb55d2235813bf8aff453f1f7d2050252cc8fbc6d85e6cb
6
+ metadata.gz: 15874bae0e278998ec55ea85abea493b4a0f04e9bb263f1329793c14ec793e1cc43279097310c69082b06d7a3e70faceafaf3a4a8cbf74fb276d015df311f8f7
7
+ data.tar.gz: cf59b7e685319180e98ef456aa52d255ff6bf8dacd80cc18994cb6ad33cabfc50c917466d709d8b74ba3a8aa82db9b1727887ef48cd3e53f7621105228447fd9
@@ -25,6 +25,8 @@ module Orthoses
25
25
  raise "bug"
26
26
  end
27
27
 
28
+ rebuild_environment
29
+
28
30
  @loader.call
29
31
  end
30
32
 
@@ -32,5 +34,11 @@ module Orthoses
32
34
  buffer, directives, decls = ::RBS::Parser.parse_signature(rbs)
33
35
  Utils.rbs_environment.add_signature(buffer: buffer, directives: directives, decls: decls)
34
36
  end
37
+
38
+ def rebuild_environment
39
+ old_env = Utils.rbs_environment
40
+ new_env = old_env.resolve_type_names
41
+ Utils.module_eval { @env_cache[[nil, true]] = new_env }
42
+ end
35
43
  end
36
44
  end
@@ -51,7 +51,7 @@ module Orthoses
51
51
  end
52
52
  missings.uniq!
53
53
  missings.each do |missing|
54
- @store[missing].header = "module #{missing}"
54
+ @store[missing]
55
55
  end
56
56
  end
57
57
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Orthoses
4
- VERSION = "1.20.1"
4
+ VERSION = "1.20.2"
5
5
  end
@@ -10,4 +10,5 @@ class Orthoses::ExcludeRBS
10
10
  def initialize: (untyped loader, ?paths: untyped?, ?rbs: untyped?) -> void
11
11
  def call: () -> untyped
12
12
  def add_signature_to_known_env: (untyped rbs) -> untyped
13
+ def rebuild_environment: () -> untyped
13
14
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orthoses
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.20.1
4
+ version: 1.20.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ksss
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-04-18 00:00:00.000000000 Z
10
+ date: 2025-07-17 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rbs