rbs_loading_optimizer 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02e4af2f1212ecde2369a00e2eae1c04b74c7c414c7b36deedd06f71b5f23c3a
4
- data.tar.gz: 72bfb4e4a4495fd5c7ae18296837c9ea355b29ca34d80fa2bde4825a42a639dc
3
+ metadata.gz: 91bf4e7ef982077f4dc208fb623334f52f9e97d37ff4c2f8d4bd2e37a9f7ecfd
4
+ data.tar.gz: 7a686dcfc1ff9f1f0300b8a00893b58b316cfbd361251a80d48760696108a63b
5
5
  SHA512:
6
- metadata.gz: 4733ef23a79ab88a3e361e90e00e48826c38160272b6a8a2d5b12f86855137a1c349bfd73fce62fcad07ee481e01d36e6e66f597ea0ed9de0d6703b3e6d40c95
7
- data.tar.gz: ebcdeed24d072e32f6d2e24d5151082ed50878b3504f530115f77dcf1e28f3aeaa803077e912599c0ebd0f15c89da9acb9707c546dd2c15403029cf638ca658c
6
+ metadata.gz: 5a0207861ab5fa420aef88b6fe065db7e0651f3685def35efd0595e5621ed9822e1b05d0d0377100585f8aa4f2833569797d0ffb69d7ae2821c846a7dc288d4a
7
+ data.tar.gz: 75abd34eed5d0419a8f536927d3073ea5fcdd430db2d88c87a01eac63ea299647902d2b6bb30ee94a262db739a20e9e74613418f63841f162c1c823b1a7e61bc
@@ -49,10 +49,11 @@ module RBS
49
49
  alias original_resolve_type_names resolve_type_names
50
50
 
51
51
  def resolve_type_names(only: nil)
52
- original_resolve_type_names(only:)
53
-
54
- # NOTE: Write the environment to the cache file
55
- write_cache("system.rbs", self)
52
+ original_resolve_type_names(only:).tap do |resolved_env|
53
+ # NOTE: Write the environment to the cache file
54
+ resolve_env.modified_time = modified_time
55
+ write_cache("system.rbs", resolved_env)
56
+ end
56
57
  end
57
58
 
58
59
  alias original_resolve_declaration resolve_declaration
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RbsLoadingOptimizer
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbs_loading_optimizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takeshi KOMIYA
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-07 00:00:00.000000000 Z
11
+ date: 2023-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbs