lunchmoney 1.4.1 → 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/workflows/build_and_publish_yard_docs.yml +2 -2
- 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/.toys/.toys.rb +8 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +76 -60
- data/README.md +0 -2
- data/SECURITY.md +151 -0
- data/bin/check_vcr_version +94 -0
- data/lib/lunchmoney/api.rb +25 -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 -36
- 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 -36
- data/lib/lunchmoney/calls/users.rb +3 -4
- data/lib/lunchmoney/configuration.rb +20 -0
- data/lib/lunchmoney/objects/object.rb +4 -9
- 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 +35 -0
- data/sorbet/rbi/dsl/active_support/callbacks.rbi +0 -2
- data/sorbet/rbi/gems/{activesupport@7.2.2.1.rbi → activesupport@8.0.2.1.rbi} +1369 -989
- 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.0.rbi → benchmark@0.4.1.rbi} +50 -49
- data/sorbet/rbi/gems/bigdecimal@3.2.2.rbi +275 -0
- data/sorbet/rbi/gems/{dotenv@3.1.7.rbi → dotenv@3.1.8.rbi} +9 -9
- data/sorbet/rbi/gems/{drb@2.2.1.rbi → drb@2.2.3.rbi} +503 -188
- data/sorbet/rbi/gems/{faraday-net_http@3.4.0.rbi → faraday-net_http@3.4.1.rbi} +23 -23
- data/sorbet/rbi/gems/{faraday@2.12.2.rbi → faraday@2.13.4.rbi} +468 -141
- data/sorbet/rbi/gems/{hashdiff@1.1.2.rbi → hashdiff@1.2.0.rbi} +5 -3
- data/sorbet/rbi/gems/{json@2.10.2.rbi → json@2.13.2.rbi} +386 -175
- data/sorbet/rbi/gems/{kramdown@2.4.0.rbi → kramdown@2.5.1.rbi} +316 -234
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +240 -0
- data/sorbet/rbi/gems/{logger@1.6.6.rbi → logger@1.7.0.rbi} +63 -40
- data/sorbet/rbi/gems/{parser@3.3.7.1.rbi → parser@3.3.9.0.rbi} +303 -291
- data/sorbet/rbi/gems/{rack@3.1.9.rbi → rack@3.2.1.rbi} +712 -547
- data/sorbet/rbi/gems/{rake@13.2.1.rbi → rake@13.3.0.rbi} +238 -227
- data/sorbet/rbi/gems/{rbi@0.3.1.rbi → rbi@0.3.6.rbi} +1084 -2521
- data/sorbet/rbi/gems/{rbs@3.9.0.rbi → rbs@4.0.0.dev.4.rbi} +1336 -419
- data/sorbet/rbi/gems/{regexp_parser@2.10.0.rbi → regexp_parser@2.11.2.rbi} +1044 -956
- data/sorbet/rbi/gems/require-hooks@0.2.2.rbi +110 -0
- data/sorbet/rbi/gems/{rexml@3.4.1.rbi → rexml@3.4.2.rbi} +302 -292
- data/sorbet/rbi/gems/{rubocop-ast@1.38.0.rbi → rubocop-ast@1.46.0.rbi} +802 -1016
- data/sorbet/rbi/gems/{rubocop-minitest@0.36.0.rbi → rubocop-minitest@0.38.2.rbi} +129 -93
- data/sorbet/rbi/gems/{rubocop-rails@2.29.1.rbi → rubocop-rails@2.33.3.rbi} +575 -230
- 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.7.rbi → rubocop-sorbet@0.10.5.rbi} +761 -83
- data/sorbet/rbi/gems/{rubocop@1.71.2.rbi → rubocop@1.80.1.rbi} +6543 -3097
- data/sorbet/rbi/gems/{spoom@1.6.1.rbi → spoom@1.7.6.rbi} +1179 -2621
- data/sorbet/rbi/gems/{tapioca@0.16.11.rbi → tapioca@0.17.7.rbi} +623 -745
- data/sorbet/rbi/gems/{thor@1.3.2.rbi → thor@1.4.0.rbi} +88 -67
- data/sorbet/rbi/gems/{unicode-display_width@3.1.4.rbi → unicode-display_width@3.1.5.rbi} +5 -5
- data/sorbet/rbi/gems/{vcr@6.3.1.rbi → vcr@6.3.1-ce35c236fe48899f02ddf780973b44cdb756c0ee.rbi} +140 -123
- metadata +42 -38
- data/sorbet/rbi/gems/bigdecimal@3.1.9.rbi +0 -78
- /data/sorbet/rbi/gems/{connection_pool@2.5.0.rbi → connection_pool@2.5.3.rbi} +0 -0
- /data/sorbet/rbi/gems/{language_server-protocol@3.17.0.4.rbi → language_server-protocol@3.17.0.5.rbi} +0 -0
- /data/sorbet/rbi/gems/{parallel@1.26.3.rbi → parallel@1.27.0.rbi} +0 -0
@@ -0,0 +1,240 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `lint_roller` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem lint_roller`.
|
6
|
+
|
7
|
+
|
8
|
+
# source://lint_roller//lib/lint_roller/context.rb#1
|
9
|
+
module LintRoller; end
|
10
|
+
|
11
|
+
# source://lint_roller//lib/lint_roller/about.rb#2
|
12
|
+
class LintRoller::About < ::Struct
|
13
|
+
# Returns the value of attribute description
|
14
|
+
#
|
15
|
+
# @return [Object] the current value of description
|
16
|
+
def description; end
|
17
|
+
|
18
|
+
# Sets the attribute description
|
19
|
+
#
|
20
|
+
# @param value [Object] the value to set the attribute description to.
|
21
|
+
# @return [Object] the newly set value
|
22
|
+
def description=(_); end
|
23
|
+
|
24
|
+
# Returns the value of attribute homepage
|
25
|
+
#
|
26
|
+
# @return [Object] the current value of homepage
|
27
|
+
def homepage; end
|
28
|
+
|
29
|
+
# Sets the attribute homepage
|
30
|
+
#
|
31
|
+
# @param value [Object] the value to set the attribute homepage to.
|
32
|
+
# @return [Object] the newly set value
|
33
|
+
def homepage=(_); end
|
34
|
+
|
35
|
+
# Returns the value of attribute name
|
36
|
+
#
|
37
|
+
# @return [Object] the current value of name
|
38
|
+
def name; end
|
39
|
+
|
40
|
+
# Sets the attribute name
|
41
|
+
#
|
42
|
+
# @param value [Object] the value to set the attribute name to.
|
43
|
+
# @return [Object] the newly set value
|
44
|
+
def name=(_); end
|
45
|
+
|
46
|
+
# Returns the value of attribute version
|
47
|
+
#
|
48
|
+
# @return [Object] the current value of version
|
49
|
+
def version; end
|
50
|
+
|
51
|
+
# Sets the attribute version
|
52
|
+
#
|
53
|
+
# @param value [Object] the value to set the attribute version to.
|
54
|
+
# @return [Object] the newly set value
|
55
|
+
def version=(_); end
|
56
|
+
|
57
|
+
class << self
|
58
|
+
def [](*_arg0); end
|
59
|
+
def inspect; end
|
60
|
+
def keyword_init?; end
|
61
|
+
def members; end
|
62
|
+
def new(*_arg0); end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# source://lint_roller//lib/lint_roller/context.rb#2
|
67
|
+
class LintRoller::Context < ::Struct
|
68
|
+
# Returns the value of attribute engine
|
69
|
+
#
|
70
|
+
# @return [Object] the current value of engine
|
71
|
+
def engine; end
|
72
|
+
|
73
|
+
# Sets the attribute engine
|
74
|
+
#
|
75
|
+
# @param value [Object] the value to set the attribute engine to.
|
76
|
+
# @return [Object] the newly set value
|
77
|
+
def engine=(_); end
|
78
|
+
|
79
|
+
# Returns the value of attribute engine_version
|
80
|
+
#
|
81
|
+
# @return [Object] the current value of engine_version
|
82
|
+
def engine_version; end
|
83
|
+
|
84
|
+
# Sets the attribute engine_version
|
85
|
+
#
|
86
|
+
# @param value [Object] the value to set the attribute engine_version to.
|
87
|
+
# @return [Object] the newly set value
|
88
|
+
def engine_version=(_); end
|
89
|
+
|
90
|
+
# Returns the value of attribute rule_format
|
91
|
+
#
|
92
|
+
# @return [Object] the current value of rule_format
|
93
|
+
def rule_format; end
|
94
|
+
|
95
|
+
# Sets the attribute rule_format
|
96
|
+
#
|
97
|
+
# @param value [Object] the value to set the attribute rule_format to.
|
98
|
+
# @return [Object] the newly set value
|
99
|
+
def rule_format=(_); end
|
100
|
+
|
101
|
+
# Returns the value of attribute runner
|
102
|
+
#
|
103
|
+
# @return [Object] the current value of runner
|
104
|
+
def runner; end
|
105
|
+
|
106
|
+
# Sets the attribute runner
|
107
|
+
#
|
108
|
+
# @param value [Object] the value to set the attribute runner to.
|
109
|
+
# @return [Object] the newly set value
|
110
|
+
def runner=(_); end
|
111
|
+
|
112
|
+
# Returns the value of attribute runner_version
|
113
|
+
#
|
114
|
+
# @return [Object] the current value of runner_version
|
115
|
+
def runner_version; end
|
116
|
+
|
117
|
+
# Sets the attribute runner_version
|
118
|
+
#
|
119
|
+
# @param value [Object] the value to set the attribute runner_version to.
|
120
|
+
# @return [Object] the newly set value
|
121
|
+
def runner_version=(_); end
|
122
|
+
|
123
|
+
# Returns the value of attribute target_ruby_version
|
124
|
+
#
|
125
|
+
# @return [Object] the current value of target_ruby_version
|
126
|
+
def target_ruby_version; end
|
127
|
+
|
128
|
+
# Sets the attribute target_ruby_version
|
129
|
+
#
|
130
|
+
# @param value [Object] the value to set the attribute target_ruby_version to.
|
131
|
+
# @return [Object] the newly set value
|
132
|
+
def target_ruby_version=(_); end
|
133
|
+
|
134
|
+
class << self
|
135
|
+
def [](*_arg0); end
|
136
|
+
def inspect; end
|
137
|
+
def keyword_init?; end
|
138
|
+
def members; end
|
139
|
+
def new(*_arg0); end
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
# source://lint_roller//lib/lint_roller/error.rb#2
|
144
|
+
class LintRoller::Error < ::StandardError; end
|
145
|
+
|
146
|
+
# source://lint_roller//lib/lint_roller/plugin.rb#2
|
147
|
+
class LintRoller::Plugin
|
148
|
+
# `config' is a Hash of options passed to the plugin by the user
|
149
|
+
#
|
150
|
+
# @return [Plugin] a new instance of Plugin
|
151
|
+
#
|
152
|
+
# source://lint_roller//lib/lint_roller/plugin.rb#4
|
153
|
+
def initialize(config = T.unsafe(nil)); end
|
154
|
+
|
155
|
+
# @raise [Error]
|
156
|
+
#
|
157
|
+
# source://lint_roller//lib/lint_roller/plugin.rb#8
|
158
|
+
def about; end
|
159
|
+
|
160
|
+
# `context' is an instance of LintRoller::Context provided by the runner
|
161
|
+
#
|
162
|
+
# @raise [Error]
|
163
|
+
#
|
164
|
+
# source://lint_roller//lib/lint_roller/plugin.rb#18
|
165
|
+
def rules(context); end
|
166
|
+
|
167
|
+
# `context' is an instance of LintRoller::Context provided by the runner
|
168
|
+
#
|
169
|
+
# @return [Boolean]
|
170
|
+
#
|
171
|
+
# source://lint_roller//lib/lint_roller/plugin.rb#13
|
172
|
+
def supported?(context); end
|
173
|
+
end
|
174
|
+
|
175
|
+
# source://lint_roller//lib/lint_roller/rules.rb#2
|
176
|
+
class LintRoller::Rules < ::Struct
|
177
|
+
# Returns the value of attribute config_format
|
178
|
+
#
|
179
|
+
# @return [Object] the current value of config_format
|
180
|
+
def config_format; end
|
181
|
+
|
182
|
+
# Sets the attribute config_format
|
183
|
+
#
|
184
|
+
# @param value [Object] the value to set the attribute config_format to.
|
185
|
+
# @return [Object] the newly set value
|
186
|
+
def config_format=(_); end
|
187
|
+
|
188
|
+
# Returns the value of attribute error
|
189
|
+
#
|
190
|
+
# @return [Object] the current value of error
|
191
|
+
def error; end
|
192
|
+
|
193
|
+
# Sets the attribute error
|
194
|
+
#
|
195
|
+
# @param value [Object] the value to set the attribute error to.
|
196
|
+
# @return [Object] the newly set value
|
197
|
+
def error=(_); end
|
198
|
+
|
199
|
+
# Returns the value of attribute type
|
200
|
+
#
|
201
|
+
# @return [Object] the current value of type
|
202
|
+
def type; end
|
203
|
+
|
204
|
+
# Sets the attribute type
|
205
|
+
#
|
206
|
+
# @param value [Object] the value to set the attribute type to.
|
207
|
+
# @return [Object] the newly set value
|
208
|
+
def type=(_); end
|
209
|
+
|
210
|
+
# Returns the value of attribute value
|
211
|
+
#
|
212
|
+
# @return [Object] the current value of value
|
213
|
+
def value; end
|
214
|
+
|
215
|
+
# Sets the attribute value
|
216
|
+
#
|
217
|
+
# @param value [Object] the value to set the attribute value to.
|
218
|
+
# @return [Object] the newly set value
|
219
|
+
def value=(_); end
|
220
|
+
|
221
|
+
class << self
|
222
|
+
def [](*_arg0); end
|
223
|
+
def inspect; end
|
224
|
+
def keyword_init?; end
|
225
|
+
def members; end
|
226
|
+
def new(*_arg0); end
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
# source://lint_roller//lib/lint_roller/support/merges_upstream_metadata.rb#2
|
231
|
+
module LintRoller::Support; end
|
232
|
+
|
233
|
+
# source://lint_roller//lib/lint_roller/support/merges_upstream_metadata.rb#3
|
234
|
+
class LintRoller::Support::MergesUpstreamMetadata
|
235
|
+
# source://lint_roller//lib/lint_roller/support/merges_upstream_metadata.rb#4
|
236
|
+
def merge(plugin_yaml, upstream_yaml); end
|
237
|
+
end
|
238
|
+
|
239
|
+
# source://lint_roller//lib/lint_roller/version.rb#2
|
240
|
+
LintRoller::VERSION = T.let(T.unsafe(nil), String)
|
@@ -369,10 +369,20 @@ class Logger
|
|
369
369
|
# - A string filepath: entries are to be written
|
370
370
|
# to the file at that path; if the file at that path exists,
|
371
371
|
# new entries are appended.
|
372
|
-
# - An IO stream (typically
|
373
|
-
# entries are to be written to the given stream.
|
372
|
+
# - An IO stream (typically <tt>$stdout</tt>, <tt>$stderr</tt>. or
|
373
|
+
# an open file): entries are to be written to the given stream.
|
374
374
|
# - +nil+ or +File::NULL+: no entries are to be written.
|
375
375
|
#
|
376
|
+
# Argument +shift_age+ must be one of:
|
377
|
+
#
|
378
|
+
# - The number of log files to be in the rotation.
|
379
|
+
# See {Size-Based Rotation}[rdoc-ref:Logger@Size-Based+Rotation].
|
380
|
+
# - A string period indicator.
|
381
|
+
# See {Periodic Rotation}[rdoc-ref:Logger@Periodic+Rotation].
|
382
|
+
#
|
383
|
+
# Argument +shift_size+ is the maximum size (in bytes) of each log file.
|
384
|
+
# See {Size-Based Rotation}[rdoc-ref:Logger@Size-Based+Rotation].
|
385
|
+
#
|
376
386
|
# Examples:
|
377
387
|
#
|
378
388
|
# Logger.new('t.log')
|
@@ -392,22 +402,29 @@ class Logger
|
|
392
402
|
#
|
393
403
|
# - +formatter+: sets the entry formatter; default is +nil+.
|
394
404
|
# See {formatter=}[Logger.html#attribute-i-formatter].
|
405
|
+
#
|
395
406
|
# - +datetime_format+: sets the format for entry timestamp;
|
396
407
|
# default is +nil+.
|
397
408
|
# See #datetime_format=.
|
409
|
+
#
|
398
410
|
# - +binmode+: sets whether the logger writes in binary mode;
|
399
411
|
# default is +false+.
|
412
|
+
#
|
400
413
|
# - +shift_period_suffix+: sets the format for the filename suffix
|
401
414
|
# for periodic log file rotation; default is <tt>'%Y%m%d'</tt>.
|
402
415
|
# See {Periodic Rotation}[rdoc-ref:Logger@Periodic+Rotation].
|
416
|
+
#
|
403
417
|
# - +reraise_write_errors+: An array of exception classes, which will
|
404
418
|
# be reraised if there is an error when writing to the log device.
|
405
419
|
# The default is to swallow all exceptions raised.
|
420
|
+
# - +skip_header+: If +true+, prevents the logger from writing a header
|
421
|
+
# when creating a new log file. The default is +false+, meaning
|
422
|
+
# the header will be written as usual.
|
406
423
|
#
|
407
424
|
# @return [Logger] a new instance of Logger
|
408
425
|
#
|
409
|
-
# source://logger//lib/logger.rb#
|
410
|
-
def initialize(logdev, shift_age = T.unsafe(nil), shift_size = T.unsafe(nil), level: T.unsafe(nil), progname: T.unsafe(nil), formatter: T.unsafe(nil), datetime_format: T.unsafe(nil), binmode: T.unsafe(nil), shift_period_suffix: T.unsafe(nil), reraise_write_errors: T.unsafe(nil)); end
|
426
|
+
# source://logger//lib/logger.rb#598
|
427
|
+
def initialize(logdev, shift_age = T.unsafe(nil), shift_size = T.unsafe(nil), level: T.unsafe(nil), progname: T.unsafe(nil), formatter: T.unsafe(nil), datetime_format: T.unsafe(nil), binmode: T.unsafe(nil), shift_period_suffix: T.unsafe(nil), reraise_write_errors: T.unsafe(nil), skip_header: T.unsafe(nil)); end
|
411
428
|
|
412
429
|
# Writes the given +msg+ to the log with no formatting;
|
413
430
|
# returns the number of characters written,
|
@@ -420,7 +437,7 @@ class Logger
|
|
420
437
|
#
|
421
438
|
# My message.
|
422
439
|
#
|
423
|
-
# source://logger//lib/logger.rb#
|
440
|
+
# source://logger//lib/logger.rb#708
|
424
441
|
def <<(msg); end
|
425
442
|
|
426
443
|
# Creates a log entry, which may or may not be written to the log,
|
@@ -450,7 +467,7 @@ class Logger
|
|
450
467
|
# - #fatal.
|
451
468
|
# - #unknown.
|
452
469
|
#
|
453
|
-
# source://logger//lib/logger.rb#
|
470
|
+
# source://logger//lib/logger.rb#675
|
454
471
|
def add(severity, message = T.unsafe(nil), progname = T.unsafe(nil)); end
|
455
472
|
|
456
473
|
# Closes the logger; returns +nil+:
|
@@ -461,7 +478,7 @@ class Logger
|
|
461
478
|
#
|
462
479
|
# Related: Logger#reopen.
|
463
480
|
#
|
464
|
-
# source://logger//lib/logger.rb#
|
481
|
+
# source://logger//lib/logger.rb#755
|
465
482
|
def close; end
|
466
483
|
|
467
484
|
# Returns the date-time format; see #datetime_format=.
|
@@ -482,7 +499,7 @@ class Logger
|
|
482
499
|
|
483
500
|
# Equivalent to calling #add with severity <tt>Logger::DEBUG</tt>.
|
484
501
|
#
|
485
|
-
# source://logger//lib/logger.rb#
|
502
|
+
# source://logger//lib/logger.rb#714
|
486
503
|
def debug(progname = T.unsafe(nil), &block); end
|
487
504
|
|
488
505
|
# Sets the log level to Logger::DEBUG.
|
@@ -502,7 +519,7 @@ class Logger
|
|
502
519
|
|
503
520
|
# Equivalent to calling #add with severity <tt>Logger::ERROR</tt>.
|
504
521
|
#
|
505
|
-
# source://logger//lib/logger.rb#
|
522
|
+
# source://logger//lib/logger.rb#732
|
506
523
|
def error(progname = T.unsafe(nil), &block); end
|
507
524
|
|
508
525
|
# Sets the log level to Logger::ERROR.
|
@@ -522,7 +539,7 @@ class Logger
|
|
522
539
|
|
523
540
|
# Equivalent to calling #add with severity <tt>Logger::FATAL</tt>.
|
524
541
|
#
|
525
|
-
# source://logger//lib/logger.rb#
|
542
|
+
# source://logger//lib/logger.rb#738
|
526
543
|
def fatal(progname = T.unsafe(nil), &block); end
|
527
544
|
|
528
545
|
# Sets the log level to Logger::FATAL.
|
@@ -610,7 +627,7 @@ class Logger
|
|
610
627
|
|
611
628
|
# Equivalent to calling #add with severity <tt>Logger::INFO</tt>.
|
612
629
|
#
|
613
|
-
# source://logger//lib/logger.rb#
|
630
|
+
# source://logger//lib/logger.rb#720
|
614
631
|
def info(progname = T.unsafe(nil), &block); end
|
615
632
|
|
616
633
|
# Sets the log level to Logger::INFO.
|
@@ -675,7 +692,7 @@ class Logger
|
|
675
692
|
# - #fatal.
|
676
693
|
# - #unknown.
|
677
694
|
#
|
678
|
-
# source://logger//lib/logger.rb#
|
695
|
+
# source://logger//lib/logger.rb#675
|
679
696
|
def log(severity, message = T.unsafe(nil), progname = T.unsafe(nil)); end
|
680
697
|
|
681
698
|
# Program name to include in log messages.
|
@@ -711,8 +728,8 @@ class Logger
|
|
711
728
|
# # "E, [2022-05-12T14:21:27.596726 #22428] ERROR -- : one\n",
|
712
729
|
# # "E, [2022-05-12T14:23:05.847241 #22428] ERROR -- : three\n"]
|
713
730
|
#
|
714
|
-
# source://logger//lib/logger.rb#
|
715
|
-
def reopen(logdev = T.unsafe(nil)); end
|
731
|
+
# source://logger//lib/logger.rb#642
|
732
|
+
def reopen(logdev = T.unsafe(nil), shift_age = T.unsafe(nil), shift_size = T.unsafe(nil), shift_period_suffix: T.unsafe(nil), binmode: T.unsafe(nil)); end
|
716
733
|
|
717
734
|
# Logging severity threshold (e.g. <tt>Logger::INFO</tt>).
|
718
735
|
#
|
@@ -736,12 +753,12 @@ class Logger
|
|
736
753
|
|
737
754
|
# Equivalent to calling #add with severity <tt>Logger::UNKNOWN</tt>.
|
738
755
|
#
|
739
|
-
# source://logger//lib/logger.rb#
|
756
|
+
# source://logger//lib/logger.rb#744
|
740
757
|
def unknown(progname = T.unsafe(nil), &block); end
|
741
758
|
|
742
759
|
# Equivalent to calling #add with severity <tt>Logger::WARN</tt>.
|
743
760
|
#
|
744
|
-
# source://logger//lib/logger.rb#
|
761
|
+
# source://logger//lib/logger.rb#726
|
745
762
|
def warn(progname = T.unsafe(nil), &block); end
|
746
763
|
|
747
764
|
# Sets the log level to Logger::WARN.
|
@@ -770,18 +787,18 @@ class Logger
|
|
770
787
|
|
771
788
|
private
|
772
789
|
|
773
|
-
# source://logger//lib/logger.rb#
|
790
|
+
# source://logger//lib/logger.rb#786
|
774
791
|
def format_message(severity, datetime, progname, msg); end
|
775
792
|
|
776
|
-
# source://logger//lib/logger.rb#
|
793
|
+
# source://logger//lib/logger.rb#764
|
777
794
|
def format_severity(severity); end
|
778
795
|
|
779
|
-
# source://logger//lib/logger.rb#
|
796
|
+
# source://logger//lib/logger.rb#782
|
780
797
|
def level_key; end
|
781
798
|
|
782
799
|
# Guarantee the existence of this ivar even when subclasses don't call the superclass constructor.
|
783
800
|
#
|
784
|
-
# source://logger//lib/logger.rb#
|
801
|
+
# source://logger//lib/logger.rb#769
|
785
802
|
def level_override; end
|
786
803
|
end
|
787
804
|
|
@@ -834,9 +851,9 @@ class Logger::LogDevice
|
|
834
851
|
# @return [LogDevice] a new instance of LogDevice
|
835
852
|
#
|
836
853
|
# source://logger//lib/logger/log_device.rb#14
|
837
|
-
def initialize(log = T.unsafe(nil), shift_age: T.unsafe(nil), shift_size: T.unsafe(nil), shift_period_suffix: T.unsafe(nil), binmode: T.unsafe(nil), reraise_write_errors: T.unsafe(nil)); end
|
854
|
+
def initialize(log = T.unsafe(nil), shift_age: T.unsafe(nil), shift_size: T.unsafe(nil), shift_period_suffix: T.unsafe(nil), binmode: T.unsafe(nil), reraise_write_errors: T.unsafe(nil), skip_header: T.unsafe(nil)); end
|
838
855
|
|
839
|
-
# source://logger//lib/logger/log_device.rb#
|
856
|
+
# source://logger//lib/logger/log_device.rb#38
|
840
857
|
def close; end
|
841
858
|
|
842
859
|
# Returns the value of attribute dev.
|
@@ -849,54 +866,60 @@ class Logger::LogDevice
|
|
849
866
|
# source://logger//lib/logger/log_device.rb#11
|
850
867
|
def filename; end
|
851
868
|
|
852
|
-
# source://logger//lib/logger/log_device.rb#
|
853
|
-
def reopen(log = T.unsafe(nil)); end
|
869
|
+
# source://logger//lib/logger/log_device.rb#48
|
870
|
+
def reopen(log = T.unsafe(nil), shift_age: T.unsafe(nil), shift_size: T.unsafe(nil), shift_period_suffix: T.unsafe(nil), binmode: T.unsafe(nil)); end
|
854
871
|
|
855
|
-
# source://logger//lib/logger/log_device.rb#
|
872
|
+
# source://logger//lib/logger/log_device.rb#27
|
856
873
|
def write(message); end
|
857
874
|
|
858
875
|
private
|
859
876
|
|
860
|
-
# source://logger//lib/logger/log_device.rb#
|
877
|
+
# source://logger//lib/logger/log_device.rb#156
|
861
878
|
def add_log_header(file); end
|
862
879
|
|
863
|
-
# source://logger//lib/logger/log_device.rb#
|
880
|
+
# source://logger//lib/logger/log_device.rb#162
|
864
881
|
def check_shift_log; end
|
865
882
|
|
866
|
-
# source://logger//lib/logger/log_device.rb#
|
883
|
+
# source://logger//lib/logger/log_device.rb#132
|
867
884
|
def create_logfile(filename); end
|
868
885
|
|
869
|
-
# source://logger//lib/logger/log_device.rb#
|
870
|
-
def fixup_mode(dev
|
886
|
+
# source://logger//lib/logger/log_device.rb#104
|
887
|
+
def fixup_mode(dev); end
|
871
888
|
|
872
|
-
# source://logger//lib/logger/log_device.rb#
|
889
|
+
# source://logger//lib/logger/log_device.rb#148
|
873
890
|
def handle_write_errors(mesg); end
|
874
891
|
|
875
|
-
# source://logger//lib/logger/log_device.rb#
|
892
|
+
# source://logger//lib/logger/log_device.rb#177
|
876
893
|
def lock_shift_log; end
|
877
894
|
|
878
|
-
# source://logger//lib/logger/log_device.rb#
|
895
|
+
# source://logger//lib/logger/log_device.rb#119
|
879
896
|
def open_logfile(filename); end
|
880
897
|
|
881
|
-
# source://logger//lib/logger/log_device.rb#
|
898
|
+
# source://logger//lib/logger/log_device.rb#78
|
882
899
|
def set_dev(log); end
|
883
900
|
|
884
|
-
# source://logger//lib/logger/log_device.rb#
|
901
|
+
# source://logger//lib/logger/log_device.rb#92
|
902
|
+
def set_file(shift_age, shift_size, shift_period_suffix); end
|
903
|
+
|
904
|
+
# source://logger//lib/logger/log_device.rb#207
|
885
905
|
def shift_log_age; end
|
886
906
|
|
887
|
-
# source://logger//lib/logger/log_device.rb#
|
907
|
+
# source://logger//lib/logger/log_device.rb#232
|
908
|
+
def shift_log_file(shifted); end
|
909
|
+
|
910
|
+
# source://logger//lib/logger/log_device.rb#216
|
888
911
|
def shift_log_period(period_end); end
|
889
912
|
end
|
890
913
|
|
891
914
|
# :stopdoc:
|
892
915
|
#
|
893
|
-
# source://logger//lib/logger/log_device.rb#
|
916
|
+
# source://logger//lib/logger/log_device.rb#69
|
894
917
|
Logger::LogDevice::MODE = T.let(T.unsafe(nil), Integer)
|
895
918
|
|
896
|
-
# source://logger//lib/logger/log_device.rb#
|
919
|
+
# source://logger//lib/logger/log_device.rb#76
|
897
920
|
Logger::LogDevice::MODE_TO_CREATE = T.let(T.unsafe(nil), Integer)
|
898
921
|
|
899
|
-
# source://logger//lib/logger/log_device.rb#
|
922
|
+
# source://logger//lib/logger/log_device.rb#72
|
900
923
|
Logger::LogDevice::MODE_TO_OPEN = T.let(T.unsafe(nil), Integer)
|
901
924
|
|
902
925
|
# source://logger//lib/logger/period.rb#4
|
@@ -923,7 +946,7 @@ Logger::Period::SiD = T.let(T.unsafe(nil), Integer)
|
|
923
946
|
|
924
947
|
# \Severity label for logging (max 5 chars).
|
925
948
|
#
|
926
|
-
# source://logger//lib/logger.rb#
|
949
|
+
# source://logger//lib/logger.rb#762
|
927
950
|
Logger::SEV_LABEL = T.let(T.unsafe(nil), Array)
|
928
951
|
|
929
952
|
# Logging severity.
|