steep 1.9.1 → 1.9.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: 522d134347810d1fbb030d139f616077fcc197aabe079bf14453305c9c9562bd
4
- data.tar.gz: bd6a1a97a815c02ba20160d6bc1bd2166c1a02cdee3901c2a84fca2fe1b22d0b
3
+ metadata.gz: b4ab8afe918f1a916f4697310e5119e832e9245ad45872c34e0c7d39a80725fc
4
+ data.tar.gz: 613dffe12496d24cfef1db9b01bf4aac622e7d9bb438554c8227904a2532ca55
5
5
  SHA512:
6
- metadata.gz: 254fb6ef3b682ea7866e2892755e183bcd8ed797f4209faf999f40cdcb140a67083c73684ba80273cbf2e563650a2213114c474a2e0d3e50cc6d0cdc5d05caf0
7
- data.tar.gz: b5daeab25121a44e5e9ad4a353de77115f7f626c0f5ac9342c1fe0ac061eabf75cbf3fef26a3b651d0b4849a0c05d5c1eafe9027f72294af0974f7b051f9eb71
6
+ metadata.gz: 26c87982d9a05cc18558d2f2a7ca55d9a81611316d2cbe48c9e95bcc8089c8a7cd769f62b453c8fdc59ef0429b83ea37ab3d7b0a048d4b465a6856376b611242
7
+ data.tar.gz: cdc096149b19d7bd20a8a6766e25d204b5b31be69614f84119f451c6654f5a1289a6948309eab1df61bccb5287ce5e1b35c5fbb2df5e922854402898d32575fc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.9.2 (2024-12-16)
4
+
5
+ ### Type checker core
6
+
7
+ * Attach type assertion to keyword args ([#1410](https://github.com/soutaro/steep/pull/1410))
8
+
9
+ ### Miscellaneous
10
+
11
+ * deps: Add uri gem to dependencies list ([#1402](https://github.com/soutaro/steep/pull/1402))
12
+
3
13
  ## 1.9.1 (2024-12-09)
4
14
 
5
15
  ### Type checker core
data/Steepfile CHANGED
@@ -23,6 +23,8 @@ target :app do
23
23
  signature "sig"
24
24
  ignore_signature "sig/test"
25
25
 
26
+ implicitly_returns_nil!
27
+
26
28
  configure_code_diagnostics(D::Ruby.strict) do |hash|
27
29
  end
28
30
 
@@ -37,6 +39,7 @@ target :test do
37
39
  collection_config "rbs_collection.steep.yaml"
38
40
 
39
41
  unreferenced!
42
+ implicitly_returns_nil!
40
43
 
41
44
  check "test"
42
45
  signature "sig/test"
@@ -52,6 +55,7 @@ end
52
55
 
53
56
  target :bin do
54
57
  unreferenced!
58
+ implicitly_returns_nil!
55
59
 
56
60
  collection_config "rbs_collection.steep.yaml"
57
61
 
data/lib/steep/source.rb CHANGED
@@ -496,6 +496,14 @@ module Steep
496
496
  # Skip
497
497
  when :def, :defs
498
498
  # Skip
499
+ when :kwargs
500
+ # skip
501
+ when :pair
502
+ key, value = node.children
503
+ key = insert_type_node(key, comments.except(last_line))
504
+ value = insert_type_node(value, comments)
505
+ node = node.updated(nil, [key, value])
506
+ return adjust_location(node)
499
507
  when :masgn
500
508
  lhs, rhs = node.children
501
509
  node = node.updated(nil, [lhs, insert_type_node(rhs, comments)])
data/lib/steep/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Steep
2
- VERSION = "1.9.1"
2
+ VERSION = "1.9.2"
3
3
  end
data/steep.gemspec CHANGED
@@ -51,4 +51,5 @@ Gem::Specification.new do |spec|
51
51
  spec.add_runtime_dependency "fileutils", ">= 1.1.0"
52
52
  spec.add_runtime_dependency "strscan", ">= 1.0.0"
53
53
  spec.add_runtime_dependency "csv", ">= 3.0.9"
54
+ spec.add_runtime_dependency "uri", ">= 0.12.0"
54
55
  end
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.9.1
4
+ version: 1.9.2
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-12-09 00:00:00.000000000 Z
11
+ date: 2024-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser
@@ -224,6 +224,20 @@ dependencies:
224
224
  - - ">="
225
225
  - !ruby/object:Gem::Version
226
226
  version: 3.0.9
227
+ - !ruby/object:Gem::Dependency
228
+ name: uri
229
+ requirement: !ruby/object:Gem::Requirement
230
+ requirements:
231
+ - - ">="
232
+ - !ruby/object:Gem::Version
233
+ version: 0.12.0
234
+ type: :runtime
235
+ prerelease: false
236
+ version_requirements: !ruby/object:Gem::Requirement
237
+ requirements:
238
+ - - ">="
239
+ - !ruby/object:Gem::Version
240
+ version: 0.12.0
227
241
  description: Gradual Typing for Ruby
228
242
  email:
229
243
  - matsumoto@soutaro.com