laser 0.7.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (319) hide show
  1. data/.document +5 -0
  2. data/.rspec +1 -0
  3. data/Gemfile +14 -0
  4. data/LICENSE +661 -0
  5. data/README.md +158 -0
  6. data/Rakefile +104 -0
  7. data/VERSION +1 -0
  8. data/bin/laser +7 -0
  9. data/design_docs/goals.md +57 -0
  10. data/design_docs/object_regex.md +426 -0
  11. data/design_docs/type_annotations.md +80 -0
  12. data/ext/laser/BasicBlock.cpp +572 -0
  13. data/ext/laser/BasicBlock.h +118 -0
  14. data/ext/laser/extconf.rb +3 -0
  15. data/features/laser.feature +25 -0
  16. data/features/step_definitions/laser_steps.rb +39 -0
  17. data/features/support/env.rb +14 -0
  18. data/features/support/testdata/1_input +1 -0
  19. data/features/support/testdata/1_output +1 -0
  20. data/features/support/testdata/2_input +4 -0
  21. data/features/support/testdata/2_output +4 -0
  22. data/features/support/testdata/3_input +8 -0
  23. data/features/support/testdata/3_output +11 -0
  24. data/features/support/testdata/4_input +5 -0
  25. data/features/support/testdata/4_output +5 -0
  26. data/features/support/testdata/5_input +13 -0
  27. data/laser.gemspec +382 -0
  28. data/lib/laser.rb +98 -0
  29. data/lib/laser/analysis/annotations.rb +95 -0
  30. data/lib/laser/analysis/annotations/annotation_config.yaml +3 -0
  31. data/lib/laser/analysis/annotations/comment_attachment_annotation.rb +66 -0
  32. data/lib/laser/analysis/annotations/node_pointers_annotation.rb +36 -0
  33. data/lib/laser/analysis/annotations/runtime_annotation.rb +55 -0
  34. data/lib/laser/analysis/argument_expansion.rb +132 -0
  35. data/lib/laser/analysis/arity.rb +34 -0
  36. data/lib/laser/analysis/bindings.rb +144 -0
  37. data/lib/laser/analysis/bootstrap/bootstrap.rb +298 -0
  38. data/lib/laser/analysis/bootstrap/laser_class.rb +106 -0
  39. data/lib/laser/analysis/bootstrap/laser_method.rb +255 -0
  40. data/lib/laser/analysis/bootstrap/laser_module.rb +403 -0
  41. data/lib/laser/analysis/bootstrap/laser_module_copy.rb +74 -0
  42. data/lib/laser/analysis/bootstrap/laser_object.rb +69 -0
  43. data/lib/laser/analysis/bootstrap/laser_proc.rb +150 -0
  44. data/lib/laser/analysis/bootstrap/laser_singleton_class.rb +44 -0
  45. data/lib/laser/analysis/comments.rb +35 -0
  46. data/lib/laser/analysis/control_flow.rb +28 -0
  47. data/lib/laser/analysis/control_flow/alias_analysis.rb +31 -0
  48. data/lib/laser/analysis/control_flow/basic_block.rb +105 -0
  49. data/lib/laser/analysis/control_flow/cfg_builder.rb +2505 -0
  50. data/lib/laser/analysis/control_flow/cfg_instruction.rb +190 -0
  51. data/lib/laser/analysis/control_flow/constant_propagation.rb +742 -0
  52. data/lib/laser/analysis/control_flow/control_flow_graph.rb +370 -0
  53. data/lib/laser/analysis/control_flow/lifetime_analysis.rb +91 -0
  54. data/lib/laser/analysis/control_flow/method_call_search.rb +26 -0
  55. data/lib/laser/analysis/control_flow/raise_properties.rb +25 -0
  56. data/lib/laser/analysis/control_flow/simulation.rb +385 -0
  57. data/lib/laser/analysis/control_flow/static_single_assignment.rb +185 -0
  58. data/lib/laser/analysis/control_flow/unreachability_analysis.rb +57 -0
  59. data/lib/laser/analysis/control_flow/unused_variables.rb +91 -0
  60. data/lib/laser/analysis/control_flow/yield_properties.rb +103 -0
  61. data/lib/laser/analysis/errors.rb +131 -0
  62. data/lib/laser/analysis/laser_utils.rb +18 -0
  63. data/lib/laser/analysis/lexical_analysis.rb +172 -0
  64. data/lib/laser/analysis/method_call.rb +68 -0
  65. data/lib/laser/analysis/protocol_registry.rb +30 -0
  66. data/lib/laser/analysis/scope.rb +118 -0
  67. data/lib/laser/analysis/sexp.rb +159 -0
  68. data/lib/laser/analysis/sexp_analysis.rb +40 -0
  69. data/lib/laser/analysis/sexp_extensions/constant_extraction.rb +115 -0
  70. data/lib/laser/analysis/sexp_extensions/source_location.rb +164 -0
  71. data/lib/laser/analysis/sexp_extensions/type_inference.rb +47 -0
  72. data/lib/laser/analysis/signature.rb +76 -0
  73. data/lib/laser/analysis/special_methods/send.rb +67 -0
  74. data/lib/laser/analysis/unused_methods.rb +21 -0
  75. data/lib/laser/analysis/visitor.rb +141 -0
  76. data/lib/laser/annotation_parser/annotations.treetop +126 -0
  77. data/lib/laser/annotation_parser/annotations_parser.rb +748 -0
  78. data/lib/laser/annotation_parser/class_annotations.treetop +82 -0
  79. data/lib/laser/annotation_parser/class_annotations_parser.rb +654 -0
  80. data/lib/laser/annotation_parser/overload.treetop +24 -0
  81. data/lib/laser/annotation_parser/overload_parser.rb +167 -0
  82. data/lib/laser/annotation_parser/parsers.rb +6 -0
  83. data/lib/laser/annotation_parser/structural.treetop +37 -0
  84. data/lib/laser/annotation_parser/structural_parser.rb +406 -0
  85. data/lib/laser/annotation_parser/useful_parsers.treetop +47 -0
  86. data/lib/laser/annotation_parser/useful_parsers_parser.rb +674 -0
  87. data/lib/laser/rake/task.rb +46 -0
  88. data/lib/laser/runner.rb +189 -0
  89. data/lib/laser/scanner.rb +169 -0
  90. data/lib/laser/standard_library/_thread.rb +110 -0
  91. data/lib/laser/standard_library/abbrev.rb +103 -0
  92. data/lib/laser/standard_library/array.rb +418 -0
  93. data/lib/laser/standard_library/base64.rb +91 -0
  94. data/lib/laser/standard_library/basic_object.rb +55 -0
  95. data/lib/laser/standard_library/benchmark.rb +556 -0
  96. data/lib/laser/standard_library/bignum.rb +185 -0
  97. data/lib/laser/standard_library/cgi.rb +275 -0
  98. data/lib/laser/standard_library/cgi/cookie.rb +147 -0
  99. data/lib/laser/standard_library/cgi/core.rb +791 -0
  100. data/lib/laser/standard_library/cgi/html.rb +1021 -0
  101. data/lib/laser/standard_library/cgi/session.rb +537 -0
  102. data/lib/laser/standard_library/cgi/session/pstore.rb +111 -0
  103. data/lib/laser/standard_library/cgi/util.rb +188 -0
  104. data/lib/laser/standard_library/class_definitions.rb +333 -0
  105. data/lib/laser/standard_library/comparable.rb +125 -0
  106. data/lib/laser/standard_library/complex.rb +162 -0
  107. data/lib/laser/standard_library/enumerable.rb +178 -0
  108. data/lib/laser/standard_library/exceptions.rb +135 -0
  109. data/lib/laser/standard_library/fixnum.rb +188 -0
  110. data/lib/laser/standard_library/float.rb +180 -0
  111. data/lib/laser/standard_library/hash.rb +237 -0
  112. data/lib/laser/standard_library/integer.rb +123 -0
  113. data/lib/laser/standard_library/laser_magic.rb +7 -0
  114. data/lib/laser/standard_library/nil_false_true.rb +113 -0
  115. data/lib/laser/standard_library/numbers.rb +192 -0
  116. data/lib/laser/standard_library/proc.rb +31 -0
  117. data/lib/laser/standard_library/set.rb +1348 -0
  118. data/lib/laser/standard_library/string.rb +666 -0
  119. data/lib/laser/standard_library/stringio.rb +2 -0
  120. data/lib/laser/standard_library/symbol.rb +125 -0
  121. data/lib/laser/standard_library/tsort.rb +242 -0
  122. data/lib/laser/support/acts_as_struct.rb +66 -0
  123. data/lib/laser/support/frequency.rb +55 -0
  124. data/lib/laser/support/inheritable_attributes.rb +145 -0
  125. data/lib/laser/support/module_extensions.rb +94 -0
  126. data/lib/laser/support/placeholder_object.rb +13 -0
  127. data/lib/laser/third_party/rgl/adjacency.rb +221 -0
  128. data/lib/laser/third_party/rgl/base.rb +228 -0
  129. data/lib/laser/third_party/rgl/bidirectional.rb +39 -0
  130. data/lib/laser/third_party/rgl/condensation.rb +47 -0
  131. data/lib/laser/third_party/rgl/connected_components.rb +138 -0
  132. data/lib/laser/third_party/rgl/control_flow.rb +170 -0
  133. data/lib/laser/third_party/rgl/depth_first_spanning_tree.rb +37 -0
  134. data/lib/laser/third_party/rgl/dominators.rb +124 -0
  135. data/lib/laser/third_party/rgl/dot.rb +93 -0
  136. data/lib/laser/third_party/rgl/graphxml.rb +51 -0
  137. data/lib/laser/third_party/rgl/implicit.rb +174 -0
  138. data/lib/laser/third_party/rgl/mutable.rb +117 -0
  139. data/lib/laser/third_party/rgl/rdot.rb +445 -0
  140. data/lib/laser/third_party/rgl/topsort.rb +72 -0
  141. data/lib/laser/third_party/rgl/transitivity.rb +180 -0
  142. data/lib/laser/third_party/rgl/traversal.rb +348 -0
  143. data/lib/laser/types/types.rb +433 -0
  144. data/lib/laser/version.rb +14 -0
  145. data/lib/laser/warning.rb +149 -0
  146. data/lib/laser/warning_sets/default.yml +13 -0
  147. data/lib/laser/warnings/assignment_in_condition.rb +20 -0
  148. data/lib/laser/warnings/comment_spacing.rb +31 -0
  149. data/lib/laser/warnings/extra_blank_lines.rb +30 -0
  150. data/lib/laser/warnings/extra_whitespace.rb +16 -0
  151. data/lib/laser/warnings/hash_symbol_18_warning.rb +63 -0
  152. data/lib/laser/warnings/hash_symbol_19_warning.rb +29 -0
  153. data/lib/laser/warnings/line_length.rb +115 -0
  154. data/lib/laser/warnings/misaligned_unindentation.rb +17 -0
  155. data/lib/laser/warnings/operator_spacing.rb +68 -0
  156. data/lib/laser/warnings/parens_on_declaration.rb +30 -0
  157. data/lib/laser/warnings/rescue_exception.rb +42 -0
  158. data/lib/laser/warnings/semicolon.rb +25 -0
  159. data/lib/laser/warnings/sexp_errors.rb +24 -0
  160. data/lib/laser/warnings/uncalled_method_warning.rb +7 -0
  161. data/lib/laser/warnings/useless_double_quotes.rb +38 -0
  162. data/spec/analysis_specs/annotations_spec.rb +47 -0
  163. data/spec/analysis_specs/annotations_specs/comment_attachment_spec.rb +68 -0
  164. data/spec/analysis_specs/annotations_specs/node_pointers_annotation_spec.rb +90 -0
  165. data/spec/analysis_specs/annotations_specs/runtime_annotation_spec.rb +135 -0
  166. data/spec/analysis_specs/annotations_specs/spec_helper.rb +33 -0
  167. data/spec/analysis_specs/argument_expansion_spec.rb +113 -0
  168. data/spec/analysis_specs/bindings_spec.rb +36 -0
  169. data/spec/analysis_specs/comment_spec.rb +93 -0
  170. data/spec/analysis_specs/control_flow_specs/cfg_instruction_spec.rb +111 -0
  171. data/spec/analysis_specs/control_flow_specs/constant_propagation_spec.rb +560 -0
  172. data/spec/analysis_specs/control_flow_specs/control_flow_graph_spec.rb +5 -0
  173. data/spec/analysis_specs/control_flow_specs/raise_properties_spec.rb +310 -0
  174. data/spec/analysis_specs/control_flow_specs/raise_type_inference_spec.rb +301 -0
  175. data/spec/analysis_specs/control_flow_specs/return_type_inference_spec.rb +431 -0
  176. data/spec/analysis_specs/control_flow_specs/simulation_spec.rb +158 -0
  177. data/spec/analysis_specs/control_flow_specs/spec_helper.rb +110 -0
  178. data/spec/analysis_specs/control_flow_specs/tuple_misuse_inference_spec.rb +125 -0
  179. data/spec/analysis_specs/control_flow_specs/unreachability_analysis_spec.rb +76 -0
  180. data/spec/analysis_specs/control_flow_specs/unused_variable_spec.rb +99 -0
  181. data/spec/analysis_specs/control_flow_specs/yield_properties_spec.rb +372 -0
  182. data/spec/analysis_specs/error_spec.rb +30 -0
  183. data/spec/analysis_specs/laser_class_spec.rb +322 -0
  184. data/spec/analysis_specs/lexical_analysis_spec.rb +184 -0
  185. data/spec/analysis_specs/protocol_registry_spec.rb +63 -0
  186. data/spec/analysis_specs/scope_annotation_spec.rb +1013 -0
  187. data/spec/analysis_specs/scope_spec.rb +126 -0
  188. data/spec/analysis_specs/sexp_analysis_spec.rb +30 -0
  189. data/spec/analysis_specs/sexp_extension_specs/constant_extraction_spec.rb +309 -0
  190. data/spec/analysis_specs/sexp_extension_specs/source_location_spec.rb +231 -0
  191. data/spec/analysis_specs/sexp_extension_specs/spec_helper.rb +1 -0
  192. data/spec/analysis_specs/sexp_extension_specs/type_inference_spec.rb +252 -0
  193. data/spec/analysis_specs/sexp_spec.rb +167 -0
  194. data/spec/analysis_specs/spec_helper.rb +27 -0
  195. data/spec/analysis_specs/unused_methods_spec.rb +65 -0
  196. data/spec/analysis_specs/visitor_spec.rb +64 -0
  197. data/spec/annotation_parser_specs/annotations_parser_spec.rb +89 -0
  198. data/spec/annotation_parser_specs/class_annotation_parser_spec.rb +120 -0
  199. data/spec/annotation_parser_specs/overload_parser_spec.rb +39 -0
  200. data/spec/annotation_parser_specs/parsers_spec.rb +14 -0
  201. data/spec/annotation_parser_specs/spec_helper.rb +1 -0
  202. data/spec/annotation_parser_specs/structural_parser_spec.rb +67 -0
  203. data/spec/laser_spec.rb +14 -0
  204. data/spec/rake_specs/spec_helper.rb +1 -0
  205. data/spec/rake_specs/task_spec.rb +67 -0
  206. data/spec/runner_spec.rb +207 -0
  207. data/spec/scanner_spec.rb +75 -0
  208. data/spec/spec_helper.rb +121 -0
  209. data/spec/standard_library/exceptions_spec.rb +19 -0
  210. data/spec/standard_library/globals_spec.rb +14 -0
  211. data/spec/standard_library/set_spec.rb +31 -0
  212. data/spec/standard_library/spec_helper.rb +1 -0
  213. data/spec/standard_library/standard_library_spec.rb +302 -0
  214. data/spec/support_specs/acts_as_struct_spec.rb +94 -0
  215. data/spec/support_specs/frequency_spec.rb +23 -0
  216. data/spec/support_specs/module_extensions_spec.rb +117 -0
  217. data/spec/support_specs/spec_helper.rb +1 -0
  218. data/spec/type_specs/spec_helper.rb +1 -0
  219. data/spec/type_specs/types_spec.rb +133 -0
  220. data/spec/warning_spec.rb +95 -0
  221. data/spec/warning_specs/assignment_in_condition_spec.rb +68 -0
  222. data/spec/warning_specs/comment_spacing_spec.rb +65 -0
  223. data/spec/warning_specs/extra_blank_lines_spec.rb +70 -0
  224. data/spec/warning_specs/extra_whitespace_spec.rb +33 -0
  225. data/spec/warning_specs/hash_symbol_18_warning_spec.rb +89 -0
  226. data/spec/warning_specs/hash_symbol_19_warning_spec.rb +63 -0
  227. data/spec/warning_specs/line_length_spec.rb +173 -0
  228. data/spec/warning_specs/misaligned_unindentation_spec.rb +35 -0
  229. data/spec/warning_specs/operator_spacing_spec.rb +104 -0
  230. data/spec/warning_specs/parens_on_declaration_spec.rb +57 -0
  231. data/spec/warning_specs/rescue_exception_spec.rb +105 -0
  232. data/spec/warning_specs/semicolon_spec.rb +58 -0
  233. data/spec/warning_specs/spec_helper.rb +1 -0
  234. data/spec/warning_specs/useless_double_quotes_spec.rb +74 -0
  235. data/status_reports/2010/12/2010-12-14.md +163 -0
  236. data/status_reports/2010/12/2010-12-23.md +298 -0
  237. data/status_reports/2010/12/2010-12-24.md +6 -0
  238. data/test/third_party_tests/rgl_tests/TestComponents.rb +65 -0
  239. data/test/third_party_tests/rgl_tests/TestCycles.rb +61 -0
  240. data/test/third_party_tests/rgl_tests/TestDirectedGraph.rb +125 -0
  241. data/test/third_party_tests/rgl_tests/TestDot.rb +18 -0
  242. data/test/third_party_tests/rgl_tests/TestEdge.rb +34 -0
  243. data/test/third_party_tests/rgl_tests/TestGraph.rb +71 -0
  244. data/test/third_party_tests/rgl_tests/TestGraphXML.rb +57 -0
  245. data/test/third_party_tests/rgl_tests/TestImplicit.rb +52 -0
  246. data/test/third_party_tests/rgl_tests/TestRdot.rb +863 -0
  247. data/test/third_party_tests/rgl_tests/TestTransitivity.rb +129 -0
  248. data/test/third_party_tests/rgl_tests/TestTraversal.rb +220 -0
  249. data/test/third_party_tests/rgl_tests/TestUnDirectedGraph.rb +102 -0
  250. data/test/third_party_tests/rgl_tests/examples/north/Graph.log +128 -0
  251. data/test/third_party_tests/rgl_tests/examples/north/g.10.0.graphml +28 -0
  252. data/test/third_party_tests/rgl_tests/examples/north/g.10.1.graphml +28 -0
  253. data/test/third_party_tests/rgl_tests/examples/north/g.10.11.graphml +31 -0
  254. data/test/third_party_tests/rgl_tests/examples/north/g.10.12.graphml +27 -0
  255. data/test/third_party_tests/rgl_tests/examples/north/g.10.13.graphml +27 -0
  256. data/test/third_party_tests/rgl_tests/examples/north/g.10.14.graphml +27 -0
  257. data/test/third_party_tests/rgl_tests/examples/north/g.10.15.graphml +26 -0
  258. data/test/third_party_tests/rgl_tests/examples/north/g.10.16.graphml +26 -0
  259. data/test/third_party_tests/rgl_tests/examples/north/g.10.17.graphml +26 -0
  260. data/test/third_party_tests/rgl_tests/examples/north/g.10.19.graphml +37 -0
  261. data/test/third_party_tests/rgl_tests/examples/north/g.10.2.graphml +28 -0
  262. data/test/third_party_tests/rgl_tests/examples/north/g.10.20.graphml +38 -0
  263. data/test/third_party_tests/rgl_tests/examples/north/g.10.22.graphml +43 -0
  264. data/test/third_party_tests/rgl_tests/examples/north/g.10.24.graphml +30 -0
  265. data/test/third_party_tests/rgl_tests/examples/north/g.10.25.graphml +45 -0
  266. data/test/third_party_tests/rgl_tests/examples/north/g.10.27.graphml +38 -0
  267. data/test/third_party_tests/rgl_tests/examples/north/g.10.28.graphml +30 -0
  268. data/test/third_party_tests/rgl_tests/examples/north/g.10.29.graphml +38 -0
  269. data/test/third_party_tests/rgl_tests/examples/north/g.10.3.graphml +26 -0
  270. data/test/third_party_tests/rgl_tests/examples/north/g.10.30.graphml +34 -0
  271. data/test/third_party_tests/rgl_tests/examples/north/g.10.31.graphml +42 -0
  272. data/test/third_party_tests/rgl_tests/examples/north/g.10.34.graphml +42 -0
  273. data/test/third_party_tests/rgl_tests/examples/north/g.10.37.graphml +28 -0
  274. data/test/third_party_tests/rgl_tests/examples/north/g.10.38.graphml +38 -0
  275. data/test/third_party_tests/rgl_tests/examples/north/g.10.39.graphml +36 -0
  276. data/test/third_party_tests/rgl_tests/examples/north/g.10.4.graphml +26 -0
  277. data/test/third_party_tests/rgl_tests/examples/north/g.10.40.graphml +37 -0
  278. data/test/third_party_tests/rgl_tests/examples/north/g.10.41.graphml +37 -0
  279. data/test/third_party_tests/rgl_tests/examples/north/g.10.42.graphml +26 -0
  280. data/test/third_party_tests/rgl_tests/examples/north/g.10.45.graphml +28 -0
  281. data/test/third_party_tests/rgl_tests/examples/north/g.10.46.graphml +32 -0
  282. data/test/third_party_tests/rgl_tests/examples/north/g.10.5.graphml +31 -0
  283. data/test/third_party_tests/rgl_tests/examples/north/g.10.50.graphml +30 -0
  284. data/test/third_party_tests/rgl_tests/examples/north/g.10.56.graphml +29 -0
  285. data/test/third_party_tests/rgl_tests/examples/north/g.10.57.graphml +32 -0
  286. data/test/third_party_tests/rgl_tests/examples/north/g.10.58.graphml +32 -0
  287. data/test/third_party_tests/rgl_tests/examples/north/g.10.6.graphml +26 -0
  288. data/test/third_party_tests/rgl_tests/examples/north/g.10.60.graphml +32 -0
  289. data/test/third_party_tests/rgl_tests/examples/north/g.10.61.graphml +34 -0
  290. data/test/third_party_tests/rgl_tests/examples/north/g.10.62.graphml +34 -0
  291. data/test/third_party_tests/rgl_tests/examples/north/g.10.68.graphml +30 -0
  292. data/test/third_party_tests/rgl_tests/examples/north/g.10.69.graphml +32 -0
  293. data/test/third_party_tests/rgl_tests/examples/north/g.10.7.graphml +29 -0
  294. data/test/third_party_tests/rgl_tests/examples/north/g.10.70.graphml +26 -0
  295. data/test/third_party_tests/rgl_tests/examples/north/g.10.71.graphml +27 -0
  296. data/test/third_party_tests/rgl_tests/examples/north/g.10.72.graphml +28 -0
  297. data/test/third_party_tests/rgl_tests/examples/north/g.10.74.graphml +29 -0
  298. data/test/third_party_tests/rgl_tests/examples/north/g.10.75.graphml +29 -0
  299. data/test/third_party_tests/rgl_tests/examples/north/g.10.78.graphml +27 -0
  300. data/test/third_party_tests/rgl_tests/examples/north/g.10.79.graphml +34 -0
  301. data/test/third_party_tests/rgl_tests/examples/north/g.10.8.graphml +29 -0
  302. data/test/third_party_tests/rgl_tests/examples/north/g.10.80.graphml +34 -0
  303. data/test/third_party_tests/rgl_tests/examples/north/g.10.82.graphml +35 -0
  304. data/test/third_party_tests/rgl_tests/examples/north/g.10.83.graphml +32 -0
  305. data/test/third_party_tests/rgl_tests/examples/north/g.10.85.graphml +34 -0
  306. data/test/third_party_tests/rgl_tests/examples/north/g.10.86.graphml +34 -0
  307. data/test/third_party_tests/rgl_tests/examples/north/g.10.88.graphml +37 -0
  308. data/test/third_party_tests/rgl_tests/examples/north/g.10.89.graphml +29 -0
  309. data/test/third_party_tests/rgl_tests/examples/north/g.10.9.graphml +26 -0
  310. data/test/third_party_tests/rgl_tests/examples/north/g.10.90.graphml +32 -0
  311. data/test/third_party_tests/rgl_tests/examples/north/g.10.91.graphml +31 -0
  312. data/test/third_party_tests/rgl_tests/examples/north/g.10.92.graphml +26 -0
  313. data/test/third_party_tests/rgl_tests/examples/north/g.10.93.graphml +32 -0
  314. data/test/third_party_tests/rgl_tests/examples/north/g.10.94.graphml +34 -0
  315. data/test/third_party_tests/rgl_tests/examples/north/g.12.8.graphml +40 -0
  316. data/test/third_party_tests/rgl_tests/examples/north/g.14.9.graphml +36 -0
  317. data/test/third_party_tests/rgl_tests/test_helper.rb +7 -0
  318. data/test/third_party_tests/test_inheritable_attributes.rb +187 -0
  319. metadata +470 -0
@@ -0,0 +1,7 @@
1
+ # Some helper utilities used in test classes
2
+
3
+ class Array
4
+ # We need Array#add in test classes to be able to use Arrays as adjacency lists
5
+ # This is needed to have ordered lists as neigbors in our test graphs.
6
+ alias add push
7
+ end
@@ -0,0 +1,187 @@
1
+ require 'test/unit'
2
+ require 'laser/support/inheritable_attributes'
3
+
4
+ class ClassInheritableAttributesTest < Test::Unit::TestCase
5
+ def setup
6
+ @klass = Class.new { extend Laser::InheritedAttributes }
7
+ end
8
+
9
+ def test_reader_declaration
10
+ assert_nothing_raised do
11
+ @klass.class_inheritable_reader :a
12
+ assert_respond_to @klass, :a
13
+ assert_respond_to @klass.new, :a
14
+ end
15
+ end
16
+
17
+ def test_writer_declaration
18
+ assert_nothing_raised do
19
+ @klass.class_inheritable_writer :a
20
+ assert_respond_to @klass, :a=
21
+ assert_respond_to @klass.new, :a=
22
+ end
23
+ end
24
+
25
+ def test_accessor_declaration
26
+ assert_nothing_raised do
27
+ @klass.class_inheritable_accessor :a
28
+ assert_respond_to @klass, :a
29
+ assert_respond_to @klass.new, :a
30
+ assert_respond_to @klass, :a=
31
+ assert_respond_to @klass.new, :a=
32
+ end
33
+ end
34
+
35
+ def test_array_declaration
36
+ assert_nothing_raised do
37
+ @klass.class_inheritable_array :a
38
+ assert_respond_to @klass, :a
39
+ assert_respond_to @klass.new, :a
40
+ assert_respond_to @klass, :a=
41
+ assert_respond_to @klass.new, :a=
42
+ end
43
+ end
44
+
45
+ def test_hash_declaration
46
+ assert_nothing_raised do
47
+ @klass.class_inheritable_hash :a
48
+ assert_respond_to @klass, :a
49
+ assert_respond_to @klass.new, :a
50
+ assert_respond_to @klass, :a=
51
+ assert_respond_to @klass.new, :a=
52
+ end
53
+ end
54
+
55
+ def test_reader
56
+ @klass.class_inheritable_reader :a
57
+ assert_nil @klass.a
58
+ assert_nil @klass.new.a
59
+
60
+ @klass.send(:write_inheritable_attribute, :a, 'a')
61
+
62
+ assert_equal 'a', @klass.a
63
+ assert_equal 'a', @klass.new.a
64
+ assert_equal @klass.a, @klass.new.a
65
+ assert_equal @klass.a.object_id, @klass.new.a.object_id
66
+ end
67
+
68
+ def test_writer
69
+ @klass.class_inheritable_reader :a
70
+ @klass.class_inheritable_writer :a
71
+
72
+ assert_nil @klass.a
73
+ assert_nil @klass.new.a
74
+
75
+ @klass.a = 'a'
76
+ assert_equal 'a', @klass.a
77
+ @klass.new.a = 'A'
78
+ assert_equal 'A', @klass.a
79
+ end
80
+
81
+ def test_array
82
+ @klass.class_inheritable_array :a
83
+
84
+ assert_nil @klass.a
85
+ assert_nil @klass.new.a
86
+
87
+ @klass.a = %w(a b c)
88
+ assert_equal %w(a b c), @klass.a
89
+ assert_equal %w(a b c), @klass.new.a
90
+
91
+ @klass.new.a = %w(A B C)
92
+ assert_equal %w(a b c A B C), @klass.a
93
+ assert_equal %w(a b c A B C), @klass.new.a
94
+ end
95
+
96
+ def test_hash
97
+ @klass.class_inheritable_hash :a
98
+
99
+ assert_nil @klass.a
100
+ assert_nil @klass.new.a
101
+
102
+ @klass.a = { a: 'a' }
103
+ assert_equal({ a: 'a' }, @klass.a)
104
+ assert_equal({ a: 'a' }, @klass.new.a)
105
+
106
+ @klass.new.a = { b: 'b' }
107
+ assert_equal({ a: 'a', b: 'b' }, @klass.a)
108
+ assert_equal({ a: 'a', b: 'b' }, @klass.new.a)
109
+ end
110
+
111
+ def test_inheritance
112
+ @klass.class_inheritable_accessor :a
113
+ @klass.a = 'a'
114
+
115
+ @sub = eval("class FlogMe < @klass; end; FlogMe")
116
+
117
+ @klass.class_inheritable_accessor :b
118
+
119
+ assert_respond_to @sub, :a
120
+ assert_respond_to @sub, :b
121
+ assert_equal @klass.a, @sub.a
122
+ assert_equal @klass.b, @sub.b
123
+ assert_equal 'a', @sub.a
124
+ assert_nil @sub.b
125
+
126
+ @klass.b = 'b'
127
+ assert_not_equal @klass.b, @sub.b
128
+ assert_equal 'b', @klass.b
129
+ assert_nil @sub.b
130
+
131
+ @sub.a = 'A'
132
+ assert_not_equal @klass.a, @sub.a
133
+ assert_equal 'a', @klass.a
134
+ assert_equal 'A', @sub.a
135
+
136
+ @sub.b = 'B'
137
+ assert_not_equal @klass.b, @sub.b
138
+ assert_equal 'b', @klass.b
139
+ assert_equal 'B', @sub.b
140
+ end
141
+
142
+ def test_array_inheritance
143
+ @klass.class_inheritable_accessor :a
144
+ @klass.a = []
145
+
146
+ @sub = eval("class SubbyArray < @klass; end; SubbyArray")
147
+
148
+ assert_equal [], @klass.a
149
+ assert_equal [], @sub.a
150
+
151
+ @sub.a << :first
152
+
153
+ assert_equal [:first], @sub.a
154
+ assert_equal [], @klass.a
155
+ end
156
+
157
+ def test_array_inheritance_
158
+ @klass.class_inheritable_accessor :a
159
+ @klass.a = {}
160
+
161
+ @sub = eval("class SubbyHash < @klass; end; SubbyHash")
162
+
163
+ assert_equal Hash.new, @klass.a
164
+ assert_equal Hash.new, @sub.a
165
+
166
+ @sub.a[:first] = :first
167
+
168
+ assert_equal 1, @sub.a.keys.size
169
+ assert_equal 0, @klass.a.keys.size
170
+ end
171
+
172
+ def test_reset_inheritable_attributes
173
+ @klass.class_inheritable_accessor :a
174
+ @klass.a = 'a'
175
+
176
+ @sub = eval("class Inheriting < @klass; end; Inheriting")
177
+
178
+ assert_equal 'a', @klass.a
179
+ assert_equal 'a', @sub.a
180
+
181
+ @klass.reset_inheritable_attributes
182
+ @sub = eval("class NotInheriting < @klass; end; NotInheriting")
183
+
184
+ assert_nil @klass.a
185
+ assert_nil @sub.a
186
+ end
187
+ end
metadata ADDED
@@ -0,0 +1,470 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: laser
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: 6
5
+ version: 0.7.0.pre1
6
+ platform: ruby
7
+ authors:
8
+ - Michael Edgar
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-08-12 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: treetop
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: "1.4"
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: ripper-plus
28
+ requirement: &id002 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 1.3.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
+ name: axiom_of_choice
39
+ requirement: &id003 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: "0"
45
+ type: :runtime
46
+ prerelease: false
47
+ version_requirements: *id003
48
+ - !ruby/object:Gem::Dependency
49
+ name: stream
50
+ requirement: &id004 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - "="
54
+ - !ruby/object:Gem::Version
55
+ version: "0.5"
56
+ type: :runtime
57
+ prerelease: false
58
+ version_requirements: *id004
59
+ - !ruby/object:Gem::Dependency
60
+ name: object_regex
61
+ requirement: &id005 !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ~>
65
+ - !ruby/object:Gem::Version
66
+ version: "1.0"
67
+ type: :runtime
68
+ prerelease: false
69
+ version_requirements: *id005
70
+ - !ruby/object:Gem::Dependency
71
+ name: trollop
72
+ requirement: &id006 !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 1.16.2
78
+ type: :runtime
79
+ prerelease: false
80
+ version_requirements: *id006
81
+ - !ruby/object:Gem::Dependency
82
+ name: rake
83
+ requirement: &id007 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ~>
87
+ - !ruby/object:Gem::Version
88
+ version: 0.9.0
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: *id007
92
+ - !ruby/object:Gem::Dependency
93
+ name: rspec
94
+ requirement: &id008 !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ~>
98
+ - !ruby/object:Gem::Version
99
+ version: 2.3.0
100
+ type: :development
101
+ prerelease: false
102
+ version_requirements: *id008
103
+ - !ruby/object:Gem::Dependency
104
+ name: cucumber
105
+ requirement: &id009 !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 0.10.0
111
+ type: :development
112
+ prerelease: false
113
+ version_requirements: *id009
114
+ description: Laser is an advanced static analysis tool for Ruby.
115
+ email: michael.j.edgar@dartmouth.edu
116
+ executables:
117
+ - laser
118
+ extensions:
119
+ - ext/laser/extconf.rb
120
+ extra_rdoc_files:
121
+ - LICENSE
122
+ - README.md
123
+ files:
124
+ - .document
125
+ - .rspec
126
+ - Gemfile
127
+ - LICENSE
128
+ - README.md
129
+ - Rakefile
130
+ - VERSION
131
+ - bin/laser
132
+ - design_docs/goals.md
133
+ - design_docs/object_regex.md
134
+ - design_docs/type_annotations.md
135
+ - ext/laser/BasicBlock.cpp
136
+ - ext/laser/BasicBlock.h
137
+ - ext/laser/extconf.rb
138
+ - features/laser.feature
139
+ - features/step_definitions/laser_steps.rb
140
+ - features/support/env.rb
141
+ - features/support/testdata/1_input
142
+ - features/support/testdata/1_output
143
+ - features/support/testdata/2_input
144
+ - features/support/testdata/2_output
145
+ - features/support/testdata/3_input
146
+ - features/support/testdata/3_output
147
+ - features/support/testdata/4_input
148
+ - features/support/testdata/4_output
149
+ - features/support/testdata/5_input
150
+ - laser.gemspec
151
+ - lib/laser.rb
152
+ - lib/laser/analysis/annotations.rb
153
+ - lib/laser/analysis/annotations/annotation_config.yaml
154
+ - lib/laser/analysis/annotations/comment_attachment_annotation.rb
155
+ - lib/laser/analysis/annotations/node_pointers_annotation.rb
156
+ - lib/laser/analysis/annotations/runtime_annotation.rb
157
+ - lib/laser/analysis/argument_expansion.rb
158
+ - lib/laser/analysis/arity.rb
159
+ - lib/laser/analysis/bindings.rb
160
+ - lib/laser/analysis/bootstrap/bootstrap.rb
161
+ - lib/laser/analysis/bootstrap/laser_class.rb
162
+ - lib/laser/analysis/bootstrap/laser_method.rb
163
+ - lib/laser/analysis/bootstrap/laser_module.rb
164
+ - lib/laser/analysis/bootstrap/laser_module_copy.rb
165
+ - lib/laser/analysis/bootstrap/laser_object.rb
166
+ - lib/laser/analysis/bootstrap/laser_proc.rb
167
+ - lib/laser/analysis/bootstrap/laser_singleton_class.rb
168
+ - lib/laser/analysis/comments.rb
169
+ - lib/laser/analysis/control_flow.rb
170
+ - lib/laser/analysis/control_flow/alias_analysis.rb
171
+ - lib/laser/analysis/control_flow/basic_block.rb
172
+ - lib/laser/analysis/control_flow/cfg_builder.rb
173
+ - lib/laser/analysis/control_flow/cfg_instruction.rb
174
+ - lib/laser/analysis/control_flow/constant_propagation.rb
175
+ - lib/laser/analysis/control_flow/control_flow_graph.rb
176
+ - lib/laser/analysis/control_flow/lifetime_analysis.rb
177
+ - lib/laser/analysis/control_flow/method_call_search.rb
178
+ - lib/laser/analysis/control_flow/raise_properties.rb
179
+ - lib/laser/analysis/control_flow/simulation.rb
180
+ - lib/laser/analysis/control_flow/static_single_assignment.rb
181
+ - lib/laser/analysis/control_flow/unreachability_analysis.rb
182
+ - lib/laser/analysis/control_flow/unused_variables.rb
183
+ - lib/laser/analysis/control_flow/yield_properties.rb
184
+ - lib/laser/analysis/errors.rb
185
+ - lib/laser/analysis/laser_utils.rb
186
+ - lib/laser/analysis/lexical_analysis.rb
187
+ - lib/laser/analysis/method_call.rb
188
+ - lib/laser/analysis/protocol_registry.rb
189
+ - lib/laser/analysis/scope.rb
190
+ - lib/laser/analysis/sexp.rb
191
+ - lib/laser/analysis/sexp_analysis.rb
192
+ - lib/laser/analysis/sexp_extensions/constant_extraction.rb
193
+ - lib/laser/analysis/sexp_extensions/source_location.rb
194
+ - lib/laser/analysis/sexp_extensions/type_inference.rb
195
+ - lib/laser/analysis/signature.rb
196
+ - lib/laser/analysis/special_methods/send.rb
197
+ - lib/laser/analysis/unused_methods.rb
198
+ - lib/laser/analysis/visitor.rb
199
+ - lib/laser/annotation_parser/annotations.treetop
200
+ - lib/laser/annotation_parser/annotations_parser.rb
201
+ - lib/laser/annotation_parser/class_annotations.treetop
202
+ - lib/laser/annotation_parser/class_annotations_parser.rb
203
+ - lib/laser/annotation_parser/overload.treetop
204
+ - lib/laser/annotation_parser/overload_parser.rb
205
+ - lib/laser/annotation_parser/parsers.rb
206
+ - lib/laser/annotation_parser/structural.treetop
207
+ - lib/laser/annotation_parser/structural_parser.rb
208
+ - lib/laser/annotation_parser/useful_parsers.treetop
209
+ - lib/laser/annotation_parser/useful_parsers_parser.rb
210
+ - lib/laser/rake/task.rb
211
+ - lib/laser/runner.rb
212
+ - lib/laser/scanner.rb
213
+ - lib/laser/standard_library/_thread.rb
214
+ - lib/laser/standard_library/abbrev.rb
215
+ - lib/laser/standard_library/array.rb
216
+ - lib/laser/standard_library/base64.rb
217
+ - lib/laser/standard_library/basic_object.rb
218
+ - lib/laser/standard_library/benchmark.rb
219
+ - lib/laser/standard_library/bignum.rb
220
+ - lib/laser/standard_library/cgi.rb
221
+ - lib/laser/standard_library/cgi/cookie.rb
222
+ - lib/laser/standard_library/cgi/core.rb
223
+ - lib/laser/standard_library/cgi/html.rb
224
+ - lib/laser/standard_library/cgi/session.rb
225
+ - lib/laser/standard_library/cgi/session/pstore.rb
226
+ - lib/laser/standard_library/cgi/util.rb
227
+ - lib/laser/standard_library/class_definitions.rb
228
+ - lib/laser/standard_library/comparable.rb
229
+ - lib/laser/standard_library/complex.rb
230
+ - lib/laser/standard_library/enumerable.rb
231
+ - lib/laser/standard_library/exceptions.rb
232
+ - lib/laser/standard_library/fixnum.rb
233
+ - lib/laser/standard_library/float.rb
234
+ - lib/laser/standard_library/hash.rb
235
+ - lib/laser/standard_library/integer.rb
236
+ - lib/laser/standard_library/laser_magic.rb
237
+ - lib/laser/standard_library/nil_false_true.rb
238
+ - lib/laser/standard_library/numbers.rb
239
+ - lib/laser/standard_library/proc.rb
240
+ - lib/laser/standard_library/set.rb
241
+ - lib/laser/standard_library/string.rb
242
+ - lib/laser/standard_library/stringio.rb
243
+ - lib/laser/standard_library/symbol.rb
244
+ - lib/laser/standard_library/tsort.rb
245
+ - lib/laser/support/acts_as_struct.rb
246
+ - lib/laser/support/frequency.rb
247
+ - lib/laser/support/inheritable_attributes.rb
248
+ - lib/laser/support/module_extensions.rb
249
+ - lib/laser/support/placeholder_object.rb
250
+ - lib/laser/third_party/rgl/adjacency.rb
251
+ - lib/laser/third_party/rgl/base.rb
252
+ - lib/laser/third_party/rgl/bidirectional.rb
253
+ - lib/laser/third_party/rgl/condensation.rb
254
+ - lib/laser/third_party/rgl/connected_components.rb
255
+ - lib/laser/third_party/rgl/control_flow.rb
256
+ - lib/laser/third_party/rgl/depth_first_spanning_tree.rb
257
+ - lib/laser/third_party/rgl/dominators.rb
258
+ - lib/laser/third_party/rgl/dot.rb
259
+ - lib/laser/third_party/rgl/graphxml.rb
260
+ - lib/laser/third_party/rgl/implicit.rb
261
+ - lib/laser/third_party/rgl/mutable.rb
262
+ - lib/laser/third_party/rgl/rdot.rb
263
+ - lib/laser/third_party/rgl/topsort.rb
264
+ - lib/laser/third_party/rgl/transitivity.rb
265
+ - lib/laser/third_party/rgl/traversal.rb
266
+ - lib/laser/types/types.rb
267
+ - lib/laser/version.rb
268
+ - lib/laser/warning.rb
269
+ - lib/laser/warning_sets/default.yml
270
+ - lib/laser/warnings/assignment_in_condition.rb
271
+ - lib/laser/warnings/comment_spacing.rb
272
+ - lib/laser/warnings/extra_blank_lines.rb
273
+ - lib/laser/warnings/extra_whitespace.rb
274
+ - lib/laser/warnings/hash_symbol_18_warning.rb
275
+ - lib/laser/warnings/hash_symbol_19_warning.rb
276
+ - lib/laser/warnings/line_length.rb
277
+ - lib/laser/warnings/misaligned_unindentation.rb
278
+ - lib/laser/warnings/operator_spacing.rb
279
+ - lib/laser/warnings/parens_on_declaration.rb
280
+ - lib/laser/warnings/rescue_exception.rb
281
+ - lib/laser/warnings/semicolon.rb
282
+ - lib/laser/warnings/sexp_errors.rb
283
+ - lib/laser/warnings/uncalled_method_warning.rb
284
+ - lib/laser/warnings/useless_double_quotes.rb
285
+ - spec/analysis_specs/annotations_spec.rb
286
+ - spec/analysis_specs/annotations_specs/comment_attachment_spec.rb
287
+ - spec/analysis_specs/annotations_specs/node_pointers_annotation_spec.rb
288
+ - spec/analysis_specs/annotations_specs/runtime_annotation_spec.rb
289
+ - spec/analysis_specs/annotations_specs/spec_helper.rb
290
+ - spec/analysis_specs/argument_expansion_spec.rb
291
+ - spec/analysis_specs/bindings_spec.rb
292
+ - spec/analysis_specs/comment_spec.rb
293
+ - spec/analysis_specs/control_flow_specs/cfg_instruction_spec.rb
294
+ - spec/analysis_specs/control_flow_specs/constant_propagation_spec.rb
295
+ - spec/analysis_specs/control_flow_specs/control_flow_graph_spec.rb
296
+ - spec/analysis_specs/control_flow_specs/raise_properties_spec.rb
297
+ - spec/analysis_specs/control_flow_specs/raise_type_inference_spec.rb
298
+ - spec/analysis_specs/control_flow_specs/return_type_inference_spec.rb
299
+ - spec/analysis_specs/control_flow_specs/simulation_spec.rb
300
+ - spec/analysis_specs/control_flow_specs/spec_helper.rb
301
+ - spec/analysis_specs/control_flow_specs/tuple_misuse_inference_spec.rb
302
+ - spec/analysis_specs/control_flow_specs/unreachability_analysis_spec.rb
303
+ - spec/analysis_specs/control_flow_specs/unused_variable_spec.rb
304
+ - spec/analysis_specs/control_flow_specs/yield_properties_spec.rb
305
+ - spec/analysis_specs/error_spec.rb
306
+ - spec/analysis_specs/laser_class_spec.rb
307
+ - spec/analysis_specs/lexical_analysis_spec.rb
308
+ - spec/analysis_specs/protocol_registry_spec.rb
309
+ - spec/analysis_specs/scope_annotation_spec.rb
310
+ - spec/analysis_specs/scope_spec.rb
311
+ - spec/analysis_specs/sexp_analysis_spec.rb
312
+ - spec/analysis_specs/sexp_extension_specs/constant_extraction_spec.rb
313
+ - spec/analysis_specs/sexp_extension_specs/source_location_spec.rb
314
+ - spec/analysis_specs/sexp_extension_specs/spec_helper.rb
315
+ - spec/analysis_specs/sexp_extension_specs/type_inference_spec.rb
316
+ - spec/analysis_specs/sexp_spec.rb
317
+ - spec/analysis_specs/spec_helper.rb
318
+ - spec/analysis_specs/unused_methods_spec.rb
319
+ - spec/analysis_specs/visitor_spec.rb
320
+ - spec/annotation_parser_specs/annotations_parser_spec.rb
321
+ - spec/annotation_parser_specs/class_annotation_parser_spec.rb
322
+ - spec/annotation_parser_specs/overload_parser_spec.rb
323
+ - spec/annotation_parser_specs/parsers_spec.rb
324
+ - spec/annotation_parser_specs/spec_helper.rb
325
+ - spec/annotation_parser_specs/structural_parser_spec.rb
326
+ - spec/laser_spec.rb
327
+ - spec/rake_specs/spec_helper.rb
328
+ - spec/rake_specs/task_spec.rb
329
+ - spec/runner_spec.rb
330
+ - spec/scanner_spec.rb
331
+ - spec/spec_helper.rb
332
+ - spec/standard_library/exceptions_spec.rb
333
+ - spec/standard_library/globals_spec.rb
334
+ - spec/standard_library/set_spec.rb
335
+ - spec/standard_library/spec_helper.rb
336
+ - spec/standard_library/standard_library_spec.rb
337
+ - spec/support_specs/acts_as_struct_spec.rb
338
+ - spec/support_specs/frequency_spec.rb
339
+ - spec/support_specs/module_extensions_spec.rb
340
+ - spec/support_specs/spec_helper.rb
341
+ - spec/type_specs/spec_helper.rb
342
+ - spec/type_specs/types_spec.rb
343
+ - spec/warning_spec.rb
344
+ - spec/warning_specs/assignment_in_condition_spec.rb
345
+ - spec/warning_specs/comment_spacing_spec.rb
346
+ - spec/warning_specs/extra_blank_lines_spec.rb
347
+ - spec/warning_specs/extra_whitespace_spec.rb
348
+ - spec/warning_specs/hash_symbol_18_warning_spec.rb
349
+ - spec/warning_specs/hash_symbol_19_warning_spec.rb
350
+ - spec/warning_specs/line_length_spec.rb
351
+ - spec/warning_specs/misaligned_unindentation_spec.rb
352
+ - spec/warning_specs/operator_spacing_spec.rb
353
+ - spec/warning_specs/parens_on_declaration_spec.rb
354
+ - spec/warning_specs/rescue_exception_spec.rb
355
+ - spec/warning_specs/semicolon_spec.rb
356
+ - spec/warning_specs/spec_helper.rb
357
+ - spec/warning_specs/useless_double_quotes_spec.rb
358
+ - status_reports/2010/12/2010-12-14.md
359
+ - status_reports/2010/12/2010-12-23.md
360
+ - status_reports/2010/12/2010-12-24.md
361
+ - test/third_party_tests/rgl_tests/TestComponents.rb
362
+ - test/third_party_tests/rgl_tests/TestCycles.rb
363
+ - test/third_party_tests/rgl_tests/TestDirectedGraph.rb
364
+ - test/third_party_tests/rgl_tests/TestDot.rb
365
+ - test/third_party_tests/rgl_tests/TestEdge.rb
366
+ - test/third_party_tests/rgl_tests/TestGraph.rb
367
+ - test/third_party_tests/rgl_tests/TestGraphXML.rb
368
+ - test/third_party_tests/rgl_tests/TestImplicit.rb
369
+ - test/third_party_tests/rgl_tests/TestRdot.rb
370
+ - test/third_party_tests/rgl_tests/TestTransitivity.rb
371
+ - test/third_party_tests/rgl_tests/TestTraversal.rb
372
+ - test/third_party_tests/rgl_tests/TestUnDirectedGraph.rb
373
+ - test/third_party_tests/rgl_tests/examples/north/Graph.log
374
+ - test/third_party_tests/rgl_tests/examples/north/g.10.0.graphml
375
+ - test/third_party_tests/rgl_tests/examples/north/g.10.1.graphml
376
+ - test/third_party_tests/rgl_tests/examples/north/g.10.11.graphml
377
+ - test/third_party_tests/rgl_tests/examples/north/g.10.12.graphml
378
+ - test/third_party_tests/rgl_tests/examples/north/g.10.13.graphml
379
+ - test/third_party_tests/rgl_tests/examples/north/g.10.14.graphml
380
+ - test/third_party_tests/rgl_tests/examples/north/g.10.15.graphml
381
+ - test/third_party_tests/rgl_tests/examples/north/g.10.16.graphml
382
+ - test/third_party_tests/rgl_tests/examples/north/g.10.17.graphml
383
+ - test/third_party_tests/rgl_tests/examples/north/g.10.19.graphml
384
+ - test/third_party_tests/rgl_tests/examples/north/g.10.2.graphml
385
+ - test/third_party_tests/rgl_tests/examples/north/g.10.20.graphml
386
+ - test/third_party_tests/rgl_tests/examples/north/g.10.22.graphml
387
+ - test/third_party_tests/rgl_tests/examples/north/g.10.24.graphml
388
+ - test/third_party_tests/rgl_tests/examples/north/g.10.25.graphml
389
+ - test/third_party_tests/rgl_tests/examples/north/g.10.27.graphml
390
+ - test/third_party_tests/rgl_tests/examples/north/g.10.28.graphml
391
+ - test/third_party_tests/rgl_tests/examples/north/g.10.29.graphml
392
+ - test/third_party_tests/rgl_tests/examples/north/g.10.3.graphml
393
+ - test/third_party_tests/rgl_tests/examples/north/g.10.30.graphml
394
+ - test/third_party_tests/rgl_tests/examples/north/g.10.31.graphml
395
+ - test/third_party_tests/rgl_tests/examples/north/g.10.34.graphml
396
+ - test/third_party_tests/rgl_tests/examples/north/g.10.37.graphml
397
+ - test/third_party_tests/rgl_tests/examples/north/g.10.38.graphml
398
+ - test/third_party_tests/rgl_tests/examples/north/g.10.39.graphml
399
+ - test/third_party_tests/rgl_tests/examples/north/g.10.4.graphml
400
+ - test/third_party_tests/rgl_tests/examples/north/g.10.40.graphml
401
+ - test/third_party_tests/rgl_tests/examples/north/g.10.41.graphml
402
+ - test/third_party_tests/rgl_tests/examples/north/g.10.42.graphml
403
+ - test/third_party_tests/rgl_tests/examples/north/g.10.45.graphml
404
+ - test/third_party_tests/rgl_tests/examples/north/g.10.46.graphml
405
+ - test/third_party_tests/rgl_tests/examples/north/g.10.5.graphml
406
+ - test/third_party_tests/rgl_tests/examples/north/g.10.50.graphml
407
+ - test/third_party_tests/rgl_tests/examples/north/g.10.56.graphml
408
+ - test/third_party_tests/rgl_tests/examples/north/g.10.57.graphml
409
+ - test/third_party_tests/rgl_tests/examples/north/g.10.58.graphml
410
+ - test/third_party_tests/rgl_tests/examples/north/g.10.6.graphml
411
+ - test/third_party_tests/rgl_tests/examples/north/g.10.60.graphml
412
+ - test/third_party_tests/rgl_tests/examples/north/g.10.61.graphml
413
+ - test/third_party_tests/rgl_tests/examples/north/g.10.62.graphml
414
+ - test/third_party_tests/rgl_tests/examples/north/g.10.68.graphml
415
+ - test/third_party_tests/rgl_tests/examples/north/g.10.69.graphml
416
+ - test/third_party_tests/rgl_tests/examples/north/g.10.7.graphml
417
+ - test/third_party_tests/rgl_tests/examples/north/g.10.70.graphml
418
+ - test/third_party_tests/rgl_tests/examples/north/g.10.71.graphml
419
+ - test/third_party_tests/rgl_tests/examples/north/g.10.72.graphml
420
+ - test/third_party_tests/rgl_tests/examples/north/g.10.74.graphml
421
+ - test/third_party_tests/rgl_tests/examples/north/g.10.75.graphml
422
+ - test/third_party_tests/rgl_tests/examples/north/g.10.78.graphml
423
+ - test/third_party_tests/rgl_tests/examples/north/g.10.79.graphml
424
+ - test/third_party_tests/rgl_tests/examples/north/g.10.8.graphml
425
+ - test/third_party_tests/rgl_tests/examples/north/g.10.80.graphml
426
+ - test/third_party_tests/rgl_tests/examples/north/g.10.82.graphml
427
+ - test/third_party_tests/rgl_tests/examples/north/g.10.83.graphml
428
+ - test/third_party_tests/rgl_tests/examples/north/g.10.85.graphml
429
+ - test/third_party_tests/rgl_tests/examples/north/g.10.86.graphml
430
+ - test/third_party_tests/rgl_tests/examples/north/g.10.88.graphml
431
+ - test/third_party_tests/rgl_tests/examples/north/g.10.89.graphml
432
+ - test/third_party_tests/rgl_tests/examples/north/g.10.9.graphml
433
+ - test/third_party_tests/rgl_tests/examples/north/g.10.90.graphml
434
+ - test/third_party_tests/rgl_tests/examples/north/g.10.91.graphml
435
+ - test/third_party_tests/rgl_tests/examples/north/g.10.92.graphml
436
+ - test/third_party_tests/rgl_tests/examples/north/g.10.93.graphml
437
+ - test/third_party_tests/rgl_tests/examples/north/g.10.94.graphml
438
+ - test/third_party_tests/rgl_tests/examples/north/g.12.8.graphml
439
+ - test/third_party_tests/rgl_tests/examples/north/g.14.9.graphml
440
+ - test/third_party_tests/rgl_tests/test_helper.rb
441
+ - test/third_party_tests/test_inheritable_attributes.rb
442
+ homepage: http://github.com/michaeledgar/laser
443
+ licenses: []
444
+
445
+ post_install_message:
446
+ rdoc_options: []
447
+
448
+ require_paths:
449
+ - lib
450
+ required_ruby_version: !ruby/object:Gem::Requirement
451
+ none: false
452
+ requirements:
453
+ - - ">="
454
+ - !ruby/object:Gem::Version
455
+ version: "0"
456
+ required_rubygems_version: !ruby/object:Gem::Requirement
457
+ none: false
458
+ requirements:
459
+ - - ">"
460
+ - !ruby/object:Gem::Version
461
+ version: 1.3.1
462
+ requirements: []
463
+
464
+ rubyforge_project:
465
+ rubygems_version: 1.8.5
466
+ signing_key:
467
+ specification_version: 3
468
+ summary: Analysis and linting tool for Ruby.
469
+ test_files: []
470
+