mootool 0.2.6 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -1
  3. data/.rubocop.yml +7 -0
  4. data/Gemfile +1 -0
  5. data/Gemfile.lock +71 -67
  6. data/lib/mootool/command.rb +1 -0
  7. data/lib/mootool/controller_base.rb +1 -0
  8. data/lib/mootool/controllers/dwarf.rb +2 -1
  9. data/lib/mootool/controllers/dyld_linker.rb +1 -0
  10. data/lib/mootool/controllers/dyld_shared_cache.rb +1 -0
  11. data/lib/mootool/controllers/fat_binary.rb +1 -0
  12. data/lib/mootool/controllers/kernel_collection.rb +4 -3
  13. data/lib/mootool/controllers/sections.rb +1 -0
  14. data/lib/mootool/core_extensions.rb +3 -3
  15. data/lib/mootool/models/decompressor.rb +5 -2
  16. data/lib/mootool/models/device_tree.rb +5 -3
  17. data/lib/mootool/models/img4.rb +2 -1
  18. data/lib/mootool/models/ipsw.rb +5 -1
  19. data/lib/mootool/version.rb +2 -1
  20. data/lib/mootool.rb +1 -0
  21. data/sorbet/config +1 -1
  22. data/sorbet/rbi/annotations/.gitattributes +1 -0
  23. data/sorbet/rbi/annotations/rainbow.rbi +2 -2
  24. data/sorbet/rbi/gems/.gitattributes +1 -0
  25. data/sorbet/rbi/gems/ast@2.4.2.rbi +48 -82
  26. data/sorbet/rbi/gems/childprocess@4.1.0.rbi +107 -153
  27. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +192 -332
  28. data/sorbet/rbi/gems/docile@1.4.0.rbi +376 -0
  29. data/sorbet/rbi/gems/erubi@1.12.0.rbi +146 -0
  30. data/sorbet/rbi/gems/iniparse@1.5.0.rbi +166 -276
  31. data/sorbet/rbi/gems/{json@2.6.2.rbi → json@2.6.3.rbi} +119 -228
  32. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
  33. data/sorbet/rbi/gems/lzfse@0.0.2.rbi +55 -0
  34. data/sorbet/rbi/gems/lzss@0.1.rbi +8 -0
  35. data/sorbet/rbi/gems/netrc@0.11.0.rbi +52 -80
  36. data/sorbet/rbi/gems/{overcommit@0.59.1.rbi → overcommit@0.60.0.rbi} +534 -887
  37. data/sorbet/rbi/gems/parallel@1.23.0.rbi +273 -0
  38. data/sorbet/rbi/gems/parser@3.2.2.4.rbi +5451 -0
  39. data/sorbet/rbi/gems/{plist@3.6.0.rbi → plist@3.7.0.rbi} +125 -3
  40. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
  41. data/sorbet/rbi/gems/prism@0.17.1.rbi +27700 -0
  42. data/sorbet/rbi/gems/racc@1.7.3.rbi +161 -0
  43. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +141 -191
  44. data/sorbet/rbi/gems/rake@13.1.0.rbi +2887 -0
  45. data/sorbet/rbi/gems/{rbi@0.0.15.rbi → rbi@0.1.4.rbi} +979 -1676
  46. data/sorbet/rbi/gems/regexp_parser@2.8.2.rbi +3749 -0
  47. data/sorbet/rbi/gems/{rexml@3.2.5.rbi → rexml@3.2.6.rbi} +811 -1268
  48. data/sorbet/rbi/gems/{rspec-core@3.11.0.rbi → rspec-core@3.12.2.rbi} +2662 -4722
  49. data/sorbet/rbi/gems/{rspec-expectations@3.11.0.rbi → rspec-expectations@3.12.3.rbi} +1557 -2608
  50. data/sorbet/rbi/gems/rspec-mocks@3.12.6.rbi +5306 -0
  51. data/sorbet/rbi/gems/rspec-support@3.12.1.rbi +1609 -0
  52. data/sorbet/rbi/gems/rspec@3.12.0.rbi +82 -0
  53. data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7090 -0
  54. data/sorbet/rbi/gems/rubocop-capybara@2.19.0.rbi +1125 -0
  55. data/sorbet/rbi/gems/rubocop-factory_bot@2.24.0.rbi +878 -0
  56. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +88 -173
  57. data/sorbet/rbi/gems/rubocop-rspec@2.25.0.rbi +7997 -0
  58. data/sorbet/rbi/gems/rubocop@1.57.2.rbi +56813 -0
  59. data/sorbet/rbi/gems/ruby-lzma@0.4.3.rbi +19 -0
  60. data/sorbet/rbi/gems/ruby-macho@3.0.0.rbi +899 -1237
  61. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
  62. data/sorbet/rbi/gems/rubyzip@2.3.2.rbi +808 -1275
  63. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +216 -0
  64. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2148 -0
  65. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +8 -0
  66. data/sorbet/rbi/gems/spoom@1.2.4.rbi +3777 -0
  67. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +23136 -0
  68. data/sorbet/rbi/gems/tapioca@0.11.12.rbi +3507 -0
  69. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +65 -0
  70. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
  71. data/sorbet/rbi/gems/{yard@0.9.28.rbi → yard@0.9.34.rbi} +4531 -7160
  72. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +24 -72
  73. data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +385 -1697
  74. data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +7 -30
  75. data/sorbet/rbi/sorbet-typed/lib/rubocop/>=1.8/rubocop.rbi +1 -3
  76. data/sorbet/rbi/sorbet-typed/lib/thor/all/thor.rbi +905 -0
  77. data/sorbet/rbi/sorbet-typed/lib/yard/all/yard.rbi +35 -0
  78. data/sorbet/tapioca/require.rb +13 -1
  79. metadata +47 -36
  80. data/.DS_Store +0 -0
  81. data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
  82. data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -8
  83. data/sorbet/rbi/gems/parallel@1.22.1.rbi +0 -353
  84. data/sorbet/rbi/gems/parser@3.1.2.1.rbi +0 -6198
  85. data/sorbet/rbi/gems/pry@0.14.1.rbi +0 -8
  86. data/sorbet/rbi/gems/rake@13.0.6.rbi +0 -3587
  87. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +0 -3927
  88. data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +0 -6506
  89. data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +0 -2040
  90. data/sorbet/rbi/gems/rspec@3.11.0.rbi +0 -120
  91. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +0 -7990
  92. data/sorbet/rbi/gems/rubocop-rspec@2.12.1.rbi +0 -7604
  93. data/sorbet/rbi/gems/rubocop@1.35.0.rbi +0 -62260
  94. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -1445
  95. data/sorbet/rbi/gems/spoom@1.1.12.rbi +0 -2829
  96. data/sorbet/rbi/gems/tapioca@0.9.3.rbi +0 -2151
  97. data/sorbet/rbi/gems/thor@1.2.1.rbi +0 -4532
  98. data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +0 -60
  99. data/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -8
  100. data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -3075
  101. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +0 -458
  102. data/sorbet/rbi/todo.rbi +0 -7
@@ -4,7 +4,7 @@
4
4
  # This is an autogenerated file for types exported from the `iniparse` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem iniparse`.
6
6
 
7
- # source://iniparse-1.5.0/lib/iniparse/document.rb:1
7
+ # source://iniparse//lib/iniparse/document.rb#1
8
8
  module IniParse
9
9
  private
10
10
 
@@ -15,10 +15,8 @@ module IniParse
15
15
  # ==== Returns
16
16
  # IniParse::Document
17
17
  #
18
- # source://iniparse-1.5.0/lib/iniparse.rb:63
19
- def gen(&blk)
20
- ;
21
- end
18
+ # source://iniparse//lib/iniparse.rb#63
19
+ def gen(&blk); end
22
20
 
23
21
  # Opens the file at +path+, reads and parses it's contents.
24
22
  #
@@ -28,10 +26,8 @@ module IniParse
28
26
  # ==== Returns
29
27
  # IniParse::Document
30
28
  #
31
- # source://iniparse-1.5.0/lib/iniparse.rb:50
32
- def open(path)
33
- ;
34
- end
29
+ # source://iniparse//lib/iniparse.rb#50
30
+ def open(path); end
35
31
 
36
32
  # Parse given given INI document source +source+.
37
33
  #
@@ -43,10 +39,8 @@ module IniParse
43
39
  # ==== Returns
44
40
  # IniParse::Document
45
41
  #
46
- # source://iniparse-1.5.0/lib/iniparse.rb:38
47
- def parse(source)
48
- ;
49
- end
42
+ # source://iniparse//lib/iniparse.rb#38
43
+ def parse(source); end
50
44
 
51
45
  class << self
52
46
  # Creates a new IniParse::Document using the specification you provide.
@@ -56,10 +50,8 @@ module IniParse
56
50
  # ==== Returns
57
51
  # IniParse::Document
58
52
  #
59
- # source://iniparse-1.5.0/lib/iniparse.rb:63
60
- def gen(&blk)
61
- ;
62
- end
53
+ # source://iniparse//lib/iniparse.rb#63
54
+ def gen(&blk); end
63
55
 
64
56
  # Opens the file at +path+, reads and parses it's contents.
65
57
  #
@@ -69,10 +61,8 @@ module IniParse
69
61
  # ==== Returns
70
62
  # IniParse::Document
71
63
  #
72
- # source://iniparse-1.5.0/lib/iniparse.rb:50
73
- def open(path)
74
- ;
75
- end
64
+ # source://iniparse//lib/iniparse.rb#50
65
+ def open(path); end
76
66
 
77
67
  # Parse given given INI document source +source+.
78
68
  #
@@ -84,16 +74,14 @@ module IniParse
84
74
  # ==== Returns
85
75
  # IniParse::Document
86
76
  #
87
- # source://iniparse-1.5.0/lib/iniparse.rb:38
88
- def parse(source)
89
- ;
90
- end
77
+ # source://iniparse//lib/iniparse.rb#38
78
+ def parse(source); end
91
79
  end
92
80
  end
93
81
 
94
82
  # Represents an INI document.
95
83
  #
96
- # source://iniparse-1.5.0/lib/iniparse/document.rb:3
84
+ # source://iniparse//lib/iniparse/document.rb#3
97
85
  class IniParse::Document
98
86
  include ::Enumerable
99
87
 
@@ -101,28 +89,22 @@ class IniParse::Document
101
89
  #
102
90
  # @return [Document] a new instance of Document
103
91
  #
104
- # source://iniparse-1.5.0/lib/iniparse/document.rb:10
105
- def initialize(path = T.unsafe(nil))
106
- ;
107
- end
92
+ # source://iniparse//lib/iniparse/document.rb#10
93
+ def initialize(path = T.unsafe(nil)); end
108
94
 
109
95
  # Returns the section identified by +key+.
110
96
  #
111
97
  # Returns nil if there is no Section with the given key.
112
98
  #
113
- # source://iniparse-1.5.0/lib/iniparse/document.rb:31
114
- def [](key)
115
- ;
116
- end
99
+ # source://iniparse//lib/iniparse/document.rb#31
100
+ def [](key); end
117
101
 
118
102
  # Deletes the section whose name matches the given +key+.
119
103
  #
120
104
  # Returns the document.
121
105
  #
122
- # source://iniparse-1.5.0/lib/iniparse/document.rb:47
123
- def delete(*args)
124
- ;
125
- end
106
+ # source://iniparse//lib/iniparse/document.rb#47
107
+ def delete(*args); end
126
108
 
127
109
  # Enumerates through each Section in this document.
128
110
  #
@@ -132,43 +114,37 @@ class IniParse::Document
132
114
  # ==== Parameters
133
115
  # include_blank<Boolean>:: Include blank/comment lines?
134
116
  #
135
- # source://iniparse-1.5.0/lib/iniparse/document.rb:23
136
- def each(*args, &blk)
137
- ;
138
- end
117
+ # source://iniparse//lib/iniparse/document.rb#23
118
+ def each(*args, &blk); end
139
119
 
140
120
  # Returns true if a section with the given +key+ exists in this document.
141
121
  #
142
122
  # @return [Boolean]
143
123
  #
144
- # source://iniparse-1.5.0/lib/iniparse/document.rb:87
145
- def has_section?(key)
146
- ;
147
- end
124
+ # source://iniparse//lib/iniparse/document.rb#87
125
+ def has_section?(key); end
148
126
 
149
127
  # A human-readable version of the document, for debugging.
150
128
  #
151
- # source://iniparse-1.5.0/lib/iniparse/document.rb:81
129
+ # source://iniparse//lib/iniparse/document.rb#81
152
130
  def inspect; end
153
131
 
154
132
  # Returns the value of attribute lines.
155
133
  #
156
- # source://iniparse-1.5.0/lib/iniparse/document.rb:6
134
+ # source://iniparse//lib/iniparse/document.rb#6
157
135
  def lines; end
158
136
 
159
137
  # Returns the value of attribute path.
160
138
  #
161
- # source://iniparse-1.5.0/lib/iniparse/document.rb:7
139
+ # source://iniparse//lib/iniparse/document.rb#7
162
140
  def path; end
163
141
 
164
142
  # Sets the attribute path
165
143
  #
166
144
  # @param value the value to set the attribute path to.
167
145
  #
168
- # source://iniparse-1.5.0/lib/iniparse/document.rb:7
169
- def path=(_arg0)
170
- ;
171
- end
146
+ # source://iniparse//lib/iniparse/document.rb#7
147
+ def path=(_arg0); end
172
148
 
173
149
  # Saves a copy of this Document to disk.
174
150
  #
@@ -185,40 +161,36 @@ class IniParse::Document
185
161
  #
186
162
  # @raise [IniParseError]
187
163
  #
188
- # source://iniparse-1.5.0/lib/iniparse/document.rb:104
189
- def save(path = T.unsafe(nil))
190
- ;
191
- end
164
+ # source://iniparse//lib/iniparse/document.rb#104
165
+ def save(path = T.unsafe(nil)); end
192
166
 
193
167
  # Returns the section identified by +key+.
194
168
  #
195
169
  # If there is no Section with the given key it will be created.
196
170
  #
197
- # source://iniparse-1.5.0/lib/iniparse/document.rb:39
198
- def section(key)
199
- ;
200
- end
171
+ # source://iniparse//lib/iniparse/document.rb#39
172
+ def section(key); end
201
173
 
202
174
  # Returns a has representation of the INI with multi-line options
203
175
  # as an array
204
176
  #
205
- # source://iniparse-1.5.0/lib/iniparse/document.rb:64
177
+ # source://iniparse//lib/iniparse/document.rb#64
206
178
  def to_h; end
207
179
 
208
180
  # Returns a has representation of the INI with multi-line options
209
181
  # as an array
210
182
  #
211
- # source://iniparse-1.5.0/lib/iniparse/document.rb:64
183
+ # source://iniparse//lib/iniparse/document.rb#64
212
184
  def to_hash; end
213
185
 
214
186
  # Returns this document as a string suitable for saving to a file.
215
187
  #
216
- # source://iniparse-1.5.0/lib/iniparse/document.rb:53
188
+ # source://iniparse//lib/iniparse/document.rb#53
217
189
  def to_ini; end
218
190
 
219
191
  # Returns this document as a string suitable for saving to a file.
220
192
  #
221
- # source://iniparse-1.5.0/lib/iniparse/document.rb:53
193
+ # source://iniparse//lib/iniparse/document.rb#53
222
194
  def to_s; end
223
195
  end
224
196
 
@@ -293,18 +265,16 @@ end
293
265
  # realistic_acceleration = true
294
266
  # max_trains = 500 ; More = slower
295
267
  #
296
- # source://iniparse-1.5.0/lib/iniparse/generator.rb:73
268
+ # source://iniparse//lib/iniparse/generator.rb#73
297
269
  class IniParse::Generator
298
270
  # @return [Generator] a new instance of Generator
299
271
  #
300
- # source://iniparse-1.5.0/lib/iniparse/generator.rb:77
301
- def initialize(opts = T.unsafe(nil))
302
- ;
303
- end
272
+ # source://iniparse//lib/iniparse/generator.rb#77
273
+ def initialize(opts = T.unsafe(nil)); end
304
274
 
305
275
  # Adds a new blank line to the document.
306
276
  #
307
- # source://iniparse-1.5.0/lib/iniparse/generator.rb:170
277
+ # source://iniparse//lib/iniparse/generator.rb#170
308
278
  def blank; end
309
279
 
310
280
  # Adds a new comment line to the document.
@@ -312,31 +282,27 @@ class IniParse::Generator
312
282
  # ==== Parameters
313
283
  # comment<String>:: The text for the comment line.
314
284
  #
315
- # source://iniparse-1.5.0/lib/iniparse/generator.rb:163
316
- def comment(comment, opts = T.unsafe(nil))
317
- ;
318
- end
285
+ # source://iniparse//lib/iniparse/generator.rb#163
286
+ def comment(comment, opts = T.unsafe(nil)); end
319
287
 
