lunchmoney 1.4.0 → 1.5.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/dependabot.yml +7 -0
- data/.github/workflows/build_and_publish_yard_docs.yml +4 -4
- data/.github/workflows/ci.yml +9 -10
- data/.github/workflows/rbi-updater.yml +1 -1
- data/.github/workflows/release_pipeline.yml +1 -1
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -1
- data/.simplecov +1 -0
- data/.toys/.toys.rb +8 -0
- data/Gemfile +3 -3
- data/Gemfile.lock +102 -78
- data/README.md +0 -2
- data/SECURITY.md +151 -0
- data/bin/check_vcr_version +94 -0
- data/lib/lunchmoney/api.rb +26 -38
- data/lib/lunchmoney/calls/assets.rb +10 -13
- data/lib/lunchmoney/calls/base.rb +59 -7
- data/lib/lunchmoney/calls/budgets.rb +22 -25
- data/lib/lunchmoney/calls/categories.rb +28 -38
- data/lib/lunchmoney/calls/crypto.rb +7 -9
- data/lib/lunchmoney/calls/plaid_accounts.rb +7 -9
- data/lib/lunchmoney/calls/recurring_expenses.rb +4 -5
- data/lib/lunchmoney/calls/tags.rb +3 -4
- data/lib/lunchmoney/calls/transactions.rb +28 -37
- data/lib/lunchmoney/calls/users.rb +3 -4
- data/lib/lunchmoney/configuration.rb +20 -0
- data/lib/lunchmoney/deprecate.rb +35 -0
- data/lib/lunchmoney/objects/asset.rb +6 -1
- data/lib/lunchmoney/objects/object.rb +4 -9
- data/lib/lunchmoney/objects/plaid_account.rb +6 -1
- data/lib/lunchmoney/validators.rb +8 -6
- data/lib/lunchmoney/version.rb +1 -1
- data/lib/lunchmoney.rb +3 -3
- data/lunchmoney.gemspec +1 -1
- data/sorbet/rbi/annotations/activesupport.rbi +40 -0
- data/sorbet/rbi/dsl/active_support/callbacks.rbi +0 -2
- data/sorbet/rbi/gems/{activesupport@7.2.1.rbi → activesupport@8.0.2.1.rbi} +1431 -1028
- data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +4 -3
- data/sorbet/rbi/gems/{base64@0.2.0.rbi → base64@0.3.0.rbi} +76 -39
- data/sorbet/rbi/gems/benchmark@0.4.1.rbi +619 -0
- data/sorbet/rbi/gems/bigdecimal@3.2.2.rbi +275 -0
- data/sorbet/rbi/gems/{concurrent-ruby@1.3.4.rbi → concurrent-ruby@1.3.5.rbi} +44 -32
- data/sorbet/rbi/gems/{connection_pool@2.4.1.rbi → connection_pool@2.5.3.rbi} +1 -0
- data/sorbet/rbi/gems/{dotenv@3.1.2.rbi → dotenv@3.1.8.rbi} +21 -29
- data/sorbet/rbi/gems/{drb@2.2.1.rbi → drb@2.2.3.rbi} +503 -188
- data/sorbet/rbi/gems/{erubi@1.13.0.rbi → erubi@1.13.1.rbi} +14 -9
- data/sorbet/rbi/gems/{faraday-net_http@3.1.1.rbi → faraday-net_http@3.4.1.rbi} +34 -34
- data/sorbet/rbi/gems/{faraday@2.10.1.rbi → faraday@2.13.4.rbi} +507 -171
- data/sorbet/rbi/gems/{hashdiff@1.1.1.rbi → hashdiff@1.2.0.rbi} +5 -3
- data/sorbet/rbi/gems/{i18n@1.14.5.rbi → i18n@1.14.7.rbi} +80 -80
- data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.13.2.rbi} +988 -226
- data/sorbet/rbi/gems/{kramdown@2.4.0.rbi → kramdown@2.5.1.rbi} +316 -234
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi +9 -0
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +240 -0
- data/sorbet/rbi/gems/{logger@1.6.0.rbi → logger@1.7.0.rbi} +136 -76
- data/sorbet/rbi/gems/{minitest@5.25.1.rbi → minitest@5.25.5.rbi} +227 -220
- data/sorbet/rbi/gems/{mocha@2.4.5.rbi → mocha@2.7.1.rbi} +154 -118
- data/sorbet/rbi/gems/{net-http@0.4.1.rbi → net-http@0.6.0.rbi} +360 -181
- data/sorbet/rbi/gems/{parser@3.3.4.2.rbi → parser@3.3.9.0.rbi} +326 -308
- data/sorbet/rbi/gems/{prism@0.30.0.rbi → prism@1.4.0.rbi} +12440 -9920
- data/sorbet/rbi/gems/{rack@3.1.7.rbi → rack@3.2.1.rbi} +752 -579
- data/sorbet/rbi/gems/{rake@13.2.1.rbi → rake@13.3.0.rbi} +238 -227
- data/sorbet/rbi/gems/rbi@0.3.6.rbi +5162 -0
- data/sorbet/rbi/gems/rbs@4.0.0.dev.4.rbi +7895 -0
- data/sorbet/rbi/gems/{regexp_parser@2.9.2.rbi → regexp_parser@2.11.2.rbi} +1124 -1013
- data/sorbet/rbi/gems/require-hooks@0.2.2.rbi +110 -0
- data/sorbet/rbi/gems/{rexml@3.3.6.rbi → rexml@3.4.2.rbi} +755 -318
- data/sorbet/rbi/gems/{rubocop-ast@1.32.1.rbi → rubocop-ast@1.46.0.rbi} +1287 -899
- data/sorbet/rbi/gems/{rubocop-minitest@0.35.1.rbi → rubocop-minitest@0.38.2.rbi} +133 -97
- data/sorbet/rbi/gems/{rubocop-rails@2.26.0.rbi → rubocop-rails@2.33.3.rbi} +9874 -6597
- data/sorbet/rbi/gems/{rubocop-shopify@2.15.1.rbi → rubocop-shopify@2.17.1.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop-sorbet@0.8.5.rbi → rubocop-sorbet@0.10.5.rbi} +804 -83
- data/sorbet/rbi/gems/{rubocop@1.65.1.rbi → rubocop@1.80.1.rbi} +10688 -5103
- data/sorbet/rbi/gems/{securerandom@0.3.1.rbi → securerandom@0.4.1.rbi} +7 -5
- data/sorbet/rbi/gems/{spoom@1.4.2.rbi → spoom@1.7.6.rbi} +1939 -1039
- data/sorbet/rbi/gems/{tapioca@0.16.1.rbi → tapioca@0.17.7.rbi} +765 -821
- data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.4.0.rbi} +139 -91
- data/sorbet/rbi/gems/unicode-display_width@3.1.5.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
- data/sorbet/rbi/gems/{uri@0.13.0.rbi → uri@1.0.3.rbi} +278 -256
- data/sorbet/rbi/gems/{vcr@6.3.1.rbi → vcr@6.3.1-ce35c236fe48899f02ddf780973b44cdb756c0ee.rbi} +140 -123
- data/sorbet/rbi/gems/{webmock@3.23.1.rbi → webmock@3.25.1.rbi} +101 -78
- data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +394 -235
- metadata +55 -53
- data/sorbet/rbi/gems/bigdecimal@3.1.8.rbi +0 -78
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14237
- data/sorbet/rbi/gems/rbi@0.1.14.rbi +0 -3305
- data/sorbet/rbi/gems/strscan@3.1.0.rbi +0 -9
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
- /data/sorbet/rbi/gems/{parallel@1.26.3.rbi → parallel@1.27.0.rbi} +0 -0
data/sorbet/rbi/gems/{vcr@6.3.1.rbi → vcr@6.3.1-ce35c236fe48899f02ddf780973b44cdb756c0ee.rbi}
RENAMED
@@ -206,10 +206,10 @@ module VCR
|
|
206
206
|
# @raise [VCR::Errors::CassetteInUseError] if there is currently a cassette in use
|
207
207
|
# @raise [ArgumentError] if you pass an invalid option
|
208
208
|
# @return [void]
|
209
|
-
# @see #turned_on
|
210
209
|
# @see #turn_off!
|
211
210
|
# @see #turn_on!
|
212
211
|
# @see #turned_on?
|
212
|
+
# @see #turned_on
|
213
213
|
#
|
214
214
|
# source://vcr//lib/vcr.rb#270
|
215
215
|
def turned_off(options = T.unsafe(nil)); end
|
@@ -1082,7 +1082,7 @@ VCR::CassetteMutex = T.let(T.unsafe(nil), Thread::Mutex)
|
|
1082
1082
|
|
1083
1083
|
# Stores the VCR configuration.
|
1084
1084
|
#
|
1085
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1085
|
+
# source://vcr//lib/vcr/configuration.rb#6
|
1086
1086
|
class VCR::Configuration
|
1087
1087
|
include ::VCR::VariableArgsBlockCaller
|
1088
1088
|
include ::VCR::Hooks
|
@@ -1092,7 +1092,7 @@ class VCR::Configuration
|
|
1092
1092
|
|
1093
1093
|
# @return [Configuration] a new instance of Configuration
|
1094
1094
|
#
|
1095
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1095
|
+
# source://vcr//lib/vcr/configuration.rb#489
|
1096
1096
|
def initialize; end
|
1097
1097
|
|
1098
1098
|
# Adds a callback that will be called with each HTTP request after it is complete.
|
@@ -1113,7 +1113,7 @@ class VCR::Configuration
|
|
1113
1113
|
# @yieldparam request [VCR::Request::Typed] the request that is being made
|
1114
1114
|
# @yieldparam response [VCR::Response] the response from the request
|
1115
1115
|
#
|
1116
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1116
|
+
# source://vcr//lib/vcr/configuration.rb#365
|
1117
1117
|
def after_http_request(*filters); end
|
1118
1118
|
|
1119
1119
|
# Determines how VCR treats HTTP requests that are made when
|
@@ -1126,13 +1126,13 @@ class VCR::Configuration
|
|
1126
1126
|
# @overload allow_http_connections_when_no_cassette?
|
1127
1127
|
# @overload allow_http_connections_when_no_cassette=
|
1128
1128
|
#
|
1129
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1129
|
+
# source://vcr//lib/vcr/configuration.rb#128
|
1130
1130
|
def allow_http_connections_when_no_cassette=(_arg0); end
|
1131
1131
|
|
1132
1132
|
# @private (documented above)
|
1133
1133
|
# @return [Boolean]
|
1134
1134
|
#
|
1135
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1135
|
+
# source://vcr//lib/vcr/configuration.rb#130
|
1136
1136
|
def allow_http_connections_when_no_cassette?; end
|
1137
1137
|
|
1138
1138
|
# Adds a callback that will be executed around each HTTP request.
|
@@ -1160,7 +1160,7 @@ class VCR::Configuration
|
|
1160
1160
|
# @yield the callback
|
1161
1161
|
# @yieldparam request [VCR::Request::FiberAware] the request that is being made
|
1162
1162
|
#
|
1163
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1163
|
+
# source://vcr//lib/vcr/configuration.rb#394
|
1164
1164
|
def around_http_request(*filters, &block); end
|
1165
1165
|
|
1166
1166
|
# Adds a callback that will be called before a previously recorded
|
@@ -1186,7 +1186,7 @@ class VCR::Configuration
|
|
1186
1186
|
# loaded.
|
1187
1187
|
# @yieldparam cassette [(optional) VCR::Cassette] The current cassette.
|
1188
1188
|
#
|
1189
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1189
|
+
# source://vcr//lib/vcr/configuration.rb#324
|
1190
1190
|
def before_playback(tag = T.unsafe(nil), &block); end
|
1191
1191
|
|
1192
1192
|
# Adds a callback that will be called before the recorded HTTP interactions
|
@@ -1212,14 +1212,14 @@ class VCR::Configuration
|
|
1212
1212
|
# serialized and written to disk.
|
1213
1213
|
# @yieldparam cassette [(optional) VCR::Cassette] The current cassette.
|
1214
1214
|
#
|
1215
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1215
|
+
# source://vcr//lib/vcr/configuration.rb#296
|
1216
1216
|
def before_record(tag = T.unsafe(nil), &block); end
|
1217
1217
|
|
1218
1218
|
# Gets the directory to read cassettes from and write cassettes to.
|
1219
1219
|
#
|
1220
1220
|
# @return [String] the directory to read cassettes from and write cassettes to
|
1221
1221
|
#
|
1222
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1222
|
+
# source://vcr//lib/vcr/configuration.rb#14
|
1223
1223
|
def cassette_library_dir; end
|
1224
1224
|
|
1225
1225
|
# Sets the directory to read cassettes from and writes cassettes to.
|
@@ -1233,7 +1233,7 @@ class VCR::Configuration
|
|
1233
1233
|
# @param dir [String] the directory to read cassettes from and write cassettes to
|
1234
1234
|
# @return [void]
|
1235
1235
|
#
|
1236
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1236
|
+
# source://vcr//lib/vcr/configuration.rb#29
|
1237
1237
|
def cassette_library_dir=(dir); end
|
1238
1238
|
|
1239
1239
|
# Gets the registry of cassette persisters. Use it to register a custom persister.
|
@@ -1248,7 +1248,7 @@ class VCR::Configuration
|
|
1248
1248
|
# * `persister[storage_key] = content` # persists given content
|
1249
1249
|
# @return [VCR::Cassette::Persisters] the cassette persister registry object.
|
1250
1250
|
#
|
1251
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1251
|
+
# source://vcr//lib/vcr/configuration.rb#268
|
1252
1252
|
def cassette_persisters; end
|
1253
1253
|
|
1254
1254
|
# Gets the registry of cassette serializers. Use it to register a custom serializer.
|
@@ -1264,13 +1264,13 @@ class VCR::Configuration
|
|
1264
1264
|
# * `deserialize(String) # => Hash`
|
1265
1265
|
# @return [VCR::Cassette::Serializers] the cassette serializer registry object.
|
1266
1266
|
#
|
1267
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1267
|
+
# source://vcr//lib/vcr/configuration.rb#252
|
1268
1268
|
def cassette_serializers; end
|
1269
1269
|
|
1270
1270
|
# Configures RSpec to use a VCR cassette for any example
|
1271
1271
|
# tagged with `:vcr`.
|
1272
1272
|
#
|
1273
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1273
|
+
# source://vcr//lib/vcr/configuration.rb#417
|
1274
1274
|
def configure_rspec_metadata!; end
|
1275
1275
|
|
1276
1276
|
# An object to log debug output to.
|
@@ -1286,12 +1286,12 @@ class VCR::Configuration
|
|
1286
1286
|
# @overload debug_logger
|
1287
1287
|
# @overload debug_logger=
|
1288
1288
|
#
|
1289
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1289
|
+
# source://vcr//lib/vcr/configuration.rb#439
|
1290
1290
|
def debug_logger; end
|
1291
1291
|
|
1292
1292
|
# @private (documented above)
|
1293
1293
|
#
|
1294
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1294
|
+
# source://vcr//lib/vcr/configuration.rb#441
|
1295
1295
|
def debug_logger=(value); end
|
1296
1296
|
|
1297
1297
|
# Default options to apply to every cassette.
|
@@ -1304,12 +1304,12 @@ class VCR::Configuration
|
|
1304
1304
|
# @overload default_cassette_options
|
1305
1305
|
# @overload default_cassette_options=
|
1306
1306
|
#
|
1307
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1307
|
+
# source://vcr//lib/vcr/configuration.rb#45
|
1308
1308
|
def default_cassette_options; end
|
1309
1309
|
|
1310
1310
|
# Sets the default options that apply to every cassette.
|
1311
1311
|
#
|
1312
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1312
|
+
# source://vcr//lib/vcr/configuration.rb#48
|
1313
1313
|
def default_cassette_options=(overrides); end
|
1314
1314
|
|
1315
1315
|
# Sets up a {#before_record} and a {#before_playback} hook that will
|
@@ -1335,7 +1335,7 @@ class VCR::Configuration
|
|
1335
1335
|
# @yieldparam interaction [(optional) VCR::HTTPInteraction::HookAware] the HTTP interaction
|
1336
1336
|
# @yieldreturn the string to replace
|
1337
1337
|
#
|
1338
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1338
|
+
# source://vcr//lib/vcr/configuration.rb#224
|
1339
1339
|
def define_cassette_placeholder(placeholder, tag = T.unsafe(nil), &block); end
|
1340
1340
|
|
1341
1341
|
# Sets up a {#before_record} and a {#before_playback} hook that will
|
@@ -1361,7 +1361,7 @@ class VCR::Configuration
|
|
1361
1361
|
# @yieldparam interaction [(optional) VCR::HTTPInteraction::HookAware] the HTTP interaction
|
1362
1362
|
# @yieldreturn the string to replace
|
1363
1363
|
#
|
1364
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1364
|
+
# source://vcr//lib/vcr/configuration.rb#237
|
1365
1365
|
def filter_sensitive_data(placeholder, tag = T.unsafe(nil), &block); end
|
1366
1366
|
|
1367
1367
|
# Configures which libraries VCR will hook into to intercept HTTP requests.
|
@@ -1376,7 +1376,7 @@ class VCR::Configuration
|
|
1376
1376
|
# @raise [VCR::Errors::LibraryVersionTooLowError] when the version
|
1377
1377
|
# of a library you are using is too low for VCR to support.
|
1378
1378
|
#
|
1379
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1379
|
+
# source://vcr//lib/vcr/configuration.rb#64
|
1380
1380
|
def hook_into(*hooks); end
|
1381
1381
|
|
1382
1382
|
# Specifies host(s) that VCR should ignore.
|
@@ -1385,7 +1385,7 @@ class VCR::Configuration
|
|
1385
1385
|
# @see #ignore_localhost=
|
1386
1386
|
# @see #ignore_request
|
1387
1387
|
#
|
1388
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1388
|
+
# source://vcr//lib/vcr/configuration.rb#77
|
1389
1389
|
def ignore_host(*hosts); end
|
1390
1390
|
|
1391
1391
|
# Specifies host(s) that VCR should ignore.
|
@@ -1394,7 +1394,7 @@ class VCR::Configuration
|
|
1394
1394
|
# @see #ignore_localhost=
|
1395
1395
|
# @see #ignore_request
|
1396
1396
|
#
|
1397
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1397
|
+
# source://vcr//lib/vcr/configuration.rb#74
|
1398
1398
|
def ignore_hosts(*hosts); end
|
1399
1399
|
|
1400
1400
|
# Sets whether or not VCR should ignore localhost requests.
|
@@ -1403,7 +1403,7 @@ class VCR::Configuration
|
|
1403
1403
|
# @see #ignore_hosts
|
1404
1404
|
# @see #ignore_request
|
1405
1405
|
#
|
1406
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1406
|
+
# source://vcr//lib/vcr/configuration.rb#93
|
1407
1407
|
def ignore_localhost=(value); end
|
1408
1408
|
|
1409
1409
|
# Defines what requests to ignore using a block.
|
@@ -1420,14 +1420,14 @@ class VCR::Configuration
|
|
1420
1420
|
# @yieldparam request [VCR::Request] the HTTP request
|
1421
1421
|
# @yieldreturn [Boolean] whether or not to ignore the request
|
1422
1422
|
#
|
1423
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1423
|
+
# source://vcr//lib/vcr/configuration.rb#111
|
1424
1424
|
def ignore_request(&block); end
|
1425
1425
|
|
1426
1426
|
# Logger object that provides logging APIs and helper methods.
|
1427
1427
|
#
|
1428
1428
|
# @private
|
1429
1429
|
#
|
1430
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1430
|
+
# source://vcr//lib/vcr/configuration.rb#453
|
1431
1431
|
def logger; end
|
1432
1432
|
|
1433
1433
|
# @param http_message [#body, #headers] the `VCR::Request` or `VCR::Response` object being serialized
|
@@ -1435,7 +1435,7 @@ class VCR::Configuration
|
|
1435
1435
|
# be base64 encoded during serialization in order to preserve the bytes exactly.
|
1436
1436
|
# @see #preserve_exact_body_bytes
|
1437
1437
|
#
|
1438
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1438
|
+
# source://vcr//lib/vcr/configuration.rb#483
|
1439
1439
|
def preserve_exact_body_bytes_for?(http_message); end
|
1440
1440
|
|
1441
1441
|
# Sets a parser for VCR to use when parsing query strings for request
|
@@ -1448,12 +1448,12 @@ class VCR::Configuration
|
|
1448
1448
|
# The `#==` method must return true if both objects represent the
|
1449
1449
|
# same query string.
|
1450
1450
|
#
|
1451
|
-
# This defaults to `
|
1451
|
+
# This defaults to `URI.decode_www_form` from the ruby standard library.
|
1452
1452
|
#
|
1453
1453
|
# @overload query_parser
|
1454
1454
|
# @overload query_parser=
|
1455
1455
|
#
|
1456
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1456
|
+
# source://vcr//lib/vcr/configuration.rb#150
|
1457
1457
|
def query_parser; end
|
1458
1458
|
|
1459
1459
|
# Sets a parser for VCR to use when parsing query strings for request
|
@@ -1466,12 +1466,12 @@ class VCR::Configuration
|
|
1466
1466
|
# The `#==` method must return true if both objects represent the
|
1467
1467
|
# same query string.
|
1468
1468
|
#
|
1469
|
-
# This defaults to `
|
1469
|
+
# This defaults to `URI.decode_www_form` from the ruby standard library.
|
1470
1470
|
#
|
1471
1471
|
# @overload query_parser
|
1472
1472
|
# @overload query_parser=
|
1473
1473
|
#
|
1474
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1474
|
+
# source://vcr//lib/vcr/configuration.rb#150
|
1475
1475
|
def query_parser=(_arg0); end
|
1476
1476
|
|
1477
1477
|
# Registers a request matcher for later use.
|
@@ -1493,7 +1493,7 @@ class VCR::Configuration
|
|
1493
1493
|
# @yieldreturn [Boolean] whether or not these two requests should be considered
|
1494
1494
|
# equivalent
|
1495
1495
|
#
|
1496
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1496
|
+
# source://vcr//lib/vcr/configuration.rb#197
|
1497
1497
|
def register_request_matcher(name, &block); end
|
1498
1498
|
|
1499
1499
|
# @deprecated Use #hook_into instead.
|
@@ -1507,7 +1507,7 @@ class VCR::Configuration
|
|
1507
1507
|
# @param hosts [Array<String>] List of hosts to unignore
|
1508
1508
|
# @see #ignore_hosts
|
1509
1509
|
#
|
1510
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1510
|
+
# source://vcr//lib/vcr/configuration.rb#86
|
1511
1511
|
def unignore_host(*hosts); end
|
1512
1512
|
|
1513
1513
|
# Specifies host(s) that VCR should stop ignoring.
|
@@ -1515,7 +1515,7 @@ class VCR::Configuration
|
|
1515
1515
|
# @param hosts [Array<String>] List of hosts to unignore
|
1516
1516
|
# @see #ignore_hosts
|
1517
1517
|
#
|
1518
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1518
|
+
# source://vcr//lib/vcr/configuration.rb#83
|
1519
1519
|
def unignore_hosts(*hosts); end
|
1520
1520
|
|
1521
1521
|
# Sets a parser for VCR to use when parsing URIs. The new parser
|
@@ -1541,7 +1541,7 @@ class VCR::Configuration
|
|
1541
1541
|
# @overload uri_parser
|
1542
1542
|
# @overload uri_parser=
|
1543
1543
|
#
|
1544
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1544
|
+
# source://vcr//lib/vcr/configuration.rb#176
|
1545
1545
|
def uri_parser; end
|
1546
1546
|
|
1547
1547
|
# Sets a parser for VCR to use when parsing URIs. The new parser
|
@@ -1567,54 +1567,54 @@ class VCR::Configuration
|
|
1567
1567
|
# @overload uri_parser
|
1568
1568
|
# @overload uri_parser=
|
1569
1569
|
#
|
1570
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1570
|
+
# source://vcr//lib/vcr/configuration.rb#176
|
1571
1571
|
def uri_parser=(_arg0); end
|
1572
1572
|
|
1573
1573
|
private
|
1574
1574
|
|
1575
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1575
|
+
# source://vcr//lib/vcr/configuration.rb#534
|
1576
1576
|
def create_fiber_for(fiber_errors, hook_declaration, proc); end
|
1577
1577
|
|
1578
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1578
|
+
# source://vcr//lib/vcr/configuration.rb#516
|
1579
1579
|
def load_library_hook(hook); end
|
1580
1580
|
|
1581
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1581
|
+
# source://vcr//lib/vcr/configuration.rb#587
|
1582
1582
|
def log_prefix; end
|
1583
1583
|
|
1584
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1584
|
+
# source://vcr//lib/vcr/configuration.rb#569
|
1585
1585
|
def register_built_in_hooks; end
|
1586
1586
|
|
1587
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1587
|
+
# source://vcr//lib/vcr/configuration.rb#564
|
1588
1588
|
def request_filter_from(object); end
|
1589
1589
|
|
1590
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1590
|
+
# source://vcr//lib/vcr/configuration.rb#524
|
1591
1591
|
def resume_fiber(fiber, fiber_errors, response, hook_declaration); end
|
1592
1592
|
|
1593
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1593
|
+
# source://vcr//lib/vcr/configuration.rb#553
|
1594
1594
|
def start_new_fiber_for(request, fibers, fiber_errors, hook_declaration, proc); end
|
1595
1595
|
|
1596
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1596
|
+
# source://vcr//lib/vcr/configuration.rb#559
|
1597
1597
|
def tag_filter_from(tag); end
|
1598
1598
|
end
|
1599
1599
|
|
1600
|
-
# source://vcr//lib/vcr/configuration.rb#
|
1600
|
+
# source://vcr//lib/vcr/configuration.rb#7
|
1601
1601
|
module VCR::Configuration::DefinedHooks
|
1602
|
-
# source://vcr//lib/vcr/
|
1602
|
+
# source://vcr//lib/vcr/configuration.rb#346
|
1603
1603
|
def after_http_request(*filters, &hook); end
|
1604
1604
|
|
1605
|
-
# source://vcr//lib/vcr/
|
1605
|
+
# source://vcr//lib/vcr/configuration.rb#592
|
1606
1606
|
def after_library_hooks_loaded(*filters, &hook); end
|
1607
1607
|
|
1608
|
-
# source://vcr//lib/vcr/
|
1608
|
+
# source://vcr//lib/vcr/configuration.rb#344
|
1609
1609
|
def before_http_request(*filters, &hook); end
|
1610
1610
|
|
1611
|
-
# source://vcr//lib/vcr/
|
1611
|
+
# source://vcr//lib/vcr/configuration.rb#300
|
1612
1612
|
def before_playback(*filters, &hook); end
|
1613
1613
|
|
1614
|
-
# source://vcr//lib/vcr/
|
1614
|
+
# source://vcr//lib/vcr/configuration.rb#272
|
1615
1615
|
def before_record(*filters, &hook); end
|
1616
1616
|
|
1617
|
-
# source://vcr//lib/vcr/
|
1617
|
+
# source://vcr//lib/vcr/configuration.rb#477
|
1618
1618
|
def preserve_exact_body_bytes(*filters, &hook); end
|
1619
1619
|
end
|
1620
1620
|
|
@@ -1636,7 +1636,7 @@ class VCR::CucumberTags
|
|
1636
1636
|
# - `:use_scenario_name => true` to automatically name the
|
1637
1637
|
# cassette according to the scenario name.
|
1638
1638
|
#
|
1639
|
-
# source://vcr//lib/vcr/test_frameworks/cucumber.rb#
|
1639
|
+
# source://vcr//lib/vcr/test_frameworks/cucumber.rb#80
|
1640
1640
|
def tag(*tag_names); end
|
1641
1641
|
|
1642
1642
|
# Adds `Before` and `After` cucumber hooks for the named tags that
|
@@ -1677,7 +1677,7 @@ class VCR::CucumberTags::ScenarioNameBuilder
|
|
1677
1677
|
# source://vcr//lib/vcr/test_frameworks/cucumber.rb#90
|
1678
1678
|
def cassette_name; end
|
1679
1679
|
|
1680
|
-
# source://vcr//lib/vcr/test_frameworks/cucumber.rb#
|
1680
|
+
# source://vcr//lib/vcr/test_frameworks/cucumber.rb#101
|
1681
1681
|
def examples_table(*_arg0); end
|
1682
1682
|
|
1683
1683
|
# source://vcr//lib/vcr/test_frameworks/cucumber.rb#103
|
@@ -1689,7 +1689,7 @@ class VCR::CucumberTags::ScenarioNameBuilder
|
|
1689
1689
|
# source://vcr//lib/vcr/test_frameworks/cucumber.rb#100
|
1690
1690
|
def scenario(*_arg0); end
|
1691
1691
|
|
1692
|
-
# source://vcr//lib/vcr/test_frameworks/cucumber.rb#
|
1692
|
+
# source://vcr//lib/vcr/test_frameworks/cucumber.rb#98
|
1693
1693
|
def scenario_outline(feature); end
|
1694
1694
|
end
|
1695
1695
|
|
@@ -1902,17 +1902,17 @@ class VCR::Errors::UnusedHTTPInteractionError < ::VCR::Errors::Error; end
|
|
1902
1902
|
# @attr response [Response] the response
|
1903
1903
|
# @attr recorded_at [Time] when this HTTP interaction was recorded
|
1904
1904
|
#
|
1905
|
-
# source://vcr//lib/vcr/structs.rb#
|
1905
|
+
# source://vcr//lib/vcr/structs.rb#483
|
1906
1906
|
class VCR::HTTPInteraction < ::Struct
|
1907
1907
|
# @return [HTTPInteraction] a new instance of HTTPInteraction
|
1908
1908
|
#
|
1909
|
-
# source://vcr//lib/vcr/structs.rb#
|
1909
|
+
# source://vcr//lib/vcr/structs.rb#484
|
1910
1910
|
def initialize(*args); end
|
1911
1911
|
|
1912
1912
|
# @return [HookAware] an instance with additional capabilities
|
1913
1913
|
# suitable for use in `before_record` and `before_playback` hooks.
|
1914
1914
|
#
|
1915
|
-
# source://vcr//lib/vcr/structs.rb#
|
1915
|
+
# source://vcr//lib/vcr/structs.rb#514
|
1916
1916
|
def hook_aware; end
|
1917
1917
|
|
1918
1918
|
# Builds a serializable hash from the HTTP interaction data.
|
@@ -1921,7 +1921,7 @@ class VCR::HTTPInteraction < ::Struct
|
|
1921
1921
|
# and can be easily serialized.
|
1922
1922
|
# @see HTTPInteraction.from_hash
|
1923
1923
|
#
|
1924
|
-
# source://vcr//lib/vcr/structs.rb#
|
1924
|
+
# source://vcr//lib/vcr/structs.rb#494
|
1925
1925
|
def to_hash; end
|
1926
1926
|
|
1927
1927
|
class << self
|
@@ -1930,7 +1930,7 @@ class VCR::HTTPInteraction < ::Struct
|
|
1930
1930
|
# @param hash [Hash] the hash to use to construct the instance.
|
1931
1931
|
# @return [HTTPInteraction] the HTTP interaction
|
1932
1932
|
#
|
1933
|
-
# source://vcr//lib/vcr/structs.rb#
|
1933
|
+
# source://vcr//lib/vcr/structs.rb#506
|
1934
1934
|
def from_hash(hash); end
|
1935
1935
|
end
|
1936
1936
|
end
|
@@ -1938,11 +1938,11 @@ end
|
|
1938
1938
|
# Decorates an {HTTPInteraction} with additional methods useful
|
1939
1939
|
# for a `before_record` or `before_playback` hook.
|
1940
1940
|
#
|
1941
|
-
# source://vcr//lib/vcr/structs.rb#
|
1941
|
+
# source://vcr//lib/vcr/structs.rb#520
|
1942
1942
|
class VCR::HTTPInteraction::HookAware
|
1943
1943
|
# @return [HookAware] a new instance of HookAware
|
1944
1944
|
#
|
1945
|
-
# source://vcr//lib/vcr/structs.rb#
|
1945
|
+
# source://vcr//lib/vcr/structs.rb#521
|
1946
1946
|
def initialize(http_interaction); end
|
1947
1947
|
|
1948
1948
|
# Replaces a string in any part of the HTTP interaction (headers, request body,
|
@@ -1951,7 +1951,7 @@ class VCR::HTTPInteraction::HookAware
|
|
1951
1951
|
# @param text [#to_s] the text to replace
|
1952
1952
|
# @param replacement_text [#to_s] the text to put in its place
|
1953
1953
|
#
|
1954
|
-
# source://vcr//lib/vcr/structs.rb#
|
1954
|
+
# source://vcr//lib/vcr/structs.rb#545
|
1955
1955
|
def filter!(text, replacement_text); end
|
1956
1956
|
|
1957
1957
|
# Flags the HTTP interaction so that VCR ignores it. This is useful in
|
@@ -1960,21 +1960,21 @@ class VCR::HTTPInteraction::HookAware
|
|
1960
1960
|
#
|
1961
1961
|
# @see #ignored?
|
1962
1962
|
#
|
1963
|
-
# source://vcr//lib/vcr/structs.rb#
|
1963
|
+
# source://vcr//lib/vcr/structs.rb#530
|
1964
1964
|
def ignore!; end
|
1965
1965
|
|
1966
1966
|
# @return [Boolean] whether or not this HTTP interaction should be ignored.
|
1967
1967
|
# @see #ignore!
|
1968
1968
|
#
|
1969
|
-
# source://vcr//lib/vcr/structs.rb#
|
1969
|
+
# source://vcr//lib/vcr/structs.rb#536
|
1970
1970
|
def ignored?; end
|
1971
1971
|
|
1972
1972
|
private
|
1973
1973
|
|
1974
|
-
# source://vcr//lib/vcr/structs.rb#
|
1974
|
+
# source://vcr//lib/vcr/structs.rb#566
|
1975
1975
|
def filter_hash!(hash, text, replacement_text); end
|
1976
1976
|
|
1977
|
-
# source://vcr//lib/vcr/structs.rb#
|
1977
|
+
# source://vcr//lib/vcr/structs.rb#553
|
1978
1978
|
def filter_object!(object, text, replacement_text); end
|
1979
1979
|
end
|
1980
1980
|
|
@@ -2028,30 +2028,47 @@ class VCR::Hooks::FilteredHook < ::Struct
|
|
2028
2028
|
# Returns the value of attribute filters
|
2029
2029
|
#
|
2030
2030
|
# @return [Object] the current value of filters
|
2031
|
+
#
|
2032
|
+
# source://vcr//lib/vcr/util/hooks.rb#9
|
2031
2033
|
def filters; end
|
2032
2034
|
|
2033
2035
|
# Sets the attribute filters
|
2034
2036
|
#
|
2035
2037
|
# @param value [Object] the value to set the attribute filters to.
|
2036
2038
|
# @return [Object] the newly set value
|
2039
|
+
#
|
2040
|
+
# source://vcr//lib/vcr/util/hooks.rb#9
|
2037
2041
|
def filters=(_); end
|
2038
2042
|
|
2039
2043
|
# Returns the value of attribute hook
|
2040
2044
|
#
|
2041
2045
|
# @return [Object] the current value of hook
|
2046
|
+
#
|
2047
|
+
# source://vcr//lib/vcr/util/hooks.rb#9
|
2042
2048
|
def hook; end
|
2043
2049
|
|
2044
2050
|
# Sets the attribute hook
|
2045
2051
|
#
|
2046
2052
|
# @param value [Object] the value to set the attribute hook to.
|
2047
2053
|
# @return [Object] the newly set value
|
2054
|
+
#
|
2055
|
+
# source://vcr//lib/vcr/util/hooks.rb#9
|
2048
2056
|
def hook=(_); end
|
2049
2057
|
|
2050
2058
|
class << self
|
2059
|
+
# source://vcr//lib/vcr/util/hooks.rb#9
|
2051
2060
|
def [](*_arg0); end
|
2061
|
+
|
2062
|
+
# source://vcr//lib/vcr/util/hooks.rb#9
|
2052
2063
|
def inspect; end
|
2064
|
+
|
2065
|
+
# source://vcr//lib/vcr/util/hooks.rb#9
|
2053
2066
|
def keyword_init?; end
|
2067
|
+
|
2068
|
+
# source://vcr//lib/vcr/util/hooks.rb#9
|
2054
2069
|
def members; end
|
2070
|
+
|
2071
|
+
# source://vcr//lib/vcr/util/hooks.rb#9
|
2055
2072
|
def new(*_arg0); end
|
2056
2073
|
end
|
2057
2074
|
end
|
@@ -2402,73 +2419,73 @@ end
|
|
2402
2419
|
|
2403
2420
|
# @private
|
2404
2421
|
#
|
2405
|
-
# source://vcr//lib/vcr/structs.rb#
|
2422
|
+
# source://vcr//lib/vcr/structs.rb#6
|
2406
2423
|
module VCR::Normalizers; end
|
2407
2424
|
|
2408
2425
|
# @private
|
2409
2426
|
#
|
2410
|
-
# source://vcr//lib/vcr/structs.rb#
|
2427
|
+
# source://vcr//lib/vcr/structs.rb#8
|
2411
2428
|
module VCR::Normalizers::Body
|
2412
2429
|
mixes_in_class_methods ::VCR::Normalizers::Body::ClassMethods
|
2413
2430
|
|
2414
|
-
# source://vcr//lib/vcr/structs.rb#
|
2431
|
+
# source://vcr//lib/vcr/structs.rb#53
|
2415
2432
|
def initialize(*args); end
|
2416
2433
|
|
2417
2434
|
private
|
2418
2435
|
|
2419
|
-
# source://vcr//lib/vcr/structs.rb#
|
2436
|
+
# source://vcr//lib/vcr/structs.rb#84
|
2420
2437
|
def base_body_hash(body); end
|
2421
2438
|
|
2422
|
-
# source://vcr//lib/vcr/structs.rb#
|
2439
|
+
# source://vcr//lib/vcr/structs.rb#70
|
2423
2440
|
def serializable_body; end
|
2424
2441
|
|
2425
2442
|
class << self
|
2426
2443
|
# @private
|
2427
2444
|
#
|
2428
|
-
# source://vcr//lib/vcr/structs.rb#
|
2445
|
+
# source://vcr//lib/vcr/structs.rb#9
|
2429
2446
|
def included(klass); end
|
2430
2447
|
end
|
2431
2448
|
end
|
2432
2449
|
|
2433
2450
|
# @private
|
2434
2451
|
#
|
2435
|
-
# source://vcr//lib/vcr/structs.rb#
|
2452
|
+
# source://vcr//lib/vcr/structs.rb#14
|
2436
2453
|
module VCR::Normalizers::Body::ClassMethods
|
2437
|
-
# source://vcr//lib/vcr/structs.rb#
|
2454
|
+
# source://vcr//lib/vcr/structs.rb#15
|
2438
2455
|
def body_from(hash_or_string); end
|
2439
2456
|
|
2440
|
-
# source://vcr//lib/vcr/structs.rb#
|
2457
|
+
# source://vcr//lib/vcr/structs.rb#27
|
2441
2458
|
def force_encode_string(string, encoding); end
|
2442
2459
|
|
2443
|
-
# source://vcr//lib/vcr/structs.rb#
|
2460
|
+
# source://vcr//lib/vcr/structs.rb#32
|
2444
2461
|
def try_encode_string(string, encoding_name); end
|
2445
2462
|
end
|
2446
2463
|
|
2447
2464
|
# @private
|
2448
2465
|
#
|
2449
|
-
# source://vcr//lib/vcr/structs.rb#
|
2466
|
+
# source://vcr//lib/vcr/structs.rb#90
|
2450
2467
|
module VCR::Normalizers::Header
|
2451
|
-
# source://vcr//lib/vcr/structs.rb#
|
2468
|
+
# source://vcr//lib/vcr/structs.rb#91
|
2452
2469
|
def initialize(*args); end
|
2453
2470
|
|
2454
2471
|
private
|
2455
2472
|
|
2456
|
-
# source://vcr//lib/vcr/structs.rb#
|
2473
|
+
# source://vcr//lib/vcr/structs.rb#140
|
2457
2474
|
def convert_to_raw_strings(array); end
|
2458
2475
|
|
2459
|
-
# source://vcr//lib/vcr/structs.rb#
|
2476
|
+
# source://vcr//lib/vcr/structs.rb#133
|
2460
2477
|
def delete_header(key); end
|
2461
2478
|
|
2462
|
-
# source://vcr//lib/vcr/structs.rb#
|
2479
|
+
# source://vcr//lib/vcr/structs.rb#126
|
2463
2480
|
def edit_header(key, value = T.unsafe(nil)); end
|
2464
2481
|
|
2465
|
-
# source://vcr//lib/vcr/structs.rb#
|
2482
|
+
# source://vcr//lib/vcr/structs.rb#121
|
2466
2483
|
def get_header(key); end
|
2467
2484
|
|
2468
|
-
# source://vcr//lib/vcr/structs.rb#
|
2485
|
+
# source://vcr//lib/vcr/structs.rb#116
|
2469
2486
|
def header_key(key); end
|
2470
2487
|
|
2471
|
-
# source://vcr//lib/vcr/structs.rb#
|
2488
|
+
# source://vcr//lib/vcr/structs.rb#98
|
2472
2489
|
def normalize_headers; end
|
2473
2490
|
end
|
2474
2491
|
|
@@ -2482,7 +2499,7 @@ module VCR::Ping
|
|
2482
2499
|
def pingecho(host, timeout = T.unsafe(nil), service = T.unsafe(nil)); end
|
2483
2500
|
|
2484
2501
|
class << self
|
2485
|
-
# source://vcr//lib/vcr/util/internet_connection.rb#
|
2502
|
+
# source://vcr//lib/vcr/util/internet_connection.rb#22
|
2486
2503
|
def pingecho(host, timeout = T.unsafe(nil), service = T.unsafe(nil)); end
|
2487
2504
|
end
|
2488
2505
|
end
|
@@ -2512,7 +2529,7 @@ end
|
|
2512
2529
|
# @attr body [String, nil] the request body
|
2513
2530
|
# @attr headers [Hash{String => Array<String>}] the request headers
|
2514
2531
|
#
|
2515
|
-
# source://vcr//lib/vcr/structs.rb#
|
2532
|
+
# source://vcr//lib/vcr/structs.rb#163
|
2516
2533
|
class VCR::Request < ::Struct
|
2517
2534
|
include ::VCR::Normalizers::Header
|
2518
2535
|
include ::VCR::Normalizers::Body
|
@@ -2520,21 +2537,21 @@ class VCR::Request < ::Struct
|
|
2520
2537
|
|
2521
2538
|
# @return [Request] a new instance of Request
|
2522
2539
|
#
|
2523
|
-
# source://vcr//lib/vcr/structs.rb#
|
2540
|
+
# source://vcr//lib/vcr/structs.rb#167
|
2524
2541
|
def initialize(*args); end
|
2525
2542
|
|
2526
2543
|
# the HTTP method (i.e. :head, :options, :get, :post, :put, :patch or :delete)
|
2527
2544
|
#
|
2528
2545
|
# @return [Symbol] the current value of method
|
2529
2546
|
#
|
2530
|
-
# source://vcr//lib/vcr/structs.rb#
|
2547
|
+
# source://vcr//lib/vcr/structs.rb#215
|
2531
2548
|
def method(*args); end
|
2532
2549
|
|
2533
2550
|
# Parses the URI using the configured `uri_parser`.
|
2534
2551
|
#
|
2535
2552
|
# @return [#schema, #host, #port, #path, #query] A parsed URI object.
|
2536
2553
|
#
|
2537
|
-
# source://vcr//lib/vcr/structs.rb#
|
2554
|
+
# source://vcr//lib/vcr/structs.rb#210
|
2538
2555
|
def parsed_uri; end
|
2539
2556
|
|
2540
2557
|
# Builds a serializable hash from the request data.
|
@@ -2543,12 +2560,12 @@ class VCR::Request < ::Struct
|
|
2543
2560
|
# serialized.
|
2544
2561
|
# @see Request.from_hash
|
2545
2562
|
#
|
2546
|
-
# source://vcr//lib/vcr/structs.rb#
|
2563
|
+
# source://vcr//lib/vcr/structs.rb#184
|
2547
2564
|
def to_hash; end
|
2548
2565
|
|
2549
2566
|
private
|
2550
2567
|
|
2551
|
-
# source://vcr//lib/vcr/structs.rb#
|
2568
|
+
# source://vcr//lib/vcr/structs.rb#302
|
2552
2569
|
def without_standard_port(uri); end
|
2553
2570
|
|
2554
2571
|
class << self
|
@@ -2557,20 +2574,20 @@ class VCR::Request < ::Struct
|
|
2557
2574
|
# @param hash [Hash] the hash to use to construct the instance.
|
2558
2575
|
# @return [Request] the request
|
2559
2576
|
#
|
2560
|
-
# source://vcr//lib/vcr/structs.rb#
|
2577
|
+
# source://vcr//lib/vcr/structs.rb#197
|
2561
2578
|
def from_hash(hash); end
|
2562
2579
|
end
|
2563
2580
|
end
|
2564
2581
|
|
2565
2582
|
# Provides fiber-awareness for the {VCR::Configuration#around_http_request} hook.
|
2566
2583
|
#
|
2567
|
-
# source://vcr//lib/vcr/structs.rb#
|
2584
|
+
# source://vcr//lib/vcr/structs.rb#280
|
2568
2585
|
class VCR::Request::FiberAware
|
2569
2586
|
# Yields the fiber so the request can proceed.
|
2570
2587
|
#
|
2571
2588
|
# @return [VCR::Response] the response from the request
|
2572
2589
|
#
|
2573
|
-
# source://vcr//lib/vcr/structs.rb#
|
2590
|
+
# source://vcr//lib/vcr/structs.rb#284
|
2574
2591
|
def proceed; end
|
2575
2592
|
|
2576
2593
|
# Builds a proc that allows the request to proceed when called.
|
@@ -2579,19 +2596,19 @@ class VCR::Request::FiberAware
|
|
2579
2596
|
#
|
2580
2597
|
# @return [Proc] the proc
|
2581
2598
|
#
|
2582
|
-
# source://vcr//lib/vcr/structs.rb#
|
2599
|
+
# source://vcr//lib/vcr/structs.rb#293
|
2583
2600
|
def to_proc; end
|
2584
2601
|
end
|
2585
2602
|
|
2586
2603
|
# Decorates a {Request} with its current type.
|
2587
2604
|
#
|
2588
|
-
# source://vcr//lib/vcr/structs.rb#
|
2605
|
+
# source://vcr//lib/vcr/structs.rb#221
|
2589
2606
|
class VCR::Request::Typed
|
2590
2607
|
# @param request [Request] the request
|
2591
2608
|
# @param type [Symbol] the type. Should be one of `:ignored`, `:stubbed`, `:recordable` or `:unhandled`.
|
2592
2609
|
# @return [Typed] a new instance of Typed
|
2593
2610
|
#
|
2594
|
-
# source://vcr//lib/vcr/structs.rb#
|
2611
|
+
# source://vcr//lib/vcr/structs.rb#227
|
2595
2612
|
def initialize(request, type); end
|
2596
2613
|
|
2597
2614
|
# @return [Boolean] whether or not this request is being stubbed by an
|
@@ -2599,23 +2616,23 @@ class VCR::Request::Typed
|
|
2599
2616
|
# @see #stubbed_by_vcr?
|
2600
2617
|
# @see #stubbed?
|
2601
2618
|
#
|
2602
|
-
# source://vcr//lib/vcr/structs.rb#
|
2619
|
+
# source://vcr//lib/vcr/structs.rb#248
|
2603
2620
|
def externally_stubbed?; end
|
2604
2621
|
|
2605
2622
|
# @return [Boolean] whether or not this request is being ignored
|
2606
2623
|
#
|
2607
|
-
# source://vcr//lib/vcr/structs.rb#
|
2624
|
+
# source://vcr//lib/vcr/structs.rb#233
|
2608
2625
|
def ignored?; end
|
2609
2626
|
|
2610
2627
|
# @note VCR allows `:ignored` and `:recordable` requests to be made for real.
|
2611
2628
|
# @return [Boolean] whether or not this request will be made for real.
|
2612
2629
|
#
|
2613
|
-
# source://vcr//lib/vcr/structs.rb#
|
2630
|
+
# source://vcr//lib/vcr/structs.rb#264
|
2614
2631
|
def real?; end
|
2615
2632
|
|
2616
2633
|
# @return [Boolean] whether or not this request will be recorded.
|
2617
2634
|
#
|
2618
|
-
# source://vcr//lib/vcr/structs.rb#
|
2635
|
+
# source://vcr//lib/vcr/structs.rb#253
|
2619
2636
|
def recordable?; end
|
2620
2637
|
|
2621
2638
|
# @return [Boolean] whether or not this request will be stubbed.
|
@@ -2623,24 +2640,24 @@ class VCR::Request::Typed
|
|
2623
2640
|
# @see #stubbed_by_vcr?
|
2624
2641
|
# @see #externally_stubbed?
|
2625
2642
|
#
|
2626
|
-
# source://vcr//lib/vcr/structs.rb#
|
2643
|
+
# source://vcr//lib/vcr/structs.rb#272
|
2627
2644
|
def stubbed?; end
|
2628
2645
|
|
2629
2646
|
# @return [Boolean] whether or not this request is being stubbed by VCR
|
2630
2647
|
# @see #externally_stubbed?
|
2631
2648
|
# @see #stubbed?
|
2632
2649
|
#
|
2633
|
-
# source://vcr//lib/vcr/structs.rb#
|
2650
|
+
# source://vcr//lib/vcr/structs.rb#240
|
2634
2651
|
def stubbed_by_vcr?; end
|
2635
2652
|
|
2636
2653
|
# @return [Symbol] One of `:ignored`, `:stubbed`, `:recordable` or `:unhandled`.
|
2637
2654
|
#
|
2638
|
-
# source://vcr//lib/vcr/structs.rb#
|
2655
|
+
# source://vcr//lib/vcr/structs.rb#223
|
2639
2656
|
def type; end
|
2640
2657
|
|
2641
2658
|
# @return [Boolean] whether or not VCR knows how to handle this request.
|
2642
2659
|
#
|
2643
|
-
# source://vcr//lib/vcr/structs.rb#
|
2660
|
+
# source://vcr//lib/vcr/structs.rb#258
|
2644
2661
|
def unhandled?; end
|
2645
2662
|
end
|
2646
2663
|
|
@@ -2758,9 +2775,9 @@ class VCR::RequestIgnorer
|
|
2758
2775
|
def ignored_hosts; end
|
2759
2776
|
end
|
2760
2777
|
|
2761
|
-
# source://vcr//lib/vcr/request_ignorer.rb#
|
2778
|
+
# source://vcr//lib/vcr/request_ignorer.rb#7
|
2762
2779
|
module VCR::RequestIgnorer::DefinedHooks
|
2763
|
-
# source://vcr//lib/vcr/
|
2780
|
+
# source://vcr//lib/vcr/request_ignorer.rb#9
|
2764
2781
|
def ignore_request(*filters, &hook); end
|
2765
2782
|
end
|
2766
2783
|
|
@@ -2806,7 +2823,7 @@ class VCR::RequestMatcherRegistry
|
|
2806
2823
|
# @param ignores [Array<#to_s>] The names of the query parameters to ignore
|
2807
2824
|
# @return [#call] the request matcher
|
2808
2825
|
#
|
2809
|
-
# source://vcr//lib/vcr/request_matcher_registry.rb#
|
2826
|
+
# source://vcr//lib/vcr/request_matcher_registry.rb#94
|
2810
2827
|
def uri_without_param(*ignores); end
|
2811
2828
|
|
2812
2829
|
# Builds a dynamic request matcher that matches on a URI while ignoring the
|
@@ -2884,7 +2901,7 @@ end
|
|
2884
2901
|
# @attr http_version [nil, String] the HTTP version
|
2885
2902
|
# @attr adapter_metadata [Hash] Additional metadata used by a specific VCR adapter.
|
2886
2903
|
#
|
2887
|
-
# source://vcr//lib/vcr/structs.rb#
|
2904
|
+
# source://vcr//lib/vcr/structs.rb#318
|
2888
2905
|
class VCR::Response < ::Struct
|
2889
2906
|
include ::VCR::Normalizers::Header
|
2890
2907
|
include ::VCR::Normalizers::Body
|
@@ -2892,21 +2909,21 @@ class VCR::Response < ::Struct
|
|
2892
2909
|
|
2893
2910
|
# @return [Response] a new instance of Response
|
2894
2911
|
#
|
2895
|
-
# source://vcr//lib/vcr/structs.rb#
|
2912
|
+
# source://vcr//lib/vcr/structs.rb#322
|
2896
2913
|
def initialize(*args); end
|
2897
2914
|
|
2898
2915
|
# Checks if the type of encoding is one of "gzip" or "deflate".
|
2899
2916
|
#
|
2900
2917
|
# @return [Boolean]
|
2901
2918
|
#
|
2902
|
-
# source://vcr//lib/vcr/structs.rb#
|
2919
|
+
# source://vcr//lib/vcr/structs.rb#369
|
2903
2920
|
def compressed?; end
|
2904
2921
|
|
2905
2922
|
# The type of encoding.
|
2906
2923
|
#
|
2907
2924
|
# @return [String] encoding type
|
2908
2925
|
#
|
2909
|
-
# source://vcr//lib/vcr/structs.rb#
|
2926
|
+
# source://vcr//lib/vcr/structs.rb#364
|
2910
2927
|
def content_encoding; end
|
2911
2928
|
|
2912
2929
|
# Decodes the compressed body and deletes evidence that it was ever compressed.
|
@@ -2915,7 +2932,7 @@ class VCR::Response < ::Struct
|
|
2915
2932
|
# is not a known encoding.
|
2916
2933
|
# @return self
|
2917
2934
|
#
|
2918
|
-
# source://vcr//lib/vcr/structs.rb#
|
2935
|
+
# source://vcr//lib/vcr/structs.rb#383
|
2919
2936
|
def decompress; end
|
2920
2937
|
|
2921
2938
|
# Recompresses the decompressed body according to adapter metadata.
|
@@ -2923,7 +2940,7 @@ class VCR::Response < ::Struct
|
|
2923
2940
|
# @raise [VCR::Errors::UnknownContentEncodingError] if the content encoding
|
2924
2941
|
# stored in the adapter metadata is unknown
|
2925
2942
|
#
|
2926
|
-
# source://vcr//lib/vcr/structs.rb#
|
2943
|
+
# source://vcr//lib/vcr/structs.rb#397
|
2927
2944
|
def recompress; end
|
2928
2945
|
|
2929
2946
|
# Builds a serializable hash from the response data.
|
@@ -2932,20 +2949,20 @@ class VCR::Response < ::Struct
|
|
2932
2949
|
# and can be easily serialized.
|
2933
2950
|
# @see Response.from_hash
|
2934
2951
|
#
|
2935
|
-
# source://vcr//lib/vcr/structs.rb#
|
2952
|
+
# source://vcr//lib/vcr/structs.rb#332
|
2936
2953
|
def to_hash; end
|
2937
2954
|
|
2938
2955
|
# Updates the Content-Length response header so that it is
|
2939
2956
|
# accurate for the response body.
|
2940
2957
|
#
|
2941
|
-
# source://vcr//lib/vcr/structs.rb#
|
2958
|
+
# source://vcr//lib/vcr/structs.rb#357
|
2942
2959
|
def update_content_length_header; end
|
2943
2960
|
|
2944
2961
|
# Checks if VCR decompressed the response body
|
2945
2962
|
#
|
2946
2963
|
# @return [Boolean]
|
2947
2964
|
#
|
2948
|
-
# source://vcr//lib/vcr/structs.rb#
|
2965
|
+
# source://vcr//lib/vcr/structs.rb#374
|
2949
2966
|
def vcr_decompressed?; end
|
2950
2967
|
|
2951
2968
|
class << self
|
@@ -2954,7 +2971,7 @@ class VCR::Response < ::Struct
|
|
2954
2971
|
# @raise [VCR::Errors::UnknownContentEncodingError] if the content encoding
|
2955
2972
|
# is not a known encoding.
|
2956
2973
|
#
|
2957
|
-
# source://vcr//lib/vcr/structs.rb#
|
2974
|
+
# source://vcr//lib/vcr/structs.rb#434
|
2958
2975
|
def decompress(body, type); end
|
2959
2976
|
|
2960
2977
|
# Constructs a new instance from a hash.
|
@@ -2962,12 +2979,12 @@ class VCR::Response < ::Struct
|
|
2962
2979
|
# @param hash [Hash] the hash to use to construct the instance.
|
2963
2980
|
# @return [Response] the response
|
2964
2981
|
#
|
2965
|
-
# source://vcr//lib/vcr/structs.rb#
|
2982
|
+
# source://vcr//lib/vcr/structs.rb#347
|
2966
2983
|
def from_hash(hash); end
|
2967
2984
|
end
|
2968
2985
|
end
|
2969
2986
|
|
2970
|
-
# source://vcr//lib/vcr/structs.rb#
|
2987
|
+
# source://vcr//lib/vcr/structs.rb#425
|
2971
2988
|
VCR::Response::HAVE_ZLIB = T.let(T.unsafe(nil), TrueClass)
|
2972
2989
|
|
2973
2990
|
# The response status of an {HTTPInteraction}.
|
@@ -2975,7 +2992,7 @@ VCR::Response::HAVE_ZLIB = T.let(T.unsafe(nil), TrueClass)
|
|
2975
2992
|
# @attr code [Integer] the HTTP status code
|
2976
2993
|
# @attr message [String] the HTTP status message (e.g. "OK" for a status of 200)
|
2977
2994
|
#
|
2978
|
-
# source://vcr//lib/vcr/structs.rb#
|
2995
|
+
# source://vcr//lib/vcr/structs.rb#457
|
2979
2996
|
class VCR::ResponseStatus < ::Struct
|
2980
2997
|
# Builds a serializable hash from the response status data.
|
2981
2998
|
#
|
@@ -2983,7 +3000,7 @@ class VCR::ResponseStatus < ::Struct
|
|
2983
3000
|
# and can be easily serialized.
|
2984
3001
|
# @see ResponseStatus.from_hash
|
2985
3002
|
#
|
2986
|
-
# source://vcr//lib/vcr/structs.rb#
|
3003
|
+
# source://vcr//lib/vcr/structs.rb#463
|
2987
3004
|
def to_hash; end
|
2988
3005
|
|
2989
3006
|
class << self
|
@@ -2992,7 +3009,7 @@ class VCR::ResponseStatus < ::Struct
|
|
2992
3009
|
# @param hash [Hash] the hash to use to construct the instance.
|
2993
3010
|
# @return [ResponseStatus] the response status
|
2994
3011
|
#
|
2995
|
-
# source://vcr//lib/vcr/structs.rb#
|
3012
|
+
# source://vcr//lib/vcr/structs.rb#473
|
2996
3013
|
def from_hash(hash); end
|
2997
3014
|
end
|
2998
3015
|
end
|