rbs 2.8.0 → 2.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -153,7 +153,7 @@ module Net
153
153
  # puts res.class.name # => 'HTTPOK'
154
154
  #
155
155
  # # Body
156
- # puts res.body if res.response_body_permitted?
156
+ # puts res.body
157
157
  #
158
158
  # ### Following Redirection
159
159
  #
@@ -2324,9 +2324,6 @@ module Net
2324
2324
  alias entity body
2325
2325
  end
2326
2326
 
2327
- # <!-- rdoc-file=lib/net/http/responses.rb -->
2328
- # https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
2329
- #
2330
2327
  class HTTPUnknownResponse < HTTPResponse
2331
2328
  HAS_BODY: bool
2332
2329
 
@@ -2445,9 +2442,6 @@ module Net
2445
2442
  HAS_BODY: bool
2446
2443
  end
2447
2444
 
2448
- # <!-- rdoc-file=lib/net/http/responses.rb -->
2449
- # 306 Switch Proxy - no longer unused
2450
- #
2451
2445
  class HTTPTemporaryRedirect < HTTPRedirection
2452
2446
  HAS_BODY: bool
2453
2447
  end
@@ -2528,9 +2522,6 @@ module Net
2528
2522
  HAS_BODY: bool
2529
2523
  end
2530
2524
 
2531
- # <!-- rdoc-file=lib/net/http/responses.rb -->
2532
- # 418 I'm a teapot - RFC 2324; a joke RFC 420 Enhance Your Calm - Twitter
2533
- #
2534
2525
  class HTTPMisdirectedRequest < HTTPClientError
2535
2526
  HAS_BODY: bool
2536
2527
  end
@@ -2547,9 +2538,6 @@ module Net
2547
2538
  HAS_BODY: bool
2548
2539
  end
2549
2540
 
2550
- # <!-- rdoc-file=lib/net/http/responses.rb -->
2551
- # 425 Unordered Collection - existed only in draft
2552
- #
2553
2541
  class HTTPUpgradeRequired < HTTPClientError
2554
2542
  HAS_BODY: bool
2555
2543
  end
@@ -2570,10 +2558,6 @@ module Net
2570
2558
  HAS_BODY: bool
2571
2559
  end
2572
2560
 
2573
- # <!-- rdoc-file=lib/net/http/responses.rb -->
2574
- # 444 No Response - Nginx 449 Retry With - Microsoft 450 Blocked by Windows
2575
- # Parental Controls - Microsoft 499 Client Closed Request - Nginx
2576
- #
2577
2561
  class HTTPInternalServerError < HTTPServerError
2578
2562
  HAS_BODY: bool
2579
2563
  end
@@ -2610,9 +2594,6 @@ module Net
2610
2594
  HAS_BODY: bool
2611
2595
  end
2612
2596
 
2613
- # <!-- rdoc-file=lib/net/http/responses.rb -->
2614
- # 509 Bandwidth Limit Exceeded - Apache bw/limited extension
2615
- #
2616
2597
  class HTTPNotExtended < HTTPServerError
2617
2598
  HAS_BODY: bool
2618
2599
  end
@@ -100,8 +100,36 @@ module YAML
100
100
 
101
101
  # <!--
102
102
  # rdoc-file=ext/psych/lib/psych.rb
103
- # - load(yaml, filename: nil, fallback: false, symbolize_names: false, freeze: false)
103
+ # - load(yaml, permitted_classes: [Symbol], permitted_symbols: [], aliases: false, filename: nil, fallback: nil, symbolize_names: false, freeze: false, strict_integer: false)
104
104
  # -->
105
+ # Load `yaml` in to a Ruby data structure. If multiple documents are provided,
106
+ # the object contained in the first document will be returned. `filename` will
107
+ # be used in the exception message if any exception is raised while parsing. If
108
+ # `yaml` is empty, it returns the specified `fallback` return value, which
109
+ # defaults to `false`.
110
+ #
111
+ # Raises a Psych::SyntaxError when a YAML syntax error is detected.
112
+ #
113
+ # Example:
114
+ #
115
+ # Psych.load("--- a") # => 'a'
116
+ # Psych.load("---\n - a\n - b") # => ['a', 'b']
117
+ #
118
+ # begin
119
+ # Psych.load("--- `", filename: "file.txt")
120
+ # rescue Psych::SyntaxError => ex
121
+ # ex.file # => 'file.txt'
122
+ # ex.message # => "(file.txt): found character that cannot start any token"
123
+ # end
124
+ #
125
+ # When the optional `symbolize_names` keyword argument is set to a true value,
126
+ # returns symbols for keys in Hash objects (default: strings).
127
+ #
128
+ # Psych.load("---\n foo: bar") # => {"foo"=>"bar"}
129
+ # Psych.load("---\n foo: bar", symbolize_names: true) # => {:foo=>"bar"}
130
+ #
131
+ # Raises a TypeError when `yaml` parameter is NilClass. This method is similar
132
+ # to `safe_load` except that `Symbol` objects are allowed by default.
105
133
  #
106
134
  %a{annotate:rdoc:copy:Psych.load}
107
135
  def self.load: (String yaml, ?filename: String | _ToStr | _ToS?, ?fallback: untyped, ?symbolize_names: bool, ?freeze: bool) -> untyped
@@ -119,7 +147,7 @@ module YAML
119
147
 
120
148
  # <!--
121
149
  # rdoc-file=ext/psych/lib/psych.rb
122
- # - safe_load(yaml, permitted_classes: [], permitted_symbols: [], aliases: false, filename: nil, fallback: nil, symbolize_names: false, freeze: false)
150
+ # - safe_load(yaml, permitted_classes: [], permitted_symbols: [], aliases: false, filename: nil, fallback: nil, symbolize_names: false, freeze: false, strict_integer: false)
123
151
  # -->
124
152
  # Safely load the yaml string in `yaml`. By default, only the following classes
125
153
  # are allowed to be deserialized:
data/steep/Gemfile.lock CHANGED
@@ -27,9 +27,9 @@ GEM
27
27
  rb-fsevent (0.11.2)
28
28
  rb-inotify (0.10.1)
29
29
  ffi (~> 1.0)
30
- rbs (2.7.0)
30
+ rbs (2.8.0)
31
31
  securerandom (0.2.0)
32
- steep (1.2.1)
32
+ steep (1.3.0)
33
33
  activesupport (>= 5.1)
34
34
  csv (>= 3.0.9)
35
35
  fileutils (>= 1.1.0)
@@ -40,7 +40,7 @@ GEM
40
40
  parallel (>= 1.0.0)
41
41
  parser (>= 3.1)
42
42
  rainbow (>= 2.2.2, < 4.0)
43
- rbs (>= 2.7.0)
43
+ rbs (>= 2.8.0)
44
44
  securerandom (>= 0.1)
45
45
  strscan (>= 1.0.0)
46
46
  terminal-table (>= 2, < 4)
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.8.0
4
+ version: 2.8.1
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-11-24 00:00:00.000000000 Z
11
+ date: 2022-11-28 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.
@@ -441,7 +441,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
441
441
  - !ruby/object:Gem::Version
442
442
  version: '0'
443
443
  requirements: []
444
- rubygems_version: 3.3.7
444
+ rubygems_version: 3.3.26
445
445
  signing_key:
446
446
  specification_version: 4
447
447
  summary: Type signature for Ruby.