320
288
  # Returns the value of attribute context.
321
289
  #
322
- # source://iniparse-1.5.0/lib/iniparse/generator.rb:74
290
+ # source://iniparse//lib/iniparse/generator.rb#74
323
291
  def context; end
324
292
 
325
293
  # Returns the value of attribute document.
326
294
  #
327
- # source://iniparse-1.5.0/lib/iniparse/generator.rb:75
295
+ # source://iniparse//lib/iniparse/generator.rb#75
328
296
  def document; end
329
297
 
330
298
  # @yield [_self]
331
299
  # @yieldparam _self [IniParse::Generator] the object that the method was called on
332
300
  #
333
- # source://iniparse-1.5.0/lib/iniparse/generator.rb:85
301
+ # source://iniparse//lib/iniparse/generator.rb#85
334
302
  def gen; end
335
303
 
336
- # source://iniparse-1.5.0/lib/iniparse/generator.rb:183
337
- def method_missing(name, *args, &blk)
338
- ;
339
- end
304
+ # source://iniparse//lib/iniparse/generator.rb#183
305
+ def method_missing(name, *args, &blk); end
340
306
 
341
307
  # Adds a new option to the current section.
342
308
  #
@@ -352,10 +318,8 @@ class IniParse::Generator
352
318
  # IniParse::NoSectionError::
353
319
  # If no section has been added to the document yet.
354
320
  #
355
- # source://iniparse-1.5.0/lib/iniparse/generator.rb:147
356
- def option(key, value, opts = T.unsafe(nil))
357
- ;
358
- end
321
+ # source://iniparse//lib/iniparse/generator.rb#147
322
+ def option(key, value, opts = T.unsafe(nil)); end
359
323
 
360
324
  # Creates a new section with the given name and adds it to the document.
361
325
  #
@@ -365,20 +329,16 @@ class IniParse::Generator
365
329
  # ==== Parameters
366
330
  # name<String>:: A name for the given section.
367
331
  #
368
- # source://iniparse-1.5.0/lib/iniparse/generator.rb:107
369
- def section(name, opts = T.unsafe(nil))
370
- ;
371
- end
332
+ # source://iniparse//lib/iniparse/generator.rb#107
333
+ def section(name, opts = T.unsafe(nil)); end
372
334
 
373
335
  # Wraps lines, setting default options for each.
374
336
  #
375
337
  # @yield [_self]
376
338
  # @yieldparam _self [IniParse::Generator] the object that the method was called on
377
339
  #
378
- # source://iniparse-1.5.0/lib/iniparse/generator.rb:175
379
- def with_options(opts = T.unsafe(nil))
380
- ;
381
- end
340
+ # source://iniparse//lib/iniparse/generator.rb#175
341
+ def with_options(opts = T.unsafe(nil)); end
382
342
 
383
343
  private
384
344
 
@@ -387,10 +347,8 @@ class IniParse::Generator
387
347
  # If the context is a section, we use the section options as a base,
388
348
  # rather than the global defaults.
389
349
  #
390
- # source://iniparse-1.5.0/lib/iniparse/generator.rb:200
391
- def line_options(given_opts)
392
- ;
393
- end
350
+ # source://iniparse//lib/iniparse/generator.rb#200
351
+ def line_options(given_opts); end
394
352
 
395
353
  class << self
396
354
  # Creates a new IniParse::Document with the given sections and options.
@@ -398,16 +356,14 @@ class IniParse::Generator
398
356
  # ==== Returns
399
357
  # IniParse::Document
400
358
  #
401
- # source://iniparse-1.5.0/lib/iniparse/generator.rb:95
402
- def gen(opts = T.unsafe(nil), &blk)
403
- ;
404
- end
359
+ # source://iniparse//lib/iniparse/generator.rb#95
360
+ def gen(opts = T.unsafe(nil), &blk); end
405
361
  end
406
362
  end
407
363
 
408
364
  # A base class for IniParse errors.
409
365
  #
410
- # source://iniparse-1.5.0/lib/iniparse.rb:13
366
+ # source://iniparse//lib/iniparse.rb#13
411
367
  class IniParse::IniParseError < ::StandardError; end
412
368
 
413
369
  # Represents a collection of lines in an INI document.
@@ -420,11 +376,11 @@ class IniParse::IniParseError < ::StandardError; end
420
376
  # each Section/Option is held in a Hash, +@indicies+, keyed with the
421
377
  # Section/Option#key value (see LineCollection#[]=).
422
378
  #
423
- # source://iniparse-1.5.0/lib/iniparse/line_collection.rb:12
379
+ # source://iniparse//lib/iniparse/line_collection.rb#12
424
380
  module IniParse::LineCollection
425
381
  include ::Enumerable
426
382
 
427
- # source://iniparse-1.5.0/lib/iniparse/line_collection.rb:15
383
+ # source://iniparse//lib/iniparse/line_collection.rb#15
428
384
  def initialize; end
429
385
 
430
386
  # Appends a line to the collection.
@@ -432,34 +388,26 @@ module IniParse::LineCollection
432
388
  # Note that if you pass a line with a key already represented in the
433
389
  # collection, the old item will be replaced.
434
390
  #
435
- # source://iniparse-1.5.0/lib/iniparse/line_collection.rb:46
436
- def <<(line)
437
- ;
438
- end
391
+ # source://iniparse//lib/iniparse/line_collection.rb#46
392
+ def <<(line); end
439
393
 
440
394
  # Retrive a value identified by +key+.
441
395
  #
442
- # source://iniparse-1.5.0/lib/iniparse/line_collection.rb:21
443
- def [](key)
444
- ;
445
- end
396
+ # source://iniparse//lib/iniparse/line_collection.rb#21
397
+ def [](key); end
446
398
 
