rbs 1.3.0 → 1.4.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.
@@ -755,8 +755,8 @@ class Pathname
755
755
  #
756
756
  # See File.open.
757
757
  #
758
- def open: (?String mode, ?Integer perm) -> File
759
- | [T] (?String mode, ?Integer perm) { (File) -> T } -> T
758
+ def open: (?(string | int) mode, ?int perm) -> File
759
+ | [T] (?(string | int) mode, ?int perm) { (File) -> T } -> T
760
760
 
761
761
  # Opens the referenced directory.
762
762
  #
@@ -177,7 +177,7 @@ class Resolv::DNS
177
177
  # `address` must be a Resolv::IPv4, Resolv::IPv6 or a String. Retrieved names
178
178
  # will be Resolv::DNS::Name instances.
179
179
  #
180
- def getnames: (ip_address | dns_name address) -> [Resolv::DNS::Name]
180
+ def getnames: (ip_address | dns_name address) -> Array[Resolv::DNS::Name]
181
181
 
182
182
  # Look up the `typeclass` DNS resource of `name`.
183
183
  #
@@ -685,7 +685,7 @@ module Gem
685
685
  # NOTE: Enabling automatic discovery on multiuser systems can lead to execution
686
686
  # of arbitrary code when used from directories outside your control.
687
687
  #
688
- def self.use_gemdeps: (?String path) -> Array[Specification]?
688
+ def self.use_gemdeps: (?String path) -> void
689
689
 
690
690
  # Use the `home` and `paths` values for Gem.dir and Gem.path. Used mainly by
691
691
  # the unit tests to provide environment isolation.
@@ -5,7 +5,9 @@ module SecureRandom
5
5
  def self.base64: (?Integer?) -> String
6
6
  def self.hex: (?Integer?) -> String
7
7
  def self.random_bytes: (?Integer?) -> String
8
- def self.random_number: (?Integer?) -> (Integer | Float)
8
+ def self.random_number: () -> Float
9
+ | (Integer) -> Integer
10
+ | (Numeric) -> Numeric
9
11
  def self.urlsafe_base64: (?Integer?, ?bool?) -> String
10
12
  def self.uuid: () -> String
11
13
  end
@@ -260,7 +260,7 @@ module URI
260
260
  #
261
261
  # URI("http://foo/bar/baz?search=FooBar#ponies").fragment #=> "ponies"
262
262
  #
263
- attr_reader fragment: String
263
+ attr_reader fragment: String?
264
264
 
265
265
  # Returns the parser to be used.
266
266
  #
@@ -706,7 +706,7 @@ module URI
706
706
  # uri.merge!("/main.rbx?page=1")
707
707
  # uri.to_s # => "http://my.example.com/main.rbx?page=1"
708
708
  #
709
- def merge!: (String oth) -> String
709
+ def merge!: (string oth) -> String
710
710
 
711
711
  #
712
712
  # == Args
@@ -726,7 +726,7 @@ module URI
726
726
  # uri.merge("/main.rbx?page=1")
727
727
  # # => "http://my.example.com/main.rbx?page=1"
728
728
  #
729
- def merge: (String oth) -> URI::Generic
729
+ def merge: (string oth) -> URI::Generic
730
730
 
731
731
  # :stopdoc:
732
732
  def route_from_path: (String src, String dst) -> String
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: 1.3.0
4
+ version: 1.4.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: 2021-07-20 00:00:00.000000000 Z
11
+ date: 2021-08-18 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.
@@ -52,6 +52,7 @@ files:
52
52
  - core/file_test.rbs
53
53
  - core/float.rbs
54
54
  - core/gc.rbs
55
+ - core/global_variables.rbs
55
56
  - core/hash.rbs
56
57
  - core/integer.rbs
57
58
  - core/io.rbs
@@ -134,6 +135,7 @@ files:
134
135
  - lib/rbs/test/spy.rb
135
136
  - lib/rbs/test/tester.rb
136
137
  - lib/rbs/test/type_check.rb
138
+ - lib/rbs/type_alias_dependency.rb
137
139
  - lib/rbs/type_name.rb
138
140
  - lib/rbs/type_name_resolver.rb
139
141
  - lib/rbs/types.rb
@@ -180,6 +182,7 @@ files:
180
182
  - sig/rbs.rbs
181
183
  - sig/repository.rbs
182
184
  - sig/substitution.rbs
185
+ - sig/type_alias_dependency.rbs
183
186
  - sig/type_name_resolver.rbs
184
187
  - sig/typename.rbs
185
188
  - sig/types.rbs
@@ -215,6 +218,7 @@ files:
215
218
  - stdlib/monitor/0/monitor.rbs
216
219
  - stdlib/mutex_m/0/mutex_m.rbs
217
220
  - stdlib/net-http/0/net-http.rbs
221
+ - stdlib/openssl/0/openssl.rbs
218
222
  - stdlib/optparse/0/optparse.rbs
219
223
  - stdlib/pathname/0/pathname.rbs
220
224
  - stdlib/prettyprint/0/prettyprint.rbs