ruby-lint 1.0.3 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (341) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.travis.yml +2 -5
  4. data/Gemfile +9 -4
  5. data/MANIFEST +32 -28
  6. data/README.md +18 -5
  7. data/Rakefile +7 -3
  8. data/checksum/ruby-lint-1.0.2.gem.sha512 +1 -0
  9. data/checksum/ruby-lint-1.0.3.gem.sha512 +1 -0
  10. data/doc/changelog.md +40 -0
  11. data/doc/definitions.md +182 -0
  12. data/gen/rails/constants.txt +12 -0
  13. data/gen/rails/requires.rb +2 -0
  14. data/gen/stdlib/constants.rb +30 -0
  15. data/gen/stdlib/constants.txt +214 -0
  16. data/gen/stdlib/requires.rb +64 -0
  17. data/lib/ruby-lint.rb +7 -14
  18. data/lib/ruby-lint/analysis/undefined_methods.rb +8 -1
  19. data/lib/ruby-lint/analysis/useless_equality_checks.rb +92 -0
  20. data/lib/ruby-lint/cli.rb +1 -2
  21. data/lib/ruby-lint/cli/analyze.rb +55 -26
  22. data/lib/ruby-lint/cli/cache.rb +60 -0
  23. data/lib/ruby-lint/configuration.rb +10 -4
  24. data/lib/ruby-lint/constant_loader.rb +75 -22
  25. data/lib/ruby-lint/definition/constant_proxy.rb +51 -3
  26. data/lib/ruby-lint/definition/registry.rb +126 -0
  27. data/lib/ruby-lint/definition/ruby_method.rb +0 -11
  28. data/lib/ruby-lint/definition/ruby_object.rb +32 -24
  29. data/lib/ruby-lint/definition_builder/base.rb +9 -12
  30. data/lib/ruby-lint/definition_builder/primitive.rb +1 -1
  31. data/lib/ruby-lint/definition_builder/ruby_array.rb +1 -1
  32. data/lib/ruby-lint/definition_builder/ruby_block.rb +3 -3
  33. data/lib/ruby-lint/definition_builder/ruby_class.rb +2 -2
  34. data/lib/ruby-lint/definition_builder/ruby_hash.rb +1 -1
  35. data/lib/ruby-lint/definition_builder/ruby_method.rb +1 -1
  36. data/lib/ruby-lint/definition_builder/ruby_module.rb +4 -4
  37. data/lib/ruby-lint/definition_generator.rb +12 -2
  38. data/lib/ruby-lint/definitions/core/abbrev.rb +8 -11
  39. data/lib/ruby-lint/definitions/core/argf.rb +9 -7
  40. data/lib/ruby-lint/definitions/core/argument_error.rb +8 -10
  41. data/lib/ruby-lint/definitions/core/argv.rb +9 -9
  42. data/lib/ruby-lint/definitions/core/array.rb +296 -534
  43. data/lib/ruby-lint/definitions/core/base64.rb +22 -25
  44. data/lib/ruby-lint/definitions/core/basic_object.rb +30 -30
  45. data/lib/ruby-lint/definitions/core/basic_socket.rb +341 -455
  46. data/lib/ruby-lint/definitions/core/benchmark.rb +157 -24
  47. data/lib/ruby-lint/definitions/core/bignum.rb +110 -95
  48. data/lib/ruby-lint/definitions/core/binding.rb +38 -35
  49. data/lib/ruby-lint/definitions/core/cgi.rb +333 -49
  50. data/lib/ruby-lint/definitions/core/class.rb +16 -16
  51. data/lib/ruby-lint/definitions/core/common_headers.rb +4 -548
  52. data/lib/ruby-lint/definitions/core/common_libs.rb +4 -421
  53. data/lib/ruby-lint/definitions/core/comparable.rb +28 -29
  54. data/lib/ruby-lint/definitions/core/complex.rb +103 -141
  55. data/lib/ruby-lint/definitions/core/condition_variable.rb +14 -14
  56. data/lib/ruby-lint/definitions/core/config.rb +4 -318
  57. data/lib/ruby-lint/definitions/core/conftest_c.rb +4 -548
  58. data/lib/ruby-lint/definitions/core/coutflag.rb +4 -548
  59. data/lib/ruby-lint/definitions/core/csv.rb +729 -329
  60. data/lib/ruby-lint/definitions/core/data.rb +9 -8
  61. data/lib/ruby-lint/definitions/core/date.rb +452 -526
  62. data/lib/ruby-lint/definitions/core/date_time.rb +234 -303
  63. data/lib/ruby-lint/definitions/core/delegator.rb +57 -48
  64. data/lib/ruby-lint/definitions/core/digest.rb +94 -115
  65. data/lib/ruby-lint/definitions/core/dir.rb +89 -459
  66. data/lib/ruby-lint/definitions/core/drb.rb +531 -36
  67. data/lib/ruby-lint/definitions/core/drb_id_conv.rb +10 -19
  68. data/lib/ruby-lint/definitions/core/drb_object.rb +53 -58
  69. data/lib/ruby-lint/definitions/core/drb_undumped.rb +7 -10
  70. data/lib/ruby-lint/definitions/core/encoding.rb +1026 -1718
  71. data/lib/ruby-lint/definitions/core/encoding_error.rb +9 -8
  72. data/lib/ruby-lint/definitions/core/enumerable.rb +123 -292
  73. data/lib/ruby-lint/definitions/core/enumerator.rb +28 -26
  74. data/lib/ruby-lint/definitions/core/env.rb +8 -9
  75. data/lib/ruby-lint/definitions/core/eoferror.rb +9 -8
  76. data/lib/ruby-lint/definitions/core/erb.rb +201 -226
  77. data/lib/ruby-lint/definitions/core/errno.rb +1593 -2917
  78. data/lib/ruby-lint/definitions/core/etc.rb +86 -107
  79. data/lib/ruby-lint/definitions/core/exception.rb +70 -50
  80. data/lib/ruby-lint/definitions/core/exception_for_matrix.rb +24 -37
  81. data/lib/ruby-lint/definitions/core/export_prefix.rb +4 -16
  82. data/lib/ruby-lint/definitions/core/failed_message.rb +4 -548
  83. data/lib/ruby-lint/definitions/core/false.rb +9 -7
  84. data/lib/ruby-lint/definitions/core/false_class.rb +40 -22
  85. data/lib/ruby-lint/definitions/core/fcntl.rb +120 -7
  86. data/lib/ruby-lint/definitions/core/fiber.rb +25 -26
  87. data/lib/ruby-lint/definitions/core/fiber_error.rb +9 -8
  88. data/lib/ruby-lint/definitions/core/file.rb +1119 -860
  89. data/lib/ruby-lint/definitions/core/file_test.rb +79 -80
  90. data/lib/ruby-lint/definitions/core/file_utils.rb +1203 -765
  91. data/lib/ruby-lint/definitions/core/find.rb +9 -12
  92. data/lib/ruby-lint/definitions/core/fixnum.rb +113 -663
  93. data/lib/ruby-lint/definitions/core/float.rb +171 -2755
  94. data/lib/ruby-lint/definitions/core/float_domain_error.rb +9 -8
  95. data/lib/ruby-lint/definitions/core/forwardable.rb +37 -30
  96. data/lib/ruby-lint/definitions/core/gc.rb +31 -38
  97. data/lib/ruby-lint/definitions/core/gem.rb +2324 -2183
  98. data/lib/ruby-lint/definitions/core/getopt_long.rb +107 -32
  99. data/lib/ruby-lint/definitions/core/gserver.rb +61 -61
  100. data/lib/ruby-lint/definitions/core/hash.rb +354 -1172
  101. data/lib/ruby-lint/definitions/core/hdr_ext.rb +4 -421
  102. data/lib/ruby-lint/definitions/core/index_error.rb +9 -8
  103. data/lib/ruby-lint/definitions/core/install_dirs.rb +4 -421
  104. data/lib/ruby-lint/definitions/core/integer.rb +93 -67
  105. data/lib/ruby-lint/definitions/core/interrupt.rb +11 -11
  106. data/lib/ruby-lint/definitions/core/io.rb +574 -673
  107. data/lib/ruby-lint/definitions/core/ioerror.rb +9 -8
  108. data/lib/ruby-lint/definitions/core/ipaddr.rb +115 -90
  109. data/lib/ruby-lint/definitions/core/ipsocket.rb +301 -472
  110. data/lib/ruby-lint/definitions/core/irb.rb +1206 -34
  111. data/lib/ruby-lint/definitions/core/json.rb +483 -74
  112. data/lib/ruby-lint/definitions/core/kconv.rb +88 -36
  113. data/lib/ruby-lint/definitions/core/kernel.rb +408 -412
  114. data/lib/ruby-lint/definitions/core/key_error.rb +9 -8
  115. data/lib/ruby-lint/definitions/core/libarg.rb +4 -548
  116. data/lib/ruby-lint/definitions/core/libpathflag.rb +4 -548
  117. data/lib/ruby-lint/definitions/core/link_so.rb +4 -548
  118. data/lib/ruby-lint/definitions/core/load_error.rb +24 -25
  119. data/lib/ruby-lint/definitions/core/local_jump_error.rb +9 -8
  120. data/lib/ruby-lint/definitions/core/logger.rb +294 -61
  121. data/lib/ruby-lint/definitions/core/logging.rb +17 -20
  122. data/lib/ruby-lint/definitions/core/make_makefile.rb +548 -384
  123. data/lib/ruby-lint/definitions/core/marshal.rb +260 -358
  124. data/lib/ruby-lint/definitions/core/match_data.rb +51 -48
  125. data/lib/ruby-lint/definitions/core/math.rb +170 -178
  126. data/lib/ruby-lint/definitions/core/matrix.rb +354 -297
  127. data/lib/ruby-lint/definitions/core/method.rb +41 -42
  128. data/lib/ruby-lint/definitions/core/module.rb +219 -223
  129. data/lib/ruby-lint/definitions/core/monitor.rb +26 -28
  130. data/lib/ruby-lint/definitions/core/monitor_mixin.rb +36 -42
  131. data/lib/ruby-lint/definitions/core/mutex.rb +20 -22
  132. data/lib/ruby-lint/definitions/core/mutex_m.rb +24 -27
  133. data/lib/ruby-lint/definitions/core/name_error.rb +13 -13
  134. data/lib/ruby-lint/definitions/core/nil.rb +9 -7
  135. data/lib/ruby-lint/definitions/core/nil_class.rb +47 -31
  136. data/lib/ruby-lint/definitions/core/nkf.rb +76 -9
  137. data/lib/ruby-lint/definitions/core/no_memory_error.rb +9 -8
  138. data/lib/ruby-lint/definitions/core/no_method_error.rb +14 -14
  139. data/lib/ruby-lint/definitions/core/not_implemented_error.rb +9 -8
  140. data/lib/ruby-lint/definitions/core/numeric.rb +88 -80
  141. data/lib/ruby-lint/definitions/core/object.rb +20 -20
  142. data/lib/ruby-lint/definitions/core/object_space.rb +28 -31
  143. data/lib/ruby-lint/definitions/core/observable.rb +20 -23
  144. data/lib/ruby-lint/definitions/core/open3.rb +47 -50
  145. data/lib/ruby-lint/definitions/core/open_ssl.rb +4158 -13
  146. data/lib/ruby-lint/definitions/core/open_struct.rb +40 -37
  147. data/lib/ruby-lint/definitions/core/open_uri.rb +142 -25
  148. data/lib/ruby-lint/definitions/core/option_parser.rb +919 -981
  149. data/lib/ruby-lint/definitions/core/orig_libpath.rb +4 -32
  150. data/lib/ruby-lint/definitions/core/outflag.rb +4 -548
  151. data/lib/ruby-lint/definitions/core/pathname.rb +211 -186
  152. data/lib/ruby-lint/definitions/core/pp.rb +160 -99
  153. data/lib/ruby-lint/definitions/core/pretty_print.rb +170 -56
  154. data/lib/ruby-lint/definitions/core/prime.rb +329 -234
  155. data/lib/ruby-lint/definitions/core/proc.rb +63 -75
  156. data/lib/ruby-lint/definitions/core/process.rb +504 -412
  157. data/lib/ruby-lint/definitions/core/profiler__.rb +13 -16
  158. data/lib/ruby-lint/definitions/core/pstore.rb +66 -36
  159. data/lib/ruby-lint/definitions/core/queue.rb +32 -32
  160. data/lib/ruby-lint/definitions/core/random.rb +29 -29
  161. data/lib/ruby-lint/definitions/core/range.rb +123 -77
  162. data/lib/ruby-lint/definitions/core/range_error.rb +9 -8
  163. data/lib/ruby-lint/definitions/core/rational.rb +84 -67
  164. data/lib/ruby-lint/definitions/core/rb_config.rb +18 -29
  165. data/lib/ruby-lint/definitions/core/readline.rb +85 -41
  166. data/lib/ruby-lint/definitions/core/regexp.rb +239 -293
  167. data/lib/ruby-lint/definitions/core/regexp_error.rb +9 -8
  168. data/lib/ruby-lint/definitions/core/resolv.rb +1365 -38
  169. data/lib/ruby-lint/definitions/core/rpathflag.rb +4 -548
  170. data/lib/ruby-lint/definitions/core/ruby_copyright.rb +9 -9
  171. data/lib/ruby-lint/definitions/core/ruby_description.rb +9 -9
  172. data/lib/ruby-lint/definitions/core/ruby_engine.rb +9 -9
  173. data/lib/ruby-lint/definitions/core/ruby_patchlevel.rb +9 -9
  174. data/lib/ruby-lint/definitions/core/ruby_platform.rb +9 -9
  175. data/lib/ruby-lint/definitions/core/ruby_release_date.rb +9 -9
  176. data/lib/ruby-lint/definitions/core/ruby_revision.rb +4 -246
  177. data/lib/ruby-lint/definitions/core/ruby_version.rb +9 -9
  178. data/lib/ruby-lint/definitions/core/runtime_error.rb +9 -8
  179. data/lib/ruby-lint/definitions/core/scan_error.rb +9 -8
  180. data/lib/ruby-lint/definitions/core/scanf.rb +83 -7
  181. data/lib/ruby-lint/definitions/core/script_error.rb +9 -8
  182. data/lib/ruby-lint/definitions/core/secure_random.rb +22 -25
  183. data/lib/ruby-lint/definitions/core/security_error.rb +9 -8
  184. data/lib/ruby-lint/definitions/core/set.rb +154 -504
  185. data/lib/ruby-lint/definitions/core/shellwords.rb +27 -28
  186. data/lib/ruby-lint/definitions/core/signal.rb +21 -29
  187. data/lib/ruby-lint/definitions/core/signal_exception.rb +15 -15
  188. data/lib/ruby-lint/definitions/core/simple_delegator.rb +10 -26
  189. data/lib/ruby-lint/definitions/core/single_forwardable.rb +35 -38
  190. data/lib/ruby-lint/definitions/core/singleton.rb +21 -28
  191. data/lib/ruby-lint/definitions/core/sized_queue.rb +35 -31
  192. data/lib/ruby-lint/definitions/core/socket.rb +2942 -438
  193. data/lib/ruby-lint/definitions/core/socket_error.rb +4 -54
  194. data/lib/ruby-lint/definitions/core/sorted_set.rb +49 -263
  195. data/lib/ruby-lint/definitions/core/src_ext.rb +4 -421
  196. data/lib/ruby-lint/definitions/core/standard_error.rb +9 -8
  197. data/lib/ruby-lint/definitions/core/stderr.rb +9 -9
  198. data/lib/ruby-lint/definitions/core/stdin.rb +9 -9
  199. data/lib/ruby-lint/definitions/core/stdout.rb +9 -9
  200. data/lib/ruby-lint/definitions/core/stop_iteration.rb +10 -8
  201. data/lib/ruby-lint/definitions/core/string.rb +451 -1222
  202. data/lib/ruby-lint/definitions/core/string_io.rb +226 -518
  203. data/lib/ruby-lint/definitions/core/string_scanner.rb +107 -108
  204. data/lib/ruby-lint/definitions/core/struct.rb +113 -761
  205. data/lib/ruby-lint/definitions/core/syck.rb +1292 -25
  206. data/lib/ruby-lint/definitions/core/symbol.rb +78 -59
  207. data/lib/ruby-lint/definitions/core/syntax_error.rb +23 -33
  208. data/lib/ruby-lint/definitions/core/system_call_error.rb +26 -24
  209. data/lib/ruby-lint/definitions/core/system_exit.rb +15 -15
  210. data/lib/ruby-lint/definitions/core/system_stack_error.rb +9 -8
  211. data/lib/ruby-lint/definitions/core/tcpserver.rb +291 -486
  212. data/lib/ruby-lint/definitions/core/tcpsocket.rb +302 -483
  213. data/lib/ruby-lint/definitions/core/tempfile.rb +39 -832
  214. data/lib/ruby-lint/definitions/core/th_wait.rb +35 -70
  215. data/lib/ruby-lint/definitions/core/thread.rb +131 -144
  216. data/lib/ruby-lint/definitions/core/thread_error.rb +9 -8
  217. data/lib/ruby-lint/definitions/core/thread_group.rb +23 -16
  218. data/lib/ruby-lint/definitions/core/threads_wait.rb +43 -63
  219. data/lib/ruby-lint/definitions/core/time.rb +236 -159
  220. data/lib/ruby-lint/definitions/core/timeout.rb +40 -14
  221. data/lib/ruby-lint/definitions/core/timeout_error.rb +4 -54
  222. data/lib/ruby-lint/definitions/core/toplevel_binding.rb +9 -7
  223. data/lib/ruby-lint/definitions/core/true.rb +9 -7
  224. data/lib/ruby-lint/definitions/core/true_class.rb +40 -22
  225. data/lib/ruby-lint/definitions/core/try_link.rb +4 -548
  226. data/lib/ruby-lint/definitions/core/tsort.rb +21 -19
  227. data/lib/ruby-lint/definitions/core/type_error.rb +9 -8
  228. data/lib/ruby-lint/definitions/core/udpsocket.rb +302 -487
  229. data/lib/ruby-lint/definitions/core/unbound_method.rb +35 -36
  230. data/lib/ruby-lint/definitions/core/universal_ints.rb +4 -421
  231. data/lib/ruby-lint/definitions/core/unixserver.rb +291 -490
  232. data/lib/ruby-lint/definitions/core/unixsocket.rb +314 -476
  233. data/lib/ruby-lint/definitions/core/uri.rb +1309 -38
  234. data/lib/ruby-lint/definitions/core/vector.rb +143 -242
  235. data/lib/ruby-lint/definitions/core/weak_ref.rb +29 -32
  236. data/lib/ruby-lint/definitions/core/webrick.rb +2430 -7
  237. data/lib/ruby-lint/definitions/core/xmlrpc.rb +5 -7
  238. data/lib/ruby-lint/definitions/core/yaml.rb +109 -2325
  239. data/lib/ruby-lint/definitions/core/zero_division_error.rb +9 -8
  240. data/lib/ruby-lint/definitions/core/zlib.rb +272 -8526
  241. data/lib/ruby-lint/definitions/gems/.gitkeep +0 -0
  242. data/lib/ruby-lint/definitions/gems/devise.rb +2271 -0
  243. data/lib/ruby-lint/definitions/gems/nokogiri.rb +7668 -0
  244. data/lib/ruby-lint/definitions/rails/abstract_controller.rb +508 -322
  245. data/lib/ruby-lint/definitions/rails/action_controller.rb +2252 -4462
  246. data/lib/ruby-lint/definitions/rails/action_dispatch.rb +3448 -1846
  247. data/lib/ruby-lint/definitions/rails/action_mailer.rb +750 -1349
  248. data/lib/ruby-lint/definitions/rails/action_pack.rb +31 -14
  249. data/lib/ruby-lint/definitions/rails/action_view.rb +5788 -5748
  250. data/lib/ruby-lint/definitions/rails/active_model.rb +1015 -1065
  251. data/lib/ruby-lint/definitions/rails/active_record.rb +8080 -8075
  252. data/lib/ruby-lint/definitions/rails/active_support.rb +3844 -4153
  253. data/lib/ruby-lint/definitions/rails/arel.rb +6752 -2301
  254. data/lib/ruby-lint/definitions/rails/rails.rb +1553 -2383
  255. data/lib/ruby-lint/definitions/rails/sprockets.rb +1131 -3140
  256. data/lib/ruby-lint/file_list.rb +43 -0
  257. data/lib/ruby-lint/file_scanner.rb +3 -3
  258. data/lib/ruby-lint/generated_constant.rb +5 -1
  259. data/lib/ruby-lint/inspector.rb +108 -46
  260. data/lib/ruby-lint/method_call/attribute.rb +3 -1
  261. data/lib/ruby-lint/rake_task.rb +98 -0
  262. data/lib/ruby-lint/ruby_lint.rb +11 -0
  263. data/lib/ruby-lint/runner.rb +0 -11
  264. data/lib/ruby-lint/template/definition.erb +26 -19
  265. data/lib/ruby-lint/template/scope.rb +12 -0
  266. data/lib/ruby-lint/variable_predicates.rb +14 -0
  267. data/lib/ruby-lint/version.rb +1 -1
  268. data/lib/ruby-lint/virtual_machine.rb +82 -46
  269. data/ruby-lint.gemspec +3 -14
  270. data/spec/ruby-lint/analysis/undefined_methods_spec.rb +20 -3
  271. data/spec/ruby-lint/analysis/useless_equality_checks_spec.rb +107 -0
  272. data/spec/ruby-lint/configuration_spec.rb +20 -0
  273. data/spec/ruby-lint/constant_loader_spec.rb +79 -0
  274. data/spec/ruby-lint/definition/constant_proxy_spec.rb +65 -34
  275. data/spec/ruby-lint/definition/registry_spec.rb +106 -0
  276. data/spec/ruby-lint/definition/ruby_object_spec.rb +25 -25
  277. data/spec/ruby-lint/definition_builder/primitive_spec.rb +10 -10
  278. data/spec/ruby-lint/definition_builder/ruby_class_spec.rb +18 -19
  279. data/spec/ruby-lint/definition_builder/ruby_method_spec.rb +12 -12
  280. data/spec/ruby-lint/definition_builder/ruby_module_spec.rb +14 -14
  281. data/spec/ruby-lint/definitions/argv_spec.rb +3 -2
  282. data/spec/ruby-lint/definitions/env_spec.rb +5 -3
  283. data/spec/ruby-lint/definitions/file_spec.rb +17 -0
  284. data/spec/ruby-lint/definitions/fixnum_spec.rb +18 -0
  285. data/spec/ruby-lint/definitions/io_spec.rb +5 -3
  286. data/spec/ruby-lint/definitions/kernel_spec.rb +18 -0
  287. data/spec/ruby-lint/definitions/range_spec.rb +21 -0
  288. data/spec/ruby-lint/definitions/string_spec.rb +20 -0
  289. data/spec/ruby-lint/file_list_spec.rb +25 -0
  290. data/spec/ruby-lint/file_scanner_spec.rb +12 -0
  291. data/spec/ruby-lint/inspector_spec.rb +203 -23
  292. data/spec/ruby-lint/method_call/.gitkeep +0 -0
  293. data/spec/ruby-lint/variable_predicates_spec.rb +30 -0
  294. data/spec/ruby-lint/virtual_machine/associate_nodes_spec.rb +6 -4
  295. data/spec/ruby-lint/virtual_machine/autoloading_spec.rb +3 -16
  296. data/spec/ruby-lint/virtual_machine/classes/redefining_spec.rb +28 -1
  297. data/spec/ruby-lint/virtual_machine/complex/rails_spec.rb +12 -9
  298. data/spec/ruby-lint/virtual_machine/global_variables_spec.rb +8 -5
  299. data/spec/ruby-lint/virtual_machine/method_call_tracking_spec.rb +0 -7
  300. data/spec/ruby-lint/virtual_machine/methods/attr_spec.rb +66 -0
  301. data/spec/ruby-lint/virtual_machine/methods/calls_spec.rb +25 -0
  302. data/spec/ruby-lint/virtual_machine/methods/define_method_spec.rb +1 -1
  303. data/spec/ruby-lint/virtual_machine/methods/docstrings_spec.rb +20 -9
  304. data/spec/ruby-lint/virtual_machine/methods/kernel_spec.rb +25 -0
  305. data/spec/ruby-lint/virtual_machine/methods/patching_spec.rb +0 -6
  306. data/spec/ruby-lint/virtual_machine/methods/square_bracket_spec.rb +32 -0
  307. data/spec/ruby-lint/virtual_machine/self_spec.rb +37 -0
  308. data/spec/spec_helper.rb +0 -1
  309. data/spec/support/building.rb +0 -4
  310. data/spec/support/definitions.rb +16 -0
  311. data/task/generate.rake +35 -33
  312. data/task/todo.rake +1 -1
  313. metadata +73 -100
  314. data/lib/ruby-lint/cli/ast.rb +0 -50
  315. data/lib/ruby-lint/cli/plot.rb +0 -94
  316. data/lib/ruby-lint/definitions/core/arg0.rb +0 -9
  317. data/lib/ruby-lint/definitions/core/autoload.rb +0 -41
  318. data/lib/ruby-lint/definitions/core/continuation.rb +0 -10
  319. data/lib/ruby-lint/definitions/core/default_record_separator.rb +0 -9
  320. data/lib/ruby-lint/definitions/core/fatal_error.rb +0 -10
  321. data/lib/ruby-lint/definitions/core/file_list.rb +0 -729
  322. data/lib/ruby-lint/definitions/core/immediate_value.rb +0 -21
  323. data/lib/ruby-lint/definitions/core/md5.rb +0 -80
  324. data/lib/ruby-lint/definitions/core/memory_segmention_error.rb +0 -10
  325. data/lib/ruby-lint/definitions/core/precision.rb +0 -23
  326. data/lib/ruby-lint/definitions/core/primitive_failure.rb +0 -10
  327. data/lib/ruby-lint/definitions/core/psych.rb +0 -139
  328. data/lib/ruby-lint/definitions/core/rake.rb +0 -4786
  329. data/lib/ruby-lint/definitions/core/rake_file_utils.rb +0 -205
  330. data/lib/ruby-lint/definitions/core/rakeversion.rb +0 -9
  331. data/lib/ruby-lint/definitions/core/rdoc.rb +0 -15
  332. data/lib/ruby-lint/definitions/core/rexml.rb +0 -13
  333. data/lib/ruby-lint/definitions/core/rss.rb +0 -13
  334. data/lib/ruby-lint/definitions/core/sha1.rb +0 -80
  335. data/lib/ruby-lint/definitions/core/unmarshalable.rb +0 -15
  336. data/lib/ruby-lint/definitions/core/unsupported_library_error.rb +0 -10
  337. data/lib/ruby-lint/definitions/global_variables.rb +0 -9
  338. data/lib/ruby-lint/definitions/rails.rb +0 -12
  339. data/lib/ruby-lint/global_scope.rb +0 -56
  340. data/spec/ruby-lint/cli/ast_spec.rb +0 -23
  341. data/spec/ruby-lint/method_call/assign_member_spec.rb +0 -25
@@ -1,44 +1,41 @@
1
- ##
2
- # Constant: WeakRef
3
- # Created: 2013-04-01 18:33:55 +0200
4
- # Platform: rbx 2.0.0.rc1
1
+ # This file was automatically generated, any manual changes will be lost the
2
+ # next time this file is generated.
5
3
  #
6
- RubyLint::GlobalScope.definitions.define_constant('WeakRef') do |klass|
7
- klass.inherits(RubyLint::GlobalScope.constant_proxy('BasicObject'))
4
+ # Platform: rbx 2.2.3.n364
8
5
 
9
- klass.define_method('__class_init__')
6
+ RubyLint.registry.register('WeakRef') do |defs|
7
+ defs.define_constant('WeakRef') do |klass|
8
+ klass.inherits(defs.constant_proxy('BasicObject', RubyLint.registry))
10
9
 
11
- klass.define_method('new')
10
+ klass.define_method('new') do |method|
11
+ method.define_argument('obj')
12
12
 
13
- klass.define_instance_method('__getobj__')
13
+ method.returns { |object| object.instance }
14
+ end
14
15
 
15
- klass.define_instance_method('__object__')
16
+ klass.define_instance_method('__getobj__')
16
17
 
17
- klass.define_instance_method('__setobj__') do |method|
18
- method.define_argument('obj')
19
- end
18
+ klass.define_instance_method('__object__')
20
19
 
21
- klass.define_instance_method('method_missing') do |method|
22
- method.define_argument('method')
23
- method.define_rest_argument('args')
24
- method.define_block_argument('block')
25
- end
20
+ klass.define_instance_method('__setobj__') do |method|
21
+ method.define_argument('obj')
22
+ end
23
+
24
+ klass.define_instance_method('method_missing') do |method|
25
+ method.define_argument('method')
26
+ method.define_rest_argument('args')
27
+ end
28
+
29
+ klass.define_instance_method('respond_to_missing?') do |method|
30
+ method.define_argument('method')
31
+ method.define_argument('include_private')
32
+ end
26
33
 
27
- klass.define_instance_method('respond_to_missing?') do |method|
28
- method.define_argument('method')
29
- method.define_argument('include_private')
34
+ klass.define_instance_method('weakref_alive?')
30
35
  end
31
36
 
32
- klass.define_instance_method('weakref_alive?')
33
- end
37
+ defs.define_constant('WeakRef::RefError') do |klass|
38
+ klass.inherits(defs.constant_proxy('RuntimeError', RubyLint.registry))
34
39
 
35
- ##
36
- # Constant: WeakRef::RefError
37
- # Created: 2013-04-01 18:33:55 +0200
38
- # Platform: rbx 2.0.0.rc1
39
- #
40
- RubyLint::GlobalScope.definitions.define_constant('WeakRef::RefError') do |klass|
41
- klass.inherits(RubyLint::GlobalScope.constant_proxy('RuntimeError'))
40
+ end
42
41
  end
43
-
44
- RubyLint::GlobalScope.definitions.lookup(:const, 'WeakRef').deep_freeze
@@ -1,13 +1,2436 @@
1
1
  # This file was automatically generated, any manual changes will be lost the
2
2
  # next time this file is generated.
3
3
  #
4
- # Created: 2013-11-11 20:49:50 +0100
5
- # Platform: rbx 2.1.1
4
+ # Platform: rbx 2.2.3.n18
6
5
 
7
- RubyLint::GlobalScope.definitions.define_constant('WEBrick') do |klass|
8
- klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
6
+ RubyLint.registry.register('WEBrick') do |defs|
7
+ defs.define_constant('WEBrick') do |klass|
8
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
9
9
 
10
- klass.define_method('initialize')
11
- end
10
+ end
11
+
12
+ defs.define_constant('WEBrick::AccessLog') do |klass|
13
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
14
+
15
+ klass.define_method('escape') do |method|
16
+ method.define_argument('data')
17
+ end
18
+
19
+ klass.define_method('format') do |method|
20
+ method.define_argument('format_string')
21
+ method.define_argument('params')
22
+ end
23
+
24
+ klass.define_method('setup_params') do |method|
25
+ method.define_argument('config')
26
+ method.define_argument('req')
27
+ method.define_argument('res')
28
+ end
29
+ end
30
+
31
+ defs.define_constant('WEBrick::AccessLog::AGENT_LOG_FORMAT') do |klass|
32
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
33
+
34
+ end
35
+
36
+ defs.define_constant('WEBrick::AccessLog::AccessLogError') do |klass|
37
+ klass.inherits(defs.constant_proxy('StandardError', RubyLint.registry))
38
+
39
+ end
40
+
41
+ defs.define_constant('WEBrick::AccessLog::CLF') do |klass|
42
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
43
+
44
+ end
45
+
46
+ defs.define_constant('WEBrick::AccessLog::CLF_TIME_FORMAT') do |klass|
47
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
48
+
49
+ end
50
+
51
+ defs.define_constant('WEBrick::AccessLog::COMBINED_LOG_FORMAT') do |klass|
52
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
53
+
54
+ end
55
+
56
+ defs.define_constant('WEBrick::AccessLog::COMMON_LOG_FORMAT') do |klass|
57
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
58
+
59
+ end
60
+
61
+ defs.define_constant('WEBrick::AccessLog::REFERER_LOG_FORMAT') do |klass|
62
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
63
+
64
+ end
65
+
66
+ defs.define_constant('WEBrick::BasicLog') do |klass|
67
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
68
+
69
+ klass.define_instance_method('<<') do |method|
70
+ method.define_argument('obj')
71
+ end
72
+
73
+ klass.define_instance_method('close')
74
+
75
+ klass.define_instance_method('debug') do |method|
76
+ method.define_argument('msg')
77
+ end
78
+
79
+ klass.define_instance_method('debug?')
80
+
81
+ klass.define_instance_method('error') do |method|
82
+ method.define_argument('msg')
83
+ end
84
+
85
+ klass.define_instance_method('error?')
86
+
87
+ klass.define_instance_method('fatal') do |method|
88
+ method.define_argument('msg')
89
+ end
90
+
91
+ klass.define_instance_method('fatal?')
92
+
93
+ klass.define_instance_method('info') do |method|
94
+ method.define_argument('msg')
95
+ end
96
+
97
+ klass.define_instance_method('info?')
98
+
99
+ klass.define_instance_method('initialize') do |method|
100
+ method.define_optional_argument('log_file')
101
+ method.define_optional_argument('level')
102
+
103
+ method.returns { |object| object.instance }
104
+ end
105
+
106
+ klass.define_instance_method('level')
107
+
108
+ klass.define_instance_method('level=')
109
+
110
+ klass.define_instance_method('log') do |method|
111
+ method.define_argument('level')
112
+ method.define_argument('data')
113
+ end
114
+
115
+ klass.define_instance_method('warn') do |method|
116
+ method.define_argument('msg')
117
+ end
118
+
119
+ klass.define_instance_method('warn?')
120
+ end
121
+
122
+ defs.define_constant('WEBrick::BasicLog::DEBUG') do |klass|
123
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
124
+
125
+ end
126
+
127
+ defs.define_constant('WEBrick::BasicLog::ERROR') do |klass|
128
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
129
+
130
+ end
131
+
132
+ defs.define_constant('WEBrick::BasicLog::FATAL') do |klass|
133
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
134
+
135
+ end
136
+
137
+ defs.define_constant('WEBrick::BasicLog::INFO') do |klass|
138
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
139
+
140
+ end
141
+
142
+ defs.define_constant('WEBrick::BasicLog::WARN') do |klass|
143
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
144
+
145
+ end
146
+
147
+ defs.define_constant('WEBrick::CR') do |klass|
148
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
149
+
150
+ end
151
+
152
+ defs.define_constant('WEBrick::CRLF') do |klass|
153
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
154
+
155
+ end
156
+
157
+ defs.define_constant('WEBrick::Config') do |klass|
158
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
159
+
160
+ end
161
+
162
+ defs.define_constant('WEBrick::Config::BasicAuth') do |klass|
163
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
164
+
165
+ end
166
+
167
+ defs.define_constant('WEBrick::Config::DigestAuth') do |klass|
168
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
169
+
170
+ end
171
+
172
+ defs.define_constant('WEBrick::Config::FileHandler') do |klass|
173
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
174
+
175
+ end
176
+
177
+ defs.define_constant('WEBrick::Config::General') do |klass|
178
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
179
+
180
+ end
181
+
182
+ defs.define_constant('WEBrick::Config::HTTP') do |klass|
183
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
184
+
185
+ end
186
+
187
+ defs.define_constant('WEBrick::Config::LIBDIR') do |klass|
188
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
189
+
190
+ end
191
+
192
+ defs.define_constant('WEBrick::Cookie') do |klass|
193
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
194
+
195
+ klass.define_method('parse') do |method|
196
+ method.define_argument('str')
197
+ end
198
+
199
+ klass.define_method('parse_set_cookie') do |method|
200
+ method.define_argument('str')
201
+ end
202
+
203
+ klass.define_method('parse_set_cookies') do |method|
204
+ method.define_argument('str')
205
+ end
206
+
207
+ klass.define_instance_method('comment')
208
+
209
+ klass.define_instance_method('comment=')
210
+
211
+ klass.define_instance_method('domain')
212
+
213
+ klass.define_instance_method('domain=')
214
+
215
+ klass.define_instance_method('expires')
216
+
217
+ klass.define_instance_method('expires=') do |method|
218
+ method.define_argument('t')
219
+ end
220
+
221
+ klass.define_instance_method('initialize') do |method|
222
+ method.define_argument('name')
223
+ method.define_argument('value')
224
+
225
+ method.returns { |object| object.instance }
226
+ end
227
+
228
+ klass.define_instance_method('max_age')
229
+
230
+ klass.define_instance_method('max_age=')
231
+
232
+ klass.define_instance_method('name')
233
+
234
+ klass.define_instance_method('path')
235
+
236
+ klass.define_instance_method('path=')
237
+
238
+ klass.define_instance_method('secure')
239
+
240
+ klass.define_instance_method('secure=')
241
+
242
+ klass.define_instance_method('to_s')
243
+
244
+ klass.define_instance_method('value')
245
+
246
+ klass.define_instance_method('value=')
247
+
248
+ klass.define_instance_method('version')
249
+
250
+ klass.define_instance_method('version=')
251
+ end
252
+
253
+ defs.define_constant('WEBrick::Daemon') do |klass|
254
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
255
+
256
+ klass.define_method('start')
257
+ end
258
+
259
+ defs.define_constant('WEBrick::GenericServer') do |klass|
260
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
261
+
262
+ klass.define_instance_method('[]') do |method|
263
+ method.define_argument('key')
264
+ end
265
+
266
+ klass.define_instance_method('config')
267
+
268
+ klass.define_instance_method('initialize') do |method|
269
+ method.define_optional_argument('config')
270
+ method.define_optional_argument('default')
271
+
272
+ method.returns { |object| object.instance }
273
+ end
274
+
275
+ klass.define_instance_method('listen') do |method|
276
+ method.define_argument('address')
277
+ method.define_argument('port')
278
+ end
279
+
280
+ klass.define_instance_method('listeners')
281
+
282
+ klass.define_instance_method('logger')
283
+
284
+ klass.define_instance_method('run') do |method|
285
+ method.define_argument('sock')
286
+ end
287
+
288
+ klass.define_instance_method('shutdown')
289
+
290
+ klass.define_instance_method('start') do |method|
291
+ method.define_block_argument('block')
292
+ end
293
+
294
+ klass.define_instance_method('status')
295
+
296
+ klass.define_instance_method('stop')
297
+
298
+ klass.define_instance_method('tokens')
299
+ end
300
+
301
+ defs.define_constant('WEBrick::HTMLUtils') do |klass|
302
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
303
+
304
+ klass.define_method('escape') do |method|
305
+ method.define_argument('string')
306
+ end
307
+ end
308
+
309
+ defs.define_constant('WEBrick::HTTPAuth') do |klass|
310
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
311
+
312
+ klass.define_method('_basic_auth') do |method|
313
+ method.define_argument('req')
314
+ method.define_argument('res')
315
+ method.define_argument('realm')
316
+ method.define_argument('req_field')
317
+ method.define_argument('res_field')
318
+ method.define_argument('err_type')
319
+ method.define_argument('block')
320
+ end
321
+
322
+ klass.define_method('basic_auth') do |method|
323
+ method.define_argument('req')
324
+ method.define_argument('res')
325
+ method.define_argument('realm')
326
+ method.define_block_argument('block')
327
+ end
328
+
329
+ klass.define_method('proxy_basic_auth') do |method|
330
+ method.define_argument('req')
331
+ method.define_argument('res')
332
+ method.define_argument('realm')
333
+ method.define_block_argument('block')
334
+ end
335
+ end
336
+
337
+ defs.define_constant('WEBrick::HTTPAuth::Authenticator') do |klass|
338
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
339
+
340
+ klass.define_instance_method('logger')
341
+
342
+ klass.define_instance_method('realm')
343
+
344
+ klass.define_instance_method('userdb')
345
+ end
346
+
347
+ defs.define_constant('WEBrick::HTTPAuth::Authenticator::AuthException') do |klass|
348
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
349
+
350
+ end
351
+
352
+ defs.define_constant('WEBrick::HTTPAuth::Authenticator::AuthScheme') do |klass|
353
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
354
+
355
+ end
356
+
357
+ defs.define_constant('WEBrick::HTTPAuth::Authenticator::RequestField') do |klass|
358
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
359
+
360
+ end
361
+
362
+ defs.define_constant('WEBrick::HTTPAuth::Authenticator::ResponseField') do |klass|
363
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
364
+
365
+ end
366
+
367
+ defs.define_constant('WEBrick::HTTPAuth::Authenticator::ResponseInfoField') do |klass|
368
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
369
+
370
+ end
371
+
372
+ defs.define_constant('WEBrick::HTTPAuth::BasicAuth') do |klass|
373
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
374
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPAuth::Authenticator', RubyLint.registry))
375
+
376
+ klass.define_method('make_passwd') do |method|
377
+ method.define_argument('realm')
378
+ method.define_argument('user')
379
+ method.define_argument('pass')
380
+ end
381
+
382
+ klass.define_instance_method('authenticate') do |method|
383
+ method.define_argument('req')
384
+ method.define_argument('res')
385
+ end
386
+
387
+ klass.define_instance_method('challenge') do |method|
388
+ method.define_argument('req')
389
+ method.define_argument('res')
390
+ end
391
+
392
+ klass.define_instance_method('initialize') do |method|
393
+ method.define_argument('config')
394
+ method.define_optional_argument('default')
395
+
396
+ method.returns { |object| object.instance }
397
+ end
398
+
399
+ klass.define_instance_method('logger')
400
+
401
+ klass.define_instance_method('realm')
402
+
403
+ klass.define_instance_method('userdb')
404
+ end
405
+
406
+ defs.define_constant('WEBrick::HTTPAuth::BasicAuth::AuthException') do |klass|
407
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
408
+
409
+ end
410
+
411
+ defs.define_constant('WEBrick::HTTPAuth::BasicAuth::AuthScheme') do |klass|
412
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
413
+
414
+ end
415
+
416
+ defs.define_constant('WEBrick::HTTPAuth::BasicAuth::RequestField') do |klass|
417
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
418
+
419
+ end
420
+
421
+ defs.define_constant('WEBrick::HTTPAuth::BasicAuth::ResponseField') do |klass|
422
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
423
+
424
+ end
425
+
426
+ defs.define_constant('WEBrick::HTTPAuth::BasicAuth::ResponseInfoField') do |klass|
427
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
428
+
429
+ end
430
+
431
+ defs.define_constant('WEBrick::HTTPAuth::DigestAuth') do |klass|
432
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
433
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPAuth::Authenticator', RubyLint.registry))
434
+
435
+ klass.define_method('make_passwd') do |method|
436
+ method.define_argument('realm')
437
+ method.define_argument('user')
438
+ method.define_argument('pass')
439
+ end
440
+
441
+ klass.define_instance_method('algorithm')
442
+
443
+ klass.define_instance_method('authenticate') do |method|
444
+ method.define_argument('req')
445
+ method.define_argument('res')
446
+ end
447
+
448
+ klass.define_instance_method('challenge') do |method|
449
+ method.define_argument('req')
450
+ method.define_argument('res')
451
+ method.define_optional_argument('stale')
452
+ end
453
+
454
+ klass.define_instance_method('initialize') do |method|
455
+ method.define_argument('config')
456
+ method.define_optional_argument('default')
457
+
458
+ method.returns { |object| object.instance }
459
+ end
460
+
461
+ klass.define_instance_method('qop')
462
+ end
463
+
464
+ defs.define_constant('WEBrick::HTTPAuth::DigestAuth::AuthException') do |klass|
465
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
466
+
467
+ end
468
+
469
+ defs.define_constant('WEBrick::HTTPAuth::DigestAuth::AuthScheme') do |klass|
470
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
471
+
472
+ end
473
+
474
+ defs.define_constant('WEBrick::HTTPAuth::DigestAuth::MustParams') do |klass|
475
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
476
+
477
+ end
478
+
479
+ defs.define_constant('WEBrick::HTTPAuth::DigestAuth::MustParamsAuth') do |klass|
480
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
481
+
482
+ end
483
+
484
+ defs.define_constant('WEBrick::HTTPAuth::DigestAuth::OpaqueInfo') do |klass|
485
+ klass.inherits(defs.constant_proxy('Struct', RubyLint.registry))
486
+
487
+ klass.define_method('[]') do |method|
488
+ method.define_rest_argument('args')
489
+ end
490
+
491
+ klass.define_method('new') do |method|
492
+ method.define_rest_argument('args')
493
+
494
+ method.returns { |object| object.instance }
495
+ end
496
+
497
+ klass.define_instance_method('nc')
498
+
499
+ klass.define_instance_method('nc=')
500
+
501
+ klass.define_instance_method('nonce')
502
+
503
+ klass.define_instance_method('nonce=')
504
+
505
+ klass.define_instance_method('time')
506
+
507
+ klass.define_instance_method('time=')
508
+ end
509
+
510
+ defs.define_constant('WEBrick::HTTPAuth::DigestAuth::OpaqueInfo::Enumerator') do |klass|
511
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
512
+ klass.inherits(defs.constant_proxy('Enumerable', RubyLint.registry))
513
+
514
+ klass.define_instance_method('each') do |method|
515
+ method.define_rest_argument('args')
516
+ end
517
+
518
+ klass.define_instance_method('each_with_index')
519
+
520
+ klass.define_instance_method('initialize') do |method|
521
+ method.define_optional_argument('receiver_or_size')
522
+ method.define_optional_argument('method_name')
523
+ method.define_rest_argument('method_args')
524
+
525
+ method.returns { |object| object.instance }
526
+ end
527
+
528
+ klass.define_instance_method('next')
529
+
530
+ klass.define_instance_method('next_values')
531
+
532
+ klass.define_instance_method('peek')
533
+
534
+ klass.define_instance_method('peek_values')
535
+
536
+ klass.define_instance_method('rewind')
537
+
538
+ klass.define_instance_method('size')
539
+
540
+ klass.define_instance_method('with_index') do |method|
541
+ method.define_optional_argument('offset')
542
+ end
543
+ end
544
+
545
+ defs.define_constant('WEBrick::HTTPAuth::DigestAuth::OpaqueInfo::Group') do |klass|
546
+ klass.inherits(defs.constant_proxy('Rubinius::FFI::Struct', RubyLint.registry))
547
+
548
+ klass.define_instance_method('gid')
549
+
550
+ klass.define_instance_method('mem')
551
+
552
+ klass.define_instance_method('name')
553
+
554
+ klass.define_instance_method('passwd')
555
+ end
556
+
557
+ defs.define_constant('WEBrick::HTTPAuth::DigestAuth::OpaqueInfo::Passwd') do |klass|
558
+ klass.inherits(defs.constant_proxy('Rubinius::FFI::Struct', RubyLint.registry))
559
+
560
+ klass.define_instance_method('dir')
561
+
562
+ klass.define_instance_method('gecos')
563
+
564
+ klass.define_instance_method('gid')
565
+
566
+ klass.define_instance_method('name')
567
+
568
+ klass.define_instance_method('passwd')
569
+
570
+ klass.define_instance_method('shell')
571
+
572
+ klass.define_instance_method('uid')
573
+ end
574
+
575
+ defs.define_constant('WEBrick::HTTPAuth::DigestAuth::OpaqueInfo::STRUCT_ATTRS') do |klass|
576
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
577
+
578
+ end
579
+
580
+ defs.define_constant('WEBrick::HTTPAuth::DigestAuth::OpaqueInfo::SortedElement') do |klass|
581
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
582
+
583
+ klass.define_instance_method('<=>') do |method|
584
+ method.define_argument('other')
585
+ end
586
+
587
+ klass.define_instance_method('initialize') do |method|
588
+ method.define_argument('val')
589
+ method.define_argument('sort_id')
590
+
591
+ method.returns { |object| object.instance }
592
+ end
593
+
594
+ klass.define_instance_method('sort_id')
595
+
596
+ klass.define_instance_method('value')
597
+ end
598
+
599
+ defs.define_constant('WEBrick::HTTPAuth::DigestAuth::OpaqueInfo::Tms') do |klass|
600
+ klass.inherits(defs.constant_proxy('Struct', RubyLint.registry))
601
+
602
+ klass.define_method('[]') do |method|
603
+ method.define_rest_argument('args')
604
+ end
605
+
606
+ klass.define_method('new') do |method|
607
+ method.define_rest_argument('args')
608
+
609
+ method.returns { |object| object.instance }
610
+ end
611
+
612
+ klass.define_instance_method('cstime')
613
+
614
+ klass.define_instance_method('cstime=')
615
+
616
+ klass.define_instance_method('cutime')
617
+
618
+ klass.define_instance_method('cutime=')
619
+
620
+ klass.define_instance_method('initialize') do |method|
621
+ method.define_optional_argument('utime')
622
+ method.define_optional_argument('stime')
623
+ method.define_optional_argument('cutime')
624
+ method.define_optional_argument('cstime')
625
+ method.define_optional_argument('tutime')
626
+ method.define_optional_argument('tstime')
627
+
628
+ method.returns { |object| object.instance }
629
+ end
630
+
631
+ klass.define_instance_method('stime')
632
+
633
+ klass.define_instance_method('stime=')
634
+
635
+ klass.define_instance_method('tstime')
636
+
637
+ klass.define_instance_method('tstime=')
638
+
639
+ klass.define_instance_method('tutime')
640
+
641
+ klass.define_instance_method('tutime=')
642
+
643
+ klass.define_instance_method('utime')
644
+
645
+ klass.define_instance_method('utime=')
646
+ end
647
+
648
+ defs.define_constant('WEBrick::HTTPAuth::DigestAuth::RequestField') do |klass|
649
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
650
+
651
+ end
652
+
653
+ defs.define_constant('WEBrick::HTTPAuth::DigestAuth::ResponseField') do |klass|
654
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
655
+
656
+ end
657
+
658
+ defs.define_constant('WEBrick::HTTPAuth::DigestAuth::ResponseInfoField') do |klass|
659
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
660
+
661
+ end
662
+
663
+ defs.define_constant('WEBrick::HTTPAuth::Htdigest') do |klass|
664
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
665
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPAuth::UserDB', RubyLint.registry))
666
+
667
+ klass.define_instance_method('delete_passwd') do |method|
668
+ method.define_argument('realm')
669
+ method.define_argument('user')
670
+ end
671
+
672
+ klass.define_instance_method('each')
673
+
674
+ klass.define_instance_method('flush') do |method|
675
+ method.define_optional_argument('output')
676
+ end
677
+
678
+ klass.define_instance_method('get_passwd') do |method|
679
+ method.define_argument('realm')
680
+ method.define_argument('user')
681
+ method.define_argument('reload_db')
682
+ end
683
+
684
+ klass.define_instance_method('initialize') do |method|
685
+ method.define_argument('path')
686
+
687
+ method.returns { |object| object.instance }
688
+ end
689
+
690
+ klass.define_instance_method('reload')
691
+
692
+ klass.define_instance_method('set_passwd') do |method|
693
+ method.define_argument('realm')
694
+ method.define_argument('user')
695
+ method.define_argument('pass')
696
+ end
697
+ end
698
+
699
+ defs.define_constant('WEBrick::HTTPAuth::Htgroup') do |klass|
700
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
701
+
702
+ klass.define_instance_method('add') do |method|
703
+ method.define_argument('group')
704
+ method.define_argument('members')
705
+ end
706
+
707
+ klass.define_instance_method('flush') do |method|
708
+ method.define_optional_argument('output')
709
+ end
710
+
711
+ klass.define_instance_method('initialize') do |method|
712
+ method.define_argument('path')
713
+
714
+ method.returns { |object| object.instance }
715
+ end
716
+
717
+ klass.define_instance_method('members') do |method|
718
+ method.define_argument('group')
719
+ end
720
+
721
+ klass.define_instance_method('reload')
722
+ end
723
+
724
+ defs.define_constant('WEBrick::HTTPAuth::Htpasswd') do |klass|
725
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
726
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPAuth::UserDB', RubyLint.registry))
727
+
728
+ klass.define_instance_method('delete_passwd') do |method|
729
+ method.define_argument('realm')
730
+ method.define_argument('user')
731
+ end
732
+
733
+ klass.define_instance_method('each')
734
+
735
+ klass.define_instance_method('flush') do |method|
736
+ method.define_optional_argument('output')
737
+ end
738
+
739
+ klass.define_instance_method('get_passwd') do |method|
740
+ method.define_argument('realm')
741
+ method.define_argument('user')
742
+ method.define_argument('reload_db')
743
+ end
744
+
745
+ klass.define_instance_method('initialize') do |method|
746
+ method.define_argument('path')
747
+
748
+ method.returns { |object| object.instance }
749
+ end
750
+
751
+ klass.define_instance_method('reload')
752
+
753
+ klass.define_instance_method('set_passwd') do |method|
754
+ method.define_argument('realm')
755
+ method.define_argument('user')
756
+ method.define_argument('pass')
757
+ end
758
+ end
759
+
760
+ defs.define_constant('WEBrick::HTTPAuth::ProxyAuthenticator') do |klass|
761
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
762
+
763
+ end
764
+
765
+ defs.define_constant('WEBrick::HTTPAuth::ProxyAuthenticator::AuthException') do |klass|
766
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
767
+
768
+ end
769
+
770
+ defs.define_constant('WEBrick::HTTPAuth::ProxyAuthenticator::InfoField') do |klass|
771
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
772
+
773
+ end
774
+
775
+ defs.define_constant('WEBrick::HTTPAuth::ProxyAuthenticator::RequestField') do |klass|
776
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
777
+
778
+ end
779
+
780
+ defs.define_constant('WEBrick::HTTPAuth::ProxyAuthenticator::ResponseField') do |klass|
781
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
782
+
783
+ end
784
+
785
+ defs.define_constant('WEBrick::HTTPAuth::ProxyBasicAuth') do |klass|
786
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPAuth::BasicAuth', RubyLint.registry))
787
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPAuth::ProxyAuthenticator', RubyLint.registry))
788
+
789
+ end
790
+
791
+ defs.define_constant('WEBrick::HTTPAuth::ProxyBasicAuth::AuthException') do |klass|
792
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
793
+
794
+ end
795
+
796
+ defs.define_constant('WEBrick::HTTPAuth::ProxyBasicAuth::AuthScheme') do |klass|
797
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
798
+
799
+ end
800
+
801
+ defs.define_constant('WEBrick::HTTPAuth::ProxyBasicAuth::InfoField') do |klass|
802
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
803
+
804
+ end
805
+
806
+ defs.define_constant('WEBrick::HTTPAuth::ProxyBasicAuth::RequestField') do |klass|
807
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
808
+
809
+ end
810
+
811
+ defs.define_constant('WEBrick::HTTPAuth::ProxyBasicAuth::ResponseField') do |klass|
812
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
813
+
814
+ end
815
+
816
+ defs.define_constant('WEBrick::HTTPAuth::ProxyBasicAuth::ResponseInfoField') do |klass|
817
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
818
+
819
+ end
820
+
821
+ defs.define_constant('WEBrick::HTTPAuth::ProxyDigestAuth') do |klass|
822
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPAuth::DigestAuth', RubyLint.registry))
823
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPAuth::ProxyAuthenticator', RubyLint.registry))
824
+
825
+ end
826
+
827
+ defs.define_constant('WEBrick::HTTPAuth::ProxyDigestAuth::AuthException') do |klass|
828
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
829
+
830
+ end
831
+
832
+ defs.define_constant('WEBrick::HTTPAuth::ProxyDigestAuth::AuthScheme') do |klass|
833
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
834
+
835
+ end
836
+
837
+ defs.define_constant('WEBrick::HTTPAuth::ProxyDigestAuth::InfoField') do |klass|
838
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
839
+
840
+ end
841
+
842
+ defs.define_constant('WEBrick::HTTPAuth::ProxyDigestAuth::MustParams') do |klass|
843
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
844
+
845
+ end
846
+
847
+ defs.define_constant('WEBrick::HTTPAuth::ProxyDigestAuth::MustParamsAuth') do |klass|
848
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
849
+
850
+ end
851
+
852
+ defs.define_constant('WEBrick::HTTPAuth::ProxyDigestAuth::OpaqueInfo') do |klass|
853
+ klass.inherits(defs.constant_proxy('Struct', RubyLint.registry))
854
+
855
+ klass.define_method('[]') do |method|
856
+ method.define_rest_argument('args')
857
+ end
858
+
859
+ klass.define_method('new') do |method|
860
+ method.define_rest_argument('args')
861
+
862
+ method.returns { |object| object.instance }
863
+ end
864
+
865
+ klass.define_instance_method('nc')
866
+
867
+ klass.define_instance_method('nc=')
868
+
869
+ klass.define_instance_method('nonce')
870
+
871
+ klass.define_instance_method('nonce=')
872
+
873
+ klass.define_instance_method('time')
874
+
875
+ klass.define_instance_method('time=')
876
+ end
877
+
878
+ defs.define_constant('WEBrick::HTTPAuth::ProxyDigestAuth::RequestField') do |klass|
879
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
880
+
881
+ end
882
+
883
+ defs.define_constant('WEBrick::HTTPAuth::ProxyDigestAuth::ResponseField') do |klass|
884
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
885
+
886
+ end
887
+
888
+ defs.define_constant('WEBrick::HTTPAuth::ProxyDigestAuth::ResponseInfoField') do |klass|
889
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
890
+
891
+ end
892
+
893
+ defs.define_constant('WEBrick::HTTPAuth::UserDB') do |klass|
894
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
895
+
896
+ klass.define_instance_method('auth_type')
897
+
898
+ klass.define_instance_method('auth_type=')
899
+
900
+ klass.define_instance_method('get_passwd') do |method|
901
+ method.define_argument('realm')
902
+ method.define_argument('user')
903
+ method.define_optional_argument('reload_db')
904
+ end
905
+
906
+ klass.define_instance_method('make_passwd') do |method|
907
+ method.define_argument('realm')
908
+ method.define_argument('user')
909
+ method.define_argument('pass')
910
+ end
911
+
912
+ klass.define_instance_method('set_passwd') do |method|
913
+ method.define_argument('realm')
914
+ method.define_argument('user')
915
+ method.define_argument('pass')
916
+ end
917
+ end
918
+
919
+ defs.define_constant('WEBrick::HTTPRequest') do |klass|
920
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
921
+
922
+ klass.define_instance_method('[]') do |method|
923
+ method.define_argument('header_name')
924
+ end
925
+
926
+ klass.define_instance_method('accept')
927
+
928
+ klass.define_instance_method('accept_charset')
929
+
930
+ klass.define_instance_method('accept_encoding')
931
+
932
+ klass.define_instance_method('accept_language')
933
+
934
+ klass.define_instance_method('addr')
935
+
936
+ klass.define_instance_method('attributes')
937
+
938
+ klass.define_instance_method('body') do |method|
939
+ method.define_block_argument('block')
940
+ end
941
+
942
+ klass.define_instance_method('content_length')
943
+
944
+ klass.define_instance_method('content_type')
945
+
946
+ klass.define_instance_method('continue')
947
+
948
+ klass.define_instance_method('cookies')
949
+
950
+ klass.define_instance_method('each')
951
+
952
+ klass.define_instance_method('fixup')
953
+
954
+ klass.define_instance_method('header')
955
+
956
+ klass.define_instance_method('host')
957
+
958
+ klass.define_instance_method('http_version')
959
+
960
+ klass.define_instance_method('initialize') do |method|
961
+ method.define_argument('config')
962
+
963
+ method.returns { |object| object.instance }
964
+ end
965
+
966
+ klass.define_instance_method('keep_alive')
967
+
968
+ klass.define_instance_method('keep_alive?')
969
+
970
+ klass.define_instance_method('meta_vars')
971
+
972
+ klass.define_instance_method('parse') do |method|
973
+ method.define_optional_argument('socket')
974
+ end
975
+
976
+ klass.define_instance_method('path')
977
+
978
+ klass.define_instance_method('path_info')
979
+
980
+ klass.define_instance_method('path_info=')
981
+
982
+ klass.define_instance_method('peeraddr')
983
+
984
+ klass.define_instance_method('port')
985
+
986
+ klass.define_instance_method('query')
987
+
988
+ klass.define_instance_method('query_string')
989
+
990
+ klass.define_instance_method('query_string=')
991
+
992
+ klass.define_instance_method('raw_header')
993
+
994
+ klass.define_instance_method('remote_ip')
995
+
996
+ klass.define_instance_method('request_line')
997
+
998
+ klass.define_instance_method('request_method')
999
+
1000
+ klass.define_instance_method('request_time')
1001
+
1002
+ klass.define_instance_method('request_uri')
1003
+
1004
+ klass.define_instance_method('script_name')
1005
+
1006
+ klass.define_instance_method('script_name=')
1007
+
1008
+ klass.define_instance_method('server_name')
1009
+
1010
+ klass.define_instance_method('ssl?')
1011
+
1012
+ klass.define_instance_method('to_s')
1013
+
1014
+ klass.define_instance_method('unparsed_uri')
1015
+
1016
+ klass.define_instance_method('user')
1017
+
1018
+ klass.define_instance_method('user=')
1019
+ end
1020
+
1021
+ defs.define_constant('WEBrick::HTTPRequest::BODY_CONTAINABLE_METHODS') do |klass|
1022
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1023
+
1024
+ end
1025
+
1026
+ defs.define_constant('WEBrick::HTTPRequest::MAX_URI_LENGTH') do |klass|
1027
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1028
+
1029
+ end
1030
+
1031
+ defs.define_constant('WEBrick::HTTPRequest::PrivateNetworkRegexp') do |klass|
1032
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1033
+
1034
+ end
1035
+
1036
+ defs.define_constant('WEBrick::HTTPResponse') do |klass|
1037
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1038
+
1039
+ klass.define_instance_method('[]') do |method|
1040
+ method.define_argument('field')
1041
+ end
1042
+
1043
+ klass.define_instance_method('[]=') do |method|
1044
+ method.define_argument('field')
1045
+ method.define_argument('value')
1046
+ end
1047
+
1048
+ klass.define_instance_method('body')
1049
+
1050
+ klass.define_instance_method('body=')
1051
+
1052
+ klass.define_instance_method('chunked=') do |method|
1053
+ method.define_argument('val')
1054
+ end
1055
+
1056
+ klass.define_instance_method('chunked?')
1057
+
1058
+ klass.define_instance_method('config')
1059
+
1060
+ klass.define_instance_method('content_length')
1061
+
1062
+ klass.define_instance_method('content_length=') do |method|
1063
+ method.define_argument('len')
1064
+ end
1065
+
1066
+ klass.define_instance_method('content_type')
1067
+
1068
+ klass.define_instance_method('content_type=') do |method|
1069
+ method.define_argument('type')
1070
+ end
1071
+
1072
+ klass.define_instance_method('cookies')
1073
+
1074
+ klass.define_instance_method('each')
1075
+
1076
+ klass.define_instance_method('filename')
1077
+
1078
+ klass.define_instance_method('filename=')
1079
+
1080
+ klass.define_instance_method('header')
1081
+
1082
+ klass.define_instance_method('http_version')
1083
+
1084
+ klass.define_instance_method('initialize') do |method|
1085
+ method.define_argument('config')
1086
+
1087
+ method.returns { |object| object.instance }
1088
+ end
1089
+
1090
+ klass.define_instance_method('keep_alive')
1091
+
1092
+ klass.define_instance_method('keep_alive=')
1093
+
1094
+ klass.define_instance_method('keep_alive?')
1095
+
1096
+ klass.define_instance_method('reason_phrase')
1097
+
1098
+ klass.define_instance_method('reason_phrase=')
1099
+
1100
+ klass.define_instance_method('request_http_version')
1101
+
1102
+ klass.define_instance_method('request_http_version=')
1103
+
1104
+ klass.define_instance_method('request_method')
1105
+
1106
+ klass.define_instance_method('request_method=')
1107
+
1108
+ klass.define_instance_method('request_uri')
1109
+
1110
+ klass.define_instance_method('request_uri=')
1111
+
1112
+ klass.define_instance_method('send_body') do |method|
1113
+ method.define_argument('socket')
1114
+ end
1115
+
1116
+ klass.define_instance_method('send_header') do |method|
1117
+ method.define_argument('socket')
1118
+ end
1119
+
1120
+ klass.define_instance_method('send_response') do |method|
1121
+ method.define_argument('socket')
1122
+ end
1123
+
1124
+ klass.define_instance_method('sent_size')
1125
+
1126
+ klass.define_instance_method('set_error') do |method|
1127
+ method.define_argument('ex')
1128
+ method.define_optional_argument('backtrace')
1129
+ end
1130
+
1131
+ klass.define_instance_method('set_redirect') do |method|
1132
+ method.define_argument('status')
1133
+ method.define_argument('url')
1134
+ end
1135
+
1136
+ klass.define_instance_method('setup_header')
1137
+
1138
+ klass.define_instance_method('status')
1139
+
1140
+ klass.define_instance_method('status=') do |method|
1141
+ method.define_argument('status')
1142
+ end
1143
+
1144
+ klass.define_instance_method('status_line')
1145
+
1146
+ klass.define_instance_method('to_s')
1147
+ end
1148
+
1149
+ defs.define_constant('WEBrick::HTTPServer') do |klass|
1150
+ klass.inherits(defs.constant_proxy('WEBrick::GenericServer', RubyLint.registry))
1151
+
1152
+ klass.define_instance_method('access_log') do |method|
1153
+ method.define_argument('config')
1154
+ method.define_argument('req')
1155
+ method.define_argument('res')
1156
+ end
1157
+
1158
+ klass.define_instance_method('do_OPTIONS') do |method|
1159
+ method.define_argument('req')
1160
+ method.define_argument('res')
1161
+ end
1162
+
1163
+ klass.define_instance_method('initialize') do |method|
1164
+ method.define_optional_argument('config')
1165
+ method.define_optional_argument('default')
1166
+
1167
+ method.returns { |object| object.instance }
1168
+ end
1169
+
1170
+ klass.define_instance_method('lookup_server') do |method|
1171
+ method.define_argument('req')
1172
+ end
1173
+
1174
+ klass.define_instance_method('mount') do |method|
1175
+ method.define_argument('dir')
1176
+ method.define_argument('servlet')
1177
+ method.define_rest_argument('options')
1178
+ end
1179
+
1180
+ klass.define_instance_method('mount_proc') do |method|
1181
+ method.define_argument('dir')
1182
+ method.define_optional_argument('proc')
1183
+ method.define_block_argument('block')
1184
+ end
1185
+
1186
+ klass.define_instance_method('run') do |method|
1187
+ method.define_argument('sock')
1188
+ end
1189
+
1190
+ klass.define_instance_method('search_servlet') do |method|
1191
+ method.define_argument('path')
1192
+ end
1193
+
1194
+ klass.define_instance_method('service') do |method|
1195
+ method.define_argument('req')
1196
+ method.define_argument('res')
1197
+ end
1198
+
1199
+ klass.define_instance_method('umount') do |method|
1200
+ method.define_argument('dir')
1201
+ end
1202
+
1203
+ klass.define_instance_method('unmount') do |method|
1204
+ method.define_argument('dir')
1205
+ end
1206
+
1207
+ klass.define_instance_method('virtual_host') do |method|
1208
+ method.define_argument('server')
1209
+ end
1210
+ end
1211
+
1212
+ defs.define_constant('WEBrick::HTTPServer::MountTable') do |klass|
1213
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1214
+
1215
+ klass.define_instance_method('[]') do |method|
1216
+ method.define_argument('dir')
1217
+ end
1218
+
1219
+ klass.define_instance_method('[]=') do |method|
1220
+ method.define_argument('dir')
1221
+ method.define_argument('val')
1222
+ end
1223
+
1224
+ klass.define_instance_method('delete') do |method|
1225
+ method.define_argument('dir')
1226
+ end
1227
+
1228
+ klass.define_instance_method('initialize')
1229
+
1230
+ klass.define_instance_method('scan') do |method|
1231
+ method.define_argument('path')
1232
+ end
1233
+ end
1234
+
1235
+ defs.define_constant('WEBrick::HTTPServerError') do |klass|
1236
+ klass.inherits(defs.constant_proxy('WEBrick::ServerError', RubyLint.registry))
1237
+
1238
+ end
1239
+
1240
+ defs.define_constant('WEBrick::HTTPServlet') do |klass|
1241
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1242
+
1243
+ end
1244
+
1245
+ defs.define_constant('WEBrick::HTTPServlet::AbstractServlet') do |klass|
1246
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1247
+
1248
+ klass.define_method('get_instance') do |method|
1249
+ method.define_argument('server')
1250
+ method.define_rest_argument('options')
1251
+ end
1252
+
1253
+ klass.define_instance_method('do_GET') do |method|
1254
+ method.define_argument('req')
1255
+ method.define_argument('res')
1256
+ end
1257
+
1258
+ klass.define_instance_method('do_HEAD') do |method|
1259
+ method.define_argument('req')
1260
+ method.define_argument('res')
1261
+ end
1262
+
1263
+ klass.define_instance_method('do_OPTIONS') do |method|
1264
+ method.define_argument('req')
1265
+ method.define_argument('res')
1266
+ end
1267
+
1268
+ klass.define_instance_method('initialize') do |method|
1269
+ method.define_argument('server')
1270
+ method.define_rest_argument('options')
1271
+
1272
+ method.returns { |object| object.instance }
1273
+ end
1274
+
1275
+ klass.define_instance_method('service') do |method|
1276
+ method.define_argument('req')
1277
+ method.define_argument('res')
1278
+ end
1279
+ end
1280
+
1281
+ defs.define_constant('WEBrick::HTTPServlet::CGIHandler') do |klass|
1282
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPServlet::AbstractServlet', RubyLint.registry))
1283
+
1284
+ klass.define_instance_method('do_GET') do |method|
1285
+ method.define_argument('req')
1286
+ method.define_argument('res')
1287
+ end
1288
+
1289
+ klass.define_instance_method('do_POST') do |method|
1290
+ method.define_argument('req')
1291
+ method.define_argument('res')
1292
+ end
1293
+
1294
+ klass.define_instance_method('initialize') do |method|
1295
+ method.define_argument('server')
1296
+ method.define_argument('name')
1297
+
1298
+ method.returns { |object| object.instance }
1299
+ end
1300
+ end
1301
+
1302
+ defs.define_constant('WEBrick::HTTPServlet::CGIHandler::CGIRunner') do |klass|
1303
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1304
+
1305
+ end
1306
+
1307
+ defs.define_constant('WEBrick::HTTPServlet::CGIHandler::Ruby') do |klass|
1308
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1309
+
1310
+ end
1311
+
1312
+ defs.define_constant('WEBrick::HTTPServlet::DefaultFileHandler') do |klass|
1313
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPServlet::AbstractServlet', RubyLint.registry))
1314
+
1315
+ klass.define_instance_method('do_GET') do |method|
1316
+ method.define_argument('req')
1317
+ method.define_argument('res')
1318
+ end
1319
+
1320
+ klass.define_instance_method('initialize') do |method|
1321
+ method.define_argument('server')
1322
+ method.define_argument('local_path')
1323
+
1324
+ method.returns { |object| object.instance }
1325
+ end
1326
+
1327
+ klass.define_instance_method('make_partial_content') do |method|
1328
+ method.define_argument('req')
1329
+ method.define_argument('res')
1330
+ method.define_argument('filename')
1331
+ method.define_argument('filesize')
1332
+ end
1333
+
1334
+ klass.define_instance_method('not_modified?') do |method|
1335
+ method.define_argument('req')
1336
+ method.define_argument('res')
1337
+ method.define_argument('mtime')
1338
+ method.define_argument('etag')
1339
+ end
1340
+
1341
+ klass.define_instance_method('prepare_range') do |method|
1342
+ method.define_argument('range')
1343
+ method.define_argument('filesize')
1344
+ end
1345
+ end
1346
+
1347
+ defs.define_constant('WEBrick::HTTPServlet::ERBHandler') do |klass|
1348
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPServlet::AbstractServlet', RubyLint.registry))
1349
+
1350
+ klass.define_instance_method('do_GET') do |method|
1351
+ method.define_argument('req')
1352
+ method.define_argument('res')
1353
+ end
1354
+
1355
+ klass.define_instance_method('do_POST') do |method|
1356
+ method.define_argument('req')
1357
+ method.define_argument('res')
1358
+ end
1359
+
1360
+ klass.define_instance_method('initialize') do |method|
1361
+ method.define_argument('server')
1362
+ method.define_argument('name')
1363
+
1364
+ method.returns { |object| object.instance }
1365
+ end
1366
+ end
1367
+
1368
+ defs.define_constant('WEBrick::HTTPServlet::FileHandler') do |klass|
1369
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPServlet::AbstractServlet', RubyLint.registry))
1370
+
1371
+ klass.define_method('add_handler') do |method|
1372
+ method.define_argument('suffix')
1373
+ method.define_argument('handler')
1374
+ end
1375
+
1376
+ klass.define_method('remove_handler') do |method|
1377
+ method.define_argument('suffix')
1378
+ end
1379
+
1380
+ klass.define_instance_method('do_GET') do |method|
1381
+ method.define_argument('req')
1382
+ method.define_argument('res')
1383
+ end
1384
+
1385
+ klass.define_instance_method('do_OPTIONS') do |method|
1386
+ method.define_argument('req')
1387
+ method.define_argument('res')
1388
+ end
1389
+
1390
+ klass.define_instance_method('do_POST') do |method|
1391
+ method.define_argument('req')
1392
+ method.define_argument('res')
1393
+ end
1394
+
1395
+ klass.define_instance_method('initialize') do |method|
1396
+ method.define_argument('server')
1397
+ method.define_argument('root')
1398
+ method.define_optional_argument('options')
1399
+ method.define_optional_argument('default')
1400
+
1401
+ method.returns { |object| object.instance }
1402
+ end
1403
+
1404
+ klass.define_instance_method('service') do |method|
1405
+ method.define_argument('req')
1406
+ method.define_argument('res')
1407
+ end
1408
+ end
1409
+
1410
+ defs.define_constant('WEBrick::HTTPServlet::FileHandler::HandlerTable') do |klass|
1411
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1412
+
1413
+ end
1414
+
1415
+ defs.define_constant('WEBrick::HTTPServlet::HTTPServletError') do |klass|
1416
+ klass.inherits(defs.constant_proxy('StandardError', RubyLint.registry))
1417
+
1418
+ end
1419
+
1420
+ defs.define_constant('WEBrick::HTTPServlet::ProcHandler') do |klass|
1421
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPServlet::AbstractServlet', RubyLint.registry))
1422
+
1423
+ klass.define_instance_method('do_GET') do |method|
1424
+ method.define_argument('request')
1425
+ method.define_argument('response')
1426
+ end
1427
+
1428
+ klass.define_instance_method('do_POST') do |method|
1429
+ method.define_argument('request')
1430
+ method.define_argument('response')
1431
+ end
1432
+
1433
+ klass.define_instance_method('get_instance') do |method|
1434
+ method.define_argument('server')
1435
+ method.define_rest_argument('options')
1436
+ end
1437
+
1438
+ klass.define_instance_method('initialize') do |method|
1439
+ method.define_argument('proc')
1440
+
1441
+ method.returns { |object| object.instance }
1442
+ end
1443
+ end
1444
+
1445
+ defs.define_constant('WEBrick::HTTPStatus') do |klass|
1446
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1447
+
1448
+ klass.define_method('[]') do |method|
1449
+ method.define_argument('code')
1450
+ end
1451
+
1452
+ klass.define_method('client_error?') do |method|
1453
+ method.define_argument('code')
1454
+ end
1455
+
1456
+ klass.define_method('error?') do |method|
1457
+ method.define_argument('code')
1458
+ end
1459
+
1460
+ klass.define_method('info?') do |method|
1461
+ method.define_argument('code')
1462
+ end
1463
+
1464
+ klass.define_method('reason_phrase') do |method|
1465
+ method.define_argument('code')
1466
+ end
1467
+
1468
+ klass.define_method('redirect?') do |method|
1469
+ method.define_argument('code')
1470
+ end
1471
+
1472
+ klass.define_method('server_error?') do |method|
1473
+ method.define_argument('code')
1474
+ end
1475
+
1476
+ klass.define_method('success?') do |method|
1477
+ method.define_argument('code')
1478
+ end
1479
+ end
1480
+
1481
+ defs.define_constant('WEBrick::HTTPStatus::Accepted') do |klass|
1482
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Success', RubyLint.registry))
1483
+
1484
+ end
1485
+
1486
+ defs.define_constant('WEBrick::HTTPStatus::BadGateway') do |klass|
1487
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ServerError', RubyLint.registry))
1488
+
1489
+ end
1490
+
1491
+ defs.define_constant('WEBrick::HTTPStatus::BadRequest') do |klass|
1492
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
1493
+
1494
+ end
1495
+
1496
+ defs.define_constant('WEBrick::HTTPStatus::ClientError') do |klass|
1497
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Error', RubyLint.registry))
1498
+
1499
+ end
1500
+
1501
+ defs.define_constant('WEBrick::HTTPStatus::CodeToError') do |klass|
1502
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1503
+
1504
+ end
1505
+
1506
+ defs.define_constant('WEBrick::HTTPStatus::Conflict') do |klass|
1507
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
1508
+
1509
+ end
1510
+
1511
+ defs.define_constant('WEBrick::HTTPStatus::Continue') do |klass|
1512
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Info', RubyLint.registry))
1513
+
1514
+ end
1515
+
1516
+ defs.define_constant('WEBrick::HTTPStatus::Created') do |klass|
1517
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Success', RubyLint.registry))
1518
+
1519
+ end
1520
+
1521
+ defs.define_constant('WEBrick::HTTPStatus::EOFError') do |klass|
1522
+ klass.inherits(defs.constant_proxy('StandardError', RubyLint.registry))
1523
+
1524
+ end
1525
+
1526
+ defs.define_constant('WEBrick::HTTPStatus::Error') do |klass|
1527
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Status', RubyLint.registry))
1528
+
1529
+ end
1530
+
1531
+ defs.define_constant('WEBrick::HTTPStatus::ExpectationFailed') do |klass|
1532
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
1533
+
1534
+ end
1535
+
1536
+ defs.define_constant('WEBrick::HTTPStatus::FailedDependency') do |klass|
1537
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
1538
+
1539
+ end
1540
+
1541
+ defs.define_constant('WEBrick::HTTPStatus::Forbidden') do |klass|
1542
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
1543
+
1544
+ end
1545
+
1546
+ defs.define_constant('WEBrick::HTTPStatus::Found') do |klass|
1547
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Redirect', RubyLint.registry))
1548
+
1549
+ end
1550
+
1551
+ defs.define_constant('WEBrick::HTTPStatus::GatewayTimeout') do |klass|
1552
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ServerError', RubyLint.registry))
1553
+
1554
+ end
1555
+
1556
+ defs.define_constant('WEBrick::HTTPStatus::Gone') do |klass|
1557
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
1558
+
1559
+ end
1560
+
1561
+ defs.define_constant('WEBrick::HTTPStatus::HTTPVersionNotSupported') do |klass|
1562
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ServerError', RubyLint.registry))
1563
+
1564
+ end
1565
+
1566
+ defs.define_constant('WEBrick::HTTPStatus::Info') do |klass|
1567
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Status', RubyLint.registry))
1568
+
1569
+ end
1570
+
1571
+ defs.define_constant('WEBrick::HTTPStatus::InsufficientStorage') do |klass|
1572
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ServerError', RubyLint.registry))
1573
+
1574
+ end
1575
+
1576
+ defs.define_constant('WEBrick::HTTPStatus::InternalServerError') do |klass|
1577
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ServerError', RubyLint.registry))
1578
+
1579
+ end
1580
+
1581
+ defs.define_constant('WEBrick::HTTPStatus::LengthRequired') do |klass|
1582
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
1583
+
1584
+ end
1585
+
1586
+ defs.define_constant('WEBrick::HTTPStatus::Locked') do |klass|
1587
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
1588
+
1589
+ end
1590
+
1591
+ defs.define_constant('WEBrick::HTTPStatus::MethodNotAllowed') do |klass|
1592
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
1593
+
1594
+ end
1595
+
1596
+ defs.define_constant('WEBrick::HTTPStatus::MovedPermanently') do |klass|
1597
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Redirect', RubyLint.registry))
1598
+
1599
+ end
1600
+
1601
+ defs.define_constant('WEBrick::HTTPStatus::MultiStatus') do |klass|
1602
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Success', RubyLint.registry))
1603
+
1604
+ end
1605
+
1606
+ defs.define_constant('WEBrick::HTTPStatus::MultipleChoices') do |klass|
1607
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Redirect', RubyLint.registry))
1608
+
1609
+ end
1610
+
1611
+ defs.define_constant('WEBrick::HTTPStatus::NetworkAuthenticationRequired') do |klass|
1612
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ServerError', RubyLint.registry))
1613
+
1614
+ end
1615
+
1616
+ defs.define_constant('WEBrick::HTTPStatus::NoContent') do |klass|
1617
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Success', RubyLint.registry))
1618
+
1619
+ end
1620
+
1621
+ defs.define_constant('WEBrick::HTTPStatus::NonAuthoritativeInformation') do |klass|
1622
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Success', RubyLint.registry))
1623
+
1624
+ end
1625
+
1626
+ defs.define_constant('WEBrick::HTTPStatus::NotAcceptable') do |klass|
1627
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
1628
+
1629
+ end
1630
+
1631
+ defs.define_constant('WEBrick::HTTPStatus::NotFound') do |klass|
1632
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
1633
+
1634
+ end
1635
+
1636
+ defs.define_constant('WEBrick::HTTPStatus::NotImplemented') do |klass|
1637
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ServerError', RubyLint.registry))
1638
+
1639
+ end
1640
+
1641
+ defs.define_constant('WEBrick::HTTPStatus::NotModified') do |klass|
1642
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Redirect', RubyLint.registry))
1643
+
1644
+ end
1645
+
1646
+ defs.define_constant('WEBrick::HTTPStatus::OK') do |klass|
1647
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Success', RubyLint.registry))
1648
+
1649
+ end
1650
+
1651
+ defs.define_constant('WEBrick::HTTPStatus::PartialContent') do |klass|
1652
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Success', RubyLint.registry))
1653
+
1654
+ end
1655
+
1656
+ defs.define_constant('WEBrick::HTTPStatus::PaymentRequired') do |klass|
1657
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
1658
+
1659
+ end
1660
+
1661
+ defs.define_constant('WEBrick::HTTPStatus::PreconditionFailed') do |klass|
1662
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
1663
+
1664
+ end
1665
+
1666
+ defs.define_constant('WEBrick::HTTPStatus::PreconditionRequired') do |klass|
1667
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
1668
+
1669
+ end
1670
+
1671
+ defs.define_constant('WEBrick::HTTPStatus::ProxyAuthenticationRequired') do |klass|
1672
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
1673
+
1674
+ end
1675
+
1676
+ defs.define_constant('WEBrick::HTTPStatus::RC_ACCEPTED') do |klass|
1677
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1678
+
1679
+ end
1680
+
1681
+ defs.define_constant('WEBrick::HTTPStatus::RC_BAD_GATEWAY') do |klass|
1682
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1683
+
1684
+ end
1685
+
1686
+ defs.define_constant('WEBrick::HTTPStatus::RC_BAD_REQUEST') do |klass|
1687
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1688
+
1689
+ end
1690
+
1691
+ defs.define_constant('WEBrick::HTTPStatus::RC_CONFLICT') do |klass|
1692
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1693
+
1694
+ end
1695
+
1696
+ defs.define_constant('WEBrick::HTTPStatus::RC_CONTINUE') do |klass|
1697
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1698
+
1699
+ end
1700
+
1701
+ defs.define_constant('WEBrick::HTTPStatus::RC_CREATED') do |klass|
1702
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1703
+
1704
+ end
1705
+
1706
+ defs.define_constant('WEBrick::HTTPStatus::RC_EXPECTATION_FAILED') do |klass|
1707
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1708
+
1709
+ end
1710
+
1711
+ defs.define_constant('WEBrick::HTTPStatus::RC_FAILED_DEPENDENCY') do |klass|
1712
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
12
1713
 
13
- RubyLint::GlobalScope.definitions.lookup(:const, 'WEBrick').deep_freeze
1714
+ end
1715
+
1716
+ defs.define_constant('WEBrick::HTTPStatus::RC_FORBIDDEN') do |klass|
1717
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1718
+
1719
+ end
1720
+
1721
+ defs.define_constant('WEBrick::HTTPStatus::RC_FOUND') do |klass|
1722
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1723
+
1724
+ end
1725
+
1726
+ defs.define_constant('WEBrick::HTTPStatus::RC_GATEWAY_TIMEOUT') do |klass|
1727
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1728
+
1729
+ end
1730
+
1731
+ defs.define_constant('WEBrick::HTTPStatus::RC_GONE') do |klass|
1732
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1733
+
1734
+ end
1735
+
1736
+ defs.define_constant('WEBrick::HTTPStatus::RC_HTTP_VERSION_NOT_SUPPORTED') do |klass|
1737
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1738
+
1739
+ end
1740
+
1741
+ defs.define_constant('WEBrick::HTTPStatus::RC_INSUFFICIENT_STORAGE') do |klass|
1742
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1743
+
1744
+ end
1745
+
1746
+ defs.define_constant('WEBrick::HTTPStatus::RC_INTERNAL_SERVER_ERROR') do |klass|
1747
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1748
+
1749
+ end
1750
+
1751
+ defs.define_constant('WEBrick::HTTPStatus::RC_LENGTH_REQUIRED') do |klass|
1752
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1753
+
1754
+ end
1755
+
1756
+ defs.define_constant('WEBrick::HTTPStatus::RC_LOCKED') do |klass|
1757
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1758
+
1759
+ end
1760
+
1761
+ defs.define_constant('WEBrick::HTTPStatus::RC_METHOD_NOT_ALLOWED') do |klass|
1762
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1763
+
1764
+ end
1765
+
1766
+ defs.define_constant('WEBrick::HTTPStatus::RC_MOVED_PERMANENTLY') do |klass|
1767
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1768
+
1769
+ end
1770
+
1771
+ defs.define_constant('WEBrick::HTTPStatus::RC_MULTIPLE_CHOICES') do |klass|
1772
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1773
+
1774
+ end
1775
+
1776
+ defs.define_constant('WEBrick::HTTPStatus::RC_MULTI_STATUS') do |klass|
1777
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1778
+
1779
+ end
1780
+
1781
+ defs.define_constant('WEBrick::HTTPStatus::RC_NETWORK_AUTHENTICATION_REQUIRED') do |klass|
1782
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1783
+
1784
+ end
1785
+
1786
+ defs.define_constant('WEBrick::HTTPStatus::RC_NON_AUTHORITATIVE_INFORMATION') do |klass|
1787
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1788
+
1789
+ end
1790
+
1791
+ defs.define_constant('WEBrick::HTTPStatus::RC_NOT_ACCEPTABLE') do |klass|
1792
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1793
+
1794
+ end
1795
+
1796
+ defs.define_constant('WEBrick::HTTPStatus::RC_NOT_FOUND') do |klass|
1797
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1798
+
1799
+ end
1800
+
1801
+ defs.define_constant('WEBrick::HTTPStatus::RC_NOT_IMPLEMENTED') do |klass|
1802
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1803
+
1804
+ end
1805
+
1806
+ defs.define_constant('WEBrick::HTTPStatus::RC_NOT_MODIFIED') do |klass|
1807
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1808
+
1809
+ end
1810
+
1811
+ defs.define_constant('WEBrick::HTTPStatus::RC_NO_CONTENT') do |klass|
1812
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1813
+
1814
+ end
1815
+
1816
+ defs.define_constant('WEBrick::HTTPStatus::RC_OK') do |klass|
1817
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1818
+
1819
+ end
1820
+
1821
+ defs.define_constant('WEBrick::HTTPStatus::RC_PARTIAL_CONTENT') do |klass|
1822
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1823
+
1824
+ end
1825
+
1826
+ defs.define_constant('WEBrick::HTTPStatus::RC_PAYMENT_REQUIRED') do |klass|
1827
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1828
+
1829
+ end
1830
+
1831
+ defs.define_constant('WEBrick::HTTPStatus::RC_PRECONDITION_FAILED') do |klass|
1832
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1833
+
1834
+ end
1835
+
1836
+ defs.define_constant('WEBrick::HTTPStatus::RC_PRECONDITION_REQUIRED') do |klass|
1837
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1838
+
1839
+ end
1840
+
1841
+ defs.define_constant('WEBrick::HTTPStatus::RC_PROXY_AUTHENTICATION_REQUIRED') do |klass|
1842
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1843
+
1844
+ end
1845
+
1846
+ defs.define_constant('WEBrick::HTTPStatus::RC_REQUEST_ENTITY_TOO_LARGE') do |klass|
1847
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1848
+
1849
+ end
1850
+
1851
+ defs.define_constant('WEBrick::HTTPStatus::RC_REQUEST_HEADER_FIELDS_TOO_LARGE') do |klass|
1852
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1853
+
1854
+ end
1855
+
1856
+ defs.define_constant('WEBrick::HTTPStatus::RC_REQUEST_RANGE_NOT_SATISFIABLE') do |klass|
1857
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1858
+
1859
+ end
1860
+
1861
+ defs.define_constant('WEBrick::HTTPStatus::RC_REQUEST_TIMEOUT') do |klass|
1862
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1863
+
1864
+ end
1865
+
1866
+ defs.define_constant('WEBrick::HTTPStatus::RC_REQUEST_URI_TOO_LARGE') do |klass|
1867
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1868
+
1869
+ end
1870
+
1871
+ defs.define_constant('WEBrick::HTTPStatus::RC_RESET_CONTENT') do |klass|
1872
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1873
+
1874
+ end
1875
+
1876
+ defs.define_constant('WEBrick::HTTPStatus::RC_SEE_OTHER') do |klass|
1877
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1878
+
1879
+ end
1880
+
1881
+ defs.define_constant('WEBrick::HTTPStatus::RC_SERVICE_UNAVAILABLE') do |klass|
1882
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1883
+
1884
+ end
1885
+
1886
+ defs.define_constant('WEBrick::HTTPStatus::RC_SWITCHING_PROTOCOLS') do |klass|
1887
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1888
+
1889
+ end
1890
+
1891
+ defs.define_constant('WEBrick::HTTPStatus::RC_TEMPORARY_REDIRECT') do |klass|
1892
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1893
+
1894
+ end
1895
+
1896
+ defs.define_constant('WEBrick::HTTPStatus::RC_TOO_MANY_REQUESTS') do |klass|
1897
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1898
+
1899
+ end
1900
+
1901
+ defs.define_constant('WEBrick::HTTPStatus::RC_UNAUTHORIZED') do |klass|
1902
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1903
+
1904
+ end
1905
+
1906
+ defs.define_constant('WEBrick::HTTPStatus::RC_UNPROCESSABLE_ENTITY') do |klass|
1907
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1908
+
1909
+ end
1910
+
1911
+ defs.define_constant('WEBrick::HTTPStatus::RC_UNSUPPORTED_MEDIA_TYPE') do |klass|
1912
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1913
+
1914
+ end
1915
+
1916
+ defs.define_constant('WEBrick::HTTPStatus::RC_UPGRADE_REQUIRED') do |klass|
1917
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1918
+
1919
+ end
1920
+
1921
+ defs.define_constant('WEBrick::HTTPStatus::RC_USE_PROXY') do |klass|
1922
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1923
+
1924
+ end
1925
+
1926
+ defs.define_constant('WEBrick::HTTPStatus::Redirect') do |klass|
1927
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Status', RubyLint.registry))
1928
+
1929
+ end
1930
+
1931
+ defs.define_constant('WEBrick::HTTPStatus::RequestEntityTooLarge') do |klass|
1932
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
1933
+
1934
+ end
1935
+
1936
+ defs.define_constant('WEBrick::HTTPStatus::RequestHeaderFieldsTooLarge') do |klass|
1937
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
1938
+
1939
+ end
1940
+
1941
+ defs.define_constant('WEBrick::HTTPStatus::RequestRangeNotSatisfiable') do |klass|
1942
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
1943
+
1944
+ end
1945
+
1946
+ defs.define_constant('WEBrick::HTTPStatus::RequestTimeout') do |klass|
1947
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
1948
+
1949
+ end
1950
+
1951
+ defs.define_constant('WEBrick::HTTPStatus::RequestURITooLarge') do |klass|
1952
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
1953
+
1954
+ end
1955
+
1956
+ defs.define_constant('WEBrick::HTTPStatus::ResetContent') do |klass|
1957
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Success', RubyLint.registry))
1958
+
1959
+ end
1960
+
1961
+ defs.define_constant('WEBrick::HTTPStatus::SeeOther') do |klass|
1962
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Redirect', RubyLint.registry))
1963
+
1964
+ end
1965
+
1966
+ defs.define_constant('WEBrick::HTTPStatus::ServerError') do |klass|
1967
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Error', RubyLint.registry))
1968
+
1969
+ end
1970
+
1971
+ defs.define_constant('WEBrick::HTTPStatus::ServiceUnavailable') do |klass|
1972
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ServerError', RubyLint.registry))
1973
+
1974
+ end
1975
+
1976
+ defs.define_constant('WEBrick::HTTPStatus::Status') do |klass|
1977
+ klass.inherits(defs.constant_proxy('StandardError', RubyLint.registry))
1978
+
1979
+ klass.define_method('code')
1980
+
1981
+ klass.define_method('reason_phrase')
1982
+
1983
+ klass.define_instance_method('code')
1984
+
1985
+ klass.define_instance_method('initialize') do |method|
1986
+ method.define_rest_argument('args')
1987
+
1988
+ method.returns { |object| object.instance }
1989
+ end
1990
+
1991
+ klass.define_instance_method('reason_phrase')
1992
+
1993
+ klass.define_instance_method('to_i')
1994
+ end
1995
+
1996
+ defs.define_constant('WEBrick::HTTPStatus::StatusMessage') do |klass|
1997
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1998
+
1999
+ end
2000
+
2001
+ defs.define_constant('WEBrick::HTTPStatus::Success') do |klass|
2002
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Status', RubyLint.registry))
2003
+
2004
+ end
2005
+
2006
+ defs.define_constant('WEBrick::HTTPStatus::SwitchingProtocols') do |klass|
2007
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Info', RubyLint.registry))
2008
+
2009
+ end
2010
+
2011
+ defs.define_constant('WEBrick::HTTPStatus::TemporaryRedirect') do |klass|
2012
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Redirect', RubyLint.registry))
2013
+
2014
+ end
2015
+
2016
+ defs.define_constant('WEBrick::HTTPStatus::TooManyRequests') do |klass|
2017
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
2018
+
2019
+ end
2020
+
2021
+ defs.define_constant('WEBrick::HTTPStatus::Unauthorized') do |klass|
2022
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
2023
+
2024
+ end
2025
+
2026
+ defs.define_constant('WEBrick::HTTPStatus::UnprocessableEntity') do |klass|
2027
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
2028
+
2029
+ end
2030
+
2031
+ defs.define_constant('WEBrick::HTTPStatus::UnsupportedMediaType') do |klass|
2032
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
2033
+
2034
+ end
2035
+
2036
+ defs.define_constant('WEBrick::HTTPStatus::UpgradeRequired') do |klass|
2037
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::ClientError', RubyLint.registry))
2038
+
2039
+ end
2040
+
2041
+ defs.define_constant('WEBrick::HTTPStatus::UseProxy') do |klass|
2042
+ klass.inherits(defs.constant_proxy('WEBrick::HTTPStatus::Redirect', RubyLint.registry))
2043
+
2044
+ end
2045
+
2046
+ defs.define_constant('WEBrick::HTTPUtils') do |klass|
2047
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2048
+
2049
+ klass.define_method('_escape') do |method|
2050
+ method.define_argument('str')
2051
+ method.define_argument('regex')
2052
+ end
2053
+
2054
+ klass.define_method('_make_regex') do |method|
2055
+ method.define_argument('str')
2056
+ end
2057
+
2058
+ klass.define_method('_make_regex!') do |method|
2059
+ method.define_argument('str')
2060
+ end
2061
+
2062
+ klass.define_method('_unescape') do |method|
2063
+ method.define_argument('str')
2064
+ method.define_argument('regex')
2065
+ end
2066
+
2067
+ klass.define_method('dequote') do |method|
2068
+ method.define_argument('str')
2069
+ end
2070
+
2071
+ klass.define_method('escape') do |method|
2072
+ method.define_argument('str')
2073
+ end
2074
+
2075
+ klass.define_method('escape8bit') do |method|
2076
+ method.define_argument('str')
2077
+ end
2078
+
2079
+ klass.define_method('escape_form') do |method|
2080
+ method.define_argument('str')
2081
+ end
2082
+
2083
+ klass.define_method('escape_path') do |method|
2084
+ method.define_argument('str')
2085
+ end
2086
+
2087
+ klass.define_method('load_mime_types') do |method|
2088
+ method.define_argument('file')
2089
+ end
2090
+
2091
+ klass.define_method('mime_type') do |method|
2092
+ method.define_argument('filename')
2093
+ method.define_argument('mime_tab')
2094
+ end
2095
+
2096
+ klass.define_method('normalize_path') do |method|
2097
+ method.define_argument('path')
2098
+ end
2099
+
2100
+ klass.define_method('parse_form_data') do |method|
2101
+ method.define_argument('io')
2102
+ method.define_argument('boundary')
2103
+ end
2104
+
2105
+ klass.define_method('parse_header') do |method|
2106
+ method.define_argument('raw')
2107
+ end
2108
+
2109
+ klass.define_method('parse_query') do |method|
2110
+ method.define_argument('str')
2111
+ end
2112
+
2113
+ klass.define_method('parse_qvalues') do |method|
2114
+ method.define_argument('value')
2115
+ end
2116
+
2117
+ klass.define_method('parse_range_header') do |method|
2118
+ method.define_argument('ranges_specifier')
2119
+ end
2120
+
2121
+ klass.define_method('quote') do |method|
2122
+ method.define_argument('str')
2123
+ end
2124
+
2125
+ klass.define_method('split_header_value') do |method|
2126
+ method.define_argument('str')
2127
+ end
2128
+
2129
+ klass.define_method('unescape') do |method|
2130
+ method.define_argument('str')
2131
+ end
2132
+
2133
+ klass.define_method('unescape_form') do |method|
2134
+ method.define_argument('str')
2135
+ end
2136
+ end
2137
+
2138
+ defs.define_constant('WEBrick::HTTPUtils::DefaultMimeTypes') do |klass|
2139
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2140
+
2141
+ end
2142
+
2143
+ defs.define_constant('WEBrick::HTTPUtils::ESCAPED') do |klass|
2144
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2145
+
2146
+ end
2147
+
2148
+ defs.define_constant('WEBrick::HTTPUtils::FormData') do |klass|
2149
+ klass.inherits(defs.constant_proxy('String', RubyLint.registry))
2150
+
2151
+ klass.define_instance_method('<<') do |method|
2152
+ method.define_argument('str')
2153
+ end
2154
+
2155
+ klass.define_instance_method('[]') do |method|
2156
+ method.define_rest_argument('key')
2157
+ end
2158
+
2159
+ klass.define_instance_method('append_data') do |method|
2160
+ method.define_argument('data')
2161
+ end
2162
+
2163
+ klass.define_instance_method('each_data')
2164
+
2165
+ klass.define_instance_method('filename')
2166
+
2167
+ klass.define_instance_method('filename=')
2168
+
2169
+ klass.define_instance_method('initialize') do |method|
2170
+ method.define_rest_argument('args')
2171
+
2172
+ method.returns { |object| object.instance }
2173
+ end
2174
+
2175
+ klass.define_instance_method('list')
2176
+
2177
+ klass.define_instance_method('name')
2178
+
2179
+ klass.define_instance_method('name=')
2180
+
2181
+ klass.define_instance_method('next_data')
2182
+
2183
+ klass.define_instance_method('next_data=')
2184
+
2185
+ klass.define_instance_method('to_ary')
2186
+
2187
+ klass.define_instance_method('to_s')
2188
+ end
2189
+
2190
+ defs.define_constant('WEBrick::HTTPUtils::FormData::Complexifier') do |klass|
2191
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2192
+
2193
+ klass.define_instance_method('convert')
2194
+
2195
+ klass.define_instance_method('initialize') do |method|
2196
+ method.define_argument('value')
2197
+
2198
+ method.returns { |object| object.instance }
2199
+ end
2200
+ end
2201
+
2202
+ defs.define_constant('WEBrick::HTTPUtils::FormData::ControlCharacters') do |klass|
2203
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2204
+
2205
+ end
2206
+
2207
+ defs.define_constant('WEBrick::HTTPUtils::FormData::ControlPrintValue') do |klass|
2208
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2209
+
2210
+ end
2211
+
2212
+ defs.define_constant('WEBrick::HTTPUtils::FormData::EmptyHeader') do |klass|
2213
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2214
+
2215
+ end
2216
+
2217
+ defs.define_constant('WEBrick::HTTPUtils::FormData::EmptyRawHeader') do |klass|
2218
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2219
+
2220
+ end
2221
+
2222
+ defs.define_constant('WEBrick::HTTPUtils::FormData::Rationalizer') do |klass|
2223
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2224
+
2225
+ klass.define_instance_method('convert')
2226
+
2227
+ klass.define_instance_method('initialize') do |method|
2228
+ method.define_argument('value')
2229
+
2230
+ method.returns { |object| object.instance }
2231
+ end
2232
+ end
2233
+
2234
+ defs.define_constant('WEBrick::HTTPUtils::NONASCII') do |klass|
2235
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2236
+
2237
+ end
2238
+
2239
+ defs.define_constant('WEBrick::HTTPUtils::UNESCAPED') do |klass|
2240
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2241
+
2242
+ end
2243
+
2244
+ defs.define_constant('WEBrick::HTTPUtils::UNESCAPED_FORM') do |klass|
2245
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2246
+
2247
+ end
2248
+
2249
+ defs.define_constant('WEBrick::HTTPUtils::UNESCAPED_PCHAR') do |klass|
2250
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2251
+
2252
+ end
2253
+
2254
+ defs.define_constant('WEBrick::HTTPVersion') do |klass|
2255
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2256
+ klass.inherits(defs.constant_proxy('Comparable', RubyLint.registry))
2257
+
2258
+ klass.define_method('convert') do |method|
2259
+ method.define_argument('version')
2260
+ end
2261
+
2262
+ klass.define_instance_method('<=>') do |method|
2263
+ method.define_argument('other')
2264
+ end
2265
+
2266
+ klass.define_instance_method('initialize') do |method|
2267
+ method.define_argument('version')
2268
+
2269
+ method.returns { |object| object.instance }
2270
+ end
2271
+
2272
+ klass.define_instance_method('major')
2273
+
2274
+ klass.define_instance_method('major=')
2275
+
2276
+ klass.define_instance_method('minor')
2277
+
2278
+ klass.define_instance_method('minor=')
2279
+
2280
+ klass.define_instance_method('to_s')
2281
+ end
2282
+
2283
+ defs.define_constant('WEBrick::LF') do |klass|
2284
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2285
+
2286
+ end
2287
+
2288
+ defs.define_constant('WEBrick::Log') do |klass|
2289
+ klass.inherits(defs.constant_proxy('WEBrick::BasicLog', RubyLint.registry))
2290
+
2291
+ klass.define_instance_method('initialize') do |method|
2292
+ method.define_optional_argument('log_file')
2293
+ method.define_optional_argument('level')
2294
+
2295
+ method.returns { |object| object.instance }
2296
+ end
2297
+
2298
+ klass.define_instance_method('log') do |method|
2299
+ method.define_argument('level')
2300
+ method.define_argument('data')
2301
+ end
2302
+
2303
+ klass.define_instance_method('time_format')
2304
+
2305
+ klass.define_instance_method('time_format=')
2306
+ end
2307
+
2308
+ defs.define_constant('WEBrick::Log::DEBUG') do |klass|
2309
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2310
+
2311
+ end
2312
+
2313
+ defs.define_constant('WEBrick::Log::ERROR') do |klass|
2314
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2315
+
2316
+ end
2317
+
2318
+ defs.define_constant('WEBrick::Log::FATAL') do |klass|
2319
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2320
+
2321
+ end
2322
+
2323
+ defs.define_constant('WEBrick::Log::INFO') do |klass|
2324
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2325
+
2326
+ end
2327
+
2328
+ defs.define_constant('WEBrick::Log::WARN') do |klass|
2329
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2330
+
2331
+ end
2332
+
2333
+ defs.define_constant('WEBrick::ServerError') do |klass|
2334
+ klass.inherits(defs.constant_proxy('StandardError', RubyLint.registry))
2335
+
2336
+ end
2337
+
2338
+ defs.define_constant('WEBrick::SimpleServer') do |klass|
2339
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2340
+
2341
+ klass.define_method('start')
2342
+ end
2343
+
2344
+ defs.define_constant('WEBrick::Utils') do |klass|
2345
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2346
+
2347
+ klass.define_method('create_listeners') do |method|
2348
+ method.define_argument('address')
2349
+ method.define_argument('port')
2350
+ method.define_optional_argument('logger')
2351
+ end
2352
+
2353
+ klass.define_method('getservername')
2354
+
2355
+ klass.define_method('random_string') do |method|
2356
+ method.define_argument('len')
2357
+ end
2358
+
2359
+ klass.define_method('set_close_on_exec') do |method|
2360
+ method.define_argument('io')
2361
+ end
2362
+
2363
+ klass.define_method('set_non_blocking') do |method|
2364
+ method.define_argument('io')
2365
+ end
2366
+
2367
+ klass.define_method('su') do |method|
2368
+ method.define_argument('user')
2369
+ end
2370
+
2371
+ klass.define_method('timeout') do |method|
2372
+ method.define_argument('seconds')
2373
+ method.define_optional_argument('exception')
2374
+ end
2375
+ end
2376
+
2377
+ defs.define_constant('WEBrick::Utils::RAND_CHARS') do |klass|
2378
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2379
+
2380
+ end
2381
+
2382
+ defs.define_constant('WEBrick::Utils::TimeoutHandler') do |klass|
2383
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2384
+ klass.inherits(defs.constant_proxy('Singleton', RubyLint.registry))
2385
+
2386
+ klass.define_method('cancel') do |method|
2387
+ method.define_argument('id')
2388
+ end
2389
+
2390
+ klass.define_method('instance')
2391
+
2392
+ klass.define_method('register') do |method|
2393
+ method.define_argument('seconds')
2394
+ method.define_argument('exception')
2395
+ end
2396
+
2397
+ klass.define_instance_method('cancel') do |method|
2398
+ method.define_argument('thread')
2399
+ method.define_argument('id')
2400
+ end
2401
+
2402
+ klass.define_instance_method('initialize')
2403
+
2404
+ klass.define_instance_method('interrupt') do |method|
2405
+ method.define_argument('thread')
2406
+ method.define_argument('id')
2407
+ method.define_argument('exception')
2408
+ end
2409
+
2410
+ klass.define_instance_method('register') do |method|
2411
+ method.define_argument('thread')
2412
+ method.define_argument('time')
2413
+ method.define_argument('exception')
2414
+ end
2415
+ end
2416
+
2417
+ defs.define_constant('WEBrick::Utils::TimeoutHandler::SingletonClassMethods') do |klass|
2418
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2419
+
2420
+ klass.define_instance_method('_load') do |method|
2421
+ method.define_argument('str')
2422
+ end
2423
+
2424
+ klass.define_instance_method('clone')
2425
+ end
2426
+
2427
+ defs.define_constant('WEBrick::Utils::TimeoutHandler::TimeoutMutex') do |klass|
2428
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2429
+
2430
+ end
2431
+
2432
+ defs.define_constant('WEBrick::VERSION') do |klass|
2433
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2434
+
2435
+ end
2436
+ end