447
399
  # Set a +value+ identified by +key+.
448
400
  #
449
401
  # If a value with the given key already exists, the value will be replaced
450
402
  # with the new one, with the new value taking the position of the old.
451
403
  #
452
- # source://iniparse-1.5.0/lib/iniparse/line_collection.rb:30
453
- def []=(key, value)
454
- ;
455
- end
404
+ # source://iniparse//lib/iniparse/line_collection.rb#30
405
+ def []=(key, value); end
456
406
 
457
407
  # Removes the value identified by +key+.
458
408
  #
459
- # source://iniparse-1.5.0/lib/iniparse/line_collection.rb:70
460
- def delete(key)
461
- ;
462
- end
409
+ # source://iniparse//lib/iniparse/line_collection.rb#70
410
+ def delete(key); end
463
411
 
464
412
  # Enumerates through the collection.
465
413
  #
@@ -468,24 +416,20 @@ module IniParse::LineCollection
468
416
  # ==== Parameters
469
417
  # include_blank<Boolean>:: Include blank/comment lines?
470
418
  #
471
- # source://iniparse-1.5.0/lib/iniparse/line_collection.rb:59
472
- def each(include_blank = T.unsafe(nil))
473
- ;
474
- end
419
+ # source://iniparse//lib/iniparse/line_collection.rb#59
420
+ def each(include_blank = T.unsafe(nil)); end
475
421
 
476
422
  # Returns whether +key+ is in the collection.
477
423
  #
478
424
  # @return [Boolean]
479
425
  #
480
- # source://iniparse-1.5.0/lib/iniparse/line_collection.rb:81
481
- def has_key?(*args)
482
- ;
483
- end
426
+ # source://iniparse//lib/iniparse/line_collection.rb#81
427
+ def has_key?(*args); end
484
428
 
485
429
  # Return an array containing the keys for the lines added to this
486
430
  # collection.
487
431
  #
488
- # source://iniparse-1.5.0/lib/iniparse/line_collection.rb:87
432
+ # source://iniparse//lib/iniparse/line_collection.rb#87
489
433
  def keys; end
490
434
 
491
435
  # Appends a line to the collection.
@@ -493,76 +437,70 @@ module IniParse::LineCollection
493
437
  # Note that if you pass a line with a key already represented in the
494
438
  # collection, the old item will be replaced.
495
439
  #
496
- # source://iniparse-1.5.0/lib/iniparse/line_collection.rb:46
497
- def push(line)
498
- ;
499
- end
440
+ # source://iniparse//lib/iniparse/line_collection.rb#46
441
+ def push(line); end
500
442
 
501
443
  # Returns this collection as an array. Includes blank and comment lines.
502
444
  #
503
- # source://iniparse-1.5.0/lib/iniparse/line_collection.rb:92
445
+ # source://iniparse//lib/iniparse/line_collection.rb#92
504
446
  def to_a; end
505
447
 
506
448
  # Returns this collection as a hash. Does not contain blank and comment
507
449
  # lines.
508
450
  #
509
- # source://iniparse-1.5.0/lib/iniparse/line_collection.rb:98
451
+ # source://iniparse//lib/iniparse/line_collection.rb#98
510
452
  def to_h; end
511
453
 
512
454
  # Returns this collection as a hash. Does not contain blank and comment
513
455
  # lines.
514
456
  #
515
- # source://iniparse-1.5.0/lib/iniparse/line_collection.rb:98
457
+ # source://iniparse//lib/iniparse/line_collection.rb#98
516
458
  def to_hash; end
517
459
  end
518
460
 
519
461
  # Raised when a line is added to a collection which isn't allowed (e.g.
520
462
  # adding a Section line into an OptionCollection).
521
463
  #
522
- # source://iniparse-1.5.0/lib/iniparse.rb:24
464
+ # source://iniparse//lib/iniparse.rb#24
523
465
  class IniParse::LineNotAllowed < ::IniParse::IniParseError; end
524
466
 
525
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:2
526
- module IniParse::Lines
527
- ;
528
- end
467
+ # source://iniparse//lib/iniparse/lines.rb#2
468
+ module IniParse::Lines; end
529
469
 
530
470
  # Stores options which appear at the beginning of a file, without a
531
471
  # preceding section.
532
472
  #
533
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:225
473
+ # source://iniparse//lib/iniparse/lines.rb#225
534
474
  class IniParse::Lines::AnonymousSection < ::IniParse::Lines::Section
535
475
  # @return [AnonymousSection] a new instance of AnonymousSection
536
476
  #
537
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:226
477
+ # source://iniparse//lib/iniparse/lines.rb#226
538
478
  def initialize; end
539
479
 
540
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:230
480
+ # source://iniparse//lib/iniparse/lines.rb#230
541
481
  def to_ini; end
542
482
 
543
483
  private
544
484
 
545
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:240
485
+ # source://iniparse//lib/iniparse/lines.rb#240
546
486
  def line_contents; end
547
487
  end
548
488
 
549
489
  # Represents a blank line. Used so that we can preserve blank lines when
550
490
  # writing back to the file.
551
491
  #
552
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:307
492
+ # source://iniparse//lib/iniparse/lines.rb#307
553
493
  class IniParse::Lines::Blank
554
494
  include ::IniParse::Lines::Line
555
495
 
556
496
  # @return [Boolean]
557
497
  #
558
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:310
498
+ # source://iniparse//lib/iniparse/lines.rb#310
559
499
  def blank?; end
560
500
 
561
501
  class << self
562
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:314
563
- def parse(line, opts)
564
- ;
565
- end
502
+ # source://iniparse//lib/iniparse/lines.rb#314
503
+ def parse(line, opts); end
566
504
  end
567
505
  end
568
506
 
@@ -571,7 +509,7 @@ end
571
509
  # ; this is a comment
572
510
  # # also a comment
573
511
  #
574
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:337
512
+ # source://iniparse//lib/iniparse/lines.rb#337
575
513
  class IniParse::Lines::Comment < ::IniParse::Lines::Blank
576
514
  # Returns the inline comment for this line. Includes the comment
577
515
  # separator at the beginning of the string.
@@ -579,7 +517,7 @@ class IniParse::Lines::Comment < ::IniParse::Lines::Blank
579
517
  # In rare cases where a comment seperator appeared in the original file,
580
518
  # but without a comment, just the seperator will be returned.
581
519
  #
582
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:348
520
+ # source://iniparse//lib/iniparse/lines.rb#348
583
521
  def comment; end
584
522
 
585
523
  # Returns if this line has an inline comment.
@@ -591,56 +529,54 @@ class IniParse::Lines::Comment < ::IniParse::Lines::Blank
591
529
  #
592
530
  # @return [Boolean]
593
531
  #
594
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:338
532
+ # source://iniparse//lib/iniparse/lines.rb#338
595
533
  def has_comment?; end
596
534
  end
597
535
 
598
536
  # A base class from which other line types should inherit.
599
537
  #
600
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:4
538
+ # source://iniparse//lib/iniparse/lines.rb#4
601
539
  module IniParse::Lines::Line
602
540
  # ==== Parameters
603
541
  # opts<Hash>:: Extra options for the line.
604
542
  #
605
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:8
606
- def initialize(opts = T.unsafe(nil))
607
- ;
608
- end
543
+ # source://iniparse//lib/iniparse/lines.rb#8
544
+ def initialize(opts = T.unsafe(nil)); end
609
545
 
610
546
  # Returns whether this is a line which has no data.
611
547
  #
612
548
  # @return [Boolean]
613
549
  #
614
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:47
550
+ # source://iniparse//lib/iniparse/lines.rb#47
615
551
  def blank?; end
616
552
 
617
553
  # Returns the inline comment for this line. Includes the comment
618
554
  # separator at the beginning of the string.
619
555
  #
620
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:42
556
+ # source://iniparse//lib/iniparse/lines.rb#42
621
557
  def comment; end
622
558
 
623
559
  # Returns if this line has an inline comment.
624
560
  #
625
561
  # @return [Boolean]
626
562
  #
627
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:18
563
+ # source://iniparse//lib/iniparse/lines.rb#18
628
564
  def has_comment?; end
629
565
 
630
566
  # Returns the contents for this line.
631
567
  #
632
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:36
568
+ # source://iniparse//lib/iniparse/lines.rb#36
633
569
  def line_contents; end
634
570
 
635
571
  # Returns the options used to create the line
636
572
  #
637
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:52
573
+ # source://iniparse//lib/iniparse/lines.rb#52
638
574
  def options; end
639
575
 
640
576
  # Returns this line as a string as it would be represented in an INI
641
577
  # document.
642
578
  #
643
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:24
579
+ # source://iniparse//lib/iniparse/lines.rb#24
644
580
  def to_ini; end
645
581
  end
646
582
 
@@ -649,7 +585,7 @@ end
649
585
  #
650
586
  # key = value
651
587
  #
652
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:250
588
+ # source://iniparse//lib/iniparse/lines.rb#250
653
589
  class IniParse::Lines::Option
654
590
  include ::IniParse::Lines::Line
655
591
 
@@ -660,59 +596,49 @@ class IniParse::Lines::Option
660
596
  #
661
597
  # @return [Option] a new instance of Option
662
598
  #
663
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:265
664
- def initialize(key, value, opts = T.unsafe(nil))
665
- ;
666
- end
599
+ # source://iniparse//lib/iniparse/lines.rb#265
600
+ def initialize(key, value, opts = T.unsafe(nil)); end
667
601
 
668
602
  # Returns the value of attribute key.
669
603
  #
670
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:258
604
+ # source://iniparse//lib/iniparse/lines.rb#258
671
605
  def key; end
672
606
 
673
607
  # Sets the attribute key
674
608
  #
675
609
  # @param value the value to set the attribute key to.
676
610
  #
677
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:258
678
- def key=(_arg0)
679
- ;
680
- end
611
+ # source://iniparse//lib/iniparse/lines.rb#258
612
+ def key=(_arg0); end
681
613
 
682
614
  # Returns the value of attribute value.
683
615
  #
684
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:258
616
+ # source://iniparse//lib/iniparse/lines.rb#258
685
617
  def value; end
686
618
 
687
619
  # Sets the attribute value
688
620
  #
689
621
  # @param value the value to set the attribute value to.
690
622
  #
691
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:258
692
- def value=(_arg0)
693
- ;
694
- end
623
+ # source://iniparse//lib/iniparse/lines.rb#258
624
+ def value=(_arg0); end
695
625
 
696
626
  private
697
627
 
698
628
  # returns an array to support multiple lines or a single one at once
699
629
  # because of options key duplication
700
630
  #
701
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:296
631
+ # source://iniparse//lib/iniparse/lines.rb#296
702
632
  def line_contents; end
703
633
 
704
634
  class << self
705
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:271
706
- def parse(line, opts)
707
- ;
708
- end
635
+ # source://iniparse//lib/iniparse/lines.rb#271
636
+ def parse(line, opts); end
709
637
 
710
638
  # Attempts to typecast values.
711
639
  #
712
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:279
713
- def typecast(value)
714
- ;
715
- end
640
+ # source://iniparse//lib/iniparse/lines.rb#279
641
+ def typecast(value); end
716
642
  end
717
643
  end
718
644
 
@@ -724,7 +650,7 @@ end
724
650
  # etc
725
651
  # ...
726
652
  #
727
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:72
653
+ # source://iniparse//lib/iniparse/lines.rb#72
728
654
  class IniParse::Lines::Section
729
655
  include ::IniParse::Lines::Line
730
656
  include ::Enumerable
@@ -735,10 +661,8 @@ class IniParse::Lines::Section
735
661
  #
736
662
  # @return [Section] a new instance of Section
737
663
  #
738
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:89
739
- def initialize(key, opts = T.unsafe(nil))
740
- ;
741
- end
664
+ # source://iniparse//lib/iniparse/lines.rb#89
665
+ def initialize(key, opts = T.unsafe(nil)); end
742
666
 
743
667
  # Returns the value of an option identified by +key+.
744
668
  #
@@ -746,10 +670,8 @@ class IniParse::Lines::Section
746
670
  # matches a set of duplicate options, an array will be returned containing
747
671
  # the value of each option.
748
672
  #
749
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:162
750
- def [](key)
751
- ;
752
- end
673
+ # source://iniparse//lib/iniparse/lines.rb#162
674
+ def [](key); end
753
675
 
754
676
  # Adds a new option to this section, or updates an existing one.
755
677
  #
@@ -765,19 +687,15 @@ class IniParse::Lines::Section
765
687
  # If you do not wish to overwrite duplicates, but wish instead for your
766
688
  # new option to be considered a duplicate, use +add_option+ instead.
767
689
  #
768
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:145
769
- def []=(key, value)
770
- ;
771
- end
690
+ # source://iniparse//lib/iniparse/lines.rb#145
691
+ def []=(key, value); end
772
692
 
773
693
  # Deletes the option identified by +key+.
774
694
  #
775
695
  # Returns the section.
776
696
  #
777
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:178
778
- def delete(*args)
779
- ;
780
- end
697
+ # source://iniparse//lib/iniparse/lines.rb#178
698
+ def delete(*args); end
781
699
 
782
700
  # Enumerates through each Option in this section.
783
701
  #
@@ -787,37 +705,31 @@ class IniParse::Lines::Section
787
705
  # ==== Parameters
788
706
  # include_blank<Boolean>:: Include blank/comment lines?
789
707
  #
790
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:127
791
- def each(*args, &blk)
792
- ;
793
- end
708
+ # source://iniparse//lib/iniparse/lines.rb#127
709
+ def each(*args, &blk); end
794
710
 
795
711
  # Returns true if an option with the given +key+ exists in this section.
796
712
  #
797
713
  # @return [Boolean]
798
714
  #
799
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:193
800
- def has_option?(key)
801
- ;
802
- end
715
+ # source://iniparse//lib/iniparse/lines.rb#193
716
+ def has_option?(key); end
803
717
 
804
718
  # Returns the value of attribute key.
805
719
  #
806
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:80
720
+ # source://iniparse//lib/iniparse/lines.rb#80
807
721
  def key; end
808
722
 
809
723
  # Sets the attribute key
810
724
  #
811
725
  # @param value the value to set the attribute key to.
812
726
  #
813
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:80
814
- def key=(_arg0)
815
- ;
816
- end
727
+ # source://iniparse//lib/iniparse/lines.rb#80
728
+ def key=(_arg0); end
817
729
 
818
730
  # Returns the value of attribute lines.
819
731
  #
820
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:81
732
+ # source://iniparse//lib/iniparse/lines.rb#81
821
733
  def lines; end
822
734
 
823
735
  # Merges section +other+ into this one. If the section being merged into
@@ -827,44 +739,38 @@ class IniParse::Lines::Section
827
739
  # ==== Parameters
828
740
  # other<IniParse::Section>:: The section to merge into this one.
829
741
  #
830
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:204
831
- def merge!(other)
832
- ;
833
- end
742
+ # source://iniparse//lib/iniparse/lines.rb#204
743
+ def merge!(other); end
834
744
 
835
745
  # Like [], except instead of returning just the option value, it returns
836
746
  # the matching line instance.
837
747
  #
838
748
  # Will return an array of lines if the key matches a set of duplicates.
839
749
  #
840
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:188
841
- def option(key)
842
- ;
843
- end
750
+ # source://iniparse//lib/iniparse/lines.rb#188
751
+ def option(key); end
844
752
 
845
753
  # Returns this line as a string as it would be represented in an INI
846
754
  # document. Includes options, comments and blanks.
847
755
  #
848
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:103
756
+ # source://iniparse//lib/iniparse/lines.rb#103
849
757
  def to_ini; end
850
758
 
851
759
  private
852
760
 
853
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:218
761
+ # source://iniparse//lib/iniparse/lines.rb#218
854
762
  def line_contents; end
855
763
 
856
764
  class << self
857
- # source://iniparse-1.5.0/lib/iniparse/lines.rb:95
858
- def parse(line, opts)
859
- ;
860
- end
765
+ # source://iniparse//lib/iniparse/lines.rb#95
766
+ def parse(line, opts); end
861
767
  end
862
768
  end
863
769
 
864
770
  # Raised when an option line is found during parsing before the first
865
771
  # section.
866
772
  #
867
- # source://iniparse-1.5.0/lib/iniparse.rb:20
773
+ # source://iniparse//lib/iniparse.rb#20
868
774
  class IniParse::NoSectionError < ::IniParse::ParseError; end
869
775
 
870
776
  # A implementation of LineCollection used for storing (mostly) Option
@@ -875,7 +781,7 @@ class IniParse::NoSectionError < ::IniParse::ParseError; end
875
781
  # overwriting the existing value, the value is changed to an array
876
782
  # containing the previous _and_ the new Option instances.
877
783
  #
878
- # source://iniparse-1.5.0/lib/iniparse/line_collection.rb:140
784
+ # source://iniparse//lib/iniparse/line_collection.rb#140
879
785
  class IniParse::OptionCollection
