brakeman 3.7.2 → 5.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1614) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGES.md +1385 -0
  3. data/FEATURES +1 -1
  4. data/README.md +62 -17
  5. data/bin/brakeman +2 -0
  6. data/bundle/load.rb +15 -14
  7. data/bundle/ruby/3.1.0/gems/haml-5.2.2/CHANGELOG.md +1505 -0
  8. data/bundle/ruby/3.1.0/gems/haml-5.2.2/FAQ.md +147 -0
  9. data/bundle/ruby/3.1.0/gems/haml-5.2.2/Gemfile +16 -0
  10. data/bundle/ruby/3.1.0/gems/haml-5.2.2/MIT-LICENSE +20 -0
  11. data/bundle/ruby/3.1.0/gems/haml-5.2.2/README.md +216 -0
  12. data/bundle/ruby/3.1.0/gems/haml-5.2.2/REFERENCE.md +1380 -0
  13. data/bundle/ruby/3.1.0/gems/haml-5.2.2/TODO +24 -0
  14. data/bundle/ruby/3.1.0/gems/haml-5.2.2/haml.gemspec +45 -0
  15. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/attribute_builder.rb +219 -0
  16. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/attribute_compiler.rb +237 -0
  17. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/attribute_parser.rb +150 -0
  18. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/buffer.rb +182 -0
  19. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/compiler.rb +330 -0
  20. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/engine.rb +238 -0
  21. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/error.rb +65 -0
  22. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/escapable.rb +77 -0
  23. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/exec.rb +347 -0
  24. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/filters.rb +399 -0
  25. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/generator.rb +42 -0
  26. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/helpers/action_view_extensions.rb +60 -0
  27. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/helpers/action_view_mods.rb +132 -0
  28. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/helpers/action_view_xss_mods.rb +60 -0
  29. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/helpers/safe_erubi_template.rb +20 -0
  30. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/helpers/safe_erubis_template.rb +33 -0
  31. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/helpers/xss_mods.rb +114 -0
  32. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/helpers.rb +709 -0
  33. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/options.rb +273 -0
  34. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/parser.rb +856 -0
  35. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/plugin.rb +54 -0
  36. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/railtie.rb +53 -0
  37. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/sass_rails_filter.rb +47 -0
  38. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/template/options.rb +27 -0
  39. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/template.rb +39 -0
  40. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/temple_engine.rb +124 -0
  41. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/temple_line_counter.rb +30 -0
  42. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/util.rb +258 -0
  43. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml/version.rb +5 -0
  44. data/bundle/ruby/3.1.0/gems/haml-5.2.2/lib/haml.rb +25 -0
  45. data/bundle/ruby/3.1.0/gems/haml-5.2.2/yard/default/fulldoc/html/css/common.sass +15 -0
  46. data/bundle/ruby/3.1.0/gems/haml-5.2.2/yard/default/layout/html/footer.erb +12 -0
  47. data/bundle/ruby/3.1.0/gems/highline-2.1.0/Changelog.md +626 -0
  48. data/bundle/ruby/3.1.0/gems/highline-2.1.0/Gemfile +19 -0
  49. data/bundle/ruby/3.1.0/gems/highline-2.1.0/README.md +201 -0
  50. data/bundle/ruby/3.1.0/gems/highline-2.1.0/highline.gemspec +35 -0
  51. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/builtin_styles.rb +129 -0
  52. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/color_scheme.rb +151 -0
  53. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/compatibility.rb +23 -0
  54. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/custom_errors.rb +57 -0
  55. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/import.rb +48 -0
  56. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/io_console_compatible.rb +37 -0
  57. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/list.rb +177 -0
  58. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/list_renderer.rb +261 -0
  59. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/menu/item.rb +32 -0
  60. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/menu.rb +576 -0
  61. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/paginator.rb +52 -0
  62. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/question/answer_converter.rb +103 -0
  63. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/question.rb +630 -0
  64. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/question_asker.rb +150 -0
  65. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/simulate.rb +59 -0
  66. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/statement.rb +88 -0
  67. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/string.rb +36 -0
  68. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/string_extensions.rb +130 -0
  69. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/style.rb +325 -0
  70. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/template_renderer.rb +62 -0
  71. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/terminal/io_console.rb +36 -0
  72. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/terminal/ncurses.rb +38 -0
  73. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/terminal/unix_stty.rb +51 -0
  74. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/terminal.rb +190 -0
  75. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/version.rb +6 -0
  76. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/wrapper.rb +53 -0
  77. data/bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline.rb +650 -0
  78. data/bundle/ruby/3.1.0/gems/parallel-1.22.1/MIT-LICENSE.txt +20 -0
  79. data/bundle/ruby/3.1.0/gems/parallel-1.22.1/lib/parallel/processor_count.rb +44 -0
  80. data/bundle/ruby/3.1.0/gems/parallel-1.22.1/lib/parallel/version.rb +4 -0
  81. data/bundle/ruby/3.1.0/gems/parallel-1.22.1/lib/parallel.rb +612 -0
  82. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/LICENSE.txt +22 -0
  83. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/NEWS.md +178 -0
  84. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/README.md +48 -0
  85. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/attlistdecl.rb +63 -0
  86. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/attribute.rb +205 -0
  87. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/cdata.rb +68 -0
  88. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/child.rb +97 -0
  89. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/comment.rb +80 -0
  90. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/doctype.rb +311 -0
  91. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/document.rb +451 -0
  92. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/dtd/attlistdecl.rb +11 -0
  93. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/dtd/dtd.rb +47 -0
  94. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/dtd/elementdecl.rb +18 -0
  95. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/dtd/entitydecl.rb +57 -0
  96. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/dtd/notationdecl.rb +40 -0
  97. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/element.rb +2599 -0
  98. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/encoding.rb +51 -0
  99. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/entity.rb +171 -0
  100. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/formatters/default.rb +116 -0
  101. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/formatters/pretty.rb +142 -0
  102. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/formatters/transitive.rb +58 -0
  103. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/functions.rb +447 -0
  104. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/instruction.rb +79 -0
  105. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/light/node.rb +188 -0
  106. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/namespace.rb +59 -0
  107. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/node.rb +76 -0
  108. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/output.rb +30 -0
  109. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/parent.rb +166 -0
  110. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/parseexception.rb +52 -0
  111. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/parsers/baseparser.rb +694 -0
  112. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/parsers/lightparser.rb +59 -0
  113. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/parsers/pullparser.rb +197 -0
  114. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/parsers/sax2parser.rb +273 -0
  115. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/parsers/streamparser.rb +61 -0
  116. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/parsers/treeparser.rb +101 -0
  117. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/parsers/ultralightparser.rb +57 -0
  118. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/parsers/xpathparser.rb +689 -0
  119. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/quickpath.rb +266 -0
  120. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/rexml.rb +37 -0
  121. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/sax2listener.rb +98 -0
  122. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/security.rb +28 -0
  123. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/source.rb +298 -0
  124. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/streamlistener.rb +93 -0
  125. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/text.rb +424 -0
  126. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/undefinednamespaceexception.rb +9 -0
  127. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/validation/relaxng.rb +539 -0
  128. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/validation/validation.rb +144 -0
  129. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/validation/validationexception.rb +10 -0
  130. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/xmldecl.rb +130 -0
  131. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/xmltokens.rb +85 -0
  132. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/xpath.rb +81 -0
  133. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml/xpath_parser.rb +974 -0
  134. data/bundle/ruby/3.1.0/gems/rexml-3.2.5/lib/rexml.rb +3 -0
  135. data/bundle/ruby/3.1.0/gems/ruby2ruby-2.4.4/History.rdoc +435 -0
  136. data/bundle/ruby/3.1.0/gems/ruby2ruby-2.4.4/lib/ruby2ruby.rb +1309 -0
  137. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/History.rdoc +1307 -0
  138. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/Manifest.txt +46 -0
  139. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/README.rdoc +112 -0
  140. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/compare/normalize.rb +218 -0
  141. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/debugging.md +190 -0
  142. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/gauntlet.md +107 -0
  143. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/rp_extensions.rb +53 -0
  144. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/rp_stringscanner.rb +33 -0
  145. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby20_parser.rb +10973 -0
  146. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby20_parser.y +2683 -0
  147. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby21_parser.rb +10980 -0
  148. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby21_parser.y +2700 -0
  149. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby22_parser.rb +11123 -0
  150. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby22_parser.y +2711 -0
  151. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby23_parser.rb +11132 -0
  152. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby23_parser.y +2713 -0
  153. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby24_parser.rb +11231 -0
  154. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby24_parser.y +2721 -0
  155. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby25_parser.rb +11231 -0
  156. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby25_parser.y +2721 -0
  157. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby26_parser.rb +11253 -0
  158. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby26_parser.y +2736 -0
  159. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby27_parser.rb +12996 -0
  160. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby27_parser.y +3336 -0
  161. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby30_parser.rb +13258 -0
  162. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby30_parser.y +3459 -0
  163. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby31_parser.rb +13638 -0
  164. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby31_parser.y +3493 -0
  165. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby3_parser.yy +3548 -0
  166. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby_lexer.rb +1151 -0
  167. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby_lexer.rex +185 -0
  168. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby_lexer.rex.rb +399 -0
  169. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby_lexer_strings.rb +638 -0
  170. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby_parser.rb +98 -0
  171. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby_parser.yy +3477 -0
  172. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/lib/ruby_parser_extras.rb +1872 -0
  173. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/tools/munge.rb +250 -0
  174. data/bundle/ruby/3.1.0/gems/ruby_parser-3.19.2/tools/ripper.rb +44 -0
  175. data/bundle/ruby/3.1.0/gems/ruby_parser-legacy-1.0.0/History.rdoc +6 -0
  176. data/bundle/ruby/3.1.0/gems/ruby_parser-legacy-1.0.0/Manifest.txt +19 -0
  177. data/bundle/ruby/3.1.0/gems/ruby_parser-legacy-1.0.0/README.rdoc +54 -0
  178. data/bundle/ruby/3.1.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby18_parser.rb +5794 -0
  179. data/bundle/ruby/3.1.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby18_parser.y +1909 -0
  180. data/bundle/ruby/3.1.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby19_parser.rb +6186 -0
  181. data/bundle/ruby/3.1.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby19_parser.y +2117 -0
  182. data/bundle/ruby/3.1.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_lexer.rb +1412 -0
  183. data/bundle/ruby/3.1.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_lexer.rex +179 -0
  184. data/bundle/ruby/3.1.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_lexer.rex.rb +323 -0
  185. data/bundle/ruby/3.1.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_parser.rb +30 -0
  186. data/bundle/ruby/3.1.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_parser_extras.rb +1388 -0
  187. data/bundle/ruby/3.1.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy.rb +5 -0
  188. data/bundle/ruby/3.1.0/gems/safe_yaml-1.0.5/CHANGES.md +154 -0
  189. data/bundle/ruby/3.1.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/date.rb +37 -0
  190. data/bundle/ruby/3.1.0/gems/safe_yaml-1.0.5/lib/safe_yaml/store.rb +39 -0
  191. data/bundle/ruby/3.1.0/gems/safe_yaml-1.0.5/lib/safe_yaml/version.rb +3 -0
  192. data/bundle/ruby/3.1.0/gems/sexp_processor-4.16.1/History.rdoc +454 -0
  193. data/bundle/ruby/3.1.0/gems/sexp_processor-4.16.1/Manifest.txt +15 -0
  194. data/bundle/ruby/3.1.0/gems/sexp_processor-4.16.1/lib/pt_testcase.rb +3137 -0
  195. data/bundle/ruby/3.1.0/gems/sexp_processor-4.16.1/lib/sexp.rb +391 -0
  196. data/bundle/ruby/3.1.0/gems/sexp_processor-4.16.1/lib/sexp_matcher.rb +1100 -0
  197. data/bundle/ruby/3.1.0/gems/sexp_processor-4.16.1/lib/sexp_processor.rb +754 -0
  198. data/bundle/ruby/3.1.0/gems/sexp_processor-4.16.1/lib/strict_sexp.rb +148 -0
  199. data/bundle/ruby/3.1.0/gems/slim-4.1.0/CHANGES +460 -0
  200. data/bundle/ruby/3.1.0/gems/slim-4.1.0/Gemfile +70 -0
  201. data/bundle/ruby/3.1.0/gems/slim-4.1.0/LICENSE +21 -0
  202. data/bundle/ruby/3.1.0/gems/slim-4.1.0/README.jp.md +1289 -0
  203. data/bundle/ruby/3.1.0/gems/slim-4.1.0/README.md +1290 -0
  204. data/bundle/ruby/3.1.0/gems/slim-4.1.0/lib/slim/command.rb +128 -0
  205. data/bundle/ruby/3.1.0/gems/slim-4.1.0/lib/slim/embedded.rb +248 -0
  206. data/bundle/ruby/3.1.0/gems/slim-4.1.0/lib/slim/engine.rb +39 -0
  207. data/bundle/ruby/3.1.0/gems/slim-4.1.0/lib/slim/filter.rb +30 -0
  208. data/bundle/ruby/3.1.0/gems/slim-4.1.0/lib/slim/grammar.rb +23 -0
  209. data/bundle/ruby/3.1.0/gems/slim-4.1.0/lib/slim/logic_less/context.rb +127 -0
  210. data/bundle/ruby/3.1.0/gems/slim-4.1.0/lib/slim/parser.rb +548 -0
  211. data/bundle/ruby/3.1.0/gems/slim-4.1.0/lib/slim/smart/parser.rb +34 -0
  212. data/bundle/ruby/3.1.0/gems/slim-4.1.0/lib/slim/splat/builder.rb +107 -0
  213. data/bundle/ruby/3.1.0/gems/slim-4.1.0/lib/slim/version.rb +5 -0
  214. data/bundle/ruby/3.1.0/gems/slim-4.1.0/slim.gemspec +24 -0
  215. data/bundle/ruby/3.1.0/gems/temple-0.8.2/CHANGES +260 -0
  216. data/bundle/ruby/3.1.0/gems/temple-0.8.2/EXPRESSIONS.md +262 -0
  217. data/bundle/ruby/3.1.0/gems/temple-0.8.2/README.md +267 -0
  218. data/bundle/ruby/3.1.0/gems/temple-0.8.2/lib/temple/filters/static_analyzer.rb +30 -0
  219. data/bundle/ruby/3.1.0/gems/temple-0.8.2/lib/temple/filters/string_splitter.rb +130 -0
  220. data/bundle/ruby/3.1.0/gems/temple-0.8.2/lib/temple/mixins/dispatcher.rb +161 -0
  221. data/bundle/ruby/3.1.0/gems/temple-0.8.2/lib/temple/static_analyzer.rb +77 -0
  222. data/bundle/ruby/3.1.0/gems/temple-0.8.2/lib/temple/templates/rails.rb +26 -0
  223. data/bundle/ruby/3.1.0/gems/temple-0.8.2/lib/temple/version.rb +3 -0
  224. data/bundle/ruby/3.1.0/gems/temple-0.8.2/lib/temple.rb +67 -0
  225. data/bundle/ruby/3.1.0/gems/tilt-2.0.11/lib/tilt/commonmarker.rb +88 -0
  226. data/bundle/ruby/3.1.0/gems/tilt-2.0.11/lib/tilt/csv.rb +65 -0
  227. data/bundle/ruby/3.1.0/gems/tilt-2.0.11/lib/tilt/erb.rb +63 -0
  228. data/bundle/ruby/3.1.0/gems/tilt-2.0.11/lib/tilt/haml.rb +86 -0
  229. data/bundle/ruby/3.1.0/gems/tilt-2.0.11/lib/tilt/pandoc.rb +57 -0
  230. data/bundle/ruby/3.1.0/gems/tilt-2.0.11/lib/tilt/redcarpet.rb +86 -0
  231. data/bundle/ruby/3.1.0/gems/tilt-2.0.11/lib/tilt/rst-pandoc.rb +23 -0
  232. data/bundle/ruby/3.1.0/gems/tilt-2.0.11/lib/tilt/sass.rb +78 -0
  233. data/bundle/ruby/3.1.0/gems/tilt-2.0.11/lib/tilt/template.rb +308 -0
  234. data/bundle/ruby/3.1.0/gems/tilt-2.0.11/lib/tilt.rb +167 -0
  235. data/bundle/ruby/3.1.0/gems/unicode-display_width-1.8.0/CHANGELOG.md +137 -0
  236. data/bundle/ruby/3.1.0/gems/unicode-display_width-1.8.0/MIT-LICENSE.txt +22 -0
  237. data/bundle/ruby/3.1.0/gems/unicode-display_width-1.8.0/README.md +124 -0
  238. data/bundle/ruby/3.1.0/gems/unicode-display_width-1.8.0/data/display_width.marshal.gz +0 -0
  239. data/bundle/ruby/3.1.0/gems/unicode-display_width-1.8.0/lib/unicode/display_width/constants.rb +8 -0
  240. data/bundle/ruby/3.1.0/gems/unicode-display_width-1.8.0/lib/unicode/display_width/index.rb +12 -0
  241. data/bundle/ruby/3.1.0/gems/unicode-display_width-1.8.0/lib/unicode/display_width.rb +51 -0
  242. data/lib/brakeman/app_tree.rb +96 -24
  243. data/lib/brakeman/call_index.rb +63 -21
  244. data/lib/brakeman/checks/base_check.rb +117 -121
  245. data/lib/brakeman/checks/check_basic_auth.rb +8 -4
  246. data/lib/brakeman/checks/check_basic_auth_timing_attack.rb +4 -3
  247. data/lib/brakeman/checks/check_content_tag.rb +37 -22
  248. data/lib/brakeman/checks/check_cookie_serialization.rb +23 -0
  249. data/lib/brakeman/checks/check_create_with.rb +10 -8
  250. data/lib/brakeman/checks/check_cross_site_scripting.rb +31 -23
  251. data/lib/brakeman/checks/check_csrf_token_forgery_cve.rb +29 -0
  252. data/lib/brakeman/checks/check_default_routes.rb +18 -10
  253. data/lib/brakeman/checks/check_deserialize.rb +75 -5
  254. data/lib/brakeman/checks/check_detailed_exceptions.rb +10 -8
  255. data/lib/brakeman/checks/check_digest_dos.rb +8 -7
  256. data/lib/brakeman/checks/check_divide_by_zero.rb +43 -0
  257. data/lib/brakeman/checks/check_dynamic_finders.rb +4 -3
  258. data/lib/brakeman/checks/check_eol_rails.rb +23 -0
  259. data/lib/brakeman/checks/check_eol_ruby.rb +26 -0
  260. data/lib/brakeman/checks/check_escape_function.rb +5 -4
  261. data/lib/brakeman/checks/check_evaluation.rb +3 -3
  262. data/lib/brakeman/checks/check_execute.rb +136 -18
  263. data/lib/brakeman/checks/check_file_access.rb +33 -7
  264. data/lib/brakeman/checks/check_file_disclosure.rb +5 -4
  265. data/lib/brakeman/checks/check_filter_skipping.rb +5 -4
  266. data/lib/brakeman/checks/check_force_ssl.rb +28 -0
  267. data/lib/brakeman/checks/check_forgery_setting.rb +10 -6
  268. data/lib/brakeman/checks/check_header_dos.rb +8 -7
  269. data/lib/brakeman/checks/check_i18n_xss.rb +9 -8
  270. data/lib/brakeman/checks/check_jruby_xml.rb +7 -8
  271. data/lib/brakeman/checks/check_json_encoding.rb +9 -8
  272. data/lib/brakeman/checks/check_json_entity_escape.rb +40 -0
  273. data/lib/brakeman/checks/check_json_parsing.rb +25 -21
  274. data/lib/brakeman/checks/check_link_to.rb +11 -10
  275. data/lib/brakeman/checks/check_link_to_href.rb +49 -37
  276. data/lib/brakeman/checks/check_mail_to.rb +8 -7
  277. data/lib/brakeman/checks/check_mass_assignment.rb +49 -18
  278. data/lib/brakeman/checks/check_mime_type_dos.rb +6 -5
  279. data/lib/brakeman/checks/check_model_attr_accessible.rb +9 -8
  280. data/lib/brakeman/checks/check_model_attributes.rb +20 -56
  281. data/lib/brakeman/checks/check_model_serialize.rb +7 -6
  282. data/lib/brakeman/checks/check_nested_attributes.rb +7 -6
  283. data/lib/brakeman/checks/check_nested_attributes_bypass.rb +8 -7
  284. data/lib/brakeman/checks/check_number_to_currency.rb +13 -11
  285. data/lib/brakeman/checks/check_page_caching_cve.rb +38 -0
  286. data/lib/brakeman/checks/check_pathname.rb +48 -0
  287. data/lib/brakeman/checks/check_permit_attributes.rb +44 -0
  288. data/lib/brakeman/checks/check_quote_table_name.rb +6 -5
  289. data/lib/brakeman/checks/check_redirect.rb +91 -34
  290. data/lib/brakeman/checks/check_regex_dos.rb +7 -6
  291. data/lib/brakeman/checks/check_render.rb +24 -8
  292. data/lib/brakeman/checks/check_render_dos.rb +4 -3
  293. data/lib/brakeman/checks/check_render_inline.rb +8 -6
  294. data/lib/brakeman/checks/check_response_splitting.rb +4 -3
  295. data/lib/brakeman/checks/check_reverse_tabnabbing.rb +59 -0
  296. data/lib/brakeman/checks/check_route_dos.rb +4 -3
  297. data/lib/brakeman/checks/check_safe_buffer_manipulation.rb +5 -4
  298. data/lib/brakeman/checks/check_sanitize_config_cve.rb +120 -0
  299. data/lib/brakeman/checks/check_sanitize_methods.rb +57 -20
  300. data/lib/brakeman/checks/check_secrets.rb +5 -4
  301. data/lib/brakeman/checks/check_select_tag.rb +5 -4
  302. data/lib/brakeman/checks/check_select_vulnerability.rb +6 -5
  303. data/lib/brakeman/checks/check_send.rb +2 -2
  304. data/lib/brakeman/checks/check_session_manipulation.rb +5 -5
  305. data/lib/brakeman/checks/check_session_settings.rb +25 -19
  306. data/lib/brakeman/checks/check_simple_format.rb +15 -8
  307. data/lib/brakeman/checks/check_single_quotes.rb +19 -14
  308. data/lib/brakeman/checks/check_skip_before_filter.rb +12 -10
  309. data/lib/brakeman/checks/check_sprockets_path_traversal.rb +40 -0
  310. data/lib/brakeman/checks/check_sql.rb +125 -67
  311. data/lib/brakeman/checks/check_sql_cves.rb +8 -6
  312. data/lib/brakeman/checks/check_ssl_verify.rb +2 -1
  313. data/lib/brakeman/checks/check_strip_tags.rb +23 -18
  314. data/lib/brakeman/checks/check_symbol_dos.rb +14 -5
  315. data/lib/brakeman/checks/check_symbol_dos_cve.rb +4 -3
  316. data/lib/brakeman/checks/check_template_injection.rb +33 -0
  317. data/lib/brakeman/checks/check_translate_bug.rb +13 -12
  318. data/lib/brakeman/checks/check_unsafe_reflection.rb +11 -5
  319. data/lib/brakeman/checks/check_unsafe_reflection_methods.rb +69 -0
  320. data/lib/brakeman/checks/check_unscoped_find.rb +29 -4
  321. data/lib/brakeman/checks/check_validation_regex.rb +4 -3
  322. data/lib/brakeman/checks/check_verb_confusion.rb +76 -0
  323. data/lib/brakeman/checks/check_weak_hash.rb +28 -26
  324. data/lib/brakeman/checks/check_weak_rsa_key.rb +112 -0
  325. data/lib/brakeman/checks/check_without_protection.rb +4 -3
  326. data/lib/brakeman/checks/check_xml_dos.rb +6 -5
  327. data/lib/brakeman/checks/check_yaml_parsing.rb +17 -23
  328. data/lib/brakeman/checks/eol_check.rb +49 -0
  329. data/lib/brakeman/checks.rb +23 -15
  330. data/lib/brakeman/codeclimate/engine_configuration.rb +97 -0
  331. data/lib/brakeman/commandline.rb +27 -3
  332. data/lib/brakeman/differ.rb +16 -33
  333. data/lib/brakeman/file_parser.rb +61 -23
  334. data/lib/brakeman/file_path.rb +85 -0
  335. data/lib/brakeman/format/style.css +8 -0
  336. data/lib/brakeman/messages.rb +220 -0
  337. data/lib/brakeman/options.rb +76 -7
  338. data/lib/brakeman/parsers/haml_embedded.rb +44 -0
  339. data/lib/brakeman/parsers/slim_embedded.rb +44 -0
  340. data/lib/brakeman/parsers/template_parser.rb +42 -11
  341. data/lib/brakeman/processor.rb +5 -6
  342. data/lib/brakeman/processors/alias_processor.rb +425 -147
  343. data/lib/brakeman/processors/base_processor.rb +15 -16
  344. data/lib/brakeman/processors/config_processor.rb +4 -1
  345. data/lib/brakeman/processors/controller_alias_processor.rb +22 -51
  346. data/lib/brakeman/processors/controller_processor.rb +10 -14
  347. data/lib/brakeman/processors/erb_template_processor.rb +1 -1
  348. data/lib/brakeman/processors/gem_processor.rb +42 -3
  349. data/lib/brakeman/processors/haml_template_processor.rb +108 -123
  350. data/lib/brakeman/processors/lib/call_conversion_helper.rb +102 -0
  351. data/lib/brakeman/processors/lib/file_type_detector.rb +64 -0
  352. data/lib/brakeman/processors/lib/find_all_calls.rb +70 -17
  353. data/lib/brakeman/processors/lib/find_call.rb +3 -64
  354. data/lib/brakeman/processors/lib/module_helper.rb +8 -8
  355. data/lib/brakeman/processors/lib/processor_helper.rb +3 -3
  356. data/lib/brakeman/processors/lib/rails2_config_processor.rb +4 -4
  357. data/lib/brakeman/processors/lib/rails2_route_processor.rb +10 -10
  358. data/lib/brakeman/processors/lib/rails3_config_processor.rb +19 -19
  359. data/lib/brakeman/processors/lib/rails3_route_processor.rb +4 -4
  360. data/lib/brakeman/processors/lib/rails4_config_processor.rb +19 -0
  361. data/lib/brakeman/processors/lib/render_helper.rb +13 -6
  362. data/lib/brakeman/processors/lib/render_path.rb +32 -0
  363. data/lib/brakeman/processors/library_processor.rb +24 -7
  364. data/lib/brakeman/processors/model_processor.rb +36 -5
  365. data/lib/brakeman/processors/output_processor.rb +6 -1
  366. data/lib/brakeman/processors/slim_template_processor.rb +16 -0
  367. data/lib/brakeman/processors/template_alias_processor.rb +36 -4
  368. data/lib/brakeman/processors/template_processor.rb +14 -10
  369. data/lib/brakeman/report/ignore/config.rb +12 -5
  370. data/lib/brakeman/report/ignore/interactive.rb +5 -5
  371. data/lib/brakeman/report/pager.rb +113 -0
  372. data/lib/brakeman/report/report_base.rb +65 -165
  373. data/lib/brakeman/report/report_codeclimate.rb +10 -1
  374. data/lib/brakeman/report/report_csv.rb +40 -44
  375. data/lib/brakeman/report/report_github.rb +31 -0
  376. data/lib/brakeman/report/report_hash.rb +1 -1
  377. data/lib/brakeman/report/report_html.rb +36 -33
  378. data/lib/brakeman/report/report_json.rb +1 -3
  379. data/lib/brakeman/report/report_junit.rb +104 -0
  380. data/lib/brakeman/report/report_markdown.rb +13 -7
  381. data/lib/brakeman/report/report_sarif.rb +133 -0
  382. data/lib/brakeman/report/report_sonar.rb +38 -0
  383. data/lib/brakeman/report/report_table.rb +173 -0
  384. data/lib/brakeman/report/report_tabs.rb +4 -2
  385. data/lib/brakeman/report/report_text.rb +64 -28
  386. data/lib/brakeman/report/templates/controller_warnings.html.erb +2 -0
  387. data/lib/brakeman/report/templates/ignored_warnings.html.erb +2 -0
  388. data/lib/brakeman/report/templates/model_warnings.html.erb +2 -0
  389. data/lib/brakeman/report/templates/security_warnings.html.erb +2 -0
  390. data/lib/brakeman/report/templates/view_warnings.html.erb +2 -0
  391. data/lib/brakeman/report.rb +33 -9
  392. data/lib/brakeman/rescanner.rb +29 -24
  393. data/lib/brakeman/scanner.rb +90 -46
  394. data/lib/brakeman/tracker/collection.rb +62 -11
  395. data/lib/brakeman/tracker/config.rb +191 -25
  396. data/lib/brakeman/tracker/constants.rb +10 -8
  397. data/lib/brakeman/tracker/controller.rb +1 -1
  398. data/lib/brakeman/tracker/method_info.rb +70 -0
  399. data/lib/brakeman/tracker.rb +81 -16
  400. data/lib/brakeman/util.rb +114 -183
  401. data/lib/brakeman/version.rb +1 -1
  402. data/lib/brakeman/warning.rb +101 -43
  403. data/lib/brakeman/warning_codes.rb +27 -0
  404. data/lib/brakeman.rb +97 -28
  405. data/lib/ruby_parser/bm_sexp.rb +59 -10
  406. data/lib/ruby_parser/bm_sexp_processor.rb +1 -0
  407. metadata +463 -1220
  408. data/CHANGES +0 -985
  409. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/Makefile +0 -6
  410. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/bench.rb +0 -313
  411. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/bench_context.yaml +0 -141
  412. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/_footer.html +0 -4
  413. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/_header.html +0 -52
  414. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/bench_erb.rhtml +0 -29
  415. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/bench_erubis.rhtml +0 -29
  416. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/bench_eruby.rhtml +0 -29
  417. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/bin/erubis +0 -10
  418. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc/docstyle.css +0 -209
  419. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc/users-guide.html +0 -3551
  420. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/ActionView/TemplateHandlers/ErubisHandler.html +0 -209
  421. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/ActionView.html +0 -105
  422. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/ERB.html +0 -101
  423. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayBufferEnhancer.html +0 -175
  424. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayBufferEruby.html +0 -120
  425. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayEnhancer.html +0 -174
  426. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayEruby.html +0 -120
  427. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic/Converter.html +0 -327
  428. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic/Engine.html +0 -130
  429. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic.html +0 -112
  430. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/BiPatternEnhancer.html +0 -215
  431. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/BiPatternEruby.html +0 -120
  432. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/CGenerator.html +0 -386
  433. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/CommandOptionError.html +0 -113
  434. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Context.html +0 -344
  435. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Converter.html +0 -283
  436. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/CppGenerator.html +0 -382
  437. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/DeleteIndentEnhancer.html +0 -150
  438. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/DeleteIndentEruby.html +0 -120
  439. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ec.html +0 -126
  440. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ecpp.html +0 -126
  441. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ejava.html +0 -126
  442. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ejavascript.html +0 -126
  443. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Engine.html +0 -305
  444. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Eperl.html +0 -126
  445. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ephp.html +0 -126
  446. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ErboutEnhancer.html +0 -175
  447. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ErboutEruby.html +0 -120
  448. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ErubisError.html +0 -117
  449. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Eruby.html +0 -132
  450. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapeEnhancer.html +0 -165
  451. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEc.html +0 -120
  452. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEcpp.html +0 -120
  453. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEjava.html +0 -120
  454. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEjavascript.html +0 -120
  455. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEperl.html +0 -120
  456. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEphp.html +0 -120
  457. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEruby.html +0 -127
  458. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEscheme.html +0 -120
  459. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Escheme.html +0 -126
  460. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Evaluator.html +0 -212
  461. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/FastEruby.html +0 -131
  462. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Generator.html +0 -416
  463. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/HeaderFooterEnhancer.html +0 -267
  464. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/HeaderFooterEruby.html +0 -120
  465. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +0 -787
  466. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsHelper/TemplateConverter.html +0 -213
  467. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsHelper.html +0 -349
  468. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers.html +0 -116
  469. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/InterpolationEnhancer.html +0 -305
  470. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/InterpolationEruby.html +0 -120
  471. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/JavaGenerator.html +0 -359
  472. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/JavascriptGenerator.html +0 -386
  473. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Main.html +0 -341
  474. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoCodeEnhancer.html +0 -249
  475. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoCodeEruby.html +0 -120
  476. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoTextEnhancer.html +0 -159
  477. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoTextEruby.html +0 -120
  478. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NotSupportedError.html +0 -119
  479. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedEruby.html +0 -163
  480. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedGenerator.html +0 -439
  481. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedXmlEruby.html +0 -163
  482. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Converter.html +0 -266
  483. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ec.html +0 -166
  484. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ecpp.html +0 -166
  485. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ejava.html +0 -166
  486. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ejavascript.html +0 -166
  487. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Engine.html +0 -122
  488. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Eperl.html +0 -166
  489. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ephp.html +0 -166
  490. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Eruby.html +0 -155
  491. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Escheme.html +0 -166
  492. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/TinyEruby.html +0 -293
  493. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI.html +0 -125
  494. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PercentLineEnhancer.html +0 -163
  495. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PercentLineEruby.html +0 -120
  496. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PerlGenerator.html +0 -344
  497. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PhpGenerator.html +0 -350
  498. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrefixedLineEnhancer.html +0 -210
  499. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrefixedLineEruby.html +0 -120
  500. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PreprocessingEruby.html +0 -183
  501. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PreprocessingHelper.html +0 -212
  502. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintEnabledEnhancer.html +0 -212
  503. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintEnabledEruby.html +0 -120
  504. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutEnhancer.html +0 -244
  505. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutEruby.html +0 -120
  506. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutSimplifiedEruby.html +0 -121
  507. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/RubyEvaluator.html +0 -227
  508. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/RubyGenerator.html +0 -328
  509. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/SchemeGenerator.html +0 -382
  510. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/SimplifiedEruby.html +0 -120
  511. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/SimplifyEnhancer.html +0 -191
  512. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutEnhancer.html +0 -173
  513. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutEruby.html +0 -120
  514. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutSimplifiedEruby.html +0 -121
  515. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StringBufferEnhancer.html +0 -174
  516. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StringBufferEruby.html +0 -120
  517. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StringIOEruby.html +0 -120
  518. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/TinyEruby.html +0 -298
  519. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/XmlEruby.html +0 -130
  520. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/XmlHelper.html +0 -255
  521. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis.html +0 -362
  522. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Kernel.html +0 -155
  523. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/created.rid +0 -1
  524. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/README_txt.html +0 -247
  525. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/context_rb.html +0 -107
  526. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/converter_rb.html +0 -114
  527. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ec_rb.html +0 -115
  528. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ecpp_rb.html +0 -115
  529. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ejava_rb.html +0 -115
  530. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ejavascript_rb.html +0 -115
  531. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/enhanced_rb.html +0 -115
  532. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/eperl_rb.html +0 -115
  533. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ephp_rb.html +0 -115
  534. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/eruby_rb.html +0 -115
  535. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/escheme_rb.html +0 -115
  536. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/optimized_rb.html +0 -114
  537. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine_rb.html +0 -117
  538. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/enhancer_rb.html +0 -107
  539. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/error_rb.html +0 -107
  540. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/evaluator_rb.html +0 -115
  541. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/generator_rb.html +0 -114
  542. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/helper_rb.html +0 -107
  543. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/helpers/rails_form_helper_rb.html +0 -107
  544. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/helpers/rails_helper_rb.html +0 -116
  545. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/local-setting_rb.html +0 -107
  546. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/main_rb.html +0 -129
  547. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/preprocessing_rb.html +0 -114
  548. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/tiny_rb.html +0 -107
  549. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/util_rb.html +0 -107
  550. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis_rb.html +0 -118
  551. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/fr_class_index.html +0 -129
  552. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/fr_file_index.html +0 -53
  553. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/fr_method_index.html +0 -265
  554. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/index.html +0 -24
  555. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/rdoc-style.css +0 -208
  556. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/Makefile +0 -58
  557. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ec +0 -42
  558. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ecpp +0 -33
  559. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ejava +0 -45
  560. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ejs +0 -16
  561. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.eperl +0 -16
  562. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ephp +0 -17
  563. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.eruby +0 -15
  564. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.escheme +0 -26
  565. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/Makefile +0 -54
  566. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ec +0 -42
  567. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ejava +0 -45
  568. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ejs +0 -16
  569. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.eperl +0 -16
  570. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ephp +0 -17
  571. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.eruby +0 -15
  572. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.escheme +0 -26
  573. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/assert-text-equal.rb +0 -44
  574. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/Example.ejava +0 -55
  575. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/array_example.result +0 -9
  576. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/arraybuffer_example.result +0 -9
  577. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bipattern-example.rhtml +0 -4
  578. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bipattern_example.result +0 -6
  579. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb +0 -10
  580. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result +0 -17
  581. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/context.rb +0 -6
  582. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/context.yaml +0 -8
  583. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/def_method.rb +0 -14
  584. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/def_method.result +0 -3
  585. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/escape_example.result +0 -9
  586. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ec +0 -27
  587. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ecpp +0 -30
  588. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ejs +0 -20
  589. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.eperl +0 -18
  590. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ephp +0 -18
  591. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.eruby +0 -6
  592. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.escheme +0 -28
  593. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1.eruby +0 -6
  594. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1.rb +0 -17
  595. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1.result +0 -16
  596. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10.rb +0 -4
  597. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10.result +0 -17
  598. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10.xhtml +0 -14
  599. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10_x.result +0 -17
  600. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11.php +0 -20
  601. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11.result +0 -23
  602. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11.rhtml +0 -21
  603. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_C.result +0 -10
  604. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_N.result +0 -16
  605. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_U.result +0 -16
  606. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_php.result +0 -15
  607. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1_x.result +0 -9
  608. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2.eruby +0 -7
  609. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2.rb +0 -10
  610. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2.result +0 -27
  611. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2_trim.result +0 -10
  612. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2_x.result +0 -10
  613. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example3.eruby +0 -6
  614. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example3.rb +0 -10
  615. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example31.result +0 -22
  616. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example32.result +0 -4
  617. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example3_e.result +0 -8
  618. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4.eruby +0 -3
  619. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4.rb +0 -11
  620. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4.result +0 -10
  621. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4_x.result +0 -5
  622. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example5.eruby +0 -6
  623. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example5.rb +0 -16
  624. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example5.result +0 -7
  625. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example6.rb +0 -12
  626. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example6.result +0 -7
  627. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example7.eruby +0 -8
  628. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example71.result +0 -13
  629. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example72.result +0 -13
  630. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example8.eruby +0 -6
  631. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example8_ruby.result +0 -7
  632. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example8_yaml.result +0 -7
  633. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example9.eruby +0 -3
  634. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example9.rb +0 -8
  635. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example9.result +0 -9
  636. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example91.result +0 -5
  637. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example92.result +0 -4
  638. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_c.result +0 -32
  639. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_java.result +0 -56
  640. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_js.result +0 -22
  641. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result +0 -20
  642. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_php.result +0 -19
  643. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_scheme.result +0 -30
  644. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_scheme_display.result +0 -29
  645. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby-example.rb +0 -8
  646. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby-example.result +0 -18
  647. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby.rb +0 -11
  648. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby.result +0 -38
  649. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby.rhtml +0 -15
  650. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example.eruby +0 -9
  651. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example2.rb +0 -8
  652. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example2.rhtml +0 -10
  653. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter_example.result +0 -11
  654. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter_example2.result +0 -13
  655. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/interpolation_example.result +0 -9
  656. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program1.rb +0 -8
  657. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program1.result +0 -6
  658. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program2.rb +0 -8
  659. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program2.result +0 -6
  660. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/nocode-example.eruby +0 -14
  661. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/nocode-php.result +0 -20
  662. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/nocode_example.result +0 -15
  663. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/normal-eruby-test.eruby +0 -9
  664. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/normal_eruby_test.result +0 -11
  665. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext-example.eruby +0 -14
  666. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext-example.php +0 -19
  667. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext-php.result +0 -20
  668. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext_example.result +0 -16
  669. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/percentline-example.rhtml +0 -6
  670. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/percentline_example.result +0 -9
  671. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/prefixedline-example.rb +0 -9
  672. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/prefixedline-example.rhtml +0 -6
  673. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/prefixedline_example.result +0 -9
  674. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printenable_example.result +0 -4
  675. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printenabled-example.eruby +0 -3
  676. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printenabled-example.rb +0 -8
  677. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printstatement_example.result +0 -8
  678. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/simplify_example.result +0 -9
  679. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/stderr.log +0 -3
  680. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/stdout_exmple.result +0 -9
  681. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/stringbuffer_example.result +0 -9
  682. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/tail_260.result +0 -4
  683. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/tailnewline.rhtml +0 -3
  684. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/template1.rhtml +0 -4
  685. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/template2.rhtml +0 -4
  686. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-engines.rb +0 -425
  687. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-enhancers.rb +0 -646
  688. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-erubis.rb +0 -887
  689. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-index-cgi.rb +0 -191
  690. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-main.rb +0 -752
  691. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-users-guide.rb +0 -73
  692. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test.rb +0 -45
  693. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/testutil.rb +0 -111
  694. data/bundle/ruby/2.3.0/gems/haml-4.0.7/CHANGELOG.md +0 -1363
  695. data/bundle/ruby/2.3.0/gems/haml-4.0.7/FAQ.md +0 -157
  696. data/bundle/ruby/2.3.0/gems/haml-4.0.7/MIT-LICENSE +0 -20
  697. data/bundle/ruby/2.3.0/gems/haml-4.0.7/README.md +0 -173
  698. data/bundle/ruby/2.3.0/gems/haml-4.0.7/REFERENCE.md +0 -1294
  699. data/bundle/ruby/2.3.0/gems/haml-4.0.7/Rakefile +0 -134
  700. data/bundle/ruby/2.3.0/gems/haml-4.0.7/bin/haml +0 -9
  701. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/buffer.rb +0 -345
  702. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/compiler.rb +0 -540
  703. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/engine.rb +0 -245
  704. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/error.rb +0 -61
  705. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/exec.rb +0 -329
  706. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/filters.rb +0 -404
  707. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_extensions.rb +0 -58
  708. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb +0 -147
  709. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_xss_mods.rb +0 -58
  710. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/safe_erubis_template.rb +0 -29
  711. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/xss_mods.rb +0 -104
  712. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers.rb +0 -664
  713. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/options.rb +0 -279
  714. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/parser.rb +0 -764
  715. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/railtie.rb +0 -22
  716. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/sass_rails_filter.rb +0 -33
  717. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/template/options.rb +0 -16
  718. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/template/plugin.rb +0 -41
  719. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/template.rb +0 -32
  720. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/util.rb +0 -377
  721. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/version.rb +0 -3
  722. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml.rb +0 -23
  723. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/engine_test.rb +0 -2013
  724. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/_av_partial_1.erb +0 -12
  725. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/_av_partial_2.erb +0 -8
  726. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/action_view.erb +0 -62
  727. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/standard.erb +0 -55
  728. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/filters_test.rb +0 -254
  729. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-3.0.x +0 -5
  730. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-3.1.x +0 -6
  731. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-3.2.x +0 -5
  732. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-4.0.x +0 -5
  733. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/LICENSE +0 -14
  734. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/README.md +0 -106
  735. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/lua_haml_spec.lua +0 -38
  736. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/perl_haml_test.pl +0 -81
  737. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/ruby_haml_test.rb +0 -23
  738. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/tests.json +0 -660
  739. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/helper_test.rb +0 -583
  740. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/markaby/standard.mab +0 -52
  741. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/mocks/article.rb +0 -6
  742. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/parser_test.rb +0 -105
  743. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/content_for_layout.xhtml +0 -12
  744. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/eval_suppressed.xhtml +0 -9
  745. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/helpers.xhtml +0 -70
  746. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/helpful.xhtml +0 -10
  747. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/just_stuff.xhtml +0 -70
  748. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/list.xhtml +0 -12
  749. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/nuke_inner_whitespace.xhtml +0 -40
  750. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/nuke_outer_whitespace.xhtml +0 -148
  751. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/original_engine.xhtml +0 -20
  752. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/partial_layout.xhtml +0 -5
  753. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/partial_layout_erb.xhtml +0 -5
  754. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/partials.xhtml +0 -21
  755. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/render_layout.xhtml +0 -3
  756. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/silent_script.xhtml +0 -74
  757. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/standard.xhtml +0 -162
  758. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/tag_parsing.xhtml +0 -23
  759. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/very_basic.xhtml +0 -5
  760. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/whitespace_handling.xhtml +0 -90
  761. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/template_test.rb +0 -354
  762. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_1.haml +0 -9
  763. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_1_ugly.haml +0 -9
  764. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_2.haml +0 -5
  765. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_2_ugly.haml +0 -5
  766. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_layout.erb +0 -3
  767. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_layout_for_partial.haml +0 -3
  768. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_partial.haml +0 -8
  769. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_text_area.haml +0 -3
  770. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_text_area_helper.html.haml +0 -4
  771. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/action_view.haml +0 -47
  772. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/action_view_ugly.haml +0 -47
  773. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/breakage.haml +0 -8
  774. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/content_for_layout.haml +0 -8
  775. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/eval_suppressed.haml +0 -11
  776. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/helpers.haml +0 -55
  777. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/helpful.haml +0 -11
  778. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/just_stuff.haml +0 -85
  779. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/list.haml +0 -12
  780. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/nuke_inner_whitespace.haml +0 -32
  781. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/nuke_outer_whitespace.haml +0 -144
  782. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/original_engine.haml +0 -17
  783. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partial_layout.haml +0 -3
  784. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partial_layout_erb.erb +0 -4
  785. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partialize.haml +0 -1
  786. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partials.haml +0 -12
  787. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/render_layout.haml +0 -2
  788. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/silent_script.haml +0 -45
  789. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/standard.haml +0 -43
  790. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/standard_ugly.haml +0 -43
  791. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/tag_parsing.haml +0 -21
  792. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/very_basic.haml +0 -4
  793. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/whitespace_handling.haml +0 -87
  794. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/test_helper.rb +0 -81
  795. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/util_test.rb +0 -63
  796. data/bundle/ruby/2.3.0/gems/highline-1.7.8/Changelog.md +0 -415
  797. data/bundle/ruby/2.3.0/gems/highline-1.7.8/Gemfile +0 -9
  798. data/bundle/ruby/2.3.0/gems/highline-1.7.8/INSTALL +0 -59
  799. data/bundle/ruby/2.3.0/gems/highline-1.7.8/README.rdoc +0 -74
  800. data/bundle/ruby/2.3.0/gems/highline-1.7.8/Rakefile +0 -30
  801. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/ansi_colors.rb +0 -38
  802. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/asking_for_arrays.rb +0 -18
  803. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/basic_usage.rb +0 -75
  804. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/color_scheme.rb +0 -32
  805. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/get_character.rb +0 -12
  806. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/limit.rb +0 -12
  807. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/menus.rb +0 -65
  808. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/overwrite.rb +0 -19
  809. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/page_and_wrap.rb +0 -322
  810. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/password.rb +0 -7
  811. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb +0 -21
  812. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/trapping_eof.rb +0 -22
  813. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb +0 -17
  814. data/bundle/ruby/2.3.0/gems/highline-1.7.8/highline.gemspec +0 -37
  815. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/color_scheme.rb +0 -134
  816. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/compatibility.rb +0 -16
  817. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/import.rb +0 -41
  818. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/menu.rb +0 -381
  819. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/question.rb +0 -480
  820. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/simulate.rb +0 -48
  821. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/string_extensions.rb +0 -111
  822. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/style.rb +0 -192
  823. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/system_extensions.rb +0 -254
  824. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/version.rb +0 -4
  825. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline.rb +0 -1048
  826. data/bundle/ruby/2.3.0/gems/highline-1.7.8/setup.rb +0 -1360
  827. data/bundle/ruby/2.3.0/gems/highline-1.7.8/site/highline.css +0 -65
  828. data/bundle/ruby/2.3.0/gems/highline-1.7.8/site/images/logo.png +0 -0
  829. data/bundle/ruby/2.3.0/gems/highline-1.7.8/site/index.html +0 -58
  830. data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/string_methods.rb +0 -32
  831. data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_color_scheme.rb +0 -96
  832. data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_highline.rb +0 -1402
  833. data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_import.rb +0 -52
  834. data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_menu.rb +0 -439
  835. data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_simulator.rb +0 -23
  836. data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_string_extension.rb +0 -33
  837. data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_string_highline.rb +0 -38
  838. data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_style.rb +0 -578
  839. data/bundle/ruby/2.3.0/gems/ruby2ruby-2.4.0/History.rdoc +0 -406
  840. data/bundle/ruby/2.3.0/gems/ruby2ruby-2.4.0/Rakefile +0 -93
  841. data/bundle/ruby/2.3.0/gems/ruby2ruby-2.4.0/bin/r2r_show +0 -33
  842. data/bundle/ruby/2.3.0/gems/ruby2ruby-2.4.0/lib/ruby2ruby.rb +0 -1260
  843. data/bundle/ruby/2.3.0/gems/ruby2ruby-2.4.0/test/test_ruby2ruby.rb +0 -846
  844. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/History.rdoc +0 -962
  845. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/Manifest.txt +0 -34
  846. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/README.rdoc +0 -105
  847. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/Rakefile +0 -247
  848. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/bin/ruby_parse +0 -96
  849. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/bin/ruby_parse_extract_error +0 -156
  850. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/compare/normalize.rb +0 -146
  851. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/rp_extensions.rb +0 -81
  852. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/rp_stringscanner.rb +0 -64
  853. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/ruby18_parser.rb +0 -5793
  854. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/ruby18_parser.y +0 -1908
  855. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/ruby19_parser.rb +0 -6179
  856. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/ruby19_parser.y +0 -2116
  857. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/ruby20_parser.rb +0 -6687
  858. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/ruby20_parser.y +0 -2345
  859. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/ruby21_parser.rb +0 -6762
  860. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/ruby21_parser.y +0 -2362
  861. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/ruby22_parser.rb +0 -6811
  862. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/ruby22_parser.y +0 -2376
  863. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/ruby23_parser.rb +0 -6819
  864. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/ruby23_parser.y +0 -2378
  865. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/ruby24_parser.rb +0 -6819
  866. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/ruby24_parser.y +0 -2378
  867. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/ruby_lexer.rb +0 -1340
  868. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/ruby_lexer.rex +0 -177
  869. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/ruby_lexer.rex.rb +0 -323
  870. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/ruby_parser.rb +0 -86
  871. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/ruby_parser.yy +0 -2475
  872. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/lib/ruby_parser_extras.rb +0 -1382
  873. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/test/test_ruby_lexer.rb +0 -2877
  874. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/test/test_ruby_parser.rb +0 -3766
  875. data/bundle/ruby/2.3.0/gems/ruby_parser-3.10.1/test/test_ruby_parser_extras.rb +0 -226
  876. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/CHANGES.md +0 -149
  877. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/Rakefile +0 -26
  878. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/bin/safe_yaml +0 -75
  879. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/date.rb +0 -35
  880. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/version.rb +0 -3
  881. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/exploit.1.9.2.yaml +0 -2
  882. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/exploit.1.9.3.yaml +0 -2
  883. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/issue48.txt +0 -20
  884. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/issue49.yml +0 -0
  885. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/libyaml_checker_spec.rb +0 -69
  886. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/psych_resolver_spec.rb +0 -10
  887. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/resolver_specs.rb +0 -278
  888. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/safe_yaml_spec.rb +0 -731
  889. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/spec_helper.rb +0 -42
  890. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/support/exploitable_back_door.rb +0 -29
  891. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/syck_resolver_spec.rb +0 -10
  892. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb +0 -11
  893. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_date_spec.rb +0 -60
  894. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_float_spec.rb +0 -42
  895. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_integer_spec.rb +0 -64
  896. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_symbol_spec.rb +0 -51
  897. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/yaml_spec.rb +0 -15
  898. data/bundle/ruby/2.3.0/gems/sass-3.4.25/CODE_OF_CONDUCT.md +0 -10
  899. data/bundle/ruby/2.3.0/gems/sass-3.4.25/CONTRIBUTING.md +0 -148
  900. data/bundle/ruby/2.3.0/gems/sass-3.4.25/MIT-LICENSE +0 -20
  901. data/bundle/ruby/2.3.0/gems/sass-3.4.25/README.md +0 -227
  902. data/bundle/ruby/2.3.0/gems/sass-3.4.25/REVISION +0 -1
  903. data/bundle/ruby/2.3.0/gems/sass-3.4.25/Rakefile +0 -453
  904. data/bundle/ruby/2.3.0/gems/sass-3.4.25/VERSION +0 -1
  905. data/bundle/ruby/2.3.0/gems/sass-3.4.25/VERSION_DATE +0 -1
  906. data/bundle/ruby/2.3.0/gems/sass-3.4.25/VERSION_NAME +0 -1
  907. data/bundle/ruby/2.3.0/gems/sass-3.4.25/bin/sass +0 -13
  908. data/bundle/ruby/2.3.0/gems/sass-3.4.25/bin/sass-convert +0 -12
  909. data/bundle/ruby/2.3.0/gems/sass-3.4.25/bin/scss +0 -13
  910. data/bundle/ruby/2.3.0/gems/sass-3.4.25/extra/sass-spec-ref.sh +0 -32
  911. data/bundle/ruby/2.3.0/gems/sass-3.4.25/extra/update_watch.rb +0 -13
  912. data/bundle/ruby/2.3.0/gems/sass-3.4.25/init.rb +0 -18
  913. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/cache_stores/base.rb +0 -88
  914. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/cache_stores/chain.rb +0 -34
  915. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/cache_stores/filesystem.rb +0 -60
  916. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/cache_stores/memory.rb +0 -46
  917. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/cache_stores/null.rb +0 -25
  918. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/cache_stores.rb +0 -15
  919. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/callbacks.rb +0 -67
  920. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/css.rb +0 -408
  921. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/deprecation.rb +0 -55
  922. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/engine.rb +0 -1226
  923. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/environment.rb +0 -215
  924. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/error.rb +0 -198
  925. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/exec/base.rb +0 -199
  926. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/exec/sass_convert.rb +0 -283
  927. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/exec/sass_scss.rb +0 -440
  928. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/exec.rb +0 -9
  929. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/features.rb +0 -47
  930. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/importers/base.rb +0 -182
  931. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/importers/deprecated_path.rb +0 -51
  932. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/importers/filesystem.rb +0 -219
  933. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/importers.rb +0 -23
  934. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/logger/base.rb +0 -36
  935. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/logger/delayed.rb +0 -50
  936. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/logger/log_level.rb +0 -45
  937. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/logger.rb +0 -17
  938. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/media.rb +0 -210
  939. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/plugin/compiler.rb +0 -582
  940. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/plugin/configuration.rb +0 -134
  941. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/plugin/generic.rb +0 -15
  942. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/plugin/merb.rb +0 -48
  943. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/plugin/rack.rb +0 -60
  944. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/plugin/rails.rb +0 -47
  945. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/plugin/staleness_checker.rb +0 -199
  946. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/plugin.rb +0 -134
  947. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/railtie.rb +0 -10
  948. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/repl.rb +0 -57
  949. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/root.rb +0 -7
  950. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/css_lexer.rb +0 -33
  951. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/css_parser.rb +0 -33
  952. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/css_variable_warning.rb +0 -52
  953. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/functions.rb +0 -2693
  954. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/lexer.rb +0 -464
  955. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/parser.rb +0 -832
  956. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/tree/funcall.rb +0 -313
  957. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/tree/interpolation.rb +0 -223
  958. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/tree/list_literal.rb +0 -104
  959. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/tree/literal.rb +0 -49
  960. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/tree/map_literal.rb +0 -64
  961. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/tree/node.rb +0 -127
  962. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/tree/operation.rb +0 -156
  963. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/tree/selector.rb +0 -26
  964. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/tree/string_interpolation.rb +0 -125
  965. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/tree/unary_operation.rb +0 -69
  966. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/tree/variable.rb +0 -57
  967. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/tree.rb +0 -16
  968. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/value/arg_list.rb +0 -36
  969. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/value/base.rb +0 -241
  970. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/value/bool.rb +0 -35
  971. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/value/color.rb +0 -698
  972. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/value/helpers.rb +0 -272
  973. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/value/list.rb +0 -113
  974. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/value/map.rb +0 -70
  975. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/value/null.rb +0 -44
  976. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/value/number.rb +0 -563
  977. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/value/string.rb +0 -138
  978. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/value.rb +0 -11
  979. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script.rb +0 -66
  980. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/scss/css_parser.rb +0 -56
  981. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/scss/parser.rb +0 -1254
  982. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/scss/rx.rb +0 -140
  983. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/scss/static_parser.rb +0 -373
  984. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/scss.rb +0 -14
  985. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/selector/abstract_sequence.rb +0 -111
  986. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/selector/comma_sequence.rb +0 -191
  987. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/selector/pseudo.rb +0 -266
  988. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/selector/sequence.rb +0 -636
  989. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/selector/simple.rb +0 -117
  990. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/selector/simple_sequence.rb +0 -344
  991. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/selector.rb +0 -323
  992. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/shared.rb +0 -76
  993. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/source/map.rb +0 -213
  994. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/source/position.rb +0 -39
  995. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/source/range.rb +0 -41
  996. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/stack.rb +0 -120
  997. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/supports.rb +0 -225
  998. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/at_root_node.rb +0 -83
  999. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/charset_node.rb +0 -22
  1000. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/comment_node.rb +0 -82
  1001. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/content_node.rb +0 -9
  1002. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/css_import_node.rb +0 -68
  1003. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/debug_node.rb +0 -18
  1004. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/directive_node.rb +0 -59
  1005. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/each_node.rb +0 -24
  1006. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/error_node.rb +0 -18
  1007. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/extend_node.rb +0 -43
  1008. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/for_node.rb +0 -36
  1009. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/function_node.rb +0 -44
  1010. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/if_node.rb +0 -52
  1011. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/import_node.rb +0 -75
  1012. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/keyframe_rule_node.rb +0 -15
  1013. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/media_node.rb +0 -48
  1014. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/mixin_def_node.rb +0 -38
  1015. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/mixin_node.rb +0 -52
  1016. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/node.rb +0 -240
  1017. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/prop_node.rb +0 -170
  1018. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/return_node.rb +0 -19
  1019. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/root_node.rb +0 -44
  1020. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/rule_node.rb +0 -155
  1021. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/supports_node.rb +0 -38
  1022. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/trace_node.rb +0 -33
  1023. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/variable_node.rb +0 -36
  1024. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/visitors/base.rb +0 -72
  1025. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/visitors/check_nesting.rb +0 -173
  1026. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/visitors/convert.rb +0 -351
  1027. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/visitors/cssize.rb +0 -373
  1028. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/visitors/deep_copy.rb +0 -107
  1029. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/visitors/extend.rb +0 -70
  1030. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/visitors/perform.rb +0 -564
  1031. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/visitors/set_options.rb +0 -139
  1032. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/visitors/to_css.rb +0 -409
  1033. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/warn_node.rb +0 -18
  1034. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/tree/while_node.rb +0 -18
  1035. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/util/cross_platform_random.rb +0 -19
  1036. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/util/multibyte_string_scanner.rb +0 -155
  1037. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/util/normalized_map.rb +0 -129
  1038. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/util/ordered_hash.rb +0 -192
  1039. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/util/subset_map.rb +0 -109
  1040. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/util/test.rb +0 -9
  1041. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/util.rb +0 -1375
  1042. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/version.rb +0 -124
  1043. data/bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass.rb +0 -109
  1044. data/bundle/ruby/2.3.0/gems/sass-3.4.25/rails/init.rb +0 -1
  1045. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/cache_test.rb +0 -131
  1046. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/callbacks_test.rb +0 -61
  1047. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/compiler_test.rb +0 -236
  1048. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/conversion_test.rb +0 -2188
  1049. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/css2sass_test.rb +0 -526
  1050. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/css_variable_test.rb +0 -132
  1051. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/data/hsl-rgb.txt +0 -319
  1052. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/encoding_test.rb +0 -219
  1053. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/engine_test.rb +0 -3447
  1054. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/exec_test.rb +0 -96
  1055. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/extend_test.rb +0 -1733
  1056. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/fixtures/test_staleness_check_across_importers.css +0 -1
  1057. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/fixtures/test_staleness_check_across_importers.scss +0 -1
  1058. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/functions_test.rb +0 -1977
  1059. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/importer_test.rb +0 -421
  1060. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/logger_test.rb +0 -58
  1061. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/mock_importer.rb +0 -49
  1062. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/more_results/more1.css +0 -9
  1063. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/more_results/more1_with_line_comments.css +0 -26
  1064. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/more_results/more_import.css +0 -29
  1065. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/more_templates/_more_partial.sass +0 -2
  1066. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/more_templates/more1.sass +0 -23
  1067. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/more_templates/more_import.sass +0 -11
  1068. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/plugin_test.rb +0 -556
  1069. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/alt.css +0 -4
  1070. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/basic.css +0 -9
  1071. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/cached_import_option.css +0 -3
  1072. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/compact.css +0 -5
  1073. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/complex.css +0 -86
  1074. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/compressed.css +0 -1
  1075. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/expanded.css +0 -19
  1076. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/filename_fn.css +0 -3
  1077. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/if.css +0 -3
  1078. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/import.css +0 -31
  1079. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/import_charset.css +0 -5
  1080. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/import_charset_1_8.css +0 -5
  1081. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/import_charset_ibm866.css +0 -5
  1082. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/import_content.css +0 -1
  1083. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/line_numbers.css +0 -49
  1084. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/mixins.css +0 -95
  1085. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/multiline.css +0 -24
  1086. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/nested.css +0 -22
  1087. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/options.css +0 -1
  1088. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/parent_ref.css +0 -13
  1089. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/script.css +0 -16
  1090. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/scss_import.css +0 -31
  1091. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/scss_importee.css +0 -2
  1092. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/subdir/nested_subdir/nested_subdir.css +0 -1
  1093. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/subdir/subdir.css +0 -3
  1094. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/units.css +0 -11
  1095. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/warn.css +0 -0
  1096. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/results/warn_imported.css +0 -0
  1097. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/script_conversion_test.rb +0 -357
  1098. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/script_test.rb +0 -1431
  1099. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/scss/css_test.rb +0 -1281
  1100. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/scss/rx_test.rb +0 -160
  1101. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/scss/scss_test.rb +0 -4205
  1102. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/scss/test_helper.rb +0 -37
  1103. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/source_map_test.rb +0 -1055
  1104. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/superselector_test.rb +0 -210
  1105. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/_cached_import_option_partial.scss +0 -1
  1106. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/_double_import_loop2.sass +0 -1
  1107. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/_filename_fn_import.scss +0 -11
  1108. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/_imported_charset_ibm866.sass +0 -4
  1109. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/_imported_charset_utf8.sass +0 -4
  1110. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/_imported_content.sass +0 -3
  1111. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/_partial.sass +0 -2
  1112. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/_same_name_different_partiality.scss +0 -1
  1113. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/alt.sass +0 -16
  1114. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/basic.sass +0 -23
  1115. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/bork1.sass +0 -2
  1116. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/bork2.sass +0 -2
  1117. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/bork3.sass +0 -2
  1118. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/bork4.sass +0 -2
  1119. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/bork5.sass +0 -3
  1120. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/cached_import_option.scss +0 -3
  1121. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/compact.sass +0 -17
  1122. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/complex.sass +0 -305
  1123. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/compressed.sass +0 -15
  1124. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/double_import_loop1.sass +0 -1
  1125. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/expanded.sass +0 -17
  1126. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/filename_fn.scss +0 -18
  1127. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/if.sass +0 -11
  1128. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/import.sass +0 -12
  1129. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/import_charset.sass +0 -9
  1130. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/import_charset_1_8.sass +0 -6
  1131. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/import_charset_ibm866.sass +0 -11
  1132. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/import_content.sass +0 -4
  1133. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/importee.less +0 -2
  1134. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/importee.sass +0 -19
  1135. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/line_numbers.sass +0 -13
  1136. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/mixin_bork.sass +0 -5
  1137. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/mixins.sass +0 -76
  1138. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/multiline.sass +0 -20
  1139. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/nested.sass +0 -25
  1140. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/nested_bork1.sass +0 -2
  1141. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/nested_bork2.sass +0 -2
  1142. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/nested_bork3.sass +0 -2
  1143. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/nested_bork4.sass +0 -2
  1144. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/nested_import.sass +0 -2
  1145. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/nested_mixin_bork.sass +0 -6
  1146. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/options.sass +0 -2
  1147. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/parent_ref.sass +0 -25
  1148. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/same_name_different_ext.sass +0 -2
  1149. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/same_name_different_ext.scss +0 -1
  1150. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/same_name_different_partiality.scss +0 -1
  1151. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/script.sass +0 -101
  1152. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/scss_import.scss +0 -12
  1153. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/scss_importee.scss +0 -1
  1154. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/single_import_loop.sass +0 -1
  1155. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/subdir/import_up1.scss +0 -1
  1156. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/subdir/import_up2.scss +0 -1
  1157. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/subdir/nested_subdir/_nested_partial.sass +0 -2
  1158. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/subdir/nested_subdir/nested_subdir.sass +0 -3
  1159. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/subdir/subdir.sass +0 -6
  1160. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/units.sass +0 -11
  1161. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/warn.sass +0 -3
  1162. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/templates/warn_imported.sass +0 -4
  1163. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/test_helper.rb +0 -8
  1164. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/util/multibyte_string_scanner_test.rb +0 -155
  1165. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/util/normalized_map_test.rb +0 -51
  1166. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/util/subset_map_test.rb +0 -91
  1167. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/util_test.rb +0 -438
  1168. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass/value_helpers_test.rb +0 -179
  1169. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/sass-spec.yml +0 -3
  1170. data/bundle/ruby/2.3.0/gems/sass-3.4.25/test/test_helper.rb +0 -110
  1171. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/CHANGELOG.md +0 -1
  1172. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/CONTRIBUTING.md +0 -38
  1173. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/Gemfile +0 -20
  1174. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/Guardfile +0 -8
  1175. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/LICENSE +0 -20
  1176. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/README.md +0 -349
  1177. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/Rakefile +0 -5
  1178. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/Vagrantfile +0 -96
  1179. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapter.rb +0 -327
  1180. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/bsd.rb +0 -75
  1181. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/darwin.rb +0 -48
  1182. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/linux.rb +0 -81
  1183. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/polling.rb +0 -58
  1184. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/windows.rb +0 -91
  1185. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/lib/listen/directory_record.rb +0 -406
  1186. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/lib/listen/listener.rb +0 -323
  1187. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/lib/listen/turnstile.rb +0 -32
  1188. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/lib/listen/version.rb +0 -3
  1189. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/lib/listen.rb +0 -54
  1190. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/listen.gemspec +0 -28
  1191. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapter_spec.rb +0 -149
  1192. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/bsd_spec.rb +0 -36
  1193. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/darwin_spec.rb +0 -37
  1194. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/linux_spec.rb +0 -47
  1195. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/polling_spec.rb +0 -68
  1196. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/windows_spec.rb +0 -30
  1197. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/spec/listen/directory_record_spec.rb +0 -1250
  1198. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/spec/listen/listener_spec.rb +0 -258
  1199. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/spec/listen/turnstile_spec.rb +0 -56
  1200. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/spec/listen_spec.rb +0 -67
  1201. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/spec/spec_helper.rb +0 -25
  1202. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/spec/support/adapter_helper.rb +0 -666
  1203. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/spec/support/directory_record_helper.rb +0 -57
  1204. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/spec/support/fixtures_helper.rb +0 -29
  1205. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/spec/support/listeners_helper.rb +0 -179
  1206. data/bundle/ruby/2.3.0/gems/sass-3.4.25/vendor/listen/spec/support/platform_helper.rb +0 -15
  1207. data/bundle/ruby/2.3.0/gems/sexp_processor-4.10.0/History.txt +0 -348
  1208. data/bundle/ruby/2.3.0/gems/sexp_processor-4.10.0/Manifest.txt +0 -14
  1209. data/bundle/ruby/2.3.0/gems/sexp_processor-4.10.0/Rakefile +0 -16
  1210. data/bundle/ruby/2.3.0/gems/sexp_processor-4.10.0/lib/pt_testcase.rb +0 -3123
  1211. data/bundle/ruby/2.3.0/gems/sexp_processor-4.10.0/lib/sexp.rb +0 -1414
  1212. data/bundle/ruby/2.3.0/gems/sexp_processor-4.10.0/lib/sexp_processor.rb +0 -754
  1213. data/bundle/ruby/2.3.0/gems/sexp_processor-4.10.0/lib/strict_sexp.rb +0 -126
  1214. data/bundle/ruby/2.3.0/gems/sexp_processor-4.10.0/test/test_composite_sexp_processor.rb +0 -66
  1215. data/bundle/ruby/2.3.0/gems/sexp_processor-4.10.0/test/test_environment.rb +0 -94
  1216. data/bundle/ruby/2.3.0/gems/sexp_processor-4.10.0/test/test_sexp.rb +0 -1630
  1217. data/bundle/ruby/2.3.0/gems/sexp_processor-4.10.0/test/test_sexp_processor.rb +0 -399
  1218. data/bundle/ruby/2.3.0/gems/slim-3.0.7/CHANGES +0 -431
  1219. data/bundle/ruby/2.3.0/gems/slim-3.0.7/Gemfile +0 -69
  1220. data/bundle/ruby/2.3.0/gems/slim-3.0.7/LICENSE +0 -21
  1221. data/bundle/ruby/2.3.0/gems/slim-3.0.7/README.jp.md +0 -1230
  1222. data/bundle/ruby/2.3.0/gems/slim-3.0.7/README.md +0 -1230
  1223. data/bundle/ruby/2.3.0/gems/slim-3.0.7/Rakefile +0 -100
  1224. data/bundle/ruby/2.3.0/gems/slim-3.0.7/benchmarks/context.rb +0 -11
  1225. data/bundle/ruby/2.3.0/gems/slim-3.0.7/benchmarks/profile-parser.rb +0 -10
  1226. data/bundle/ruby/2.3.0/gems/slim-3.0.7/benchmarks/profile-render.rb +0 -12
  1227. data/bundle/ruby/2.3.0/gems/slim-3.0.7/benchmarks/run-benchmarks.rb +0 -126
  1228. data/bundle/ruby/2.3.0/gems/slim-3.0.7/benchmarks/run-diffbench.rb +0 -21
  1229. data/bundle/ruby/2.3.0/gems/slim-3.0.7/benchmarks/view.erb +0 -23
  1230. data/bundle/ruby/2.3.0/gems/slim-3.0.7/benchmarks/view.haml +0 -18
  1231. data/bundle/ruby/2.3.0/gems/slim-3.0.7/benchmarks/view.slim +0 -17
  1232. data/bundle/ruby/2.3.0/gems/slim-3.0.7/bin/slimrb +0 -6
  1233. data/bundle/ruby/2.3.0/gems/slim-3.0.7/doc/include.md +0 -20
  1234. data/bundle/ruby/2.3.0/gems/slim-3.0.7/doc/jp/include.md +0 -20
  1235. data/bundle/ruby/2.3.0/gems/slim-3.0.7/doc/jp/logic_less.md +0 -137
  1236. data/bundle/ruby/2.3.0/gems/slim-3.0.7/doc/jp/smart.md +0 -102
  1237. data/bundle/ruby/2.3.0/gems/slim-3.0.7/doc/jp/translator.md +0 -28
  1238. data/bundle/ruby/2.3.0/gems/slim-3.0.7/doc/logic_less.md +0 -137
  1239. data/bundle/ruby/2.3.0/gems/slim-3.0.7/doc/smart.md +0 -103
  1240. data/bundle/ruby/2.3.0/gems/slim-3.0.7/doc/translator.md +0 -28
  1241. data/bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/command.rb +0 -128
  1242. data/bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/embedded.rb +0 -273
  1243. data/bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/engine.rb +0 -39
  1244. data/bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/filter.rb +0 -30
  1245. data/bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/grammar.rb +0 -20
  1246. data/bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/logic_less/context.rb +0 -127
  1247. data/bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/parser.rb +0 -537
  1248. data/bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/smart/parser.rb +0 -36
  1249. data/bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/splat/builder.rb +0 -101
  1250. data/bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/version.rb +0 -5
  1251. data/bundle/ruby/2.3.0/gems/slim-3.0.7/slim.gemspec +0 -24
  1252. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/core/helper.rb +0 -211
  1253. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/core/test_code_blocks.rb +0 -183
  1254. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/core/test_code_escaping.rb +0 -150
  1255. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/core/test_code_evaluation.rb +0 -180
  1256. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/core/test_code_output.rb +0 -168
  1257. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/core/test_code_structure.rb +0 -186
  1258. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/core/test_commands.rb +0 -223
  1259. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/core/test_embedded_engines.rb +0 -242
  1260. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/core/test_encoding.rb +0 -28
  1261. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/core/test_erb_converter.rb +0 -67
  1262. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/core/test_html_attributes.rb +0 -268
  1263. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/core/test_html_escaping.rb +0 -65
  1264. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/core/test_html_structure.rb +0 -553
  1265. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/core/test_parser_errors.rb +0 -148
  1266. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/core/test_pretty.rb +0 -166
  1267. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/core/test_ruby_errors.rb +0 -207
  1268. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/core/test_slim_template.rb +0 -77
  1269. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/core/test_tabs.rb +0 -169
  1270. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/core/test_text_interpolation.rb +0 -79
  1271. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/core/test_thread_options.rb +0 -18
  1272. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/core/test_unicode.rb +0 -16
  1273. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/include/files/recursive.slim +0 -1
  1274. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/include/files/slimfile.slim +0 -3
  1275. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/include/files/subdir/test.slim +0 -1
  1276. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/include/files/textfile +0 -1
  1277. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/include/test_include.rb +0 -24
  1278. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/literate/TESTS.md +0 -1290
  1279. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/literate/helper.rb +0 -15
  1280. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/literate/run.rb +0 -92
  1281. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/logic_less/test_logic_less.rb +0 -295
  1282. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/Rakefile +0 -7
  1283. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/controllers/application_controller.rb +0 -2
  1284. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/controllers/entries_controller.rb +0 -5
  1285. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/controllers/slim_controller.rb +0 -40
  1286. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/helpers/application_helper.rb +0 -5
  1287. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/models/entry.rb +0 -16
  1288. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/views/entries/edit.html.slim +0 -3
  1289. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/views/layouts/application.html.slim +0 -10
  1290. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/views/slim/_partial.html.slim +0 -1
  1291. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/views/slim/content_for.html.slim +0 -7
  1292. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/views/slim/erb.html.erb +0 -1
  1293. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/views/slim/form_for.html.slim +0 -2
  1294. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/views/slim/helper.html.slim +0 -4
  1295. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/views/slim/integers.html.slim +0 -1
  1296. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/views/slim/no_layout.html.slim +0 -1
  1297. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/views/slim/normal.html.slim +0 -1
  1298. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/views/slim/partial.html.slim +0 -2
  1299. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/views/slim/splat.html.slim +0 -2
  1300. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/views/slim/thread_options.html.slim +0 -1
  1301. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/views/slim/variables.html.slim +0 -1
  1302. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/views/slim/xml.slim +0 -1
  1303. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/config/application.rb +0 -44
  1304. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/config/boot.rb +0 -10
  1305. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/config/environment.rb +0 -5
  1306. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/config/environments/test.rb +0 -34
  1307. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/config/initializers/backtrace_silencers.rb +0 -7
  1308. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/config/initializers/inflections.rb +0 -10
  1309. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/config/initializers/mime_types.rb +0 -5
  1310. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/config/initializers/secret_token.rb +0 -7
  1311. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/config/initializers/session_store.rb +0 -8
  1312. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/config/locales/en.yml +0 -5
  1313. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/config/routes.rb +0 -60
  1314. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/config.ru +0 -4
  1315. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/script/rails +0 -6
  1316. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/test/helper.rb +0 -31
  1317. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/test/test_slim.rb +0 -90
  1318. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/smart/test_smart_text.rb +0 -296
  1319. data/bundle/ruby/2.3.0/gems/slim-3.0.7/test/translator/test_translator.rb +0 -76
  1320. data/bundle/ruby/2.3.0/gems/temple-0.7.7/CHANGES +0 -240
  1321. data/bundle/ruby/2.3.0/gems/temple-0.7.7/EXPRESSIONS.md +0 -261
  1322. data/bundle/ruby/2.3.0/gems/temple-0.7.7/README.md +0 -267
  1323. data/bundle/ruby/2.3.0/gems/temple-0.7.7/Rakefile +0 -25
  1324. data/bundle/ruby/2.3.0/gems/temple-0.7.7/lib/temple/filters/static_analyzer.rb +0 -87
  1325. data/bundle/ruby/2.3.0/gems/temple-0.7.7/lib/temple/filters/string_splitter.rb +0 -130
  1326. data/bundle/ruby/2.3.0/gems/temple-0.7.7/lib/temple/mixins/dispatcher.rb +0 -160
  1327. data/bundle/ruby/2.3.0/gems/temple-0.7.7/lib/temple/templates/rails.rb +0 -26
  1328. data/bundle/ruby/2.3.0/gems/temple-0.7.7/lib/temple/version.rb +0 -3
  1329. data/bundle/ruby/2.3.0/gems/temple-0.7.7/lib/temple.rb +0 -66
  1330. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_code_merger.rb +0 -38
  1331. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_control_flow.rb +0 -90
  1332. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_dynamic_inliner.rb +0 -95
  1333. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_eraser.rb +0 -55
  1334. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_escapable.rb +0 -49
  1335. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_multi_flattener.rb +0 -33
  1336. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_static_analyzer.rb +0 -23
  1337. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_static_merger.rb +0 -41
  1338. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb +0 -18
  1339. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/helper.rb +0 -30
  1340. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/html/test_attribute_merger.rb +0 -76
  1341. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/html/test_attribute_remover.rb +0 -43
  1342. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/html/test_attribute_sorter.rb +0 -48
  1343. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/html/test_fast.rb +0 -97
  1344. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/html/test_pretty.rb +0 -55
  1345. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/mixins/test_dispatcher.rb +0 -70
  1346. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/mixins/test_grammar_dsl.rb +0 -86
  1347. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/test_engine.rb +0 -189
  1348. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/test_erb.rb +0 -61
  1349. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/test_filter.rb +0 -29
  1350. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/test_generator.rb +0 -158
  1351. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/test_grammar.rb +0 -47
  1352. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/test_map.rb +0 -39
  1353. data/bundle/ruby/2.3.0/gems/temple-0.7.7/test/test_utils.rb +0 -39
  1354. data/bundle/ruby/2.3.0/gems/terminal-table-1.8.0/Rakefile +0 -15
  1355. data/bundle/ruby/2.3.0/gems/terminal-table-1.8.0/examples/examples.rb +0 -83
  1356. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/CHANGELOG.md +0 -127
  1357. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/Gemfile +0 -65
  1358. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/HACKING +0 -16
  1359. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/README.md +0 -233
  1360. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/Rakefile +0 -106
  1361. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/bin/tilt +0 -122
  1362. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/docs/TEMPLATES.md +0 -555
  1363. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/docs/common.css +0 -14
  1364. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/lib/tilt/commonmarker.rb +0 -21
  1365. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/lib/tilt/csv.rb +0 -65
  1366. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/lib/tilt/erb.rb +0 -57
  1367. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/lib/tilt/haml.rb +0 -86
  1368. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/lib/tilt/pandoc.rb +0 -49
  1369. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/lib/tilt/redcarpet.rb +0 -83
  1370. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/lib/tilt/rst-pandoc.rb +0 -18
  1371. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/lib/tilt/sass.rb +0 -41
  1372. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/lib/tilt/template.rb +0 -302
  1373. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/lib/tilt.rb +0 -166
  1374. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/man/index.txt +0 -2
  1375. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/man/tilt.1.ronn +0 -59
  1376. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/markaby/locals.mab +0 -1
  1377. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/markaby/markaby.mab +0 -1
  1378. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/markaby/markaby_other_static.mab +0 -1
  1379. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/markaby/render_twice.mab +0 -1
  1380. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/markaby/scope.mab +0 -1
  1381. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/markaby/yielding.mab +0 -2
  1382. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/mytemplate.rb +0 -2
  1383. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/test_helper.rb +0 -64
  1384. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_asciidoctor_test.rb +0 -50
  1385. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_babeltemplate.rb +0 -33
  1386. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_blueclothtemplate_test.rb +0 -33
  1387. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_buildertemplate_test.rb +0 -72
  1388. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_cache_test.rb +0 -43
  1389. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_coffeescripttemplate_test.rb +0 -141
  1390. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_commonmarkertemplate_test.rb +0 -20
  1391. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_compilesite_test.rb +0 -51
  1392. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_creoletemplate_test.rb +0 -24
  1393. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_csv_test.rb +0 -77
  1394. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_erbtemplate_test.rb +0 -239
  1395. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_erubistemplate_test.rb +0 -151
  1396. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_erubitemplate_test.rb +0 -158
  1397. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_etannitemplate_test.rb +0 -174
  1398. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_hamltemplate_test.rb +0 -166
  1399. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_kramdown_test.rb +0 -20
  1400. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_lesstemplate_test.less +0 -1
  1401. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_lesstemplate_test.rb +0 -42
  1402. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_liquidtemplate_test.rb +0 -87
  1403. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_livescripttemplate_test.rb +0 -37
  1404. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_mapping_test.rb +0 -232
  1405. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_markaby_test.rb +0 -88
  1406. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_markdown_test.rb +0 -186
  1407. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_marukutemplate_test.rb +0 -36
  1408. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_metadata_test.rb +0 -42
  1409. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_nokogiritemplate_test.rb +0 -87
  1410. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_pandoctemplate_test.rb +0 -67
  1411. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_prawntemplate.prawn +0 -1
  1412. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_prawntemplate_test.rb +0 -75
  1413. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_radiustemplate_test.rb +0 -75
  1414. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_rdiscounttemplate_test.rb +0 -43
  1415. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_rdoctemplate_test.rb +0 -29
  1416. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_redcarpettemplate_test.rb +0 -54
  1417. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_redclothtemplate_test.rb +0 -36
  1418. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_rstpandoctemplate_test.rb +0 -32
  1419. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_sasstemplate_test.rb +0 -41
  1420. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_sigil_test.rb +0 -41
  1421. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_stringtemplate_test.rb +0 -171
  1422. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_template_test.rb +0 -314
  1423. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_test.rb +0 -60
  1424. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_typescript_test.rb +0 -38
  1425. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_wikiclothtemplate_test.rb +0 -32
  1426. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/test/tilt_yajltemplate_test.rb +0 -101
  1427. data/bundle/ruby/2.3.0/gems/tilt-2.0.8/tilt.gemspec +0 -130
  1428. data/bundle/ruby/2.3.0/gems/unicode-display_width-1.3.0/CHANGELOG.md +0 -96
  1429. data/bundle/ruby/2.3.0/gems/unicode-display_width-1.3.0/MIT-LICENSE.txt +0 -22
  1430. data/bundle/ruby/2.3.0/gems/unicode-display_width-1.3.0/README.md +0 -120
  1431. data/bundle/ruby/2.3.0/gems/unicode-display_width-1.3.0/Rakefile +0 -64
  1432. data/bundle/ruby/2.3.0/gems/unicode-display_width-1.3.0/data/display_width.marshal.gz +0 -0
  1433. data/bundle/ruby/2.3.0/gems/unicode-display_width-1.3.0/lib/unicode/display_width/constants.rb +0 -8
  1434. data/bundle/ruby/2.3.0/gems/unicode-display_width-1.3.0/lib/unicode/display_width/index.rb +0 -7
  1435. data/bundle/ruby/2.3.0/gems/unicode-display_width-1.3.0/lib/unicode/display_width.rb +0 -51
  1436. data/bundle/ruby/2.3.0/gems/unicode-display_width-1.3.0/spec/display_width_spec.rb +0 -156
  1437. data/bundle/ruby/2.3.0/gems/unicode-display_width-1.3.0/unicode-display_width.gemspec +0 -18
  1438. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/CHANGES.txt +0 -0
  1439. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/MIT-LICENSE +0 -0
  1440. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/README.txt +0 -0
  1441. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/contrib/erubis +0 -0
  1442. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/contrib/erubis-run.rb +0 -0
  1443. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/contrib/inline-require +0 -0
  1444. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/context.rb +0 -0
  1445. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/converter.rb +0 -0
  1446. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine/ec.rb +0 -0
  1447. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine/ecpp.rb +0 -0
  1448. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine/ejava.rb +0 -0
  1449. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine/ejavascript.rb +0 -0
  1450. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine/enhanced.rb +0 -0
  1451. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine/eperl.rb +0 -0
  1452. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine/ephp.rb +0 -0
  1453. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine/eruby.rb +0 -0
  1454. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine/escheme.rb +0 -0
  1455. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine/optimized.rb +0 -0
  1456. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine.rb +0 -0
  1457. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/enhancer.rb +0 -0
  1458. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/error.rb +0 -0
  1459. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/evaluator.rb +0 -0
  1460. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/generator.rb +0 -0
  1461. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/helper.rb +0 -0
  1462. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/helpers/rails_form_helper.rb +0 -0
  1463. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/helpers/rails_helper.rb +0 -0
  1464. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/local-setting.rb +0 -0
  1465. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/main.rb +0 -0
  1466. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/preprocessing.rb +0 -0
  1467. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/tiny.rb +0 -0
  1468. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/util.rb +0 -0
  1469. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis.rb +0 -0
  1470. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/erubis-2.7.0/setup.rb +0 -0
  1471. /data/bundle/ruby/{2.3.0/gems/highline-1.7.8 → 3.1.0/gems/highline-2.1.0}/AUTHORS +0 -0
  1472. /data/bundle/ruby/{2.3.0/gems/highline-1.7.8 → 3.1.0/gems/highline-2.1.0}/COPYING +0 -0
  1473. /data/bundle/ruby/{2.3.0/gems/highline-1.7.8 → 3.1.0/gems/highline-2.1.0}/LICENSE +0 -0
  1474. /data/bundle/ruby/{2.3.0/gems/highline-1.7.8 → 3.1.0/gems/highline-2.1.0}/TODO +0 -0
  1475. /data/bundle/ruby/{2.3.0/gems/ruby2ruby-2.4.0 → 3.1.0/gems/ruby2ruby-2.4.4}/Manifest.txt +0 -0
  1476. /data/bundle/ruby/{2.3.0/gems/ruby2ruby-2.4.0 → 3.1.0/gems/ruby2ruby-2.4.4}/README.rdoc +0 -0
  1477. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/Gemfile +0 -0
  1478. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/LICENSE.txt +0 -0
  1479. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/README.md +0 -0
  1480. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/bundle_install_all_ruby_versions.sh +0 -0
  1481. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/deep.rb +0 -0
  1482. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/libyaml_checker.rb +0 -0
  1483. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/load.rb +0 -0
  1484. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/parse/hexadecimal.rb +0 -0
  1485. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/parse/sexagesimal.rb +0 -0
  1486. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/psych_handler.rb +0 -0
  1487. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/psych_resolver.rb +0 -0
  1488. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/resolver.rb +0 -0
  1489. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/safe_to_ruby_visitor.rb +0 -0
  1490. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/syck_hack.rb +0 -0
  1491. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/syck_node_monkeypatch.rb +0 -0
  1492. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/syck_resolver.rb +0 -0
  1493. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_boolean.rb +0 -0
  1494. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_date.rb +0 -0
  1495. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_float.rb +0 -0
  1496. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_integer.rb +0 -0
  1497. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_nil.rb +0 -0
  1498. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_symbol.rb +0 -0
  1499. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/transformation_map.rb +0 -0
  1500. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform.rb +0 -0
  1501. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/lib/safe_yaml.rb +0 -0
  1502. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/run_specs_all_ruby_versions.sh +0 -0
  1503. /data/bundle/ruby/{2.3.0/gems/safe_yaml-1.0.4 → 3.1.0/gems/safe_yaml-1.0.5}/safe_yaml.gemspec +0 -0
  1504. /data/bundle/ruby/{2.3.0/gems/sexp_processor-4.10.0/README.txt → 3.1.0/gems/sexp_processor-4.16.1/README.rdoc} +0 -0
  1505. /data/bundle/ruby/{2.3.0/gems/sexp_processor-4.10.0 → 3.1.0/gems/sexp_processor-4.16.1}/lib/composite_sexp_processor.rb +0 -0
  1506. /data/bundle/ruby/{2.3.0/gems/sexp_processor-4.10.0 → 3.1.0/gems/sexp_processor-4.16.1}/lib/unique.rb +0 -0
  1507. /data/bundle/ruby/{2.3.0/gems/slim-3.0.7 → 3.1.0/gems/slim-4.1.0}/lib/slim/code_attributes.rb +0 -0
  1508. /data/bundle/ruby/{2.3.0/gems/slim-3.0.7 → 3.1.0/gems/slim-4.1.0}/lib/slim/controls.rb +0 -0
  1509. /data/bundle/ruby/{2.3.0/gems/slim-3.0.7 → 3.1.0/gems/slim-4.1.0}/lib/slim/do_inserter.rb +0 -0
  1510. /data/bundle/ruby/{2.3.0/gems/slim-3.0.7 → 3.1.0/gems/slim-4.1.0}/lib/slim/end_inserter.rb +0 -0
  1511. /data/bundle/ruby/{2.3.0/gems/slim-3.0.7 → 3.1.0/gems/slim-4.1.0}/lib/slim/erb_converter.rb +0 -0
  1512. /data/bundle/ruby/{2.3.0/gems/slim-3.0.7 → 3.1.0/gems/slim-4.1.0}/lib/slim/include.rb +0 -0
  1513. /data/bundle/ruby/{2.3.0/gems/slim-3.0.7 → 3.1.0/gems/slim-4.1.0}/lib/slim/interpolation.rb +0 -0
  1514. /data/bundle/ruby/{2.3.0/gems/slim-3.0.7 → 3.1.0/gems/slim-4.1.0}/lib/slim/logic_less/filter.rb +0 -0
  1515. /data/bundle/ruby/{2.3.0/gems/slim-3.0.7 → 3.1.0/gems/slim-4.1.0}/lib/slim/logic_less.rb +0 -0
  1516. /data/bundle/ruby/{2.3.0/gems/slim-3.0.7 → 3.1.0/gems/slim-4.1.0}/lib/slim/smart/escaper.rb +0 -0
  1517. /data/bundle/ruby/{2.3.0/gems/slim-3.0.7 → 3.1.0/gems/slim-4.1.0}/lib/slim/smart/filter.rb +0 -0
  1518. /data/bundle/ruby/{2.3.0/gems/slim-3.0.7 → 3.1.0/gems/slim-4.1.0}/lib/slim/smart.rb +0 -0
  1519. /data/bundle/ruby/{2.3.0/gems/slim-3.0.7 → 3.1.0/gems/slim-4.1.0}/lib/slim/splat/filter.rb +0 -0
  1520. /data/bundle/ruby/{2.3.0/gems/slim-3.0.7 → 3.1.0/gems/slim-4.1.0}/lib/slim/template.rb +0 -0
  1521. /data/bundle/ruby/{2.3.0/gems/slim-3.0.7 → 3.1.0/gems/slim-4.1.0}/lib/slim/translator.rb +0 -0
  1522. /data/bundle/ruby/{2.3.0/gems/slim-3.0.7 → 3.1.0/gems/slim-4.1.0}/lib/slim.rb +0 -0
  1523. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/Gemfile +0 -0
  1524. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/LICENSE +0 -0
  1525. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/engine.rb +0 -0
  1526. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/erb/engine.rb +0 -0
  1527. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/erb/parser.rb +0 -0
  1528. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/erb/template.rb +0 -0
  1529. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/erb/trimming.rb +0 -0
  1530. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/exceptions.rb +0 -0
  1531. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/filter.rb +0 -0
  1532. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/filters/code_merger.rb +0 -0
  1533. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/filters/control_flow.rb +0 -0
  1534. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/filters/dynamic_inliner.rb +0 -0
  1535. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/filters/encoding.rb +0 -0
  1536. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/filters/eraser.rb +0 -0
  1537. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/filters/escapable.rb +0 -0
  1538. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/filters/multi_flattener.rb +0 -0
  1539. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/filters/remove_bom.rb +0 -0
  1540. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/filters/static_merger.rb +0 -0
  1541. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/filters/validator.rb +0 -0
  1542. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/generator.rb +0 -0
  1543. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/generators/array.rb +0 -0
  1544. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/generators/array_buffer.rb +0 -0
  1545. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/generators/erb.rb +0 -0
  1546. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/generators/rails_output_buffer.rb +0 -0
  1547. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/generators/string_buffer.rb +0 -0
  1548. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/grammar.rb +0 -0
  1549. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/html/attribute_merger.rb +0 -0
  1550. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/html/attribute_remover.rb +0 -0
  1551. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/html/attribute_sorter.rb +0 -0
  1552. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/html/dispatcher.rb +0 -0
  1553. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/html/fast.rb +0 -0
  1554. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/html/filter.rb +0 -0
  1555. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/html/pretty.rb +0 -0
  1556. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/html/safe.rb +0 -0
  1557. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/map.rb +0 -0
  1558. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/mixins/engine_dsl.rb +0 -0
  1559. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/mixins/grammar_dsl.rb +0 -0
  1560. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/mixins/options.rb +0 -0
  1561. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/mixins/template.rb +0 -0
  1562. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/parser.rb +0 -0
  1563. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/templates/tilt.rb +0 -0
  1564. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/templates.rb +0 -0
  1565. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/lib/temple/utils.rb +0 -0
  1566. /data/bundle/ruby/{2.3.0/gems/temple-0.7.7 → 3.1.0/gems/temple-0.8.2}/temple.gemspec +0 -0
  1567. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/terminal-table-1.8.0/Gemfile +0 -0
  1568. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/terminal-table-1.8.0/History.rdoc +0 -0
  1569. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/terminal-table-1.8.0/LICENSE.txt +0 -0
  1570. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/terminal-table-1.8.0/Manifest +0 -0
  1571. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/terminal-table-1.8.0/README.rdoc +0 -0
  1572. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/terminal-table-1.8.0/Todo.rdoc +0 -0
  1573. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/terminal-table-1.8.0/lib/terminal-table/cell.rb +0 -0
  1574. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/terminal-table-1.8.0/lib/terminal-table/import.rb +0 -0
  1575. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/terminal-table-1.8.0/lib/terminal-table/row.rb +0 -0
  1576. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb +0 -0
  1577. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/terminal-table-1.8.0/lib/terminal-table/style.rb +0 -0
  1578. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/terminal-table-1.8.0/lib/terminal-table/table.rb +0 -0
  1579. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/terminal-table-1.8.0/lib/terminal-table/table_helper.rb +0 -0
  1580. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/terminal-table-1.8.0/lib/terminal-table/version.rb +0 -0
  1581. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/terminal-table-1.8.0/lib/terminal-table.rb +0 -0
  1582. /data/bundle/ruby/{2.3.0 → 3.1.0}/gems/terminal-table-1.8.0/terminal-table.gemspec +0 -0
  1583. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/COPYING +0 -0
  1584. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/asciidoc.rb +0 -0
  1585. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/babel.rb +0 -0
  1586. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/bluecloth.rb +0 -0
  1587. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/builder.rb +0 -0
  1588. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/coffee.rb +0 -0
  1589. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/creole.rb +0 -0
  1590. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/dummy.rb +0 -0
  1591. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/erubi.rb +0 -0
  1592. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/erubis.rb +0 -0
  1593. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/etanni.rb +0 -0
  1594. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/kramdown.rb +0 -0
  1595. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/less.rb +0 -0
  1596. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/liquid.rb +0 -0
  1597. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/livescript.rb +0 -0
  1598. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/mapping.rb +0 -0
  1599. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/markaby.rb +0 -0
  1600. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/maruku.rb +0 -0
  1601. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/nokogiri.rb +0 -0
  1602. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/plain.rb +0 -0
  1603. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/prawn.rb +0 -0
  1604. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/radius.rb +0 -0
  1605. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/rdiscount.rb +0 -0
  1606. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/rdoc.rb +0 -0
  1607. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/redcloth.rb +0 -0
  1608. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/sigil.rb +0 -0
  1609. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/string.rb +0 -0
  1610. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/typescript.rb +0 -0
  1611. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/wikicloth.rb +0 -0
  1612. /data/bundle/ruby/{2.3.0/gems/tilt-2.0.8 → 3.1.0/gems/tilt-2.0.11}/lib/tilt/yajl.rb +0 -0
  1613. /data/bundle/ruby/{2.3.0/gems/unicode-display_width-1.3.0 → 3.1.0/gems/unicode-display_width-1.8.0}/lib/unicode/display_width/no_string_ext.rb +0 -0
  1614. /data/bundle/ruby/{2.3.0/gems/unicode-display_width-1.3.0 → 3.1.0/gems/unicode-display_width-1.8.0}/lib/unicode/display_width/string_ext.rb +0 -0
@@ -0,0 +1,2599 @@
1
+ # frozen_string_literal: false
2
+ require_relative "parent"
3
+ require_relative "namespace"
4
+ require_relative "attribute"
5
+ require_relative "cdata"
6
+ require_relative "xpath"
7
+ require_relative "parseexception"
8
+
9
+ module REXML
10
+ # An implementation note about namespaces:
11
+ # As we parse, when we find namespaces we put them in a hash and assign
12
+ # them a unique ID. We then convert the namespace prefix for the node
13
+ # to the unique ID. This makes namespace lookup much faster for the
14
+ # cost of extra memory use. We save the namespace prefix for the
15
+ # context node and convert it back when we write it.
16
+ @@namespaces = {}
17
+
18
+ # An \REXML::Element object represents an XML element.
19
+ #
20
+ # An element:
21
+ #
22
+ # - Has a name (string).
23
+ # - May have a parent (another element).
24
+ # - Has zero or more children
25
+ # (other elements, text, CDATA, processing instructions, and comments).
26
+ # - Has zero or more siblings
27
+ # (other elements, text, CDATA, processing instructions, and comments).
28
+ # - Has zero or more named attributes.
29
+ #
30
+ # == In a Hurry?
31
+ #
32
+ # If you're somewhat familiar with XML
33
+ # and have a particular task in mind,
34
+ # you may want to see the
35
+ # {tasks pages}[../doc/rexml/tasks/tocs/master_toc_rdoc.html],
36
+ # and in particular, the
37
+ # {tasks page for elements}[../doc/rexml/tasks/tocs/element_toc_rdoc.html].
38
+ #
39
+ # === Name
40
+ #
41
+ # An element has a name, which is initially set when the element is created:
42
+ #
43
+ # e = REXML::Element.new('foo')
44
+ # e.name # => "foo"
45
+ #
46
+ # The name may be changed:
47
+ #
48
+ # e.name = 'bar'
49
+ # e.name # => "bar"
50
+ #
51
+ #
52
+ # === \Parent
53
+ #
54
+ # An element may have a parent.
55
+ #
56
+ # Its parent may be assigned explicitly when the element is created:
57
+ #
58
+ # e0 = REXML::Element.new('foo')
59
+ # e1 = REXML::Element.new('bar', e0)
60
+ # e1.parent # => <foo> ... </>
61
+ #
62
+ # Note: the representation of an element always shows the element's name.
63
+ # If the element has children, the representation indicates that
64
+ # by including an ellipsis (<tt>...</tt>).
65
+ #
66
+ # The parent may be assigned explicitly at any time:
67
+ #
68
+ # e2 = REXML::Element.new('baz')
69
+ # e1.parent = e2
70
+ # e1.parent # => <baz/>
71
+ #
72
+ # When an element is added as a child, its parent is set automatically:
73
+ #
74
+ # e1.add_element(e0)
75
+ # e0.parent # => <bar> ... </>
76
+ #
77
+ # For an element that has no parent, method +parent+ returns +nil+.
78
+ #
79
+ # === Children
80
+ #
81
+ # An element has zero or more children.
82
+ # The children are an ordered collection
83
+ # of all objects whose parent is the element itself.
84
+ #
85
+ # The children may include any combination of elements, text, comments,
86
+ # processing instructions, and CDATA.
87
+ # (This example keeps things clean by controlling whitespace
88
+ # via a +context+ setting.)
89
+ #
90
+ # xml_string = <<-EOT
91
+ # <root>
92
+ # <ele_0/>
93
+ # text 0
94
+ # <!--comment 0-->
95
+ # <?target_0 pi_0?>
96
+ # <![CDATA[cdata 0]]>
97
+ # <ele_1/>
98
+ # text 1
99
+ # <!--comment 1-->
100
+ # <?target_0 pi_1?>
101
+ # <![CDATA[cdata 1]]>
102
+ # </root>
103
+ # EOT
104
+ # context = {ignore_whitespace_nodes: :all, compress_whitespace: :all}
105
+ # d = REXML::Document.new(xml_string, context)
106
+ # root = d.root
107
+ # root.children.size # => 10
108
+ # root.each {|child| p "#{child.class}: #{child}" }
109
+ #
110
+ # Output:
111
+ #
112
+ # "REXML::Element: <ele_0/>"
113
+ # "REXML::Text: \n text 0\n "
114
+ # "REXML::Comment: comment 0"
115
+ # "REXML::Instruction: <?target_0 pi_0?>"
116
+ # "REXML::CData: cdata 0"
117
+ # "REXML::Element: <ele_1/>"
118
+ # "REXML::Text: \n text 1\n "
119
+ # "REXML::Comment: comment 1"
120
+ # "REXML::Instruction: <?target_0 pi_1?>"
121
+ # "REXML::CData: cdata 1"
122
+ #
123
+ # A child may be added using inherited methods
124
+ # Parent#insert_before or Parent#insert_after:
125
+ #
126
+ # xml_string = '<root><a/><c/><d/></root>'
127
+ # d = REXML::Document.new(xml_string)
128
+ # root = d.root
129
+ # c = d.root[1] # => <c/>
130
+ # root.insert_before(c, REXML::Element.new('b'))
131
+ # root.to_a # => [<a/>, <b/>, <c/>, <d/>]
132
+ #
133
+ # A child may be replaced using Parent#replace_child:
134
+ #
135
+ # root.replace_child(c, REXML::Element.new('x'))
136
+ # root.to_a # => [<a/>, <b/>, <x/>, <d/>]
137
+ #
138
+ # A child may be removed using Parent#delete:
139
+ #
140
+ # x = root[2] # => <x/>
141
+ # root.delete(x)
142
+ # root.to_a # => [<a/>, <b/>, <d/>]
143
+ #
144
+ # === Siblings
145
+ #
146
+ # An element has zero or more siblings,
147
+ # which are the other children of the element's parent.
148
+ #
149
+ # In the example above, element +ele_1+ is between a CDATA sibling
150
+ # and a text sibling:
151
+ #
152
+ # ele_1 = root[5] # => <ele_1/>
153
+ # ele_1.previous_sibling # => "cdata 0"
154
+ # ele_1.next_sibling # => "\n text 1\n "
155
+ #
156
+ # === \Attributes
157
+ #
158
+ # An element has zero or more named attributes.
159
+ #
160
+ # A new element has no attributes:
161
+ #
162
+ # e = REXML::Element.new('foo')
163
+ # e.attributes # => {}
164
+ #
165
+ # Attributes may be added:
166
+ #
167
+ # e.add_attribute('bar', 'baz')
168
+ # e.add_attribute('bat', 'bam')
169
+ # e.attributes.size # => 2
170
+ # e['bar'] # => "baz"
171
+ # e['bat'] # => "bam"
172
+ #
173
+ # An existing attribute may be modified:
174
+ #
175
+ # e.add_attribute('bar', 'bad')
176
+ # e.attributes.size # => 2
177
+ # e['bar'] # => "bad"
178
+ #
179
+ # An existing attribute may be deleted:
180
+ #
181
+ # e.delete_attribute('bar')
182
+ # e.attributes.size # => 1
183
+ # e['bar'] # => nil
184
+ #
185
+ # == What's Here
186
+ #
187
+ # To begin with, what's elsewhere?
188
+ #
189
+ # \Class \REXML::Element inherits from its ancestor classes:
190
+ #
191
+ # - REXML::Child
192
+ # - REXML::Parent
193
+ #
194
+ # \REXML::Element itself and its ancestors also include modules:
195
+ #
196
+ # - {Enumerable}[https://docs.ruby-lang.org/en/master/Enumerable.html]
197
+ # - REXML::Namespace
198
+ # - REXML::Node
199
+ # - REXML::XMLTokens
200
+ #
201
+ # === Methods for Creating an \Element
202
+ #
203
+ # ::new:: Returns a new empty element.
204
+ # #clone:: Returns a clone of another element.
205
+ #
206
+ # === Methods for Attributes
207
+ #
208
+ # {[attribute_name]}[#method-i-5B-5D]:: Returns an attribute value.
209
+ # #add_attribute:: Adds a new attribute.
210
+ # #add_attributes:: Adds multiple new attributes.
211
+ # #attribute:: Returns the attribute value for a given name and optional namespace.
212
+ # #delete_attribute:: Removes an attribute.
213
+ #
214
+ # === Methods for Children
215
+ #
216
+ # {[index]}[#method-i-5B-5D]:: Returns the child at the given offset.
217
+ # #add_element:: Adds an element as the last child.
218
+ # #delete_element:: Deletes a child element.
219
+ # #each_element:: Calls the given block with each child element.
220
+ # #each_element_with_attribute:: Calls the given block with each child element
221
+ # that meets given criteria,
222
+ # which can include the attribute name.
223
+ # #each_element_with_text:: Calls the given block with each child element
224
+ # that meets given criteria,
225
+ # which can include text.
226
+ # #get_elements:: Returns an array of element children that match a given xpath.
227
+ #
228
+ # === Methods for \Text Children
229
+ #
230
+ # #add_text:: Adds a text node to the element.
231
+ # #get_text:: Returns a text node that meets specified criteria.
232
+ # #text:: Returns the text string from the first node that meets specified criteria.
233
+ # #texts:: Returns an array of the text children of the element.
234
+ # #text=:: Adds, removes, or replaces the first text child of the element
235
+ #
236
+ # === Methods for Other Children
237
+ #
238
+ # #cdatas:: Returns an array of the cdata children of the element.
239
+ # #comments:: Returns an array of the comment children of the element.
240
+ # #instructions:: Returns an array of the instruction children of the element.
241
+ #
242
+ # === Methods for Namespaces
243
+ #
244
+ # #add_namespace:: Adds a namespace to the element.
245
+ # #delete_namespace:: Removes a namespace from the element.
246
+ # #namespace:: Returns the string namespace URI for the element.
247
+ # #namespaces:: Returns a hash of all defined namespaces in the element.
248
+ # #prefixes:: Returns an array of the string prefixes (names)
249
+ # of all defined namespaces in the element
250
+ #
251
+ # === Methods for Querying
252
+ #
253
+ # #document:: Returns the document, if any, that the element belongs to.
254
+ # #root:: Returns the most distant element (not document) ancestor of the element.
255
+ # #root_node:: Returns the most distant ancestor of the element.
256
+ # #xpath:: Returns the string xpath to the element
257
+ # relative to the most distant parent
258
+ # #has_attributes?:: Returns whether the element has attributes.
259
+ # #has_elements?:: Returns whether the element has elements.
260
+ # #has_text?:: Returns whether the element has text.
261
+ # #next_element:: Returns the next sibling that is an element.
262
+ # #previous_element:: Returns the previous sibling that is an element.
263
+ # #raw:: Returns whether raw mode is set for the element.
264
+ # #whitespace:: Returns whether whitespace is respected for the element.
265
+ # #ignore_whitespace_nodes:: Returns whether whitespace nodes
266
+ # are to be ignored for the element.
267
+ # #node_type:: Returns symbol <tt>:element</tt>.
268
+ #
269
+ # === One More Method
270
+ #
271
+ # #inspect:: Returns a string representation of the element.
272
+ #
273
+ # === Accessors
274
+ #
275
+ # #elements:: Returns the REXML::Elements object for the element.
276
+ # #attributes:: Returns the REXML::Attributes object for the element.
277
+ # #context:: Returns or sets the context hash for the element.
278
+ #
279
+ class Element < Parent
280
+ include Namespace
281
+
282
+ UNDEFINED = "UNDEFINED"; # The default name
283
+
284
+ # Mechanisms for accessing attributes and child elements of this
285
+ # element.
286
+ attr_reader :attributes, :elements
287
+ # The context holds information about the processing environment, such as
288
+ # whitespace handling.
289
+ attr_accessor :context
290
+
291
+ # :call-seq:
292
+ # Element.new(name = 'UNDEFINED', parent = nil, context = nil) -> new_element
293
+ # Element.new(element, parent = nil, context = nil) -> new_element
294
+ #
295
+ # Returns a new \REXML::Element object.
296
+ #
297
+ # When no arguments are given,
298
+ # returns an element with name <tt>'UNDEFINED'</tt>:
299
+ #
300
+ # e = REXML::Element.new # => <UNDEFINED/>
301
+ # e.class # => REXML::Element
302
+ # e.name # => "UNDEFINED"
303
+ #
304
+ # When only argument +name+ is given,
305
+ # returns an element of the given name:
306
+ #
307
+ # REXML::Element.new('foo') # => <foo/>
308
+ #
309
+ # When only argument +element+ is given, it must be an \REXML::Element object;
310
+ # returns a shallow copy of the given element:
311
+ #
312
+ # e0 = REXML::Element.new('foo')
313
+ # e1 = REXML::Element.new(e0) # => <foo/>
314
+ #
315
+ # When argument +parent+ is also given, it must be an REXML::Parent object:
316
+ #
317
+ # e = REXML::Element.new('foo', REXML::Parent.new)
318
+ # e.parent # => #<REXML::Parent @parent=nil, @children=[<foo/>]>
319
+ #
320
+ # When argument +context+ is also given, it must be a hash
321
+ # representing the context for the element;
322
+ # see {Element Context}[../doc/rexml/context_rdoc.html]:
323
+ #
324
+ # e = REXML::Element.new('foo', nil, {raw: :all})
325
+ # e.context # => {:raw=>:all}
326
+ #
327
+ def initialize( arg = UNDEFINED, parent=nil, context=nil )
328
+ super(parent)
329
+
330
+ @elements = Elements.new(self)
331
+ @attributes = Attributes.new(self)
332
+ @context = context
333
+
334
+ if arg.kind_of? String
335
+ self.name = arg
336
+ elsif arg.kind_of? Element
337
+ self.name = arg.expanded_name
338
+ arg.attributes.each_attribute{ |attribute|
339
+ @attributes << Attribute.new( attribute )
340
+ }
341
+ @context = arg.context
342
+ end
343
+ end
344
+
345
+ # :call-seq:
346
+ # inspect -> string
347
+ #
348
+ # Returns a string representation of the element.
349
+ #
350
+ # For an element with no attributes and no children, shows the element name:
351
+ #
352
+ # REXML::Element.new.inspect # => "<UNDEFINED/>"
353
+ #
354
+ # Shows attributes, if any:
355
+ #
356
+ # e = REXML::Element.new('foo')
357
+ # e.add_attributes({'bar' => 0, 'baz' => 1})
358
+ # e.inspect # => "<foo bar='0' baz='1'/>"
359
+ #
360
+ # Shows an ellipsis (<tt>...</tt>), if there are child elements:
361
+ #
362
+ # e.add_element(REXML::Element.new('bar'))
363
+ # e.add_element(REXML::Element.new('baz'))
364
+ # e.inspect # => "<foo bar='0' baz='1'> ... </>"
365
+ #
366
+ def inspect
367
+ rv = "<#@expanded_name"
368
+
369
+ @attributes.each_attribute do |attr|
370
+ rv << " "
371
+ attr.write( rv, 0 )
372
+ end
373
+
374
+ if children.size > 0
375
+ rv << "> ... </>"
376
+ else
377
+ rv << "/>"
378
+ end
379
+ end
380
+
381
+ # :call-seq:
382
+ # clone -> new_element
383
+ #
384
+ # Returns a shallow copy of the element, containing the name and attributes,
385
+ # but not the parent or children:
386
+ #
387
+ # e = REXML::Element.new('foo')
388
+ # e.add_attributes({'bar' => 0, 'baz' => 1})
389
+ # e.clone # => <foo bar='0' baz='1'/>
390
+ #
391
+ def clone
392
+ self.class.new self
393
+ end
394
+
395
+ # :call-seq:
396
+ # root_node -> document or element
397
+ #
398
+ # Returns the most distant ancestor of +self+.
399
+ #
400
+ # When the element is part of a document,
401
+ # returns the root node of the document.
402
+ # Note that the root node is different from the document element;
403
+ # in this example +a+ is document element and the root node is its parent:
404
+ #
405
+ # d = REXML::Document.new('<a><b><c/></b></a>')
406
+ # top_element = d.first # => <a> ... </>
407
+ # child = top_element.first # => <b> ... </>
408
+ # d.root_node == d # => true
409
+ # top_element.root_node == d # => true
410
+ # child.root_node == d # => true
411
+ #
412
+ # When the element is not part of a document, but does have ancestor elements,
413
+ # returns the most distant ancestor element:
414
+ #
415
+ # e0 = REXML::Element.new('foo')
416
+ # e1 = REXML::Element.new('bar')
417
+ # e1.parent = e0
418
+ # e2 = REXML::Element.new('baz')
419
+ # e2.parent = e1
420
+ # e2.root_node == e0 # => true
421
+ #
422
+ # When the element has no ancestor elements,
423
+ # returns +self+:
424
+ #
425
+ # e = REXML::Element.new('foo')
426
+ # e.root_node == e # => true
427
+ #
428
+ # Related: #root, #document.
429
+ #
430
+ def root_node
431
+ parent.nil? ? self : parent.root_node
432
+ end
433
+
434
+ # :call-seq:
435
+ # root -> element
436
+ #
437
+ # Returns the most distant _element_ (not document) ancestor of the element:
438
+ #
439
+ # d = REXML::Document.new('<a><b><c/></b></a>')
440
+ # top_element = d.first
441
+ # child = top_element.first
442
+ # top_element.root == top_element # => true
443
+ # child.root == top_element # => true
444
+ #
445
+ # For a document, returns the topmost element:
446
+ #
447
+ # d.root == top_element # => true
448
+ #
449
+ # Related: #root_node, #document.
450
+ #
451
+ def root
452
+ return elements[1] if self.kind_of? Document
453
+ return self if parent.kind_of? Document or parent.nil?
454
+ return parent.root
455
+ end
456
+
457
+ # :call-seq:
458
+ # document -> document or nil
459
+ #
460
+ # If the element is part of a document, returns that document:
461
+ #
462
+ # d = REXML::Document.new('<a><b><c/></b></a>')
463
+ # top_element = d.first
464
+ # child = top_element.first
465
+ # top_element.document == d # => true
466
+ # child.document == d # => true
467
+ #
468
+ # If the element is not part of a document, returns +nil+:
469
+ #
470
+ # REXML::Element.new.document # => nil
471
+ #
472
+ # For a document, returns +self+:
473
+ #
474
+ # d.document == d # => true
475
+ #
476
+ # Related: #root, #root_node.
477
+ #
478
+ def document
479
+ rt = root
480
+ rt.parent if rt
481
+ end
482
+
483
+ # :call-seq:
484
+ # whitespace
485
+ #
486
+ # Returns +true+ if whitespace is respected for this element,
487
+ # +false+ otherwise.
488
+ #
489
+ # See {Element Context}[../doc/rexml/context_rdoc.html].
490
+ #
491
+ # The evaluation is tested against the element's +expanded_name+,
492
+ # and so is namespace-sensitive.
493
+ def whitespace
494
+ @whitespace = nil
495
+ if @context
496
+ if @context[:respect_whitespace]
497
+ @whitespace = (@context[:respect_whitespace] == :all or
498
+ @context[:respect_whitespace].include? expanded_name)
499
+ end
500
+ @whitespace = false if (@context[:compress_whitespace] and
501
+ (@context[:compress_whitespace] == :all or
502
+ @context[:compress_whitespace].include? expanded_name)
503
+ )
504
+ end
505
+ @whitespace = true unless @whitespace == false
506
+ @whitespace
507
+ end
508
+
509
+ # :call-seq:
510
+ # ignore_whitespace_nodes
511
+ #
512
+ # Returns +true+ if whitespace nodes are ignored for the element.
513
+ #
514
+ # See {Element Context}[../doc/rexml/context_rdoc.html].
515
+ #
516
+ def ignore_whitespace_nodes
517
+ @ignore_whitespace_nodes = false
518
+ if @context
519
+ if @context[:ignore_whitespace_nodes]
520
+ @ignore_whitespace_nodes =
521
+ (@context[:ignore_whitespace_nodes] == :all or
522
+ @context[:ignore_whitespace_nodes].include? expanded_name)
523
+ end
524
+ end
525
+ end
526
+
527
+ # :call-seq:
528
+ # raw
529
+ #
530
+ # Returns +true+ if raw mode is set for the element.
531
+ #
532
+ # See {Element Context}[../doc/rexml/context_rdoc.html].
533
+ #
534
+ # The evaluation is tested against +expanded_name+, and so is namespace
535
+ # sensitive.
536
+ def raw
537
+ @raw = (@context and @context[:raw] and
538
+ (@context[:raw] == :all or
539
+ @context[:raw].include? expanded_name))
540
+ @raw
541
+ end
542
+
543
+ #once :whitespace, :raw, :ignore_whitespace_nodes
544
+
545
+ #################################################
546
+ # Namespaces #
547
+ #################################################
548
+
549
+ # :call-seq:
550
+ # prefixes -> array_of_namespace_prefixes
551
+ #
552
+ # Returns an array of the string prefixes (names) of all defined namespaces
553
+ # in the element and its ancestors:
554
+ #
555
+ # xml_string = <<-EOT
556
+ # <root>
557
+ # <a xmlns:x='1' xmlns:y='2'>
558
+ # <b/>
559
+ # <c xmlns:z='3'/>
560
+ # </a>
561
+ # </root>
562
+ # EOT
563
+ # d = REXML::Document.new(xml_string, {compress_whitespace: :all})
564
+ # d.elements['//a'].prefixes # => ["x", "y"]
565
+ # d.elements['//b'].prefixes # => ["x", "y"]
566
+ # d.elements['//c'].prefixes # => ["x", "y", "z"]
567
+ #
568
+ def prefixes
569
+ prefixes = []
570
+ prefixes = parent.prefixes if parent
571
+ prefixes |= attributes.prefixes
572
+ return prefixes
573
+ end
574
+
575
+ # :call-seq:
576
+ # namespaces -> array_of_namespace_names
577
+ #
578
+ # Returns a hash of all defined namespaces
579
+ # in the element and its ancestors:
580
+ #
581
+ # xml_string = <<-EOT
582
+ # <root>
583
+ # <a xmlns:x='1' xmlns:y='2'>
584
+ # <b/>
585
+ # <c xmlns:z='3'/>
586
+ # </a>
587
+ # </root>
588
+ # EOT
589
+ # d = REXML::Document.new(xml_string)
590
+ # d.elements['//a'].namespaces # => {"x"=>"1", "y"=>"2"}
591
+ # d.elements['//b'].namespaces # => {"x"=>"1", "y"=>"2"}
592
+ # d.elements['//c'].namespaces # => {"x"=>"1", "y"=>"2", "z"=>"3"}
593
+ #
594
+ def namespaces
595
+ namespaces = {}
596
+ namespaces = parent.namespaces if parent
597
+ namespaces = namespaces.merge( attributes.namespaces )
598
+ return namespaces
599
+ end
600
+
601
+ # :call-seq:
602
+ # namespace(prefix = nil) -> string_uri or nil
603
+ #
604
+ # Returns the string namespace URI for the element,
605
+ # possibly deriving from one of its ancestors.
606
+ #
607
+ # xml_string = <<-EOT
608
+ # <root>
609
+ # <a xmlns='1' xmlns:y='2'>
610
+ # <b/>
611
+ # <c xmlns:z='3'/>
612
+ # </a>
613
+ # </root>
614
+ # EOT
615
+ # d = REXML::Document.new(xml_string)
616
+ # b = d.elements['//b']
617
+ # b.namespace # => "1"
618
+ # b.namespace('y') # => "2"
619
+ # b.namespace('nosuch') # => nil
620
+ #
621
+ def namespace(prefix=nil)
622
+ if prefix.nil?
623
+ prefix = prefix()
624
+ end
625
+ if prefix == ''
626
+ prefix = "xmlns"
627
+ else
628
+ prefix = "xmlns:#{prefix}" unless prefix[0,5] == 'xmlns'
629
+ end
630
+ ns = attributes[ prefix ]
631
+ ns = parent.namespace(prefix) if ns.nil? and parent
632
+ ns = '' if ns.nil? and prefix == 'xmlns'
633
+ return ns
634
+ end
635
+
636
+ # :call-seq:
637
+ # add_namespace(prefix, uri = nil) -> self
638
+ #
639
+ # Adds a namespace to the element; returns +self+.
640
+ #
641
+ # With the single argument +prefix+,
642
+ # adds a namespace using the given +prefix+ and the namespace URI:
643
+ #
644
+ # e = REXML::Element.new('foo')
645
+ # e.add_namespace('bar')
646
+ # e.namespaces # => {"xmlns"=>"bar"}
647
+ #
648
+ # With both arguments +prefix+ and +uri+ given,
649
+ # adds a namespace using both arguments:
650
+ #
651
+ # e.add_namespace('baz', 'bat')
652
+ # e.namespaces # => {"xmlns"=>"bar", "baz"=>"bat"}
653
+ #
654
+ def add_namespace( prefix, uri=nil )
655
+ unless uri
656
+ @attributes["xmlns"] = prefix
657
+ else
658
+ prefix = "xmlns:#{prefix}" unless prefix =~ /^xmlns:/
659
+ @attributes[ prefix ] = uri
660
+ end
661
+ self
662
+ end
663
+
664
+ # :call-seq:
665
+ # delete_namespace(namespace = 'xmlns') -> self
666
+ #
667
+ # Removes a namespace from the element.
668
+ #
669
+ # With no argument, removes the default namespace:
670
+ #
671
+ # d = REXML::Document.new "<a xmlns:foo='bar' xmlns='twiddle'/>"
672
+ # d.to_s # => "<a xmlns:foo='bar' xmlns='twiddle'/>"
673
+ # d.root.delete_namespace # => <a xmlns:foo='bar'/>
674
+ # d.to_s # => "<a xmlns:foo='bar'/>"
675
+ #
676
+ # With argument +namespace+, removes the specified namespace:
677
+ #
678
+ # d.root.delete_namespace('foo')
679
+ # d.to_s # => "<a/>"
680
+ #
681
+ # Does nothing if no such namespace is found:
682
+ #
683
+ # d.root.delete_namespace('nosuch')
684
+ # d.to_s # => "<a/>"
685
+ #
686
+ def delete_namespace namespace="xmlns"
687
+ namespace = "xmlns:#{namespace}" unless namespace == 'xmlns'
688
+ attribute = attributes.get_attribute(namespace)
689
+ attribute.remove unless attribute.nil?
690
+ self
691
+ end
692
+
693
+ #################################################
694
+ # Elements #
695
+ #################################################
696
+
697
+ # :call-seq:
698
+ # add_element(name, attributes = nil) -> new_element
699
+ # add_element(element, attributes = nil) -> element
700
+ #
701
+ # Adds a child element, optionally setting attributes
702
+ # on the added element; returns the added element.
703
+ #
704
+ # With string argument +name+, creates a new element with that name
705
+ # and adds the new element as a child:
706
+ #
707
+ # e0 = REXML::Element.new('foo')
708
+ # e0.add_element('bar')
709
+ # e0[0] # => <bar/>
710
+ #
711
+ #
712
+ # With argument +name+ and hash argument +attributes+,
713
+ # sets attributes on the new element:
714
+ #
715
+ # e0.add_element('baz', {'bat' => '0', 'bam' => '1'})
716
+ # e0[1] # => <baz bat='0' bam='1'/>
717
+ #
718
+ # With element argument +element+, adds that element as a child:
719
+ #
720
+ # e0 = REXML::Element.new('foo')
721
+ # e1 = REXML::Element.new('bar')
722
+ # e0.add_element(e1)
723
+ # e0[0] # => <bar/>
724
+ #
725
+ # With argument +element+ and hash argument +attributes+,
726
+ # sets attributes on the added element:
727
+ #
728
+ # e0.add_element(e1, {'bat' => '0', 'bam' => '1'})
729
+ # e0[1] # => <bar bat='0' bam='1'/>
730
+ #
731
+ def add_element element, attrs=nil
732
+ raise "First argument must be either an element name, or an Element object" if element.nil?
733
+ el = @elements.add(element)
734
+ attrs.each do |key, value|
735
+ el.attributes[key]=value
736
+ end if attrs.kind_of? Hash
737
+ el
738
+ end
739
+
740
+ # :call-seq:
741
+ # delete_element(index) -> removed_element or nil
742
+ # delete_element(element) -> removed_element or nil
743
+ # delete_element(xpath) -> removed_element or nil
744
+ #
745
+ # Deletes a child element.
746
+ #
747
+ # When 1-based integer argument +index+ is given,
748
+ # removes and returns the child element at that offset if it exists;
749
+ # indexing does not include text nodes;
750
+ # returns +nil+ if the element does not exist:
751
+ #
752
+ # d = REXML::Document.new '<a><b/>text<c/></a>'
753
+ # a = d.root # => <a> ... </>
754
+ # a.delete_element(1) # => <b/>
755
+ # a.delete_element(1) # => <c/>
756
+ # a.delete_element(1) # => nil
757
+ #
758
+ # When element argument +element+ is given,
759
+ # removes and returns that child element if it exists,
760
+ # otherwise returns +nil+:
761
+ #
762
+ # d = REXML::Document.new '<a><b/>text<c/></a>'
763
+ # a = d.root # => <a> ... </>
764
+ # c = a[2] # => <c/>
765
+ # a.delete_element(c) # => <c/>
766
+ # a.delete_element(c) # => nil
767
+ #
768
+ # When xpath argument +xpath+ is given,
769
+ # removes and returns the element at xpath if it exists,
770
+ # otherwise returns +nil+:
771
+ #
772
+ # d = REXML::Document.new '<a><b/>text<c/></a>'
773
+ # a = d.root # => <a> ... </>
774
+ # a.delete_element('//c') # => <c/>
775
+ # a.delete_element('//c') # => nil
776
+ #
777
+ def delete_element element
778
+ @elements.delete element
779
+ end
780
+
781
+ # :call-seq:
782
+ # has_elements?
783
+ #
784
+ # Returns +true+ if the element has one or more element children,
785
+ # +false+ otherwise:
786
+ #
787
+ # d = REXML::Document.new '<a><b/>text<c/></a>'
788
+ # a = d.root # => <a> ... </>
789
+ # a.has_elements? # => true
790
+ # b = a[0] # => <b/>
791
+ # b.has_elements? # => false
792
+ #
793
+ def has_elements?
794
+ !@elements.empty?
795
+ end
796
+
797
+ # :call-seq:
798
+ # each_element_with_attribute(attr_name, value = nil, max = 0, xpath = nil) {|e| ... }
799
+ #
800
+ # Calls the given block with each child element that meets given criteria.
801
+ #
802
+ # When only string argument +attr_name+ is given,
803
+ # calls the block with each child element that has that attribute:
804
+ #
805
+ # d = REXML::Document.new '<a><b id="1"/><c id="2"/><d id="1"/><e/></a>'
806
+ # a = d.root
807
+ # a.each_element_with_attribute('id') {|e| p e }
808
+ #
809
+ # Output:
810
+ #
811
+ # <b id='1'/>
812
+ # <c id='2'/>
813
+ # <d id='1'/>
814
+ #
815
+ # With argument +attr_name+ and string argument +value+ given,
816
+ # calls the block with each child element that has that attribute
817
+ # with that value:
818
+ #
819
+ # a.each_element_with_attribute('id', '1') {|e| p e }
820
+ #
821
+ # Output:
822
+ #
823
+ # <b id='1'/>
824
+ # <d id='1'/>
825
+ #
826
+ # With arguments +attr_name+, +value+, and integer argument +max+ given,
827
+ # calls the block with at most +max+ child elements:
828
+ #
829
+ # a.each_element_with_attribute('id', '1', 1) {|e| p e }
830
+ #
831
+ # Output:
832
+ #
833
+ # <b id='1'/>
834
+ #
835
+ # With all arguments given, including +xpath+,
836
+ # calls the block with only those child elements
837
+ # that meet the first three criteria,
838
+ # and also match the given +xpath+:
839
+ #
840
+ # a.each_element_with_attribute('id', '1', 2, '//d') {|e| p e }
841
+ #
842
+ # Output:
843
+ #
844
+ # <d id='1'/>
845
+ #
846
+ def each_element_with_attribute( key, value=nil, max=0, name=nil, &block ) # :yields: Element
847
+ each_with_something( proc {|child|
848
+ if value.nil?
849
+ child.attributes[key] != nil
850
+ else
851
+ child.attributes[key]==value
852
+ end
853
+ }, max, name, &block )
854
+ end
855
+
856
+ # :call-seq:
857
+ # each_element_with_text(text = nil, max = 0, xpath = nil) {|e| ... }
858
+ #
859
+ # Calls the given block with each child element that meets given criteria.
860
+ #
861
+ # With no arguments, calls the block with each child element that has text:
862
+ #
863
+ # d = REXML::Document.new '<a><b>b</b><c>b</c><d>d</d><e/></a>'
864
+ # a = d.root
865
+ # a.each_element_with_text {|e| p e }
866
+ #
867
+ # Output:
868
+ #
869
+ # <b> ... </>
870
+ # <c> ... </>
871
+ # <d> ... </>
872
+ #
873
+ # With the single string argument +text+,
874
+ # calls the block with each element that has exactly that text:
875
+ #
876
+ # a.each_element_with_text('b') {|e| p e }
877
+ #
878
+ # Output:
879
+ #
880
+ # <b> ... </>
881
+ # <c> ... </>
882
+ #
883
+ # With argument +text+ and integer argument +max+,
884
+ # calls the block with at most +max+ elements:
885
+ #
886
+ # a.each_element_with_text('b', 1) {|e| p e }
887
+ #
888
+ # Output:
889
+ #
890
+ # <b> ... </>
891
+ #
892
+ # With all arguments given, including +xpath+,
893
+ # calls the block with only those child elements
894
+ # that meet the first two criteria,
895
+ # and also match the given +xpath+:
896
+ #
897
+ # a.each_element_with_text('b', 2, '//c') {|e| p e }
898
+ #
899
+ # Output:
900
+ #
901
+ # <c> ... </>
902
+ #
903
+ def each_element_with_text( text=nil, max=0, name=nil, &block ) # :yields: Element
904
+ each_with_something( proc {|child|
905
+ if text.nil?
906
+ child.has_text?
907
+ else
908
+ child.text == text
909
+ end
910
+ }, max, name, &block )
911
+ end
912
+
913
+ # :call-seq:
914
+ # each_element {|e| ... }
915
+ #
916
+ # Calls the given block with each child element:
917
+ #
918
+ # d = REXML::Document.new '<a><b>b</b><c>b</c><d>d</d><e/></a>'
919
+ # a = d.root
920
+ # a.each_element {|e| p e }
921
+ #
922
+ # Output:
923
+ #
924
+ # <b> ... </>
925
+ # <c> ... </>
926
+ # <d> ... </>
927
+ # <e/>
928
+ #
929
+ def each_element( xpath=nil, &block ) # :yields: Element
930
+ @elements.each( xpath, &block )
931
+ end
932
+
933
+ # :call-seq:
934
+ # get_elements(xpath)
935
+ #
936
+ # Returns an array of the elements that match the given +xpath+:
937
+ #
938
+ # xml_string = <<-EOT
939
+ # <root>
940
+ # <a level='1'>
941
+ # <a level='2'/>
942
+ # </a>
943
+ # </root>
944
+ # EOT
945
+ # d = REXML::Document.new(xml_string)
946
+ # d.root.get_elements('//a') # => [<a level='1'> ... </>, <a level='2'/>]
947
+ #
948
+ def get_elements( xpath )
949
+ @elements.to_a( xpath )
950
+ end
951
+
952
+ # :call-seq:
953
+ # next_element
954
+ #
955
+ # Returns the next sibling that is an element if it exists,
956
+ # +niL+ otherwise:
957
+ #
958
+ # d = REXML::Document.new '<a><b/>text<c/></a>'
959
+ # d.root.elements['b'].next_element #-> <c/>
960
+ # d.root.elements['c'].next_element #-> nil
961
+ #
962
+ def next_element
963
+ element = next_sibling
964
+ element = element.next_sibling until element.nil? or element.kind_of? Element
965
+ return element
966
+ end
967
+
968
+ # :call-seq:
969
+ # previous_element
970
+ #
971
+ # Returns the previous sibling that is an element if it exists,
972
+ # +niL+ otherwise:
973
+ #
974
+ # d = REXML::Document.new '<a><b/>text<c/></a>'
975
+ # d.root.elements['c'].previous_element #-> <b/>
976
+ # d.root.elements['b'].previous_element #-> nil
977
+ #
978
+ def previous_element
979
+ element = previous_sibling
980
+ element = element.previous_sibling until element.nil? or element.kind_of? Element
981
+ return element
982
+ end
983
+
984
+
985
+ #################################################
986
+ # Text #
987
+ #################################################
988
+
989
+ # :call-seq:
990
+ # has_text? -> true or false
991
+ #
992
+ # Returns +true if the element has one or more text noded,
993
+ # +false+ otherwise:
994
+ #
995
+ # d = REXML::Document.new '<a><b/>text<c/></a>'
996
+ # a = d.root
997
+ # a.has_text? # => true
998
+ # b = a[0]
999
+ # b.has_text? # => false
1000
+ #
1001
+ def has_text?
1002
+ not text().nil?
1003
+ end
1004
+
1005
+ # :call-seq:
1006
+ # text(xpath = nil) -> text_string or nil
1007
+ #
1008
+ # Returns the text string from the first text node child
1009
+ # in a specified element, if it exists, # +nil+ otherwise.
1010
+ #
1011
+ # With no argument, returns the text from the first text node in +self+:
1012
+ #
1013
+ # d = REXML::Document.new "<p>some text <b>this is bold!</b> more text</p>"
1014
+ # d.root.text.class # => String
1015
+ # d.root.text # => "some text "
1016
+ #
1017
+ # With argument +xpath+, returns text from the the first text node
1018
+ # in the element that matches +xpath+:
1019
+ #
1020
+ # d.root.text(1) # => "this is bold!"
1021
+ #
1022
+ # Note that an element may have multiple text nodes,
1023
+ # possibly separated by other non-text children, as above.
1024
+ # Even so, the returned value is the string text from the first such node.
1025
+ #
1026
+ # Note also that the text note is retrieved by method get_text,
1027
+ # and so is always normalized text.
1028
+ #
1029
+ def text( path = nil )
1030
+ rv = get_text(path)
1031
+ return rv.value unless rv.nil?
1032
+ nil
1033
+ end
1034
+
1035
+ # :call-seq:
1036
+ # get_text(xpath = nil) -> text_node or nil
1037
+ #
1038
+ # Returns the first text node child in a specified element, if it exists,
1039
+ # +nil+ otherwise.
1040
+ #
1041
+ # With no argument, returns the first text node from +self+:
1042
+ #
1043
+ # d = REXML::Document.new "<p>some text <b>this is bold!</b> more text</p>"
1044
+ # d.root.get_text.class # => REXML::Text
1045
+ # d.root.get_text # => "some text "
1046
+ #
1047
+ # With argument +xpath+, returns the first text node from the element
1048
+ # that matches +xpath+:
1049
+ #
1050
+ # d.root.get_text(1) # => "this is bold!"
1051
+ #
1052
+ def get_text path = nil
1053
+ rv = nil
1054
+ if path
1055
+ element = @elements[ path ]
1056
+ rv = element.get_text unless element.nil?
1057
+ else
1058
+ rv = @children.find { |node| node.kind_of? Text }
1059
+ end
1060
+ return rv
1061
+ end
1062
+
1063
+ # :call-seq:
1064
+ # text = string -> string
1065
+ # text = nil -> nil
1066
+ #
1067
+ # Adds, replaces, or removes the first text node child in the element.
1068
+ #
1069
+ # With string argument +string+,
1070
+ # creates a new \REXML::Text node containing that string,
1071
+ # honoring the current settings for whitespace and row,
1072
+ # then places the node as the first text child in the element;
1073
+ # returns +string+.
1074
+ #
1075
+ # If the element has no text child, the text node is added:
1076
+ #
1077
+ # d = REXML::Document.new '<a><b/></a>'
1078
+ # d.root.text = 'foo' #-> '<a><b/>foo</a>'
1079
+ #
1080
+ # If the element has a text child, it is replaced:
1081
+ #
1082
+ # d.root.text = 'bar' #-> '<a><b/>bar</a>'
1083
+ #
1084
+ # With argument +nil+, removes the first text child:
1085
+ #
1086
+ # d.root.text = nil #-> '<a><b/><c/></a>'
1087
+ #
1088
+ def text=( text )
1089
+ if text.kind_of? String
1090
+ text = Text.new( text, whitespace(), nil, raw() )
1091
+ elsif !text.nil? and !text.kind_of? Text
1092
+ text = Text.new( text.to_s, whitespace(), nil, raw() )
1093
+ end
1094
+ old_text = get_text
1095
+ if text.nil?
1096
+ old_text.remove unless old_text.nil?
1097
+ else
1098
+ if old_text.nil?
1099
+ self << text
1100
+ else
1101
+ old_text.replace_with( text )
1102
+ end
1103
+ end
1104
+ return self
1105
+ end
1106
+
1107
+ # :call-seq:
1108
+ # add_text(string) -> nil
1109
+ # add_text(text_node) -> self
1110
+ #
1111
+ # Adds text to the element.
1112
+ #
1113
+ # When string argument +string+ is given, returns +nil+.
1114
+ #
1115
+ # If the element has no child text node,
1116
+ # creates a \REXML::Text object using the string,
1117
+ # honoring the current settings for whitespace and raw,
1118
+ # then adds that node to the element:
1119
+ #
1120
+ # d = REXML::Document.new('<a><b/></a>')
1121
+ # a = d.root
1122
+ # a.add_text('foo')
1123
+ # a.to_a # => [<b/>, "foo"]
1124
+ #
1125
+ # If the element has child text nodes,
1126
+ # appends the string to the _last_ text node:
1127
+ #
1128
+ # d = REXML::Document.new('<a>foo<b/>bar</a>')
1129
+ # a = d.root
1130
+ # a.add_text('baz')
1131
+ # a.to_a # => ["foo", <b/>, "barbaz"]
1132
+ # a.add_text('baz')
1133
+ # a.to_a # => ["foo", <b/>, "barbazbaz"]
1134
+ #
1135
+ # When text node argument +text_node+ is given,
1136
+ # appends the node as the last text node in the element;
1137
+ # returns +self+:
1138
+ #
1139
+ # d = REXML::Document.new('<a>foo<b/>bar</a>')
1140
+ # a = d.root
1141
+ # a.add_text(REXML::Text.new('baz'))
1142
+ # a.to_a # => ["foo", <b/>, "bar", "baz"]
1143
+ # a.add_text(REXML::Text.new('baz'))
1144
+ # a.to_a # => ["foo", <b/>, "bar", "baz", "baz"]
1145
+ #
1146
+ def add_text( text )
1147
+ if text.kind_of? String
1148
+ if @children[-1].kind_of? Text
1149
+ @children[-1] << text
1150
+ return
1151
+ end
1152
+ text = Text.new( text, whitespace(), nil, raw() )
1153
+ end
1154
+ self << text unless text.nil?
1155
+ return self
1156
+ end
1157
+
1158
+ # :call-seq:
1159
+ # node_type -> :element
1160
+ #
1161
+ # Returns symbol <tt>:element</tt>:
1162
+ #
1163
+ # d = REXML::Document.new('<a/>')
1164
+ # a = d.root # => <a/>
1165
+ # a.node_type # => :element
1166
+ #
1167
+ def node_type
1168
+ :element
1169
+ end
1170
+
1171
+ # :call-seq:
1172
+ # xpath -> string_xpath
1173
+ #
1174
+ # Returns the string xpath to the element
1175
+ # relative to the most distant parent:
1176
+ #
1177
+ # d = REXML::Document.new('<a><b><c/></b></a>')
1178
+ # a = d.root # => <a> ... </>
1179
+ # b = a[0] # => <b> ... </>
1180
+ # c = b[0] # => <c/>
1181
+ # d.xpath # => ""
1182
+ # a.xpath # => "/a"
1183
+ # b.xpath # => "/a/b"
1184
+ # c.xpath # => "/a/b/c"
1185
+ #
1186
+ # If there is no parent, returns the expanded name of the element:
1187
+ #
1188
+ # e = REXML::Element.new('foo')
1189
+ # e.xpath # => "foo"
1190
+ #
1191
+ def xpath
1192
+ path_elements = []
1193
+ cur = self
1194
+ path_elements << __to_xpath_helper( self )
1195
+ while cur.parent
1196
+ cur = cur.parent
1197
+ path_elements << __to_xpath_helper( cur )
1198
+ end
1199
+ return path_elements.reverse.join( "/" )
1200
+ end
1201
+
1202
+ #################################################
1203
+ # Attributes #
1204
+ #################################################
1205
+
1206
+ # :call-seq:
1207
+ # [index] -> object
1208
+ # [attr_name] -> attr_value
1209
+ # [attr_sym] -> attr_value
1210
+ #
1211
+ # With integer argument +index+ given,
1212
+ # returns the child at offset +index+, or +nil+ if none:
1213
+ #
1214
+ # d = REXML::Document.new '><root><a/>text<b/>more<c/></root>'
1215
+ # root = d.root
1216
+ # (0..root.size).each do |index|
1217
+ # node = root[index]
1218
+ # p "#{index}: #{node} (#{node.class})"
1219
+ # end
1220
+ #
1221
+ # Output:
1222
+ #
1223
+ # "0: <a/> (REXML::Element)"
1224
+ # "1: text (REXML::Text)"
1225
+ # "2: <b/> (REXML::Element)"
1226
+ # "3: more (REXML::Text)"
1227
+ # "4: <c/> (REXML::Element)"
1228
+ # "5: (NilClass)"
1229
+ #
1230
+ # With string argument +attr_name+ given,
1231
+ # returns the string value for the given attribute name if it exists,
1232
+ # otherwise +nil+:
1233
+ #
1234
+ # d = REXML::Document.new('<root attr="value"></root>')
1235
+ # root = d.root
1236
+ # root['attr'] # => "value"
1237
+ # root['nosuch'] # => nil
1238
+ #
1239
+ # With symbol argument +attr_sym+ given,
1240
+ # returns <tt>[attr_sym.to_s]</tt>:
1241
+ #
1242
+ # root[:attr] # => "value"
1243
+ # root[:nosuch] # => nil
1244
+ #
1245
+ def [](name_or_index)
1246
+ case name_or_index
1247
+ when String
1248
+ attributes[name_or_index]
1249
+ when Symbol
1250
+ attributes[name_or_index.to_s]
1251
+ else
1252
+ super
1253
+ end
1254
+ end
1255
+
1256
+
1257
+ # :call-seq:
1258
+ # attribute(name, namespace = nil)
1259
+ #
1260
+ # Returns the string value for the given attribute name.
1261
+ #
1262
+ # With only argument +name+ given,
1263
+ # returns the value of the named attribute if it exists, otherwise +nil+:
1264
+ #
1265
+ # xml_string = <<-EOT
1266
+ # <root xmlns="ns0">
1267
+ # <a xmlns="ns1" attr="value"></a>
1268
+ # <b xmlns="ns2" attr="value"></b>
1269
+ # <c attr="value"/>
1270
+ # </root>
1271
+ # EOT
1272
+ # d = REXML::Document.new(xml_string)
1273
+ # root = d.root
1274
+ # a = root[1] # => <a xmlns='ns1' attr='value'/>
1275
+ # a.attribute('attr') # => attr='value'
1276
+ # a.attribute('nope') # => nil
1277
+ #
1278
+ # With arguments +name+ and +namespace+ given,
1279
+ # returns the value of the named attribute if it exists, otherwise +nil+:
1280
+ #
1281
+ # xml_string = "<root xmlns:a='a' a:x='a:x' x='x'/>"
1282
+ # document = REXML::Document.new(xml_string)
1283
+ # document.root.attribute("x") # => x='x'
1284
+ # document.root.attribute("x", "a") # => a:x='a:x'
1285
+ #
1286
+ def attribute( name, namespace=nil )
1287
+ prefix = nil
1288
+ if namespaces.respond_to? :key
1289
+ prefix = namespaces.key(namespace) if namespace
1290
+ else
1291
+ prefix = namespaces.index(namespace) if namespace
1292
+ end
1293
+ prefix = nil if prefix == 'xmlns'
1294
+
1295
+ ret_val =
1296
+ attributes.get_attribute( "#{prefix ? prefix + ':' : ''}#{name}" )
1297
+
1298
+ return ret_val unless ret_val.nil?
1299
+ return nil if prefix.nil?
1300
+
1301
+ # now check that prefix'es namespace is not the same as the
1302
+ # default namespace
1303
+ return nil unless ( namespaces[ prefix ] == namespaces[ 'xmlns' ] )
1304
+
1305
+ attributes.get_attribute( name )
1306
+
1307
+ end
1308
+
1309
+ # :call-seq:
1310
+ # has_attributes? -> true or false
1311
+ #
1312
+ # Returns +true+ if the element has attributes, +false+ otherwise:
1313
+ #
1314
+ # d = REXML::Document.new('<root><a attr="val"/><b/></root>')
1315
+ # a, b = *d.root
1316
+ # a.has_attributes? # => true
1317
+ # b.has_attributes? # => false
1318
+ #
1319
+ def has_attributes?
1320
+ return !@attributes.empty?
1321
+ end
1322
+
1323
+ # :call-seq:
1324
+ # add_attribute(name, value) -> value
1325
+ # add_attribute(attribute) -> attribute
1326
+ #
1327
+ # Adds an attribute to this element, overwriting any existing attribute
1328
+ # by the same name.
1329
+ #
1330
+ # With string argument +name+ and object +value+ are given,
1331
+ # adds the attribute created with that name and value:
1332
+ #
1333
+ # e = REXML::Element.new
1334
+ # e.add_attribute('attr', 'value') # => "value"
1335
+ # e['attr'] # => "value"
1336
+ # e.add_attribute('attr', 'VALUE') # => "VALUE"
1337
+ # e['attr'] # => "VALUE"
1338
+ #
1339
+ # With only attribute object +attribute+ given,
1340
+ # adds the given attribute:
1341
+ #
1342
+ # a = REXML::Attribute.new('attr', 'value')
1343
+ # e.add_attribute(a) # => attr='value'
1344
+ # e['attr'] # => "value"
1345
+ # a = REXML::Attribute.new('attr', 'VALUE')
1346
+ # e.add_attribute(a) # => attr='VALUE'
1347
+ # e['attr'] # => "VALUE"
1348
+ #
1349
+ def add_attribute( key, value=nil )
1350
+ if key.kind_of? Attribute
1351
+ @attributes << key
1352
+ else
1353
+ @attributes[key] = value
1354
+ end
1355
+ end
1356
+
1357
+ # :call-seq:
1358
+ # add_attributes(hash) -> hash
1359
+ # add_attributes(array)
1360
+ #
1361
+ # Adds zero or more attributes to the element;
1362
+ # returns the argument.
1363
+ #
1364
+ # If hash argument +hash+ is given,
1365
+ # each key must be a string;
1366
+ # adds each attribute created with the key/value pair:
1367
+ #
1368
+ # e = REXML::Element.new
1369
+ # h = {'foo' => 'bar', 'baz' => 'bat'}
1370
+ # e.add_attributes(h)
1371
+ #
1372
+ # If argument +array+ is given,
1373
+ # each array member must be a 2-element array <tt>[name, value];
1374
+ # each name must be a string:
1375
+ #
1376
+ # e = REXML::Element.new
1377
+ # a = [['foo' => 'bar'], ['baz' => 'bat']]
1378
+ # e.add_attributes(a)
1379
+ #
1380
+ def add_attributes hash
1381
+ if hash.kind_of? Hash
1382
+ hash.each_pair {|key, value| @attributes[key] = value }
1383
+ elsif hash.kind_of? Array
1384
+ hash.each { |value| @attributes[ value[0] ] = value[1] }
1385
+ end
1386
+ end
1387
+
1388
+ # :call-seq:
1389
+ # delete_attribute(name) -> removed_attribute or nil
1390
+ #
1391
+ # Removes a named attribute if it exists;
1392
+ # returns the removed attribute if found, otherwise +nil+:
1393
+ #
1394
+ # e = REXML::Element.new('foo')
1395
+ # e.add_attribute('bar', 'baz')
1396
+ # e.delete_attribute('bar') # => <bar/>
1397
+ # e.delete_attribute('bar') # => nil
1398
+ #
1399
+ def delete_attribute(key)
1400
+ attr = @attributes.get_attribute(key)
1401
+ attr.remove unless attr.nil?
1402
+ end
1403
+
1404
+ #################################################
1405
+ # Other Utilities #
1406
+ #################################################
1407
+
1408
+ # :call-seq:
1409
+ # cdatas -> array_of_cdata_children
1410
+ #
1411
+ # Returns a frozen array of the REXML::CData children of the element:
1412
+ #
1413
+ # xml_string = <<-EOT
1414
+ # <root>
1415
+ # <![CDATA[foo]]>
1416
+ # <![CDATA[bar]]>
1417
+ # </root>
1418
+ # EOT
1419
+ # d = REXML::Document.new(xml_string)
1420
+ # cds = d.root.cdatas # => ["foo", "bar"]
1421
+ # cds.frozen? # => true
1422
+ # cds.map {|cd| cd.class } # => [REXML::CData, REXML::CData]
1423
+ #
1424
+ def cdatas
1425
+ find_all { |child| child.kind_of? CData }.freeze
1426
+ end
1427
+
1428
+ # :call-seq:
1429
+ # comments -> array_of_comment_children
1430
+ #
1431
+ # Returns a frozen array of the REXML::Comment children of the element:
1432
+ #
1433
+ # xml_string = <<-EOT
1434
+ # <root>
1435
+ # <!--foo-->
1436
+ # <!--bar-->
1437
+ # </root>
1438
+ # EOT
1439
+ # d = REXML::Document.new(xml_string)
1440
+ # cs = d.root.comments
1441
+ # cs.frozen? # => true
1442
+ # cs.map {|c| c.class } # => [REXML::Comment, REXML::Comment]
1443
+ # cs.map {|c| c.to_s } # => ["foo", "bar"]
1444
+ #
1445
+ def comments
1446
+ find_all { |child| child.kind_of? Comment }.freeze
1447
+ end
1448
+
1449
+ # :call-seq:
1450
+ # instructions -> array_of_instruction_children
1451
+ #
1452
+ # Returns a frozen array of the REXML::Instruction children of the element:
1453
+ #
1454
+ # xml_string = <<-EOT
1455
+ # <root>
1456
+ # <?target0 foo?>
1457
+ # <?target1 bar?>
1458
+ # </root>
1459
+ # EOT
1460
+ # d = REXML::Document.new(xml_string)
1461
+ # is = d.root.instructions
1462
+ # is.frozen? # => true
1463
+ # is.map {|i| i.class } # => [REXML::Instruction, REXML::Instruction]
1464
+ # is.map {|i| i.to_s } # => ["<?target0 foo?>", "<?target1 bar?>"]
1465
+ #
1466
+ def instructions
1467
+ find_all { |child| child.kind_of? Instruction }.freeze
1468
+ end
1469
+
1470
+ # :call-seq:
1471
+ # texts -> array_of_text_children
1472
+ #
1473
+ # Returns a frozen array of the REXML::Text children of the element:
1474
+ #
1475
+ # xml_string = '<root><a/>text<b/>more<c/></root>'
1476
+ # d = REXML::Document.new(xml_string)
1477
+ # ts = d.root.texts
1478
+ # ts.frozen? # => true
1479
+ # ts.map {|t| t.class } # => [REXML::Text, REXML::Text]
1480
+ # ts.map {|t| t.to_s } # => ["text", "more"]
1481
+ #
1482
+ def texts
1483
+ find_all { |child| child.kind_of? Text }.freeze
1484
+ end
1485
+
1486
+ # == DEPRECATED
1487
+ # See REXML::Formatters
1488
+ #
1489
+ # Writes out this element, and recursively, all children.
1490
+ # output::
1491
+ # output an object which supports '<< string'; this is where the
1492
+ # document will be written.
1493
+ # indent::
1494
+ # An integer. If -1, no indenting will be used; otherwise, the
1495
+ # indentation will be this number of spaces, and children will be
1496
+ # indented an additional amount. Defaults to -1
1497
+ # transitive::
1498
+ # If transitive is true and indent is >= 0, then the output will be
1499
+ # pretty-printed in such a way that the added whitespace does not affect
1500
+ # the parse tree of the document
1501
+ # ie_hack::
1502
+ # This hack inserts a space before the /> on empty tags to address
1503
+ # a limitation of Internet Explorer. Defaults to false
1504
+ #
1505
+ # out = ''
1506
+ # doc.write( out ) #-> doc is written to the string 'out'
1507
+ # doc.write( $stdout ) #-> doc written to the console
1508
+ def write(output=$stdout, indent=-1, transitive=false, ie_hack=false)
1509
+ Kernel.warn("#{self.class.name}.write is deprecated. See REXML::Formatters", uplevel: 1)
1510
+ formatter = if indent > -1
1511
+ if transitive
1512
+ require_relative "formatters/transitive"
1513
+ REXML::Formatters::Transitive.new( indent, ie_hack )
1514
+ else
1515
+ REXML::Formatters::Pretty.new( indent, ie_hack )
1516
+ end
1517
+ else
1518
+ REXML::Formatters::Default.new( ie_hack )
1519
+ end
1520
+ formatter.write( self, output )
1521
+ end
1522
+
1523
+
1524
+ private
1525
+ def __to_xpath_helper node
1526
+ rv = node.expanded_name.clone
1527
+ if node.parent
1528
+ results = node.parent.find_all {|n|
1529
+ n.kind_of?(REXML::Element) and n.expanded_name == node.expanded_name
1530
+ }
1531
+ if results.length > 1
1532
+ idx = results.index( node )
1533
+ rv << "[#{idx+1}]"
1534
+ end
1535
+ end
1536
+ rv
1537
+ end
1538
+
1539
+ # A private helper method
1540
+ def each_with_something( test, max=0, name=nil )
1541
+ num = 0
1542
+ @elements.each( name ){ |child|
1543
+ yield child if test.call(child) and num += 1
1544
+ return if max>0 and num == max
1545
+ }
1546
+ end
1547
+ end
1548
+
1549
+ ########################################################################
1550
+ # ELEMENTS #
1551
+ ########################################################################
1552
+
1553
+ # A class which provides filtering of children for Elements, and
1554
+ # XPath search support. You are expected to only encounter this class as
1555
+ # the <tt>element.elements</tt> object. Therefore, you are
1556
+ # _not_ expected to instantiate this yourself.
1557
+ #
1558
+ # xml_string = <<-EOT
1559
+ # <?xml version="1.0" encoding="UTF-8"?>
1560
+ # <bookstore>
1561
+ # <book category="cooking">
1562
+ # <title lang="en">Everyday Italian</title>
1563
+ # <author>Giada De Laurentiis</author>
1564
+ # <year>2005</year>
1565
+ # <price>30.00</price>
1566
+ # </book>
1567
+ # <book category="children">
1568
+ # <title lang="en">Harry Potter</title>
1569
+ # <author>J K. Rowling</author>
1570
+ # <year>2005</year>
1571
+ # <price>29.99</price>
1572
+ # </book>
1573
+ # <book category="web">
1574
+ # <title lang="en">XQuery Kick Start</title>
1575
+ # <author>James McGovern</author>
1576
+ # <author>Per Bothner</author>
1577
+ # <author>Kurt Cagle</author>
1578
+ # <author>James Linn</author>
1579
+ # <author>Vaidyanathan Nagarajan</author>
1580
+ # <year>2003</year>
1581
+ # <price>49.99</price>
1582
+ # </book>
1583
+ # <book category="web" cover="paperback">
1584
+ # <title lang="en">Learning XML</title>
1585
+ # <author>Erik T. Ray</author>
1586
+ # <year>2003</year>
1587
+ # <price>39.95</price>
1588
+ # </book>
1589
+ # </bookstore>
1590
+ # EOT
1591
+ # d = REXML::Document.new(xml_string)
1592
+ # elements = d.root.elements
1593
+ # elements # => #<REXML::Elements @element=<bookstore> ... </>>
1594
+ #
1595
+ class Elements
1596
+ include Enumerable
1597
+ # :call-seq:
1598
+ # new(parent) -> new_elements_object
1599
+ #
1600
+ # Returns a new \Elements object with the given +parent+.
1601
+ # Does _not_ assign <tt>parent.elements = self</tt>:
1602
+ #
1603
+ # d = REXML::Document.new(xml_string)
1604
+ # eles = REXML::Elements.new(d.root)
1605
+ # eles # => #<REXML::Elements @element=<bookstore> ... </>>
1606
+ # eles == d.root.elements # => false
1607
+ #
1608
+ def initialize parent
1609
+ @element = parent
1610
+ end
1611
+
1612
+ # :call-seq:
1613
+ # parent
1614
+ #
1615
+ # Returns the parent element cited in creating the \Elements object.
1616
+ # This element is also the default starting point for searching
1617
+ # in the \Elements object.
1618
+ #
1619
+ # d = REXML::Document.new(xml_string)
1620
+ # elements = REXML::Elements.new(d.root)
1621
+ # elements.parent == d.root # => true
1622
+ #
1623
+ def parent
1624
+ @element
1625
+ end
1626
+
1627
+ # :call-seq:
1628
+ # elements[index] -> element or nil
1629
+ # elements[xpath] -> element or nil
1630
+ # elements[n, name] -> element or nil
1631
+ #
1632
+ # Returns the first \Element object selected by the arguments,
1633
+ # if any found, or +nil+ if none found.
1634
+ #
1635
+ # Notes:
1636
+ # - The +index+ is 1-based, not 0-based, so that:
1637
+ # - The first element has index <tt>1</tt>
1638
+ # - The _nth_ element has index +n+.
1639
+ # - The selection ignores non-\Element nodes.
1640
+ #
1641
+ # When the single argument +index+ is given,
1642
+ # returns the element given by the index, if any; otherwise, +nil+:
1643
+ #
1644
+ # d = REXML::Document.new(xml_string)
1645
+ # eles = d.root.elements
1646
+ # eles # => #<REXML::Elements @element=<bookstore> ... </>>
1647
+ # eles[1] # => <book category='cooking'> ... </>
1648
+ # eles.size # => 4
1649
+ # eles[4] # => <book category='web' cover='paperback'> ... </>
1650
+ # eles[5] # => nil
1651
+ #
1652
+ # The node at this index is not an \Element, and so is not returned:
1653
+ #
1654
+ # eles = d.root.first.first # => <title lang='en'> ... </>
1655
+ # eles.to_a # => ["Everyday Italian"]
1656
+ # eles[1] # => nil
1657
+ #
1658
+ # When the single argument +xpath+ is given,
1659
+ # returns the first element found via that +xpath+, if any; otherwise, +nil+:
1660
+ #
1661
+ # eles = d.root.elements # => #<REXML::Elements @element=<bookstore> ... </>>
1662
+ # eles['/bookstore'] # => <bookstore> ... </>
1663
+ # eles['//book'] # => <book category='cooking'> ... </>
1664
+ # eles['//book [@category="children"]'] # => <book category='children'> ... </>
1665
+ # eles['/nosuch'] # => nil
1666
+ # eles['//nosuch'] # => nil
1667
+ # eles['//book [@category="nosuch"]'] # => nil
1668
+ # eles['.'] # => <bookstore> ... </>
1669
+ # eles['..'].class # => REXML::Document
1670
+ #
1671
+ # With arguments +n+ and +name+ given,
1672
+ # returns the _nth_ found element that has the given +name+,
1673
+ # or +nil+ if there is no such _nth_ element:
1674
+ #
1675
+ # eles = d.root.elements # => #<REXML::Elements @element=<bookstore> ... </>>
1676
+ # eles[1, 'book'] # => <book category='cooking'> ... </>
1677
+ # eles[4, 'book'] # => <book category='web' cover='paperback'> ... </>
1678
+ # eles[5, 'book'] # => nil
1679
+ #
1680
+ def []( index, name=nil)
1681
+ if index.kind_of? Integer
1682
+ raise "index (#{index}) must be >= 1" if index < 1
1683
+ name = literalize(name) if name
1684
+ num = 0
1685
+ @element.find { |child|
1686
+ child.kind_of? Element and
1687
+ (name.nil? ? true : child.has_name?( name )) and
1688
+ (num += 1) == index
1689
+ }
1690
+ else
1691
+ return XPath::first( @element, index )
1692
+ #{ |element|
1693
+ # return element if element.kind_of? Element
1694
+ #}
1695
+ #return nil
1696
+ end
1697
+ end
1698
+
1699
+ # :call-seq:
1700
+ # elements[] = index, replacement_element -> replacement_element or nil
1701
+ #
1702
+ # Replaces or adds an element.
1703
+ #
1704
+ # When <tt>eles[index]</tt> exists, replaces it with +replacement_element+
1705
+ # and returns +replacement_element+:
1706
+ #
1707
+ # d = REXML::Document.new(xml_string)
1708
+ # eles = d.root.elements # => #<REXML::Elements @element=<bookstore> ... </>>
1709
+ # eles[1] # => <book category='cooking'> ... </>
1710
+ # eles[1] = REXML::Element.new('foo')
1711
+ # eles[1] # => <foo/>
1712
+ #
1713
+ # Does nothing (or raises an exception)
1714
+ # if +replacement_element+ is not an \Element:
1715
+ # eles[2] # => <book category='web' cover='paperback'> ... </>
1716
+ # eles[2] = REXML::Text.new('bar')
1717
+ # eles[2] # => <book category='web' cover='paperback'> ... </>
1718
+ #
1719
+ # When <tt>eles[index]</tt> does not exist,
1720
+ # adds +replacement_element+ to the element and returns
1721
+ #
1722
+ # d = REXML::Document.new(xml_string)
1723
+ # eles = d.root.elements # => #<REXML::Elements @element=<bookstore> ... </>>
1724
+ # eles.size # => 4
1725
+ # eles[50] = REXML::Element.new('foo') # => <foo/>
1726
+ # eles.size # => 5
1727
+ # eles[5] # => <foo/>
1728
+ #
1729
+ # Does nothing (or raises an exception)
1730
+ # if +replacement_element+ is not an \Element:
1731
+ #
1732
+ # eles[50] = REXML::Text.new('bar') # => "bar"
1733
+ # eles.size # => 5
1734
+ #
1735
+ def []=( index, element )
1736
+ previous = self[index]
1737
+ if previous.nil?
1738
+ @element.add element
1739
+ else
1740
+ previous.replace_with element
1741
+ end
1742
+ return previous
1743
+ end
1744
+
1745
+ # :call-seq:
1746
+ # empty? -> true or false
1747
+ #
1748
+ # Returns +true+ if there are no children, +false+ otherwise.
1749
+ #
1750
+ # d = REXML::Document.new('')
1751
+ # d.elements.empty? # => true
1752
+ # d = REXML::Document.new(xml_string)
1753
+ # d.elements.empty? # => false
1754
+ #
1755
+ def empty?
1756
+ @element.find{ |child| child.kind_of? Element}.nil?
1757
+ end
1758
+
1759
+ # :call-seq:
1760
+ # index(element)
1761
+ #
1762
+ # Returns the 1-based index of the given +element+, if found;
1763
+ # otherwise, returns -1:
1764
+ #
1765
+ # d = REXML::Document.new(xml_string)
1766
+ # elements = d.root.elements
1767
+ # ele_1, ele_2, ele_3, ele_4 = *elements
1768
+ # elements.index(ele_4) # => 4
1769
+ # elements.delete(ele_3)
1770
+ # elements.index(ele_4) # => 3
1771
+ # elements.index(ele_3) # => -1
1772
+ #
1773
+ def index element
1774
+ rv = 0
1775
+ found = @element.find do |child|
1776
+ child.kind_of? Element and
1777
+ (rv += 1) and
1778
+ child == element
1779
+ end
1780
+ return rv if found == element
1781
+ return -1
1782
+ end
1783
+
1784
+ # :call-seq:
1785
+ # delete(index) -> removed_element or nil
1786
+ # delete(element) -> removed_element or nil
1787
+ # delete(xpath) -> removed_element or nil
1788
+ #
1789
+ # Removes an element; returns the removed element, or +nil+ if none removed.
1790
+ #
1791
+ # With integer argument +index+ given,
1792
+ # removes the child element at that offset:
1793
+ #
1794
+ # d = REXML::Document.new(xml_string)
1795
+ # elements = d.root.elements
1796
+ # elements.size # => 4
1797
+ # elements[2] # => <book category='children'> ... </>
1798
+ # elements.delete(2) # => <book category='children'> ... </>
1799
+ # elements.size # => 3
1800
+ # elements[2] # => <book category='web'> ... </>
1801
+ # elements.delete(50) # => nil
1802
+ #
1803
+ # With element argument +element+ given,
1804
+ # removes that child element:
1805
+ #
1806
+ # d = REXML::Document.new(xml_string)
1807
+ # elements = d.root.elements
1808
+ # ele_1, ele_2, ele_3, ele_4 = *elements
1809
+ # elements.size # => 4
1810
+ # elements[2] # => <book category='children'> ... </>
1811
+ # elements.delete(ele_2) # => <book category='children'> ... </>
1812
+ # elements.size # => 3
1813
+ # elements[2] # => <book category='web'> ... </>
1814
+ # elements.delete(ele_2) # => nil
1815
+ #
1816
+ # With string argument +xpath+ given,
1817
+ # removes the first element found via that xpath:
1818
+ #
1819
+ # d = REXML::Document.new(xml_string)
1820
+ # elements = d.root.elements
1821
+ # elements.delete('//book') # => <book category='cooking'> ... </>
1822
+ # elements.delete('//book [@category="children"]') # => <book category='children'> ... </>
1823
+ # elements.delete('//nosuch') # => nil
1824
+ #
1825
+ def delete element
1826
+ if element.kind_of? Element
1827
+ @element.delete element
1828
+ else
1829
+ el = self[element]
1830
+ el.remove if el
1831
+ end
1832
+ end
1833
+
1834
+ # :call-seq:
1835
+ # delete_all(xpath)
1836
+ #
1837
+ # Removes all elements found via the given +xpath+;
1838
+ # returns the array of removed elements, if any, else +nil+.
1839
+ #
1840
+ # d = REXML::Document.new(xml_string)
1841
+ # elements = d.root.elements
1842
+ # elements.size # => 4
1843
+ # deleted_elements = elements.delete_all('//book [@category="web"]')
1844
+ # deleted_elements.size # => 2
1845
+ # elements.size # => 2
1846
+ # deleted_elements = elements.delete_all('//book')
1847
+ # deleted_elements.size # => 2
1848
+ # elements.size # => 0
1849
+ # elements.delete_all('//book') # => []
1850
+ #
1851
+ def delete_all( xpath )
1852
+ rv = []
1853
+ XPath::each( @element, xpath) {|element|
1854
+ rv << element if element.kind_of? Element
1855
+ }
1856
+ rv.each do |element|
1857
+ @element.delete element
1858
+ element.remove
1859
+ end
1860
+ return rv
1861
+ end
1862
+
1863
+ # :call-seq:
1864
+ # add -> new_element
1865
+ # add(name) -> new_element
1866
+ # add(element) -> element
1867
+ #
1868
+ # Adds an element; returns the element added.
1869
+ #
1870
+ # With no argument, creates and adds a new element.
1871
+ # The new element has:
1872
+ #
1873
+ # - No name.
1874
+ # - \Parent from the \Elements object.
1875
+ # - Context from the that parent.
1876
+ #
1877
+ # Example:
1878
+ #
1879
+ # d = REXML::Document.new(xml_string)
1880
+ # elements = d.root.elements
1881
+ # parent = elements.parent # => <bookstore> ... </>
1882
+ # parent.context = {raw: :all}
1883
+ # elements.size # => 4
1884
+ # new_element = elements.add # => </>
1885
+ # elements.size # => 5
1886
+ # new_element.name # => nil
1887
+ # new_element.parent # => <bookstore> ... </>
1888
+ # new_element.context # => {:raw=>:all}
1889
+ #
1890
+ # With string argument +name+, creates and adds a new element.
1891
+ # The new element has:
1892
+ #
1893
+ # - Name +name+.
1894
+ # - \Parent from the \Elements object.
1895
+ # - Context from the that parent.
1896
+ #
1897
+ # Example:
1898
+ #
1899
+ # d = REXML::Document.new(xml_string)
1900
+ # elements = d.root.elements
1901
+ # parent = elements.parent # => <bookstore> ... </>
1902
+ # parent.context = {raw: :all}
1903
+ # elements.size # => 4
1904
+ # new_element = elements.add('foo') # => <foo/>
1905
+ # elements.size # => 5
1906
+ # new_element.name # => "foo"
1907
+ # new_element.parent # => <bookstore> ... </>
1908
+ # new_element.context # => {:raw=>:all}
1909
+ #
1910
+ # With argument +element+,
1911
+ # creates and adds a clone of the given +element+.
1912
+ # The new element has name, parent, and context from the given +element+.
1913
+ #
1914
+ # d = REXML::Document.new(xml_string)
1915
+ # elements = d.root.elements
1916
+ # elements.size # => 4
1917
+ # e0 = REXML::Element.new('foo')
1918
+ # e1 = REXML::Element.new('bar', e0, {raw: :all})
1919
+ # element = elements.add(e1) # => <bar/>
1920
+ # elements.size # => 5
1921
+ # element.name # => "bar"
1922
+ # element.parent # => <bookstore> ... </>
1923
+ # element.context # => {:raw=>:all}
1924
+ #
1925
+ def add element=nil
1926
+ if element.nil?
1927
+ Element.new("", self, @element.context)
1928
+ elsif not element.kind_of?(Element)
1929
+ Element.new(element, self, @element.context)
1930
+ else
1931
+ @element << element
1932
+ element.context = @element.context
1933
+ element
1934
+ end
1935
+ end
1936
+
1937
+ alias :<< :add
1938
+
1939
+ # :call-seq:
1940
+ # each(xpath = nil) {|element| ... } -> self
1941
+ #
1942
+ # Iterates over the elements.
1943
+ #
1944
+ # With no argument, calls the block with each element:
1945
+ #
1946
+ # d = REXML::Document.new(xml_string)
1947
+ # elements = d.root.elements
1948
+ # elements.each {|element| p element }
1949
+ #
1950
+ # Output:
1951
+ #
1952
+ # <book category='cooking'> ... </>
1953
+ # <book category='children'> ... </>
1954
+ # <book category='web'> ... </>
1955
+ # <book category='web' cover='paperback'> ... </>
1956
+ #
1957
+ # With argument +xpath+, calls the block with each element
1958
+ # that matches the given +xpath+:
1959
+ #
1960
+ # elements.each('//book [@category="web"]') {|element| p element }
1961
+ #
1962
+ # Output:
1963
+ #
1964
+ # <book category='web'> ... </>
1965
+ # <book category='web' cover='paperback'> ... </>
1966
+ #
1967
+ def each( xpath=nil )
1968
+ XPath::each( @element, xpath ) {|e| yield e if e.kind_of? Element }
1969
+ end
1970
+
1971
+ # :call-seq:
1972
+ # collect(xpath = nil) {|element| ... } -> array
1973
+ #
1974
+ # Iterates over the elements; returns the array of block return values.
1975
+ #
1976
+ # With no argument, iterates over all elements:
1977
+ #
1978
+ # d = REXML::Document.new(xml_string)
1979
+ # elements = d.root.elements
1980
+ # elements.collect {|element| element.size } # => [9, 9, 17, 9]
1981
+ #
1982
+ # With argument +xpath+, iterates over elements that match
1983
+ # the given +xpath+:
1984
+ #
1985
+ # xpath = '//book [@category="web"]'
1986
+ # elements.collect(xpath) {|element| element.size } # => [17, 9]
1987
+ #
1988
+ def collect( xpath=nil )
1989
+ collection = []
1990
+ XPath::each( @element, xpath ) {|e|
1991
+ collection << yield(e) if e.kind_of?(Element)
1992
+ }
1993
+ collection
1994
+ end
1995
+
1996
+ # :call-seq:
1997
+ # inject(xpath = nil, initial = nil) -> object
1998
+ #
1999
+ # Calls the block with elements; returns the last block return value.
2000
+ #
2001
+ # With no argument, iterates over the elements, calling the block
2002
+ # <tt>elements.size - 1</tt> times.
2003
+ #
2004
+ # - The first call passes the first and second elements.
2005
+ # - The second call passes the first block return value and the third element.
2006
+ # - The third call passes the second block return value and the fourth element.
2007
+ # - And so on.
2008
+ #
2009
+ # In this example, the block returns the passed element,
2010
+ # which is then the object argument to the next call:
2011
+ #
2012
+ # d = REXML::Document.new(xml_string)
2013
+ # elements = d.root.elements
2014
+ # elements.inject do |object, element|
2015
+ # p [elements.index(object), elements.index(element)]
2016
+ # element
2017
+ # end
2018
+ #
2019
+ # Output:
2020
+ #
2021
+ # [1, 2]
2022
+ # [2, 3]
2023
+ # [3, 4]
2024
+ #
2025
+ # With the single argument +xpath+, calls the block only with
2026
+ # elements matching that xpath:
2027
+ #
2028
+ # elements.inject('//book [@category="web"]') do |object, element|
2029
+ # p [elements.index(object), elements.index(element)]
2030
+ # element
2031
+ # end
2032
+ #
2033
+ # Output:
2034
+ #
2035
+ # [3, 4]
2036
+ #
2037
+ # With argument +xpath+ given as +nil+
2038
+ # and argument +initial+ also given,
2039
+ # calls the block once for each element.
2040
+ #
2041
+ # - The first call passes the +initial+ and the first element.
2042
+ # - The second call passes the first block return value and the second element.
2043
+ # - The third call passes the second block return value and the third element.
2044
+ # - And so on.
2045
+ #
2046
+ # In this example, the first object index is <tt>-1</tt>
2047
+ #
2048
+ # elements.inject(nil, 'Initial') do |object, element|
2049
+ # p [elements.index(object), elements.index(element)]
2050
+ # element
2051
+ # end
2052
+ #
2053
+ # Output:
2054
+ #
2055
+ # [-1, 1]
2056
+ # [1, 2]
2057
+ # [2, 3]
2058
+ # [3, 4]
2059
+ #
2060
+ # In this form the passed object can be used as an accumulator:
2061
+ #
2062
+ # elements.inject(nil, 0) do |total, element|
2063
+ # total += element.size
2064
+ # end # => 44
2065
+ #
2066
+ # With both arguments +xpath+ and +initial+ are given,
2067
+ # calls the block only with elements matching that xpath:
2068
+ #
2069
+ # elements.inject('//book [@category="web"]', 0) do |total, element|
2070
+ # total += element.size
2071
+ # end # => 26
2072
+ #
2073
+ def inject( xpath=nil, initial=nil )
2074
+ first = true
2075
+ XPath::each( @element, xpath ) {|e|
2076
+ if (e.kind_of? Element)
2077
+ if (first and initial == nil)
2078
+ initial = e
2079
+ first = false
2080
+ else
2081
+ initial = yield( initial, e ) if e.kind_of? Element
2082
+ end
2083
+ end
2084
+ }
2085
+ initial
2086
+ end
2087
+
2088
+ # :call-seq:
2089
+ # size -> integer
2090
+ #
2091
+ # Returns the count of \Element children:
2092
+ #
2093
+ # d = REXML::Document.new '<a>sean<b/>elliott<b/>russell<b/></a>'
2094
+ # d.root.elements.size # => 3 # Three elements.
2095
+ # d.root.size # => 6 # Three elements plus three text nodes..
2096
+ #
2097
+ def size
2098
+ count = 0
2099
+ @element.each {|child| count+=1 if child.kind_of? Element }
2100
+ count
2101
+ end
2102
+
2103
+ # :call-seq:
2104
+ # to_a(xpath = nil) -> array_of_elements
2105
+ #
2106
+ # Returns an array of element children (not including non-element children).
2107
+ #
2108
+ # With no argument, returns an array of all element children:
2109
+ #
2110
+ # d = REXML::Document.new '<a>sean<b/>elliott<c/></a>'
2111
+ # elements = d.root.elements
2112
+ # elements.to_a # => [<b/>, <c/>] # Omits non-element children.
2113
+ # children = d.root.children
2114
+ # children # => ["sean", <b/>, "elliott", <c/>] # Includes non-element children.
2115
+ #
2116
+ # With argument +xpath+, returns an array of element children
2117
+ # that match the xpath:
2118
+ #
2119
+ # elements.to_a('//c') # => [<c/>]
2120
+ #
2121
+ def to_a( xpath=nil )
2122
+ rv = XPath.match( @element, xpath )
2123
+ return rv.find_all{|e| e.kind_of? Element} if xpath
2124
+ rv
2125
+ end
2126
+
2127
+ private
2128
+ # Private helper class. Removes quotes from quoted strings
2129
+ def literalize name
2130
+ name = name[1..-2] if name[0] == ?' or name[0] == ?" #'
2131
+ name
2132
+ end
2133
+ end
2134
+
2135
+ ########################################################################
2136
+ # ATTRIBUTES #
2137
+ ########################################################################
2138
+
2139
+ # A class that defines the set of Attributes of an Element and provides
2140
+ # operations for accessing elements in that set.
2141
+ class Attributes < Hash
2142
+
2143
+ # :call-seq:
2144
+ # new(element)
2145
+ #
2146
+ # Creates and returns a new \REXML::Attributes object.
2147
+ # The element given by argument +element+ is stored,
2148
+ # but its own attributes are not modified:
2149
+ #
2150
+ # ele = REXML::Element.new('foo')
2151
+ # attrs = REXML::Attributes.new(ele)
2152
+ # attrs.object_id == ele.attributes.object_id # => false
2153
+ #
2154
+ # Other instance methods in class \REXML::Attributes may refer to:
2155
+ #
2156
+ # - +element.document+.
2157
+ # - +element.prefix+.
2158
+ # - +element.expanded_name+.
2159
+ #
2160
+ def initialize element
2161
+ @element = element
2162
+ end
2163
+
2164
+ # :call-seq:
2165
+ # [name] -> attribute_value or nil
2166
+ #
2167
+ # Returns the value for the attribute given by +name+,
2168
+ # if it exists; otherwise +nil+.
2169
+ # The value returned is the unnormalized attribute value,
2170
+ # with entities expanded:
2171
+ #
2172
+ # xml_string = <<-EOT
2173
+ # <root xmlns:foo="http://foo" xmlns:bar="http://bar">
2174
+ # <ele foo:att='1' bar:att='2' att='&lt;'/>
2175
+ # </root>
2176
+ # EOT
2177
+ # d = REXML::Document.new(xml_string)
2178
+ # ele = d.elements['//ele'] # => <a foo:att='1' bar:att='2' att='&lt;'/>
2179
+ # ele.attributes['att'] # => "<"
2180
+ # ele.attributes['bar:att'] # => "2"
2181
+ # ele.attributes['nosuch'] # => nil
2182
+ #
2183
+ # Related: get_attribute (returns an \Attribute object).
2184
+ #
2185
+ def [](name)
2186
+ attr = get_attribute(name)
2187
+ return attr.value unless attr.nil?
2188
+ return nil
2189
+ end
2190
+
2191
+ # :call-seq:
2192
+ # to_a -> array_of_attribute_objects
2193
+ #
2194
+ # Returns an array of \REXML::Attribute objects representing
2195
+ # the attributes:
2196
+ #
2197
+ # xml_string = <<-EOT
2198
+ # <root xmlns:foo="http://foo" xmlns:bar="http://bar">
2199
+ # <ele foo:att='1' bar:att='2' att='&lt;'/>
2200
+ # </root>
2201
+ # EOT
2202
+ # d = REXML::Document.new(xml_string)
2203
+ # ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='&lt;'/>
2204
+ # attrs = ele.attributes.to_a # => [foo:att='1', bar:att='2', att='&lt;']
2205
+ # attrs.first.class # => REXML::Attribute
2206
+ #
2207
+ def to_a
2208
+ enum_for(:each_attribute).to_a
2209
+ end
2210
+
2211
+ # :call-seq:
2212
+ # length
2213
+ #
2214
+ # Returns the count of attributes:
2215
+ #
2216
+ # xml_string = <<-EOT
2217
+ # <root xmlns:foo="http://foo" xmlns:bar="http://bar">
2218
+ # <ele foo:att='1' bar:att='2' att='&lt;'/>
2219
+ # </root>
2220
+ # EOT
2221
+ # d = REXML::Document.new(xml_string)
2222
+ # ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='&lt;'/>
2223
+ # ele.attributes.length # => 3
2224
+ #
2225
+ def length
2226
+ c = 0
2227
+ each_attribute { c+=1 }
2228
+ c
2229
+ end
2230
+ alias :size :length
2231
+
2232
+ # :call-seq:
2233
+ # each_attribute {|attr| ... }
2234
+ #
2235
+ # Calls the given block with each \REXML::Attribute object:
2236
+ #
2237
+ # xml_string = <<-EOT
2238
+ # <root xmlns:foo="http://foo" xmlns:bar="http://bar">
2239
+ # <ele foo:att='1' bar:att='2' att='&lt;'/>
2240
+ # </root>
2241
+ # EOT
2242
+ # d = REXML::Document.new(xml_string)
2243
+ # ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='&lt;'/>
2244
+ # ele.attributes.each_attribute do |attr|
2245
+ # p [attr.class, attr]
2246
+ # end
2247
+ #
2248
+ # Output:
2249
+ #
2250
+ # [REXML::Attribute, foo:att='1']
2251
+ # [REXML::Attribute, bar:att='2']
2252
+ # [REXML::Attribute, att='&lt;']
2253
+ #
2254
+ def each_attribute # :yields: attribute
2255
+ return to_enum(__method__) unless block_given?
2256
+ each_value do |val|
2257
+ if val.kind_of? Attribute
2258
+ yield val
2259
+ else
2260
+ val.each_value { |atr| yield atr }
2261
+ end
2262
+ end
2263
+ end
2264
+
2265
+ # :call-seq:
2266
+ # each {|expanded_name, value| ... }
2267
+ #
2268
+ # Calls the given block with each expanded-name/value pair:
2269
+ #
2270
+ # xml_string = <<-EOT
2271
+ # <root xmlns:foo="http://foo" xmlns:bar="http://bar">
2272
+ # <ele foo:att='1' bar:att='2' att='&lt;'/>
2273
+ # </root>
2274
+ # EOT
2275
+ # d = REXML::Document.new(xml_string)
2276
+ # ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='&lt;'/>
2277
+ # ele.attributes.each do |expanded_name, value|
2278
+ # p [expanded_name, value]
2279
+ # end
2280
+ #
2281
+ # Output:
2282
+ #
2283
+ # ["foo:att", "1"]
2284
+ # ["bar:att", "2"]
2285
+ # ["att", "<"]
2286
+ #
2287
+ def each
2288
+ return to_enum(__method__) unless block_given?
2289
+ each_attribute do |attr|
2290
+ yield [attr.expanded_name, attr.value]
2291
+ end
2292
+ end
2293
+
2294
+ # :call-seq:
2295
+ # get_attribute(name) -> attribute_object or nil
2296
+ #
2297
+ # Returns the \REXML::Attribute object for the given +name+:
2298
+ #
2299
+ # xml_string = <<-EOT
2300
+ # <root xmlns:foo="http://foo" xmlns:bar="http://bar">
2301
+ # <ele foo:att='1' bar:att='2' att='&lt;'/>
2302
+ # </root>
2303
+ # EOT
2304
+ # d = REXML::Document.new(xml_string)
2305
+ # ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='&lt;'/>
2306
+ # attrs = ele.attributes
2307
+ # attrs.get_attribute('foo:att') # => foo:att='1'
2308
+ # attrs.get_attribute('foo:att').class # => REXML::Attribute
2309
+ # attrs.get_attribute('bar:att') # => bar:att='2'
2310
+ # attrs.get_attribute('att') # => att='&lt;'
2311
+ # attrs.get_attribute('nosuch') # => nil
2312
+ #
2313
+ def get_attribute( name )
2314
+ attr = fetch( name, nil )
2315
+ if attr.nil?
2316
+ return nil if name.nil?
2317
+ # Look for prefix
2318
+ name =~ Namespace::NAMESPLIT
2319
+ prefix, n = $1, $2
2320
+ if prefix
2321
+ attr = fetch( n, nil )
2322
+ # check prefix
2323
+ if attr == nil
2324
+ elsif attr.kind_of? Attribute
2325
+ return attr if prefix == attr.prefix
2326
+ else
2327
+ attr = attr[ prefix ]
2328
+ return attr
2329
+ end
2330
+ end
2331
+ element_document = @element.document
2332
+ if element_document and element_document.doctype
2333
+ expn = @element.expanded_name
2334
+ expn = element_document.doctype.name if expn.size == 0
2335
+ attr_val = element_document.doctype.attribute_of(expn, name)
2336
+ return Attribute.new( name, attr_val ) if attr_val
2337
+ end
2338
+ return nil
2339
+ end
2340
+ if attr.kind_of? Hash
2341
+ attr = attr[ @element.prefix ]
2342
+ end
2343
+ return attr
2344
+ end
2345
+
2346
+ # :call-seq:
2347
+ # [name] = value -> value
2348
+ #
2349
+ # When +value+ is non-+nil+,
2350
+ # assigns that to the attribute for the given +name+,
2351
+ # overwriting the previous value if it exists:
2352
+ #
2353
+ # xml_string = <<-EOT
2354
+ # <root xmlns:foo="http://foo" xmlns:bar="http://bar">
2355
+ # <ele foo:att='1' bar:att='2' att='&lt;'/>
2356
+ # </root>
2357
+ # EOT
2358
+ # d = REXML::Document.new(xml_string)
2359
+ # ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='&lt;'/>
2360
+ # attrs = ele.attributes
2361
+ # attrs['foo:att'] = '2' # => "2"
2362
+ # attrs['baz:att'] = '3' # => "3"
2363
+ #
2364
+ # When +value+ is +nil+, deletes the attribute if it exists:
2365
+ #
2366
+ # attrs['baz:att'] = nil
2367
+ # attrs.include?('baz:att') # => false
2368
+ #
2369
+ def []=( name, value )
2370
+ if value.nil? # Delete the named attribute
2371
+ attr = get_attribute(name)
2372
+ delete attr
2373
+ return
2374
+ end
2375
+
2376
+ unless value.kind_of? Attribute
2377
+ if @element.document and @element.document.doctype
2378
+ value = Text::normalize( value, @element.document.doctype )
2379
+ else
2380
+ value = Text::normalize( value, nil )
2381
+ end
2382
+ value = Attribute.new(name, value)
2383
+ end
2384
+ value.element = @element
2385
+ old_attr = fetch(value.name, nil)
2386
+ if old_attr.nil?
2387
+ store(value.name, value)
2388
+ elsif old_attr.kind_of? Hash
2389
+ old_attr[value.prefix] = value
2390
+ elsif old_attr.prefix != value.prefix
2391
+ # Check for conflicting namespaces
2392
+ if value.prefix != "xmlns" and old_attr.prefix != "xmlns"
2393
+ old_namespace = old_attr.namespace
2394
+ new_namespace = value.namespace
2395
+ if old_namespace == new_namespace
2396
+ raise ParseException.new(
2397
+ "Namespace conflict in adding attribute \"#{value.name}\": "+
2398
+ "Prefix \"#{old_attr.prefix}\" = \"#{old_namespace}\" and "+
2399
+ "prefix \"#{value.prefix}\" = \"#{new_namespace}\"")
2400
+ end
2401
+ end
2402
+ store value.name, {old_attr.prefix => old_attr,
2403
+ value.prefix => value}
2404
+ else
2405
+ store value.name, value
2406
+ end
2407
+ return @element
2408
+ end
2409
+
2410
+ # :call-seq:
2411
+ # prefixes -> array_of_prefix_strings
2412
+ #
2413
+ # Returns an array of prefix strings in the attributes.
2414
+ # The array does not include the default
2415
+ # namespace declaration, if one exists.
2416
+ #
2417
+ # xml_string = '<a xmlns="foo" xmlns:x="bar" xmlns:y="twee" z="glorp"/>'
2418
+ # d = REXML::Document.new(xml_string)
2419
+ # d.root.attributes.prefixes # => ["x", "y"]
2420
+ #
2421
+ def prefixes
2422
+ ns = []
2423
+ each_attribute do |attribute|
2424
+ ns << attribute.name if attribute.prefix == 'xmlns'
2425
+ end
2426
+ if @element.document and @element.document.doctype
2427
+ expn = @element.expanded_name
2428
+ expn = @element.document.doctype.name if expn.size == 0
2429
+ @element.document.doctype.attributes_of(expn).each {
2430
+ |attribute|
2431
+ ns << attribute.name if attribute.prefix == 'xmlns'
2432
+ }
2433
+ end
2434
+ ns
2435
+ end
2436
+
2437
+ # :call-seq:
2438
+ # namespaces
2439
+ #
2440
+ # Returns a hash of name/value pairs for the namespaces:
2441
+ #
2442
+ # xml_string = '<a xmlns="foo" xmlns:x="bar" xmlns:y="twee" z="glorp"/>'
2443
+ # d = REXML::Document.new(xml_string)
2444
+ # d.root.attributes.namespaces # => {"xmlns"=>"foo", "x"=>"bar", "y"=>"twee"}
2445
+ #
2446
+ def namespaces
2447
+ namespaces = {}
2448
+ each_attribute do |attribute|
2449
+ namespaces[attribute.name] = attribute.value if attribute.prefix == 'xmlns' or attribute.name == 'xmlns'
2450
+ end
2451
+ if @element.document and @element.document.doctype
2452
+ expn = @element.expanded_name
2453
+ expn = @element.document.doctype.name if expn.size == 0
2454
+ @element.document.doctype.attributes_of(expn).each {
2455
+ |attribute|
2456
+ namespaces[attribute.name] = attribute.value if attribute.prefix == 'xmlns' or attribute.name == 'xmlns'
2457
+ }
2458
+ end
2459
+ namespaces
2460
+ end
2461
+
2462
+ # :call-seq:
2463
+ # delete(name) -> element
2464
+ # delete(attribute) -> element
2465
+ #
2466
+ # Removes a specified attribute if it exists;
2467
+ # returns the attributes' element.
2468
+ #
2469
+ # When string argument +name+ is given,
2470
+ # removes the attribute of that name if it exists:
2471
+ #
2472
+ # xml_string = <<-EOT
2473
+ # <root xmlns:foo="http://foo" xmlns:bar="http://bar">
2474
+ # <ele foo:att='1' bar:att='2' att='&lt;'/>
2475
+ # </root>
2476
+ # EOT
2477
+ # d = REXML::Document.new(xml_string)
2478
+ # ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='&lt;'/>
2479
+ # attrs = ele.attributes
2480
+ # attrs.delete('foo:att') # => <ele bar:att='2' att='&lt;'/>
2481
+ # attrs.delete('foo:att') # => <ele bar:att='2' att='&lt;'/>
2482
+ #
2483
+ # When attribute argument +attribute+ is given,
2484
+ # removes that attribute if it exists:
2485
+ #
2486
+ # attr = REXML::Attribute.new('bar:att', '2')
2487
+ # attrs.delete(attr) # => <ele att='&lt;'/> # => <ele att='&lt;'/>
2488
+ # attrs.delete(attr) # => <ele att='&lt;'/> # => <ele/>
2489
+ #
2490
+ def delete( attribute )
2491
+ name = nil
2492
+ prefix = nil
2493
+ if attribute.kind_of? Attribute
2494
+ name = attribute.name
2495
+ prefix = attribute.prefix
2496
+ else
2497
+ attribute =~ Namespace::NAMESPLIT
2498
+ prefix, name = $1, $2
2499
+ prefix = '' unless prefix
2500
+ end
2501
+ old = fetch(name, nil)
2502
+ if old.kind_of? Hash # the supplied attribute is one of many
2503
+ old.delete(prefix)
2504
+ if old.size == 1
2505
+ repl = nil
2506
+ old.each_value{|v| repl = v}
2507
+ store name, repl
2508
+ end
2509
+ elsif old.nil?
2510
+ return @element
2511
+ else # the supplied attribute is a top-level one
2512
+ super(name)
2513
+ end
2514
+ @element
2515
+ end
2516
+
2517
+ # :call-seq:
2518
+ # add(attribute) -> attribute
2519
+ #
2520
+ # Adds attribute +attribute+, replacing the previous
2521
+ # attribute of the same name if it exists;
2522
+ # returns +attribute+:
2523
+ #
2524
+ # xml_string = <<-EOT
2525
+ # <root xmlns:foo="http://foo" xmlns:bar="http://bar">
2526
+ # <ele foo:att='1' bar:att='2' att='&lt;'/>
2527
+ # </root>
2528
+ # EOT
2529
+ # d = REXML::Document.new(xml_string)
2530
+ # ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='&lt;'/>
2531
+ # attrs = ele.attributes
2532
+ # attrs # => {"att"=>{"foo"=>foo:att='1', "bar"=>bar:att='2', ""=>att='&lt;'}}
2533
+ # attrs.add(REXML::Attribute.new('foo:att', '2')) # => foo:att='2'
2534
+ # attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3'
2535
+ # attrs.include?('baz') # => true
2536
+ #
2537
+ def add( attribute )
2538
+ self[attribute.name] = attribute
2539
+ end
2540
+
2541
+ alias :<< :add
2542
+
2543
+ # :call-seq:
2544
+ # delete_all(name) -> array_of_removed_attributes
2545
+ #
2546
+ # Removes all attributes matching the given +name+;
2547
+ # returns an array of the removed attributes:
2548
+ #
2549
+ # xml_string = <<-EOT
2550
+ # <root xmlns:foo="http://foo" xmlns:bar="http://bar">
2551
+ # <ele foo:att='1' bar:att='2' att='&lt;'/>
2552
+ # </root>
2553
+ # EOT
2554
+ # d = REXML::Document.new(xml_string)
2555
+ # ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='&lt;'/>
2556
+ # attrs = ele.attributes
2557
+ # attrs.delete_all('att') # => [att='&lt;']
2558
+ #
2559
+ def delete_all( name )
2560
+ rv = []
2561
+ each_attribute { |attribute|
2562
+ rv << attribute if attribute.expanded_name == name
2563
+ }
2564
+ rv.each{ |attr| attr.remove }
2565
+ return rv
2566
+ end
2567
+
2568
+ # :call-seq:
2569
+ # get_attribute_ns(namespace, name)
2570
+ #
2571
+ # Returns the \REXML::Attribute object among the attributes
2572
+ # that matches the given +namespace+ and +name+:
2573
+ #
2574
+ # xml_string = <<-EOT
2575
+ # <root xmlns:foo="http://foo" xmlns:bar="http://bar">
2576
+ # <ele foo:att='1' bar:att='2' att='&lt;'/>
2577
+ # </root>
2578
+ # EOT
2579
+ # d = REXML::Document.new(xml_string)
2580
+ # ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='&lt;'/>
2581
+ # attrs = ele.attributes
2582
+ # attrs.get_attribute_ns('http://foo', 'att') # => foo:att='1'
2583
+ # attrs.get_attribute_ns('http://foo', 'nosuch') # => nil
2584
+ #
2585
+ def get_attribute_ns(namespace, name)
2586
+ result = nil
2587
+ each_attribute() { |attribute|
2588
+ if name == attribute.name &&
2589
+ namespace == attribute.namespace() &&
2590
+ ( !namespace.empty? || !attribute.fully_expanded_name.index(':') )
2591
+ # foo will match xmlns:foo, but only if foo isn't also an attribute
2592
+ result = attribute if !result or !namespace.empty? or
2593
+ !attribute.fully_expanded_name.index(':')
2594
+ end
2595
+ }
2596
+ result
2597
+ end
2598
+ end
2599
+ end