rbs 2.7.0.pre.3 → 2.7.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f91ad5c51173e15b33d5015403b323ebb80a75cbd7d4dc091d4724e9cd2f322f
4
- data.tar.gz: e5371a5cbe5fbd676a6336661455206f2339c8fa1a36f29ccad7cd719e1b40e8
3
+ metadata.gz: d5774c0ae32533d1da69481ae4b413817580fd9974b445a67bef1faf4ff48080
4
+ data.tar.gz: 3f4552b3a91d2fc233f110b8682b73674454163a540d271c9f355daf6e61b5d3
5
5
  SHA512:
6
- metadata.gz: bdbe2991c53d87010bd8bbb5352fd34a8c6797418288a12a40a8b1a3813c353b7012b689b7aeeca22cc43fa9d7145075e91e8eef1771fcc406ac93c9b2583549
7
- data.tar.gz: 442d25840bcb80979c67e8a3b4f634bd9883b080923c0a25a33bde41d79785572894a5cf31d0af365e34c8b164dc3422e9b5d41d464a42792c911de5e3395cfd
6
+ metadata.gz: '0827ff2d63c104b99b07b5319f581b559b6dd7b6e9a26ae2f65d2fc5f8b9c435fff19690b9efe1dfed4c5d220c61c4afdb74203a2275b27bd95a934fbe467c16'
7
+ data.tar.gz: 7584c2471066032562ca5c3eb39dc8880e764f0fa880fcb9d1ee5e5b56b29fad9d2991b570b17ccf8b9e1f9ecf395c4719609d176dc2058fce6bfac03455d79f
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 2.7.0 (2022-10-07)
6
+
7
+ ### Signature updates
8
+
9
+ * `Symbol#start_with?` ([#1118](https://github.com/ruby/rbs/pull/1118))
10
+ * `URL::*.build` ([#1118](https://github.com/ruby/rbs/pull/1118))
11
+
5
12
  ## 2.7.0.pre.3 (2022-10-06)
6
13
 
7
14
  ### Signature updates
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rbs (2.7.0.pre.3)
4
+ rbs (2.7.0)
5
5
 
6
6
  PATH
7
7
  remote: test/assets/test-gem
data/core/symbol.rbs CHANGED
@@ -434,7 +434,7 @@ class Symbol
434
434
  # :hello.start_with?("heaven", "hell") #=> true
435
435
  # :hello.start_with?("heaven", "paradise") #=> false
436
436
  #
437
- def start_with?: (*string prefixes) -> bool
437
+ def start_with?: (*string | Regexp prefixes) -> bool
438
438
 
439
439
  # <!--
440
440
  # rdoc-file=string.c
data/lib/rbs/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RBS
4
- VERSION = "2.7.0.pre.3"
4
+ VERSION = "2.7.0"
5
5
  end
@@ -42,7 +42,7 @@ module URI
42
42
  # uri2.to_s # => "file://host.example.com/ruby/src"
43
43
  #
44
44
  def self.build: (Array[String] args) -> URI::File
45
- | ({ host: String, path: String }) -> URI::File
45
+ | ({ host: String?, path: String? }) -> URI::File
46
46
 
47
47
  # <!--
48
48
  # rdoc-file=lib/uri/file.rb
@@ -154,7 +154,7 @@ module URI
154
154
  # then it does URI::Escape.escape all URI components and tries again.
155
155
  #
156
156
  def self.build2: (Array[nil | String | Integer]) -> URI::Generic
157
- | ({ scheme: String, userinfo: String, host: String, port: Integer, registry: String?, path: String, opaque: String?, query: String, fragment: String }) -> URI::Generic
157
+ | ({ scheme: String?, userinfo: String?, host: String?, port: Integer?, registry: String?, path: String?, opaque: String?, query: String?, fragment: String? }) -> URI::Generic
158
158
 
159
159
  # <!--
160
160
  # rdoc-file=lib/uri/generic.rb
@@ -172,7 +172,7 @@ module URI
172
172
  # See ::new for hash keys to use or for order of array items.
173
173
  #
174
174
  def self.build: (Array[nil | String | Integer]) -> URI::Generic
175
- | ({ scheme: String, userinfo: String, host: String, port: Integer, registry: String?, path: String, opaque: String?, query: String, fragment: String }) -> URI::Generic
175
+ | ({ scheme: String?, userinfo: String?, host: String?, port: Integer?, registry: String?, path: String?, opaque: String?, query: String?, fragment: String? }) -> URI::Generic
176
176
 
177
177
  # <!--
178
178
  # rdoc-file=lib/uri/generic.rb
@@ -46,7 +46,7 @@ module URI
46
46
  # URIs as per RFC 1738.
47
47
  #
48
48
  def self.build: (Array[String | Integer] args) -> URI::HTTP
49
- | ({ userinfo: String, host: String, port: Integer, path: String, query: String, fragment: String }) -> URI::HTTP
49
+ | ({ userinfo: String?, host: String?, port: Integer?, path: String?, query: String?, fragment: String? }) -> URI::HTTP
50
50
 
51
51
  # <!--
52
52
  # rdoc-file=lib/uri/http.rb
@@ -50,7 +50,7 @@ module URI
50
50
  # "/dc=example;dc=com", "query", nil, nil, nil])
51
51
  #
52
52
  def self.build: (Array[nil | String | Integer] args) -> URI::LDAP
53
- | ({ host: String, port: Integer?, dn: String, attributes: String?, scope: String?, filter: String?, extensions: String? }) -> URI::LDAP
53
+ | ({ host: String?, port: Integer?, dn: String?, attributes: String?, scope: String?, filter: String?, extensions: String? }) -> URI::LDAP
54
54
 
55
55
  # <!--
56
56
  # rdoc-file=lib/uri/ldap.rb
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbs
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0.pre.3
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Soutaro Matsumoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-06 00:00:00.000000000 Z
11
+ date: 2022-10-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: RBS is the language for type signatures for Ruby and standard library
14
14
  definitions.
@@ -433,9 +433,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
433
433
  version: '2.6'
434
434
  required_rubygems_version: !ruby/object:Gem::Requirement
435
435
  requirements:
436
- - - ">"
436
+ - - ">="
437
437
  - !ruby/object:Gem::Version
438
- version: 1.3.1
438
+ version: '0'
439
439
  requirements: []
440
440
  rubygems_version: 3.3.7
441
441
  signing_key: