ruby-lint 1.0.0.pre.preview1 → 1.0.0

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/.editorconfig +15 -0
  3. data/MANIFEST +93 -0
  4. data/checksum/ruby-lint-1.0.0.pre.preview1.gem.sha512 +1 -0
  5. data/doc/changelog.md +40 -0
  6. data/lib/ruby-lint.rb +1 -1
  7. data/lib/ruby-lint/definitions/core/abbrev.rb +18 -0
  8. data/lib/ruby-lint/definitions/core/base64.rb +37 -0
  9. data/lib/ruby-lint/definitions/core/basic_socket.rb +685 -0
  10. data/lib/ruby-lint/definitions/core/benchmark.rb +41 -0
  11. data/lib/ruby-lint/definitions/core/cgi.rb +93 -0
  12. data/lib/ruby-lint/definitions/core/common_headers.rb +555 -0
  13. data/lib/ruby-lint/definitions/core/common_libs.rb +428 -0
  14. data/lib/ruby-lint/definitions/core/config.rb +325 -0
  15. data/lib/ruby-lint/definitions/core/conftest_c.rb +555 -0
  16. data/lib/ruby-lint/definitions/core/coutflag.rb +555 -0
  17. data/lib/ruby-lint/definitions/core/csv.rb +488 -0
  18. data/lib/ruby-lint/definitions/core/delegator.rb +73 -0
  19. data/lib/ruby-lint/definitions/core/drb.rb +69 -0
  20. data/lib/ruby-lint/definitions/core/drb_id_conv.rb +27 -0
  21. data/lib/ruby-lint/definitions/core/drb_object.rb +81 -0
  22. data/lib/ruby-lint/definitions/core/drb_undumped.rb +17 -0
  23. data/lib/ruby-lint/definitions/core/exception_for_matrix.rb +57 -0
  24. data/lib/ruby-lint/definitions/core/export_prefix.rb +23 -0
  25. data/lib/ruby-lint/definitions/core/failed_message.rb +555 -0
  26. data/lib/ruby-lint/definitions/core/fcntl.rb +13 -0
  27. data/lib/ruby-lint/definitions/core/find.rb +19 -0
  28. data/lib/ruby-lint/definitions/core/forwardable.rb +47 -0
  29. data/lib/ruby-lint/definitions/core/getopt_long.rb +60 -0
  30. data/lib/ruby-lint/definitions/core/gserver.rb +92 -0
  31. data/lib/ruby-lint/definitions/core/hdr_ext.rb +428 -0
  32. data/lib/ruby-lint/definitions/core/install_dirs.rb +428 -0
  33. data/lib/ruby-lint/definitions/core/ipaddr.rb +140 -0
  34. data/lib/ruby-lint/definitions/core/ipsocket.rb +696 -0
  35. data/lib/ruby-lint/definitions/core/irb.rb +64 -0
  36. data/lib/ruby-lint/definitions/core/json.rb +128 -0
  37. data/lib/ruby-lint/definitions/core/kconv.rb +67 -0
  38. data/lib/ruby-lint/definitions/core/libarg.rb +555 -0
  39. data/lib/ruby-lint/definitions/core/libpathflag.rb +555 -0
  40. data/lib/ruby-lint/definitions/core/link_so.rb +555 -0
  41. data/lib/ruby-lint/definitions/core/logger.rb +105 -0
  42. data/lib/ruby-lint/definitions/core/logging.rb +33 -0
  43. data/lib/ruby-lint/definitions/core/make_makefile.rb +495 -0
  44. data/lib/ruby-lint/definitions/core/matrix.rb +455 -0
  45. data/lib/ruby-lint/definitions/core/md5.rb +80 -0
  46. data/lib/ruby-lint/definitions/core/mutex_m.rb +43 -0
  47. data/lib/ruby-lint/definitions/core/nkf.rb +17 -0
  48. data/lib/ruby-lint/definitions/core/observable.rb +36 -0
  49. data/lib/ruby-lint/definitions/core/open3.rb +67 -0
  50. data/lib/ruby-lint/definitions/core/open_ssl.rb +25 -0
  51. data/lib/ruby-lint/definitions/core/open_uri.rb +43 -0
  52. data/lib/ruby-lint/definitions/core/orig_libpath.rb +39 -0
  53. data/lib/ruby-lint/definitions/core/outflag.rb +555 -0
  54. data/lib/ruby-lint/definitions/core/pathname.rb +287 -0
  55. data/lib/ruby-lint/definitions/core/pp.rb +154 -0
  56. data/lib/ruby-lint/definitions/core/pretty_print.rb +87 -0
  57. data/lib/ruby-lint/definitions/core/prime.rb +369 -0
  58. data/lib/ruby-lint/definitions/core/profiler__.rb +25 -0
  59. data/lib/ruby-lint/definitions/core/pstore.rb +61 -0
  60. data/lib/ruby-lint/definitions/core/psych.rb +139 -0
  61. data/lib/ruby-lint/definitions/core/rdoc.rb +15 -0
  62. data/lib/ruby-lint/definitions/core/readline.rb +79 -0
  63. data/lib/ruby-lint/definitions/core/resolv.rb +71 -0
  64. data/lib/ruby-lint/definitions/core/rexml.rb +13 -0
  65. data/lib/ruby-lint/definitions/core/rpathflag.rb +555 -0
  66. data/lib/ruby-lint/definitions/core/rss.rb +13 -0
  67. data/lib/ruby-lint/definitions/core/ruby_revision.rb +253 -0
  68. data/lib/ruby-lint/definitions/core/scanf.rb +13 -0
  69. data/lib/ruby-lint/definitions/core/secure_random.rb +38 -0
  70. data/lib/ruby-lint/definitions/core/set.rb +584 -0
  71. data/lib/ruby-lint/definitions/core/sha1.rb +80 -0
  72. data/lib/ruby-lint/definitions/core/simple_delegator.rb +37 -0
  73. data/lib/ruby-lint/definitions/core/single_forwardable.rb +43 -0
  74. data/lib/ruby-lint/definitions/core/socket.rb +777 -0
  75. data/lib/ruby-lint/definitions/core/socket_error.rb +61 -0
  76. data/lib/ruby-lint/definitions/core/sorted_set.rb +296 -0
  77. data/lib/ruby-lint/definitions/core/src_ext.rb +428 -0
  78. data/lib/ruby-lint/definitions/core/tcpserver.rb +707 -0
  79. data/lib/ruby-lint/definitions/core/tcpsocket.rb +707 -0
  80. data/lib/ruby-lint/definitions/core/tempfile.rb +860 -0
  81. data/lib/ruby-lint/definitions/core/th_wait.rb +89 -0
  82. data/lib/ruby-lint/definitions/core/threads_wait.rb +89 -0
  83. data/lib/ruby-lint/definitions/core/timeout.rb +25 -0
  84. data/lib/ruby-lint/definitions/core/timeout_error.rb +61 -0
  85. data/lib/ruby-lint/definitions/core/try_link.rb +555 -0
  86. data/lib/ruby-lint/definitions/core/tsort.rb +33 -0
  87. data/lib/ruby-lint/definitions/core/udpsocket.rb +712 -0
  88. data/lib/ruby-lint/definitions/core/universal_ints.rb +428 -0
  89. data/lib/ruby-lint/definitions/core/unixserver.rb +710 -0
  90. data/lib/ruby-lint/definitions/core/unixsocket.rb +702 -0
  91. data/lib/ruby-lint/definitions/core/uri.rb +71 -0
  92. data/lib/ruby-lint/definitions/core/vector.rb +323 -0
  93. data/lib/ruby-lint/definitions/core/webrick.rb +13 -0
  94. data/lib/ruby-lint/definitions/core/xmlrpc.rb +13 -0
  95. data/lib/ruby-lint/version.rb +1 -1
  96. data/misc/stdlib.rb +66 -0
  97. data/ruby-lint.gemspec +1 -1
  98. data/spec/fixtures/deeply/nested/file.rb +1 -0
  99. data/spec/ruby-lint/virtual_machine/assignments/range_spec.rb +28 -0
  100. data/task/build.rake +1 -1
  101. data/task/tag.rake +1 -1
  102. metadata +101 -8
