rbs 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.1.0
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-02 00:00:00.000000000 Z
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
data/sig/char_scanner.rbs DELETED
@@ -1,9 +0,0 @@
1
- module RBS
2
- class CharScanner < StringScanner
3
- def initialize: (String) -> void
4
-
5
- def original_charpos: () -> Integer
6
-
7
- @charpos: Integer
8
- end
9
- end