rbs 2.1.0 → 2.2.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 +4 -4
- data/.github/workflows/comments.yml +34 -0
- data/CHANGELOG.md +45 -0
- data/Rakefile +52 -21
- data/core/encoding.rbs +742 -0
- data/core/file.rbs +1 -3
- data/core/kernel.rbs +5 -3
- data/docs/syntax.md +54 -11
- data/ext/rbs_extension/extconf.rb +1 -0
- data/ext/rbs_extension/lexer.h +5 -0
- data/ext/rbs_extension/lexstate.c +6 -0
- data/ext/rbs_extension/parser.c +85 -10
- data/ext/rbs_extension/ruby_objs.c +4 -2
- data/ext/rbs_extension/ruby_objs.h +2 -2
- data/goodcheck.yml +0 -11
- data/lib/rbs/annotate/rdoc_annotator.rb +2 -2
- data/lib/rbs/ast/members.rb +21 -13
- data/lib/rbs/buffer.rb +17 -11
- data/lib/rbs/cli.rb +5 -2
- data/lib/rbs/definition_builder/method_builder.rb +28 -16
- data/lib/rbs/definition_builder.rb +1 -1
- data/lib/rbs/environment.rb +8 -4
- data/lib/rbs/namespace.rb +1 -1
- data/lib/rbs/type_name.rb +1 -1
- data/lib/rbs/types.rb +1 -1
- data/lib/rbs/validator.rb +2 -0
- data/lib/rbs/version.rb +1 -1
- data/lib/rbs/writer.rb +54 -4
- data/lib/rbs.rb +0 -2
- data/schema/typeParam.json +3 -3
- data/sig/annotate/rdoc_annotater.rbs +1 -1
- data/sig/buffer.rbs +6 -2
- data/sig/members.rbs +24 -18
- data/sig/method_builder.rbs +5 -4
- data/sig/writer.rbs +79 -2
- data/stdlib/net-http/0/manifest.yaml +1 -0
- data/stdlib/net-http/0/net-http.rbs +21 -0
- data/stdlib/uri/0/generic.rbs +2 -2
- data/stdlib/uri/0/http.rbs +35 -0
- metadata +3 -3
- data/sig/char_scanner.rbs +0 -9
data/stdlib/uri/0/http.rbs
CHANGED
@@ -48,6 +48,41 @@ module URI
|
|
48
48
|
def self.build: (Array[String | Integer] args) -> URI::HTTP
|
49
49
|
| ({ userinfo: String, host: String, port: Integer, path: String, query: String, fragment: String }) -> URI::HTTP
|
50
50
|
|
51
|
+
# <!--
|
52
|
+
# rdoc-file=lib/uri/http.rb
|
53
|
+
# - authority()
|
54
|
+
# -->
|
55
|
+
# ## Description
|
56
|
+
#
|
57
|
+
# Returns the authority for an HTTP uri, as defined in
|
58
|
+
# https://datatracker.ietf.org/doc/html/rfc3986/#section-3.2.
|
59
|
+
#
|
60
|
+
# Example:
|
61
|
+
#
|
62
|
+
# URI::HTTP.build(host: 'www.example.com', path: '/foo/bar').authority #=> "www.example.com"
|
63
|
+
# URI::HTTP.build(host: 'www.example.com', port: 8000, path: '/foo/bar').authority #=> "www.example.com:8000"
|
64
|
+
# URI::HTTP.build(host: 'www.example.com', port: 80, path: '/foo/bar').authority #=> "www.example.com"
|
65
|
+
#
|
66
|
+
def authority: () -> String
|
67
|
+
|
68
|
+
# <!--
|
69
|
+
# rdoc-file=lib/uri/http.rb
|
70
|
+
# - origin()
|
71
|
+
# -->
|
72
|
+
# ## Description
|
73
|
+
#
|
74
|
+
# Returns the origin for an HTTP uri, as defined in
|
75
|
+
# https://datatracker.ietf.org/doc/html/rfc6454.
|
76
|
+
#
|
77
|
+
# Example:
|
78
|
+
#
|
79
|
+
# URI::HTTP.build(host: 'www.example.com', path: '/foo/bar').origin #=> "http://www.example.com"
|
80
|
+
# URI::HTTP.build(host: 'www.example.com', port: 8000, path: '/foo/bar').origin #=> "http://www.example.com:8000"
|
81
|
+
# URI::HTTP.build(host: 'www.example.com', port: 80, path: '/foo/bar').origin #=> "http://www.example.com"
|
82
|
+
# URI::HTTPS.build(host: 'www.example.com', path: '/foo/bar').origin #=> "https://www.example.com"
|
83
|
+
#
|
84
|
+
def origin: () -> String
|
85
|
+
|
51
86
|
# <!--
|
52
87
|
# rdoc-file=lib/uri/http.rb
|
53
88
|
# - request_uri()
|
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.
|
4
|
+
version: 2.2.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-02-
|
11
|
+
date: 2022-02-22 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.
|
@@ -21,6 +21,7 @@ extensions:
|
|
21
21
|
extra_rdoc_files: []
|
22
22
|
files:
|
23
23
|
- ".github/dependabot.yml"
|
24
|
+
- ".github/workflows/comments.yml"
|
24
25
|
- ".github/workflows/ruby.yml"
|
25
26
|
- ".gitignore"
|
26
27
|
- ".rubocop.yml"
|
@@ -209,7 +210,6 @@ files:
|
|
209
210
|
- sig/annotation.rbs
|
210
211
|
- sig/buffer.rbs
|
211
212
|
- sig/builtin_names.rbs
|
212
|
-
- sig/char_scanner.rbs
|
213
213
|
- sig/cli.rbs
|
214
214
|
- sig/collection.rbs
|
215
215
|
- sig/collection/cleaner.rbs
|