@@ -0,0 +1,369 @@
1
+ # This file was automatically generated, any manual changes will be lost the
2
+ # next time this file is generated.
3
+ #
4
+ # Created: 2013-11-11 21:14:28 +0100
5
+ # Platform: rbx 2.1.1
6
+
7
+ RubyLint::GlobalScope.definitions.define_constant('Prime') do |klass|
8
+ klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
9
+
10
+ klass.define_method('all?')
11
+
12
+ klass.define_method('any?')
13
+
14
+ klass.define_method('chunk') do |method|
15
+ method.define_optional_argument('initial_state')
16
+ end
17
+
18
+ klass.define_method('collect')
19
+
20
+ klass.define_method('collect_concat')
21
+
22
+ klass.define_method('count') do |method|
23
+ method.define_optional_argument('item')
24
+ end
25
+
26
+ klass.define_method('cycle') do |method|
27
+ method.define_optional_argument('many')
28
+ end
29
+
30
+ klass.define_method('detect') do |method|
31
+ method.define_optional_argument('ifnone')
32
+ end
33
+
34
+ klass.define_method('drop') do |method|
35
+ method.define_argument('n')
36
+ end
37
+
38
+ klass.define_method('drop_while')
39
+
40
+ klass.define_method('each') do |method|
41
+ method.define_rest_argument('args')
42
+ method.define_block_argument('block')
43
+ end
44
+
45
+ klass.define_method('each_cons') do |method|
46
+ method.define_argument('num')
47
+ end
48
+
49
+ klass.define_method('each_entry') do |method|
50
+ method.define_rest_argument('pass')
51
+ end
52
+
53
+ klass.define_method('each_slice') do |method|
54
+ method.define_argument('slice_size')
55
+ end
56
+
57
+ klass.define_method('each_with_index') do |method|
58
+ method.define_rest_argument('args')
59
+ end
60
+
61
+ klass.define_method('each_with_object') do |method|
62
+ method.define_argument('memo')
63
+ end
64
+
65
+ klass.define_method('entries') do |method|
66
+ method.define_rest_argument('arg')
67
+ end
68
+
69
+ klass.define_method('find') do |method|
70
+ method.define_optional_argument('ifnone')
71
+ end
72
+
73
+ klass.define_method('find_all')
74
+
75
+ klass.define_method('find_index') do |method|
76
+ method.define_optional_argument('value')
77
+ end
78
+
79
+ klass.define_method('first') do |method|
80
+ method.define_optional_argument('n')
81
+ end
82
+
83
+ klass.define_method('flat_map')
84
+
85
+ klass.define_method('grep') do |method|
86
+ method.define_argument('pattern')
87
+ end
88
+
89
+ klass.define_method('group_by')
90
+
91
+ klass.define_method('initialize') do |method|
92
+ method.define_optional_argument('sclass')
93
+ method.define_optional_argument('name')
94
+ method.define_optional_argument('under')
95
+ end
96
+
97
+ klass.define_method('inject') do |method|
98
+ method.define_optional_argument('initial')
99
+ method.define_optional_argument('sym')
100
+ end
101
+
102
+ klass.define_method('instance')
103
+
104
+ klass.define_method('int_from_prime_division') do |method|
105
+ method.define_rest_argument('args')
106
+ method.define_block_argument('block')
107
+ end
108
+
109
+ klass.define_method('lazy')
110
+
111
+ klass.define_method('map')
112
+
113
+ klass.define_method('max')
114
+
115
+ klass.define_method('max_by')
116
+
117
+ klass.define_method('member?') do |method|
118
+ method.define_argument('obj')
119
+ end
120
+
121
+ klass.define_method('method_added') do |method|
122
+ method.define_argument('method')
123
+ end
124
+
125
+ klass.define_method('min')
126
+
127
+ klass.define_method('min_by')
128
+
129
+ klass.define_method('minmax')
130
+
131
+ klass.define_method('minmax_by')
132
+
133
+ klass.define_method('none?')
134
+
135
+ klass.define_method('one?')
136
+
137
+ klass.define_method('partition')
138
+
139
+ klass.define_method('prime?') do |method|
140
+ method.define_rest_argument('args')
141
+ method.define_block_argument('block')
142
+ end
143
+
144
+ klass.define_method('prime_division') do |method|
145
+ method.define_rest_argument('args')
146
+ method.define_block_argument('block')
147
+ end
148
+
149
+ klass.define_method('reduce') do |method|
150
+ method.define_optional_argument('initial')
151
+ method.define_optional_argument('sym')
152
+ end
153
+
154
+ klass.define_method('reject')
155
+
156
+ klass.define_method('reverse_each')
157
+
158
+ klass.define_method('select')
159
+
160
+ klass.define_method('slice_before') do |method|
161
+ method.define_optional_argument('arg')
162
+ end
163
+
164
+ klass.define_method('sort')
165
+
166
+ klass.define_method('sort_by')
167
+
168
+ klass.define_method('take') do |method|
169
+ method.define_argument('n')
170
+ end
171
+
172
+ klass.define_method('take_while')
173
+
174
+ klass.define_method('to_a') do |method|
175
+ method.define_rest_argument('arg')
176
+ end
177
+
178
+ klass.define_method('to_set') do |method|
179
+ method.define_optional_argument('klass')
180
+ method.define_rest_argument('args')
181
+ method.define_block_argument('block')
182
+ end
183
+
184
+ klass.define_method('with_object') do |method|
185
+ method.define_argument('memo')
186
+ end
187
+
188
+ klass.define_method('zip') do |method|
189
+ method.define_rest_argument('args')
190
+ end
191
+
192
+ klass.define_instance_method('all?')
193
+
194
+ klass.define_instance_method('any?')
195
+
196
+ klass.define_instance_method('chunk') do |method|
197
+ method.define_optional_argument('initial_state')
198
+ end
199
+
200
+ klass.define_instance_method('collect')
201
+
202
+ klass.define_instance_method('collect_concat')
203
+
204
+ klass.define_instance_method('count') do |method|
205
+ method.define_optional_argument('item')
206
+ end
207
+
208
+ klass.define_instance_method('cycle') do |method|
209
+ method.define_optional_argument('many')
210
+ end
211
+
212
+ klass.define_instance_method('detect') do |method|
213
+ method.define_optional_argument('ifnone')
214
+ end
215
+
216
+ klass.define_instance_method('drop') do |method|
217
+ method.define_argument('n')
218
+ end
219
+
220
+ klass.define_instance_method('drop_while')
221
+
222
+ klass.define_instance_method('each') do |method|
223
+ method.define_optional_argument('ubound')
224
+ method.define_optional_argument('generator')
225
+ method.define_block_argument('block')
226
+ end
227
+
228
+ klass.define_instance_method('each_cons') do |method|
229
+ method.define_argument('num')
230
+ end
231
+
232
+ klass.define_instance_method('each_entry') do |method|
233
+ method.define_rest_argument('pass')
234
+ end
235
+
236
+ klass.define_instance_method('each_slice') do |method|
237
+ method.define_argument('slice_size')
238
+ end
239
+
240
+ klass.define_instance_method('each_with_index') do |method|
241
+ method.define_rest_argument('args')
242
+ end
243
+
244
+ klass.define_instance_method('each_with_object') do |method|
245
+ method.define_argument('memo')
246
+ end
247
+
248
+ klass.define_instance_method('entries') do |method|
249
+ method.define_rest_argument('arg')
250
+ end
251
+
252
+ klass.define_instance_method('find') do |method|
253
+ method.define_optional_argument('ifnone')
254
+ end
255
+
256
+ klass.define_instance_method('find_all')
257
+
258
+ klass.define_instance_method('find_index') do |method|
259
+ method.define_optional_argument('value')
260
+ end
261
+
262
+ klass.define_instance_method('first') do |method|
263
+ method.define_optional_argument('n')
264
+ end
265
+
266
+ klass.define_instance_method('flat_map')
267
+
268
+ klass.define_instance_method('grep') do |method|
269
+ method.define_argument('pattern')
270
+ end
271
+
272
+ klass.define_instance_method('group_by')
273
+
274
+ klass.define_instance_method('include?') do |method|
275
+ method.define_argument('obj')
276
+ end
277
+
278
+ klass.define_instance_method('initialize')
279
+
280
+ klass.define_instance_method('inject') do |method|
281
+ method.define_optional_argument('initial')
282
+ method.define_optional_argument('sym')
283
+ end
284
+
285
+ klass.define_instance_method('int_from_prime_division') do |method|
286
+ method.define_argument('pd')
287
+ end
288
+
289
+ klass.define_instance_method('lazy')
290
+
291
+ klass.define_instance_method('map')
292
+
293
+ klass.define_instance_method('max')
294
+
295
+ klass.define_instance_method('max_by')
296
+
297
+ klass.define_instance_method('member?') do |method|
298
+ method.define_argument('obj')
299
+ end
300
+
301
+ klass.define_instance_method('min')
302
+
303
+ klass.define_instance_method('min_by')
304
+
305
+ klass.define_instance_method('minmax')
306
+
307
+ klass.define_instance_method('minmax_by')
308
+
309
+ klass.define_instance_method('none?')
310
+
311
+ klass.define_instance_method('one?')
312
+
313
+ klass.define_instance_method('partition')
314
+
315
+ klass.define_instance_method('prime?') do |method|
316
+ method.define_argument('value')
317
+ method.define_optional_argument('generator')
318
+ end
319
+
320
+ klass.define_instance_method('prime_division') do |method|
321
+ method.define_argument('value')
322
+ method.define_optional_argument('generator')
323
+ end
324
+
325
+ klass.define_instance_method('reduce') do |method|
326
+ method.define_optional_argument('initial')
327
+ method.define_optional_argument('sym')
328
+ end
329
+
330
+ klass.define_instance_method('reject')
331
+
332
+ klass.define_instance_method('reverse_each')
333
+
334
+ klass.define_instance_method('select')
335
+
336
+ klass.define_instance_method('slice_before') do |method|
337
+ method.define_optional_argument('arg')
338
+ end
339
+
340
+ klass.define_instance_method('sort')
341
+
342
+ klass.define_instance_method('sort_by')
343
+
344
+ klass.define_instance_method('take') do |method|
345
+ method.define_argument('n')
346
+ end
347
+
348
+ klass.define_instance_method('take_while')
349
+
350
+ klass.define_instance_method('to_a') do |method|
351
+ method.define_rest_argument('arg')
352
+ end
353
+
354
+ klass.define_instance_method('to_set') do |method|
355
+ method.define_optional_argument('klass')
356
+ method.define_rest_argument('args')
357
+ method.define_block_argument('block')
358
+ end
359
+
360
+ klass.define_instance_method('with_object') do |method|
361
+ method.define_argument('memo')
362
+ end
363
+
364
+ klass.define_instance_method('zip') do |method|
365
+ method.define_rest_argument('args')
366
+ end
367
+ end
368
+
369
+ RubyLint::GlobalScope.definitions.lookup(:const, 'Prime').deep_freeze
@@ -0,0 +1,25 @@
1
+ # This file was automatically generated, any manual changes will be lost the
2
+ # next time this file is generated.
3
+ #
4
+ # Created: 2013-11-11 20:49:50 +0100
5
+ # Platform: rbx 2.1.1
6
+
7
+ RubyLint::GlobalScope.definitions.define_constant('Profiler__') do |klass|
8
+ klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
9
+
10
+ klass.define_method('initialize')
11
+
12
+ klass.define_method('options') do |method|
13
+ method.define_argument('opts')
14
+ end
15
+
16
+ klass.define_method('print_profile') do |method|
17
+ method.define_argument('f')
18
+ end
19
+
20
+ klass.define_method('start_profile')
21
+
22
+ klass.define_method('stop_profile')
23
+ end
24
+
25
+ RubyLint::GlobalScope.definitions.lookup(:const, 'Profiler__').deep_freeze
@@ -0,0 +1,61 @@
1
+ # This file was automatically generated, any manual changes will be lost the
2
+ # next time this file is generated.
3
+ #
4
+ # Created: 2013-11-11 21:14:28 +0100
5
+ # Platform: rbx 2.1.1
6
+
7
+ RubyLint::GlobalScope.definitions.define_constant('PStore') do |klass|
8
+ klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
9
+
10
+ klass.define_method('initialize') do |method|
11
+ method.define_optional_argument('sclass')
12
+ method.define_optional_argument('name')
13
+ method.define_optional_argument('under')
14
+ end
15
+
16
+ klass.define_instance_method('[]') do |method|
17
+ method.define_argument('name')
18
+ end
19
+
20
+ klass.define_instance_method('[]=') do |method|
21
+ method.define_argument('name')
22
+ method.define_argument('value')
23
+ end
24
+
25
+ klass.define_instance_method('abort')
26
+
27
+ klass.define_instance_method('commit')
28
+
29
+ klass.define_instance_method('delete') do |method|
30
+ method.define_argument('name')
31
+ end
32
+
33
+ klass.define_instance_method('fetch') do |method|
34
+ method.define_argument('name')
35
+ method.define_optional_argument('default')
36
+ end
37
+
38
+ klass.define_instance_method('initialize') do |method|
39
+ method.define_argument('file')
40
+ method.define_optional_argument('thread_safe')
41
+ end
42
+
43
+ klass.define_instance_method('path')
44
+
45
+ klass.define_instance_method('root?') do |method|
46
+ method.define_argument('name')
47
+ end
48
+
49
+ klass.define_instance_method('roots')
50
+
51
+ klass.define_instance_method('transaction') do |method|
52
+ method.define_optional_argument('read_only')
53
+ method.define_block_argument('block')
54
+ end
55
+
56
+ klass.define_instance_method('ultra_safe')
57
+
58
+ klass.define_instance_method('ultra_safe=')
59
+ end
60
+
61
+ RubyLint::GlobalScope.definitions.lookup(:const, 'PStore').deep_freeze