steep 1.8.2 → 1.8.3
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 +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/steep/server/master.rb +2 -3
- data/lib/steep/type_construction.rb +4 -4
- data/lib/steep/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d97696cd49dd790a9b26f7682c1a1afc930ae0e16015b68f0a5b171851551f66
|
4
|
+
data.tar.gz: f2bb9e1a958fe0da3c8b92cf3710bbaeb2eaa6267e38717d46727583e4322638
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69365a7f7bd5919a26bd769c7fa800b51845a93d7dbdbd5c436e72a510098168dbc3ed3d9699399b2a8f0d16f9066d0d3e0ffff835fef0bcf9bce96cfd04d8bf
|
7
|
+
data.tar.gz: 5de2dbf818393ec2544a189062f0cad66f5c1b348543ff58861f96f65db53aa55e4e9928f1898ae6afd386116124d4b8554df3180983afe771b6c46f1d77ac3f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 1.8.3 (2024-10-29)
|
4
|
+
|
5
|
+
### Type checker core
|
6
|
+
|
7
|
+
* Fix untyped hash typing ([#1299](https://github.com/soutaro/steep/pull/1299), Backport in [#1301](https://github.com/soutaro/steep/pull/1301))
|
8
|
+
|
9
|
+
### Language server
|
10
|
+
|
11
|
+
* Handle file deletion notification ([#1300](https://github.com/soutaro/steep/pull/1300), Backport in [#1301](https://github.com/soutaro/steep/pull/1301))
|
12
|
+
|
3
13
|
## 1.8.2 (2024-10-24)
|
4
14
|
|
5
15
|
### Language server
|
data/lib/steep/server/master.rb
CHANGED
@@ -716,10 +716,9 @@ module Steep
|
|
716
716
|
controller.push_changes(path)
|
717
717
|
|
718
718
|
case type
|
719
|
-
when
|
719
|
+
when LSP::Constant::FileChangeType::CREATED, LSP::Constant::FileChangeType::CHANGED
|
720
720
|
content = path.read
|
721
|
-
when
|
722
|
-
# Deleted
|
721
|
+
when LSP::Constant::FileChangeType::DELETED
|
723
722
|
content = ""
|
724
723
|
end
|
725
724
|
|
@@ -1434,10 +1434,10 @@ module Steep
|
|
1434
1434
|
case hint
|
1435
1435
|
when AST::Types::Any, AST::Types::Top, AST::Types::Void
|
1436
1436
|
# ok
|
1437
|
-
when hint == pair.type
|
1438
|
-
# ok
|
1439
1437
|
else
|
1440
|
-
pair.
|
1438
|
+
unless hint == pair.type
|
1439
|
+
pair.constr.typing.add_error Diagnostic::Ruby::FallbackAny.new(node: node)
|
1440
|
+
end
|
1441
1441
|
end
|
1442
1442
|
end
|
1443
1443
|
end
|
@@ -5054,7 +5054,7 @@ module Steep
|
|
5054
5054
|
if (type_, constr = yield(type, constr))
|
5055
5055
|
constr.check_relation(sub_type: type_, super_type: type).then do
|
5056
5056
|
constr = constr.save_typing
|
5057
|
-
return Pair.new(type:
|
5057
|
+
return Pair.new(type: type_, constr: constr)
|
5058
5058
|
end
|
5059
5059
|
end
|
5060
5060
|
end
|
data/lib/steep/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: steep
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Soutaro Matsumoto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|
@@ -410,7 +410,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
410
410
|
- !ruby/object:Gem::Version
|
411
411
|
version: '0'
|
412
412
|
requirements: []
|
413
|
-
rubygems_version: 3.5.
|
413
|
+
rubygems_version: 3.5.17
|
414
414
|
signing_key:
|
415
415
|
specification_version: 4
|
416
416
|
summary: Gradual Typing for Ruby
|