typeprof 0.20.2 → 0.20.3

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: bacf4fa5ea4b9d22be05ade768e45b4a3e86f8845e6e470775d9c9333e72e5ad
4
- data.tar.gz: 186ed39f8e38d58bf710cea41942eaff66bc9ca505560e67a6f43d7ce6790896
3
+ metadata.gz: 3ee0445d195b9ab48538b37afc382d3b48d74c4fd9c5628010a3ac5084349259
4
+ data.tar.gz: 183309d5b70590396a7b0eec078b1b980b5e38877d5d756e66e03acefb971055
5
5
  SHA512:
6
- metadata.gz: 3f67fb359672f245991f71b50475ff6a472f2db67ab8c3e508a4bea7ff89155a407b8de9747e64444f2c79f78311305018951eeae896ddab594b8ceca864b67f
7
- data.tar.gz: ade3c4b52badc09023a669ea4fc1d10d66dc80ae35f4e65c8a92cb25d851701d6d79f135589c99f24b650da8fc863761911c450b5cb660ea93b6562ac18e6881
6
+ metadata.gz: 2b43a67c81128f11a34bd3d9aeecad1763e3baf7a8498e68c411fa652579213519956a6ff4d301873b8d9291d1ce89f1c1e33f0379846df620118d47b42add0f
7
+ data.tar.gz: e1768b62ac2fe976fb94abe2fbf41656002f80e8016cd8c5e634a44770a4a8eeafb1e50bc5003a774d84621a5c14fbad9fef4eb40c9c383b9b48bee74ca05907
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- typeprof (0.20.2)
4
+ typeprof (0.20.3)
5
5
  rbs (>= 1.6.2)
6
6
 
7
7
  GEM
@@ -9,9 +9,9 @@ GEM
9
9
  specs:
10
10
  coverage-helpers (1.0.0)
11
11
  docile (1.4.0)
12
- power_assert (2.0.0)
12
+ power_assert (2.0.1)
13
13
  rake (13.0.1)
14
- rbs (1.6.2)
14
+ rbs (1.7.0)
15
15
  simplecov (0.21.2)
16
16
  docile (~> 1.1)
17
17
  simplecov-html (~> 0.11)
@@ -19,7 +19,7 @@ GEM
19
19
  simplecov-html (0.12.3)
20
20
  simplecov_json_formatter (0.1.3)
21
21
  stackprof (0.2.17)
22
- test-unit (3.4.4)
22
+ test-unit (3.5.1)
23
23
  power_assert
24
24
 
25
25
  PLATFORMS
data/lib/typeprof/type.rb CHANGED
@@ -422,22 +422,22 @@ module TypeProf
422
422
  end
423
423
 
424
424
  def self.any
425
- @any ||= Any.new
425
+ Thread.current[:any] ||= Any.new
426
426
  end
427
427
 
428
428
  def self.bot
429
- @bot ||= Union.new(Utils::Set[], nil)
429
+ Thread.current[:bot] ||= Union.new(Utils::Set[], nil)
430
430
  end
431
431
 
432
432
  def self.bool
433
- @bool ||= Union.new(Utils::Set[
433
+ Thread.current[:bool] ||= Union.new(Utils::Set[
434
434
  Instance.new(Type::Builtin[:true]),
435
435
  Instance.new(Type::Builtin[:false])
436
436
  ], nil)
437
437
  end
438
438
 
439
439
  def self.nil
440
- @nil ||= Instance.new(Type::Builtin[:nil])
440
+ Thread.current[:nil] ||= Instance.new(Type::Builtin[:nil])
441
441
  end
442
442
 
443
443
  def self.optional(ty)
@@ -1,3 +1,3 @@
1
1
  module TypeProf
2
- VERSION = "0.20.2"
2
+ VERSION = "0.20.3"
3
3
  end