880
786
  include ::Enumerable
881
787
  include ::IniParse::LineCollection
@@ -888,29 +794,25 @@ class IniParse::OptionCollection
888
794
  # ==== Parameters
889
795
  # line<IniParse::LineType::Line>:: The line to be added to this section.
890
796
  #
891
- # source://iniparse-1.5.0/lib/iniparse/line_collection.rb:151
892
- def <<(line)
893
- ;
894
- end
797
+ # source://iniparse//lib/iniparse/line_collection.rb#151
798
+ def <<(line); end
895
799
 
896
- # source://iniparse-1.5.0/lib/iniparse/line_collection.rb:166
897
- def each(*args)
898
- ;
899
- end
800
+ # source://iniparse//lib/iniparse/line_collection.rb#166
801
+ def each(*args); end
900
802
 
901
803
  # Return an array containing the keys for the lines added to this
902
804
  # collection.
903
805
  #
904
- # source://iniparse-1.5.0/lib/iniparse/line_collection.rb:180
806
+ # source://iniparse//lib/iniparse/line_collection.rb#180
905
807
  def keys; end
906
808
  end
907
809
 
908
810
  # Raised if an error occurs parsing an INI document.
909
811
  #
910
- # source://iniparse-1.5.0/lib/iniparse.rb:16
812
+ # source://iniparse//lib/iniparse.rb#16
911
813
  class IniParse::ParseError < ::IniParse::IniParseError; end
912
814
 
913
- # source://iniparse-1.5.0/lib/iniparse/parser.rb:2
815
+ # source://iniparse//lib/iniparse/parser.rb#2
914
816
  class IniParse::Parser
915
817
  # Creates a new Parser instance for parsing string +source+.
916
818
  #
@@ -919,17 +821,15 @@ class IniParse::Parser
919
821
  #
920
822
  # @return [Parser] a new instance of Parser
921
823
  #
922
- # source://iniparse-1.5.0/lib/iniparse/parser.rb:31
923
- def initialize(source)
924
- ;
925
- end
824
+ # source://iniparse//lib/iniparse/parser.rb#31
825
+ def initialize(source); end
926
826
 
927
827
  # Parses the source string and returns the resulting data structure.
928
828
  #
929
829
  # ==== Returns
930
830
  # IniParse::Document
931
831
  #
932
- # source://iniparse-1.5.0/lib/iniparse/parser.rb:40
832
+ # source://iniparse//lib/iniparse/parser.rb#40
933
833
  def parse; end
934
834
 
935
835
  class << self
@@ -940,17 +840,15 @@ class IniParse::Parser
940
840
  # ==== Raises
941
841
  # IniParse::ParseError: If the line could not be parsed.
942
842
  #
943
- # source://iniparse-1.5.0/lib/iniparse/parser.rb:56
944
- def parse_line(line)
945
- ;
946
- end
843
+ # source://iniparse//lib/iniparse/parser.rb#56
844
+ def parse_line(line); end
947
845
 
948
846
  # Returns the line types.
949
847
  #
950
848
  # ==== Returns
951
849
  # Array
952
850
  #
953
- # source://iniparse-1.5.0/lib/iniparse/parser.rb:9
851
+ # source://iniparse//lib/iniparse/parser.rb#9
954
852
  def parse_types; end
955
853
 
956
854
  # Sets the line types. Handy if you want to add your own custom Line
@@ -959,28 +857,22 @@ class IniParse::Parser
959
857
  # ==== Parameters
960
858
  # types<Array[IniParse::Lines::Line]>:: An array containing Line classes.
961
859
  #
962
- # source://iniparse-1.5.0/lib/iniparse/parser.rb:19
963
- def parse_types=(types)
964
- ;
965
- end
860
+ # source://iniparse//lib/iniparse/parser.rb#19
861
+ def parse_types=(types); end
966
862
 
967
863
  private
968
864
 
969
865
  # Strips in inline comment from a line (or value), removes trailing
970
866
  # whitespace and sets the comment options as applicable.
971
867
  #
972
- # source://iniparse-1.5.0/lib/iniparse/parser.rb:79
973
- def strip_comment(line, opts)
974
- ;
975
- end
868
+ # source://iniparse//lib/iniparse/parser.rb#79
869
+ def strip_comment(line, opts); end
976
870
 
977
871
  # Removes any leading whitespace from a line, and adds it to the options
978
872
  # hash.
979
873
  #
980
- # source://iniparse-1.5.0/lib/iniparse/parser.rb:100
981
- def strip_indent(line, opts)
982
- ;
983
- end
874
+ # source://iniparse//lib/iniparse/parser.rb#100
875
+ def strip_indent(line, opts); end
984
876
  end
985
877
  end
986
878
 
@@ -992,16 +884,14 @@ end
992
884
  # collection, the existing section is merged with the new one (see
993
885
  # IniParse::Lines::Section#merge!).
994
886
  #
995
- # source://iniparse-1.5.0/lib/iniparse/line_collection.rb:112
887
+ # source://iniparse//lib/iniparse/line_collection.rb#112
996
888
  class IniParse::SectionCollection
997
889
  include ::Enumerable
998
890
  include ::IniParse::LineCollection
999
891
 
1000
- # source://iniparse-1.5.0/lib/iniparse/line_collection.rb:115
1001
- def <<(line)
1002
- ;
1003
- end
892
+ # source://iniparse//lib/iniparse/line_collection.rb#115
893
+ def <<(line); end
1004
894
  end
1005
895
 
1006
- # source://iniparse-1.5.0/lib/iniparse.rb:10
896
+ # source://iniparse//lib/iniparse.rb#10
1007
897
  IniParse::VERSION = T.let(T.unsafe(nil), String)