typeprof 0.20.1 → 0.20.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: b3938be1edd2b64861739d4ea2f801972c32fc67b4b791837e2b238d9be3a5bb
4
- data.tar.gz: 8ba23caae4ab25ea713a1b4fca1850cbc44954aaecabcfd9a3e7a3db18c6ea4b
3
+ metadata.gz: bacf4fa5ea4b9d22be05ade768e45b4a3e86f8845e6e470775d9c9333e72e5ad
4
+ data.tar.gz: 186ed39f8e38d58bf710cea41942eaff66bc9ca505560e67a6f43d7ce6790896
5
5
  SHA512:
6
- metadata.gz: e946bed7229effa1d0d95fd665875b39344d8aa959e6fa126631b914e8f9ead55a2a5cababd2ea390f1275b04d1e73bec2b4969c3ccc549acfdeb09512ed8626
7
- data.tar.gz: e31d656a00087bb096c91e2c3da129e7d81ee480e99d67685b1c458a5cbf1a2e97c3ea0feef1657b1a895fc44bd2011ba3fd6ef8b387833967e99c1c728b6e4b
6
+ metadata.gz: 3f67fb359672f245991f71b50475ff6a472f2db67ab8c3e508a4bea7ff89155a407b8de9747e64444f2c79f78311305018951eeae896ddab594b8ceca864b67f
7
+ data.tar.gz: ade3c4b52badc09023a669ea4fc1d10d66dc80ae35f4e65c8a92cb25d851701d6d79f135589c99f24b650da8fc863761911c450b5cb660ea93b6562ac18e6881
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- typeprof (0.20.1)
4
+ typeprof (0.20.2)
5
5
  rbs (>= 1.6.2)
6
6
 
7
7
  GEM
@@ -1393,7 +1393,7 @@ module TypeProf
1393
1393
  num, = operands
1394
1394
  env, = env.pop(num)
1395
1395
  env = env.push(Type::Instance.new(Type::Builtin[:str]))
1396
- when :tostring
1396
+ when :tostring, :anytostring
1397
1397
  env, (_ty1, _ty2,) = env.pop(2)
1398
1398
  env = env.push(Type::Instance.new(Type::Builtin[:str]))
1399
1399
  when :freezestring
@@ -21,6 +21,7 @@ TypeProf::INSN_TABLE = {:nop=>[],
21
21
  :putstring=>["VALUE"],
22
22
  :concatstrings=>["rb_num_t"],
23
23
  :tostring=>[],
24
+ :anytostring=>[],
24
25
  :freezestring=>["VALUE"],
25
26
  :toregexp=>["rb_num_t", "rb_num_t"],
26
27
  :intern=>[],
data/lib/typeprof/iseq.rb CHANGED
@@ -704,7 +704,7 @@ module TypeProf
704
704
  sp += 1
705
705
  when :newhashfromarray
706
706
  raise NotImplementedError, "newhashfromarray"
707
- when :newrange, :tostring
707
+ when :newrange, :tostring, :anytostring
708
708
  sp -= 2
709
709
  return nil if sp <= 0
710
710
  sp += 1
@@ -1,3 +1,3 @@
1
1
  module TypeProf
2
- VERSION = "0.20.1"
2
+ VERSION = "0.20.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typeprof
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.1
4
+ version: 0.20.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yusuke Endoh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-25 00:00:00.000000000 Z
11
+ date: 2021-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbs