mack 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (602) hide show
  1. data/CHANGELOG +17 -1
  2. data/bin/env_handler.rb +1 -1
  3. data/bin/mack +2 -2
  4. data/bin/mackery-server +1 -1
  5. data/lib/gems.rb +6 -1
  6. data/lib/gems/builder-2.1.2/lib/blankslate.rb +2 -2
  7. data/lib/gems/builder-2.1.2/lib/builder/xchar.rb +3 -3
  8. data/lib/gems/builder-2.1.2/lib/builder/xmlbase.rb +9 -9
  9. data/lib/gems/builder-2.1.2/lib/builder/xmlmarkup.rb +15 -15
  10. data/lib/gems/configatron-2.2.2/lib/configatron.rb +9 -0
  11. data/lib/gems/{configatron-2.1.5 → configatron-2.2.2}/lib/configatron/configatron.rb +8 -6
  12. data/lib/gems/configatron-2.2.2/lib/configatron/core_ext/class.rb +26 -0
  13. data/lib/gems/{configatron-2.1.5/lib/configatron → configatron-2.2.2/lib/configatron/core_ext}/kernel.rb +0 -0
  14. data/lib/gems/configatron-2.2.2/lib/configatron/core_ext/object.rb +9 -0
  15. data/lib/gems/configatron-2.2.2/lib/configatron/core_ext/string.rb +84 -0
  16. data/lib/gems/configatron-2.2.2/lib/configatron/errors.rb +13 -0
  17. data/lib/gems/{configatron-2.1.5 → configatron-2.2.2}/lib/configatron/store.rb +37 -6
  18. data/lib/gems/cucumber-0.1.15/lib/autotest/cucumber.rb +6 -0
  19. data/lib/gems/cucumber-0.1.15/lib/autotest/cucumber_mixin.rb +130 -0
  20. data/lib/gems/cucumber-0.1.15/lib/autotest/cucumber_rails.rb +6 -0
  21. data/lib/gems/cucumber-0.1.15/lib/autotest/cucumber_rails_rspec.rb +6 -0
  22. data/lib/gems/cucumber-0.1.15/lib/autotest/cucumber_rspec.rb +6 -0
  23. data/lib/gems/cucumber-0.1.15/lib/autotest/discover.rb +9 -0
  24. data/lib/gems/cucumber-0.1.15/lib/cucumber.rb +19 -0
  25. data/lib/gems/cucumber-0.1.15/lib/cucumber/broadcaster.rb +20 -0
  26. data/lib/gems/cucumber-0.1.15/lib/cucumber/cli.rb +360 -0
  27. data/lib/gems/cucumber-0.1.15/lib/cucumber/core_ext/exception.rb +20 -0
  28. data/lib/gems/cucumber-0.1.15/lib/cucumber/core_ext/proc.rb +69 -0
  29. data/lib/gems/cucumber-0.1.15/lib/cucumber/core_ext/string.rb +29 -0
  30. data/lib/gems/cucumber-0.1.15/lib/cucumber/executor.rb +205 -0
  31. data/lib/gems/cucumber-0.1.15/lib/cucumber/formatters.rb +1 -0
  32. data/lib/gems/cucumber-0.1.15/lib/cucumber/formatters/ansicolor.rb +105 -0
  33. data/lib/gems/cucumber-0.1.15/lib/cucumber/formatters/autotest_formatter.rb +23 -0
  34. data/lib/gems/{rspec-1.1.11/story_server/prototype/stylesheets/rspec.css → cucumber-0.1.15/lib/cucumber/formatters/cucumber.css} +33 -37
  35. data/lib/gems/cucumber-0.1.15/lib/cucumber/formatters/cucumber.js +11 -0
  36. data/lib/gems/cucumber-0.1.15/lib/cucumber/formatters/html_formatter.rb +151 -0
  37. data/lib/gems/cucumber-0.1.15/lib/cucumber/formatters/jquery.js +32 -0
  38. data/lib/gems/cucumber-0.1.15/lib/cucumber/formatters/pretty_formatter.rb +285 -0
  39. data/lib/gems/cucumber-0.1.15/lib/cucumber/formatters/profile_formatter.rb +92 -0
  40. data/lib/gems/cucumber-0.1.15/lib/cucumber/formatters/progress_formatter.rb +61 -0
  41. data/lib/gems/cucumber-0.1.15/lib/cucumber/formatters/unicode.rb +35 -0
  42. data/lib/gems/cucumber-0.1.15/lib/cucumber/languages.yml +271 -0
  43. data/lib/gems/cucumber-0.1.15/lib/cucumber/model.rb +1 -0
  44. data/lib/gems/cucumber-0.1.15/lib/cucumber/model/table.rb +28 -0
  45. data/lib/gems/cucumber-0.1.15/lib/cucumber/platform.rb +32 -0
  46. data/lib/gems/cucumber-0.1.15/lib/cucumber/rails/rspec.rb +12 -0
  47. data/lib/gems/cucumber-0.1.15/lib/cucumber/rails/world.rb +73 -0
  48. data/lib/gems/cucumber-0.1.15/lib/cucumber/rake/task.rb +101 -0
  49. data/lib/gems/cucumber-0.1.15/lib/cucumber/step_methods.rb +49 -0
  50. data/lib/gems/cucumber-0.1.15/lib/cucumber/step_mother.rb +98 -0
  51. data/lib/gems/cucumber-0.1.15/lib/cucumber/tree.rb +16 -0
  52. data/lib/gems/cucumber-0.1.15/lib/cucumber/tree/feature.rb +89 -0
  53. data/lib/gems/cucumber-0.1.15/lib/cucumber/tree/features.rb +21 -0
  54. data/lib/gems/cucumber-0.1.15/lib/cucumber/tree/given_scenario.rb +13 -0
  55. data/lib/gems/cucumber-0.1.15/lib/cucumber/tree/scenario.rb +236 -0
  56. data/lib/gems/cucumber-0.1.15/lib/cucumber/tree/step.rb +173 -0
  57. data/lib/gems/cucumber-0.1.15/lib/cucumber/tree/table.rb +26 -0
  58. data/lib/gems/cucumber-0.1.15/lib/cucumber/tree/top_down_visitor.rb +23 -0
  59. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature.treetop.erb +254 -0
  60. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_ar.rb +1951 -0
  61. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_cy.rb +1951 -0
  62. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_da.rb +1951 -0
  63. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_de.rb +1951 -0
  64. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_en-lol.rb +1951 -0
  65. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_en-tx.rb +1951 -0
  66. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_en.rb +1951 -0
  67. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_es.rb +1951 -0
  68. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_et.rb +1951 -0
  69. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_fr.rb +1951 -0
  70. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_id.rb +1951 -0
  71. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_it.rb +1951 -0
  72. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_ja.rb +1951 -0
  73. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_ko.rb +1951 -0
  74. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_lt.rb +1951 -0
  75. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_nl.rb +1951 -0
  76. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_no.rb +1951 -0
  77. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_parser.rb +36 -0
  78. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_pl.rb +1951 -0
  79. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_pt.rb +1951 -0
  80. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_ro.rb +1951 -0
  81. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_ro2.rb +1951 -0
  82. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_ru.rb +1951 -0
  83. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_se.rb +1951 -0
  84. data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_zh-CN.rb +1951 -0
  85. data/lib/gems/cucumber-0.1.15/lib/cucumber/version.rb +10 -0
  86. data/lib/gems/cucumber-0.1.15/lib/cucumber/world.rb +1 -0
  87. data/lib/gems/cucumber-0.1.15/lib/cucumber/world/pending.rb +22 -0
  88. data/lib/gems/diff-lcs-1.1.2/lib/diff/lcs.rb +1105 -0
  89. data/lib/gems/diff-lcs-1.1.2/lib/diff/lcs/array.rb +21 -0
  90. data/lib/gems/diff-lcs-1.1.2/lib/diff/lcs/block.rb +51 -0
  91. data/lib/gems/diff-lcs-1.1.2/lib/diff/lcs/callbacks.rb +322 -0
  92. data/lib/gems/diff-lcs-1.1.2/lib/diff/lcs/change.rb +169 -0
  93. data/lib/gems/diff-lcs-1.1.2/lib/diff/lcs/hunk.rb +257 -0
  94. data/lib/gems/diff-lcs-1.1.2/lib/diff/lcs/ldiff.rb +226 -0
  95. data/lib/gems/diff-lcs-1.1.2/lib/diff/lcs/string.rb +19 -0
  96. data/lib/gems/polyglot-0.2.3/lib/polyglot.rb +62 -0
  97. data/lib/gems/polyglot-0.2.3/lib/polyglot/version.rb +9 -0
  98. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack.rb +7 -2
  99. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/adapter/camping.rb +1 -1
  100. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/auth/abstract/handler.rb +0 -0
  101. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/auth/abstract/request.rb +0 -0
  102. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/auth/basic.rb +0 -0
  103. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/auth/digest/md5.rb +0 -0
  104. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/auth/digest/nonce.rb +0 -0
  105. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/auth/digest/params.rb +0 -0
  106. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/auth/digest/request.rb +0 -0
  107. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/auth/openid.rb +4 -3
  108. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/builder.rb +12 -1
  109. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/cascade.rb +0 -0
  110. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/commonlogger.rb +0 -0
  111. data/lib/gems/rack-0.9.1/lib/rack/conditionalget.rb +43 -0
  112. data/lib/gems/rack-0.9.1/lib/rack/content_length.rb +25 -0
  113. data/lib/gems/rack-0.9.1/lib/rack/deflater.rb +87 -0
  114. data/lib/gems/rack-0.9.1/lib/rack/directory.rb +150 -0
  115. data/lib/gems/rack-0.9.1/lib/rack/file.rb +85 -0
  116. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/handler.rb +4 -0
  117. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/handler/cgi.rb +0 -0
  118. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/handler/evented_mongrel.rb +1 -1
  119. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/handler/fastcgi.rb +2 -0
  120. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/handler/lsws.rb +0 -0
  121. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/handler/mongrel.rb +6 -2
  122. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/handler/scgi.rb +0 -0
  123. data/lib/gems/rack-0.9.1/lib/rack/handler/swiftiplied_mongrel.rb +8 -0
  124. data/lib/gems/rack-0.9.1/lib/rack/handler/thin.rb +15 -0
  125. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/handler/webrick.rb +8 -4
  126. data/lib/gems/rack-0.9.1/lib/rack/head.rb +19 -0
  127. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/lint.rb +74 -10
  128. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/lobster.rb +13 -13
  129. data/lib/gems/rack-0.9.1/lib/rack/methodoverride.rb +27 -0
  130. data/lib/gems/rack-0.9.1/lib/rack/mime.rb +204 -0
  131. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/mock.rb +0 -0
  132. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/recursive.rb +0 -0
  133. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/reloader.rb +0 -0
  134. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/request.rb +10 -1
  135. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/response.rb +7 -2
  136. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/session/abstract/id.rb +14 -1
  137. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/session/cookie.rb +19 -1
  138. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/session/memcache.rb +1 -1
  139. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/session/pool.rb +1 -1
  140. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/showexceptions.rb +5 -1
  141. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/showstatus.rb +3 -2
  142. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/static.rb +0 -0
  143. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/urlmap.rb +1 -1
  144. data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/utils.rb +42 -13
  145. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/bin/autospec +0 -0
  146. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/bin/spec +0 -0
  147. data/lib/gems/{rspec-1.1.11/plugins → rspec-1.1.12/lib/adapters}/mock_frameworks/flexmock.rb +1 -1
  148. data/lib/gems/{rspec-1.1.11/plugins → rspec-1.1.12/lib/adapters}/mock_frameworks/mocha.rb +1 -1
  149. data/lib/gems/{rspec-1.1.11/plugins → rspec-1.1.12/lib/adapters}/mock_frameworks/rr.rb +1 -1
  150. data/lib/gems/{rspec-1.1.11/plugins → rspec-1.1.12/lib/adapters}/mock_frameworks/rspec.rb +2 -2
  151. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/autotest/discover.rb +0 -0
  152. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/autotest/rspec.rb +4 -3
  153. data/lib/gems/rspec-1.1.12/lib/spec.rb +7 -0
  154. data/lib/gems/rspec-1.1.12/lib/spec/dsl.rb +1 -0
  155. data/lib/gems/{rspec-1.1.11/lib/spec/extensions → rspec-1.1.12/lib/spec/dsl}/main.rb +10 -10
  156. data/lib/gems/rspec-1.1.12/lib/spec/example.rb +186 -0
  157. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/example/before_and_after_hooks.rb +30 -24
  158. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/example/errors.rb +0 -0
  159. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/example/example_group.rb +1 -0
  160. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/example/example_group_factory.rb +26 -9
  161. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/example/example_group_methods.rb +138 -113
  162. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/example/example_matcher.rb +0 -0
  163. data/lib/gems/rspec-1.1.12/lib/spec/example/example_methods.rb +168 -0
  164. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/example/module_reopening_fix.rb +0 -0
  165. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/example/pending.rb +0 -0
  166. data/lib/gems/rspec-1.1.12/lib/spec/example/shared_example_group.rb +59 -0
  167. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/expectations.rb +22 -18
  168. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/expectations/differs/default.rb +0 -0
  169. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/expectations/errors.rb +0 -0
  170. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/expectations/extensions.rb +0 -0
  171. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/expectations/extensions/object.rb +0 -0
  172. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/expectations/extensions/string_and_symbol.rb +0 -0
  173. data/lib/gems/rspec-1.1.12/lib/spec/expectations/handler.rb +32 -0
  174. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/interop/test.rb +0 -0
  175. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/interop/test/unit/autorunner.rb +0 -0
  176. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/interop/test/unit/testcase.rb +19 -17
  177. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/interop/test/unit/testresult.rb +1 -1
  178. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/interop/test/unit/testsuite_adapter.rb +1 -1
  179. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/interop/test/unit/ui/console/testrunner.rb +0 -0
  180. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/matchers.rb +7 -28
  181. data/lib/gems/rspec-1.1.12/lib/spec/matchers/be.rb +208 -0
  182. data/lib/gems/rspec-1.1.12/lib/spec/matchers/be_close.rb +21 -0
  183. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/matchers/change.rb +0 -0
  184. data/lib/gems/rspec-1.1.12/lib/spec/matchers/eql.rb +25 -0
  185. data/lib/gems/rspec-1.1.12/lib/spec/matchers/equal.rb +25 -0
  186. data/lib/gems/rspec-1.1.12/lib/spec/matchers/errors.rb +5 -0
  187. data/lib/gems/rspec-1.1.12/lib/spec/matchers/exist.rb +16 -0
  188. data/lib/gems/rspec-1.1.12/lib/spec/matchers/generated_descriptions.rb +48 -0
  189. data/lib/gems/rspec-1.1.12/lib/spec/matchers/has.rb +18 -0
  190. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/matchers/have.rb +0 -0
  191. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/matchers/include.rb +12 -9
  192. data/lib/gems/rspec-1.1.12/lib/spec/matchers/match.rb +22 -0
  193. data/lib/gems/rspec-1.1.12/lib/spec/matchers/match_array.rb +79 -0
  194. data/lib/gems/rspec-1.1.12/lib/spec/matchers/method_missing.rb +9 -0
  195. data/lib/gems/rspec-1.1.12/lib/spec/matchers/operator_matcher.rb +70 -0
  196. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/matchers/raise_error.rb +4 -8
  197. data/lib/gems/rspec-1.1.12/lib/spec/matchers/respond_to.rb +71 -0
  198. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/matchers/satisfy.rb +0 -0
  199. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/matchers/simple_matcher.rb +0 -0
  200. data/lib/gems/rspec-1.1.12/lib/spec/matchers/throw_symbol.rb +106 -0
  201. data/lib/gems/rspec-1.1.12/lib/spec/matchers/wrap_expectation.rb +55 -0
  202. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks.rb +0 -0
  203. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/argument_constraints.rb +77 -5
  204. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/argument_expectation.rb +0 -0
  205. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/error_generator.rb +0 -0
  206. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/errors.rb +0 -0
  207. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/extensions.rb +0 -0
  208. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/extensions/object.rb +0 -0
  209. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/framework.rb +0 -0
  210. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/message_expectation.rb +7 -7
  211. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/methods.rb +0 -0
  212. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/mock.rb +0 -0
  213. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/order_group.rb +0 -0
  214. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/proxy.rb +14 -12
  215. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/space.rb +0 -0
  216. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/spec_methods.rb +0 -0
  217. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/rake/spectask.rb +4 -6
  218. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/rake/verify_rcov.rb +0 -0
  219. data/lib/gems/rspec-1.1.12/lib/spec/ruby.rb +9 -0
  220. data/lib/gems/rspec-1.1.12/lib/spec/runner.rb +88 -0
  221. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/backtrace_tweaker.rb +5 -3
  222. data/lib/gems/rspec-1.1.12/lib/spec/runner/class_and_arguments_parser.rb +14 -0
  223. data/lib/gems/rspec-1.1.12/lib/spec/runner/command_line.rb +15 -0
  224. data/lib/gems/{rspec-1.1.11/lib/spec/example → rspec-1.1.12/lib/spec/runner}/configuration.rb +46 -47
  225. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/drb_command_line.rb +0 -0
  226. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/example_group_runner.rb +15 -4
  227. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/base_formatter.rb +0 -0
  228. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/base_text_formatter.rb +4 -3
  229. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/failing_example_groups_formatter.rb +0 -0
  230. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/failing_examples_formatter.rb +0 -0
  231. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/html_formatter.rb +14 -11
  232. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/nested_text_formatter.rb +2 -2
  233. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/profile_formatter.rb +0 -0
  234. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/progress_bar_formatter.rb +0 -0
  235. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/snippet_extractor.rb +0 -0
  236. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/specdoc_formatter.rb +0 -0
  237. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/story/html_formatter.rb +0 -0
  238. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/story/plain_text_formatter.rb +0 -0
  239. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/story/progress_bar_formatter.rb +0 -0
  240. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/text_mate_formatter.rb +0 -0
  241. data/lib/gems/rspec-1.1.12/lib/spec/runner/heckle_runner.rb +74 -0
  242. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/heckle_runner_unsupported.rb +0 -0
  243. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/option_parser.rb +8 -4
  244. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/options.rb +29 -14
  245. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/reporter.rb +1 -1
  246. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/spec_parser.rb +11 -9
  247. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story.rb +0 -0
  248. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/extensions.rb +0 -0
  249. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/extensions/main.rb +0 -0
  250. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/extensions/regexp.rb +0 -0
  251. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/extensions/string.rb +0 -0
  252. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/given_scenario.rb +0 -0
  253. data/lib/gems/rspec-1.1.12/lib/spec/story/runner.rb +57 -0
  254. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/runner/plain_text_story_runner.rb +0 -0
  255. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/runner/scenario_collector.rb +0 -0
  256. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/runner/scenario_runner.rb +0 -0
  257. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/runner/story_mediator.rb +0 -0
  258. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/runner/story_parser.rb +0 -0
  259. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/runner/story_runner.rb +10 -6
  260. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/scenario.rb +0 -0
  261. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/step.rb +0 -0
  262. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/step_group.rb +0 -0
  263. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/step_mother.rb +0 -0
  264. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/story.rb +0 -0
  265. data/lib/gems/rspec-1.1.12/lib/spec/story/world.rb +124 -0
  266. data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/version.rb +4 -2
  267. data/lib/gems/rubyforge-1.0.1/lib/rubyforge.rb +475 -0
  268. data/lib/gems/rubyforge-1.0.1/lib/rubyforge/client.rb +134 -0
  269. data/lib/gems/rubyforge-1.0.1/lib/rubyforge/cookie_manager.rb +51 -0
  270. data/lib/gems/term-ansicolor-1.0.3/VERSION +1 -0
  271. data/lib/gems/term-ansicolor-1.0.3/lib/term/ansicolor.rb +220 -0
  272. data/lib/gems/{rspec-1.1.11/spec/spec/runner/empty_file.txt → treetop-1.2.4/lib/metagrammar.rb} +0 -0
  273. data/lib/gems/treetop-1.2.4/lib/treetop.rb +11 -0
  274. data/lib/gems/treetop-1.2.4/lib/treetop/bootstrap_gen_1_metagrammar.rb +45 -0
  275. data/lib/gems/treetop-1.2.4/lib/treetop/compiler.rb +6 -0
  276. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/grammar_compiler.rb +40 -0
  277. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/lexical_address_space.rb +17 -0
  278. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/metagrammar.rb +2887 -0
  279. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/metagrammar.treetop +404 -0
  280. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes.rb +19 -0
  281. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/anything_symbol.rb +18 -0
  282. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/atomic_expression.rb +14 -0
  283. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/character_class.rb +19 -0
  284. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/choice.rb +31 -0
  285. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/declaration_sequence.rb +24 -0
  286. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/grammar.rb +28 -0
  287. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/inline_module.rb +27 -0
  288. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/nonterminal.rb +13 -0
  289. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/optional.rb +19 -0
  290. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/parenthesized_expression.rb +9 -0
  291. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/parsing_expression.rb +138 -0
  292. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/parsing_rule.rb +55 -0
  293. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/predicate.rb +45 -0
  294. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/repetition.rb +55 -0
  295. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/sequence.rb +68 -0
  296. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/terminal.rb +20 -0
  297. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/transient_prefix.rb +9 -0
  298. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/treetop_file.rb +9 -0
  299. data/lib/gems/treetop-1.2.4/lib/treetop/compiler/ruby_builder.rb +113 -0
  300. data/lib/gems/treetop-1.2.4/lib/treetop/ruby_extensions.rb +2 -0
  301. data/lib/gems/treetop-1.2.4/lib/treetop/ruby_extensions/string.rb +42 -0
  302. data/lib/gems/treetop-1.2.4/lib/treetop/runtime.rb +5 -0
  303. data/lib/gems/treetop-1.2.4/lib/treetop/runtime/compiled_parser.rb +87 -0
  304. data/lib/gems/treetop-1.2.4/lib/treetop/runtime/interval_skip_list.rb +4 -0
  305. data/lib/gems/treetop-1.2.4/lib/treetop/runtime/interval_skip_list/head_node.rb +15 -0
  306. data/lib/gems/treetop-1.2.4/lib/treetop/runtime/interval_skip_list/interval_skip_list.rb +200 -0
  307. data/lib/gems/treetop-1.2.4/lib/treetop/runtime/interval_skip_list/node.rb +164 -0
  308. data/lib/gems/treetop-1.2.4/lib/treetop/runtime/syntax_node.rb +72 -0
  309. data/lib/gems/treetop-1.2.4/lib/treetop/runtime/terminal_parse_failure.rb +16 -0
  310. data/lib/gems/treetop-1.2.4/lib/treetop/runtime/terminal_syntax_node.rb +17 -0
  311. data/lib/mack/application.rb +5 -5
  312. data/lib/mack/boot/configuration.rb +3 -1
  313. data/lib/mack/boot/console.rb +2 -2
  314. data/lib/mack/boot/core.rb +3 -3
  315. data/lib/mack/boot/environment.rb +1 -1
  316. data/lib/mack/boot/logging.rb +1 -1
  317. data/lib/mack/boot/logging/filter.rb +1 -1
  318. data/lib/mack/boot/paths.rb +34 -30
  319. data/lib/mack/boot/plugins.rb +2 -2
  320. data/lib/mack/controller/controller.rb +2 -2
  321. data/lib/mack/controller/request.rb +32 -32
  322. data/lib/mack/core_extensions/kernel.rb +1 -1
  323. data/lib/mack/generators/controller_generator/controller_generator.rb +14 -4
  324. data/lib/mack/generators/controller_generator/manifest.yml +7 -7
  325. data/lib/mack/generators/controller_generator/templates/test/controllers/rspec.rb.template +1 -1
  326. data/lib/mack/generators/controller_generator/templates/test/controllers/test_case.rb.template +1 -1
  327. data/lib/mack/generators/controller_helper_generator/manifest.yml +6 -6
  328. data/lib/mack/generators/mack_application_generator/mack_application_generator.rb +2 -2
  329. data/lib/mack/generators/mack_application_generator/manifest.yml +57 -54
  330. data/lib/mack/generators/mack_application_generator/templates/config/configatron/default.rb.template +1 -1
  331. data/lib/mack/generators/mack_application_generator/templates/config/database.yml.template +15 -15
  332. data/lib/mack/generators/mack_application_generator/templates/config/initializers/gems.rb.template +4 -1
  333. data/lib/mack/generators/mack_application_generator/templates/test/controllers/default_controller_spec.rb.template +1 -1
  334. data/lib/mack/generators/mack_application_generator/templates/test/controllers/default_controller_test.rb.template +1 -1
  335. data/lib/mack/generators/mack_application_generator/templates/test/spec_helper.rb.template +3 -3
  336. data/lib/mack/generators/mack_application_generator/templates/test/test_helper.rb.template +3 -3
  337. data/lib/mack/generators/passenger_generator/templates/config.ru.template +1 -1
  338. data/lib/mack/generators/view_helper_generator/manifest.yml +6 -6
  339. data/lib/mack/rendering/engine/builder.rb +1 -1
  340. data/lib/mack/routing/route_map.rb +1 -15
  341. data/lib/mack/routing/urls.rb +16 -2
  342. data/lib/mack/runner_helpers/request_logger.rb +1 -1
  343. data/lib/mack/tasks/mack_update_tasks.rake +5 -5
  344. data/lib/mack/tasks/rake_rules.rake +1 -1
  345. data/lib/mack/tasks/test_tasks.rake +2 -2
  346. data/lib/mack/testing/helpers.rb +24 -24
  347. data/lib/mack/testing/rspec.rb +5 -23
  348. data/lib/mack/testing/test_assertions.rb +0 -1
  349. data/lib/mack/utils/ansi/ansi_color.rb +1 -1
  350. data/lib/mack/version.rb +1 -1
  351. data/lib/mack/view/default_form_builder.rb +9 -0
  352. data/lib/mack/view/form_builder.rb +151 -0
  353. data/lib/mack/view_helpers/form_helpers.rb +7 -6
  354. data/lib/mack_core.rb +3 -3
  355. data/lib/mack_tasks.rb +1 -1
  356. metadata +381 -477
  357. data/lib/gems/builder-2.1.2/lib/builder/css.rb +0 -250
  358. data/lib/gems/configatron-2.1.5/lib/configatron.rb +0 -6
  359. data/lib/gems/configatron-2.1.5/lib/configatron/errors.rb +0 -7
  360. data/lib/gems/lockfile-1.4.3/bin/rlock +0 -360
  361. data/lib/gems/lockfile-1.4.3/bin/rlock-1.4.3 +0 -360
  362. data/lib/gems/logging-0.9.4/data/bad_logging_1.rb +0 -13
  363. data/lib/gems/logging-0.9.4/data/bad_logging_2.rb +0 -21
  364. data/lib/gems/logging-0.9.4/data/logging.rb +0 -42
  365. data/lib/gems/logging-0.9.4/data/logging.yaml +0 -63
  366. data/lib/gems/logging-0.9.4/data/simple_logging.rb +0 -13
  367. data/lib/gems/rack-0.4.0/bin/rackup +0 -172
  368. data/lib/gems/rack-0.4.0/lib/rack/deflater.rb +0 -63
  369. data/lib/gems/rack-0.4.0/lib/rack/directory.rb +0 -158
  370. data/lib/gems/rack-0.4.0/lib/rack/file.rb +0 -116
  371. data/lib/gems/rcov-0.8.1.2.0/ext/rcovrt/callsite.c +0 -242
  372. data/lib/gems/rcov-0.8.1.2.0/ext/rcovrt/extconf.rb +0 -11
  373. data/lib/gems/rcov-0.8.1.2.0/ext/rcovrt/rcovrt.c +0 -329
  374. data/lib/gems/rspec-1.1.11/lib/spec.rb +0 -32
  375. data/lib/gems/rspec-1.1.11/lib/spec/adapters.rb +0 -1
  376. data/lib/gems/rspec-1.1.11/lib/spec/adapters/ruby_engine.rb +0 -26
  377. data/lib/gems/rspec-1.1.11/lib/spec/adapters/ruby_engine/mri.rb +0 -8
  378. data/lib/gems/rspec-1.1.11/lib/spec/adapters/ruby_engine/rubinius.rb +0 -8
  379. data/lib/gems/rspec-1.1.11/lib/spec/example.rb +0 -12
  380. data/lib/gems/rspec-1.1.11/lib/spec/example/example_methods.rb +0 -105
  381. data/lib/gems/rspec-1.1.11/lib/spec/example/shared_example_group.rb +0 -52
  382. data/lib/gems/rspec-1.1.11/lib/spec/expectations/handler.rb +0 -52
  383. data/lib/gems/rspec-1.1.11/lib/spec/extensions.rb +0 -4
  384. data/lib/gems/rspec-1.1.11/lib/spec/extensions/class.rb +0 -24
  385. data/lib/gems/rspec-1.1.11/lib/spec/extensions/metaclass.rb +0 -7
  386. data/lib/gems/rspec-1.1.11/lib/spec/extensions/object.rb +0 -6
  387. data/lib/gems/rspec-1.1.11/lib/spec/matchers/be.rb +0 -221
  388. data/lib/gems/rspec-1.1.11/lib/spec/matchers/be_close.rb +0 -37
  389. data/lib/gems/rspec-1.1.11/lib/spec/matchers/eql.rb +0 -43
  390. data/lib/gems/rspec-1.1.11/lib/spec/matchers/equal.rb +0 -43
  391. data/lib/gems/rspec-1.1.11/lib/spec/matchers/exist.rb +0 -22
  392. data/lib/gems/rspec-1.1.11/lib/spec/matchers/has.rb +0 -34
  393. data/lib/gems/rspec-1.1.11/lib/spec/matchers/match.rb +0 -41
  394. data/lib/gems/rspec-1.1.11/lib/spec/matchers/operator_matcher.rb +0 -79
  395. data/lib/gems/rspec-1.1.11/lib/spec/matchers/respond_to.rb +0 -46
  396. data/lib/gems/rspec-1.1.11/lib/spec/matchers/throw_symbol.rb +0 -74
  397. data/lib/gems/rspec-1.1.11/lib/spec/runner.rb +0 -213
  398. data/lib/gems/rspec-1.1.11/lib/spec/runner/class_and_arguments_parser.rb +0 -16
  399. data/lib/gems/rspec-1.1.11/lib/spec/runner/command_line.rb +0 -17
  400. data/lib/gems/rspec-1.1.11/lib/spec/runner/heckle_runner.rb +0 -72
  401. data/lib/gems/rspec-1.1.11/lib/spec/story/runner.rb +0 -59
  402. data/lib/gems/rspec-1.1.11/lib/spec/story/world.rb +0 -128
  403. data/lib/gems/rspec-1.1.11/rake_tasks/examples.rake +0 -7
  404. data/lib/gems/rspec-1.1.11/rake_tasks/examples_with_rcov.rake +0 -9
  405. data/lib/gems/rspec-1.1.11/rake_tasks/failing_examples_with_html.rake +0 -9
  406. data/lib/gems/rspec-1.1.11/rake_tasks/verify_rcov.rake +0 -7
  407. data/lib/gems/rspec-1.1.11/spec/README.jruby +0 -15
  408. data/lib/gems/rspec-1.1.11/spec/autotest/autotest_helper.rb +0 -6
  409. data/lib/gems/rspec-1.1.11/spec/autotest/autotest_matchers.rb +0 -47
  410. data/lib/gems/rspec-1.1.11/spec/autotest/discover_spec.rb +0 -19
  411. data/lib/gems/rspec-1.1.11/spec/autotest/rspec_spec.rb +0 -150
  412. data/lib/gems/rspec-1.1.11/spec/rspec_suite.rb +0 -6
  413. data/lib/gems/rspec-1.1.11/spec/ruby_forker.rb +0 -13
  414. data/lib/gems/rspec-1.1.11/spec/spec.opts +0 -6
  415. data/lib/gems/rspec-1.1.11/spec/spec/adapters/ruby_engine_spec.rb +0 -16
  416. data/lib/gems/rspec-1.1.11/spec/spec/example/configuration_spec.rb +0 -296
  417. data/lib/gems/rspec-1.1.11/spec/spec/example/example_group_class_definition_spec.rb +0 -48
  418. data/lib/gems/rspec-1.1.11/spec/spec/example/example_group_factory_spec.rb +0 -165
  419. data/lib/gems/rspec-1.1.11/spec/spec/example/example_group_methods_spec.rb +0 -584
  420. data/lib/gems/rspec-1.1.11/spec/spec/example/example_group_spec.rb +0 -683
  421. data/lib/gems/rspec-1.1.11/spec/spec/example/example_matcher_spec.rb +0 -96
  422. data/lib/gems/rspec-1.1.11/spec/spec/example/example_methods_spec.rb +0 -169
  423. data/lib/gems/rspec-1.1.11/spec/spec/example/example_runner_spec.rb +0 -194
  424. data/lib/gems/rspec-1.1.11/spec/spec/example/nested_example_group_spec.rb +0 -71
  425. data/lib/gems/rspec-1.1.11/spec/spec/example/pending_module_spec.rb +0 -145
  426. data/lib/gems/rspec-1.1.11/spec/spec/example/predicate_matcher_spec.rb +0 -21
  427. data/lib/gems/rspec-1.1.11/spec/spec/example/shared_example_group_spec.rb +0 -281
  428. data/lib/gems/rspec-1.1.11/spec/spec/example/subclassing_example_group_spec.rb +0 -25
  429. data/lib/gems/rspec-1.1.11/spec/spec/expectations/differs/default_spec.rb +0 -127
  430. data/lib/gems/rspec-1.1.11/spec/spec/expectations/extensions/object_spec.rb +0 -95
  431. data/lib/gems/rspec-1.1.11/spec/spec/expectations/fail_with_spec.rb +0 -71
  432. data/lib/gems/rspec-1.1.11/spec/spec/extensions/main_spec.rb +0 -71
  433. data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/spec_that_fails.rb +0 -10
  434. data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/spec_that_passes.rb +0 -10
  435. data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/spec_with_errors.rb +0 -10
  436. data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/spec_with_options_hash.rb +0 -13
  437. data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/test_case_that_fails.rb +0 -10
  438. data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/test_case_that_passes.rb +0 -10
  439. data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/test_case_with_errors.rb +0 -10
  440. data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb +0 -38
  441. data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/spec_spec.rb +0 -52
  442. data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/test_unit_spec_helper.rb +0 -14
  443. data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/testcase_spec.rb +0 -49
  444. data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/testsuite_adapter_spec.rb +0 -9
  445. data/lib/gems/rspec-1.1.11/spec/spec/matchers/be_close_spec.rb +0 -39
  446. data/lib/gems/rspec-1.1.11/spec/spec/matchers/be_spec.rb +0 -248
  447. data/lib/gems/rspec-1.1.11/spec/spec/matchers/change_spec.rb +0 -329
  448. data/lib/gems/rspec-1.1.11/spec/spec/matchers/description_generation_spec.rb +0 -153
  449. data/lib/gems/rspec-1.1.11/spec/spec/matchers/eql_spec.rb +0 -28
  450. data/lib/gems/rspec-1.1.11/spec/spec/matchers/equal_spec.rb +0 -28
  451. data/lib/gems/rspec-1.1.11/spec/spec/matchers/exist_spec.rb +0 -57
  452. data/lib/gems/rspec-1.1.11/spec/spec/matchers/handler_spec.rb +0 -150
  453. data/lib/gems/rspec-1.1.11/spec/spec/matchers/has_spec.rb +0 -63
  454. data/lib/gems/rspec-1.1.11/spec/spec/matchers/have_spec.rb +0 -394
  455. data/lib/gems/rspec-1.1.11/spec/spec/matchers/include_spec.rb +0 -64
  456. data/lib/gems/rspec-1.1.11/spec/spec/matchers/match_spec.rb +0 -37
  457. data/lib/gems/rspec-1.1.11/spec/spec/matchers/matcher_methods_spec.rb +0 -78
  458. data/lib/gems/rspec-1.1.11/spec/spec/matchers/mock_constraint_matchers_spec.rb +0 -24
  459. data/lib/gems/rspec-1.1.11/spec/spec/matchers/operator_matcher_spec.rb +0 -191
  460. data/lib/gems/rspec-1.1.11/spec/spec/matchers/raise_error_spec.rb +0 -315
  461. data/lib/gems/rspec-1.1.11/spec/spec/matchers/respond_to_spec.rb +0 -54
  462. data/lib/gems/rspec-1.1.11/spec/spec/matchers/satisfy_spec.rb +0 -36
  463. data/lib/gems/rspec-1.1.11/spec/spec/matchers/simple_matcher_spec.rb +0 -93
  464. data/lib/gems/rspec-1.1.11/spec/spec/matchers/throw_symbol_spec.rb +0 -54
  465. data/lib/gems/rspec-1.1.11/spec/spec/mocks/any_number_of_times_spec.rb +0 -36
  466. data/lib/gems/rspec-1.1.11/spec/spec/mocks/argument_expectation_spec.rb +0 -23
  467. data/lib/gems/rspec-1.1.11/spec/spec/mocks/at_least_spec.rb +0 -97
  468. data/lib/gems/rspec-1.1.11/spec/spec/mocks/at_most_spec.rb +0 -93
  469. data/lib/gems/rspec-1.1.11/spec/spec/mocks/bug_report_10260_spec.rb +0 -8
  470. data/lib/gems/rspec-1.1.11/spec/spec/mocks/bug_report_10263_spec.rb +0 -24
  471. data/lib/gems/rspec-1.1.11/spec/spec/mocks/bug_report_11545_spec.rb +0 -33
  472. data/lib/gems/rspec-1.1.11/spec/spec/mocks/bug_report_15719_spec.rb +0 -30
  473. data/lib/gems/rspec-1.1.11/spec/spec/mocks/bug_report_496.rb +0 -17
  474. data/lib/gems/rspec-1.1.11/spec/spec/mocks/bug_report_7611_spec.rb +0 -19
  475. data/lib/gems/rspec-1.1.11/spec/spec/mocks/bug_report_7805_spec.rb +0 -22
  476. data/lib/gems/rspec-1.1.11/spec/spec/mocks/bug_report_8165_spec.rb +0 -31
  477. data/lib/gems/rspec-1.1.11/spec/spec/mocks/bug_report_8302_spec.rb +0 -26
  478. data/lib/gems/rspec-1.1.11/spec/spec/mocks/failing_mock_argument_constraints_spec.rb +0 -95
  479. data/lib/gems/rspec-1.1.11/spec/spec/mocks/hash_including_matcher_spec.rb +0 -53
  480. data/lib/gems/rspec-1.1.11/spec/spec/mocks/mock_ordering_spec.rb +0 -84
  481. data/lib/gems/rspec-1.1.11/spec/spec/mocks/mock_space_spec.rb +0 -54
  482. data/lib/gems/rspec-1.1.11/spec/spec/mocks/mock_spec.rb +0 -555
  483. data/lib/gems/rspec-1.1.11/spec/spec/mocks/multiple_return_value_spec.rb +0 -113
  484. data/lib/gems/rspec-1.1.11/spec/spec/mocks/nil_expectation_warning_spec.rb +0 -53
  485. data/lib/gems/rspec-1.1.11/spec/spec/mocks/null_object_mock_spec.rb +0 -54
  486. data/lib/gems/rspec-1.1.11/spec/spec/mocks/once_counts_spec.rb +0 -53
  487. data/lib/gems/rspec-1.1.11/spec/spec/mocks/options_hash_spec.rb +0 -35
  488. data/lib/gems/rspec-1.1.11/spec/spec/mocks/partial_mock_spec.rb +0 -149
  489. data/lib/gems/rspec-1.1.11/spec/spec/mocks/partial_mock_using_mocks_directly_spec.rb +0 -66
  490. data/lib/gems/rspec-1.1.11/spec/spec/mocks/passing_mock_argument_constraints_spec.rb +0 -130
  491. data/lib/gems/rspec-1.1.11/spec/spec/mocks/precise_counts_spec.rb +0 -52
  492. data/lib/gems/rspec-1.1.11/spec/spec/mocks/record_messages_spec.rb +0 -26
  493. data/lib/gems/rspec-1.1.11/spec/spec/mocks/stub_spec.rb +0 -188
  494. data/lib/gems/rspec-1.1.11/spec/spec/mocks/twice_counts_spec.rb +0 -67
  495. data/lib/gems/rspec-1.1.11/spec/spec/package/bin_spec_spec.rb +0 -22
  496. data/lib/gems/rspec-1.1.11/spec/spec/runner/class_and_argument_parser_spec.rb +0 -23
  497. data/lib/gems/rspec-1.1.11/spec/spec/runner/command_line_spec.rb +0 -141
  498. data/lib/gems/rspec-1.1.11/spec/spec/runner/drb_command_line_spec.rb +0 -97
  499. data/lib/gems/rspec-1.1.11/spec/spec/runner/examples.txt +0 -2
  500. data/lib/gems/rspec-1.1.11/spec/spec/runner/failed.txt +0 -3
  501. data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/base_formatter_spec.rb +0 -112
  502. data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb +0 -45
  503. data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/failing_examples_formatter_spec.rb +0 -33
  504. data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/html_formatted-1.8.4.html +0 -365
  505. data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/html_formatted-1.8.5-jruby.html +0 -387
  506. data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/html_formatted-1.8.5.html +0 -371
  507. data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html +0 -381
  508. data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/html_formatted-1.8.6.html +0 -370
  509. data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/html_formatter_spec.rb +0 -61
  510. data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/nested_text_formatter_spec.rb +0 -318
  511. data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/profile_formatter_spec.rb +0 -65
  512. data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/progress_bar_formatter_spec.rb +0 -155
  513. data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/snippet_extractor_spec.rb +0 -18
  514. data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/spec_mate_formatter_spec.rb +0 -103
  515. data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/specdoc_formatter_spec.rb +0 -159
  516. data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/story/html_formatter_spec.rb +0 -135
  517. data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/story/plain_text_formatter_spec.rb +0 -600
  518. data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/story/progress_bar_formatter_spec.rb +0 -82
  519. data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/text_mate_formatted-1.8.4.html +0 -365
  520. data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/text_mate_formatted-1.8.6.html +0 -370
  521. data/lib/gems/rspec-1.1.11/spec/spec/runner/heckle_runner_spec.rb +0 -78
  522. data/lib/gems/rspec-1.1.11/spec/spec/runner/heckler_spec.rb +0 -13
  523. data/lib/gems/rspec-1.1.11/spec/spec/runner/noisy_backtrace_tweaker_spec.rb +0 -45
  524. data/lib/gems/rspec-1.1.11/spec/spec/runner/option_parser_spec.rb +0 -421
  525. data/lib/gems/rspec-1.1.11/spec/spec/runner/options_spec.rb +0 -450
  526. data/lib/gems/rspec-1.1.11/spec/spec/runner/output_one_time_fixture.rb +0 -7
  527. data/lib/gems/rspec-1.1.11/spec/spec/runner/output_one_time_fixture_runner.rb +0 -8
  528. data/lib/gems/rspec-1.1.11/spec/spec/runner/output_one_time_spec.rb +0 -16
  529. data/lib/gems/rspec-1.1.11/spec/spec/runner/quiet_backtrace_tweaker_spec.rb +0 -62
  530. data/lib/gems/rspec-1.1.11/spec/spec/runner/reporter_spec.rb +0 -238
  531. data/lib/gems/rspec-1.1.11/spec/spec/runner/resources/a_bar.rb +0 -0
  532. data/lib/gems/rspec-1.1.11/spec/spec/runner/resources/a_foo.rb +0 -0
  533. data/lib/gems/rspec-1.1.11/spec/spec/runner/resources/a_spec.rb +0 -1
  534. data/lib/gems/rspec-1.1.11/spec/spec/runner/spec.opts +0 -2
  535. data/lib/gems/rspec-1.1.11/spec/spec/runner/spec_drb.opts +0 -1
  536. data/lib/gems/rspec-1.1.11/spec/spec/runner/spec_parser/spec_parser_fixture.rb +0 -70
  537. data/lib/gems/rspec-1.1.11/spec/spec/runner/spec_parser_spec.rb +0 -85
  538. data/lib/gems/rspec-1.1.11/spec/spec/runner/spec_spaced.opts +0 -2
  539. data/lib/gems/rspec-1.1.11/spec/spec/runner_spec.rb +0 -11
  540. data/lib/gems/rspec-1.1.11/spec/spec/spec_classes.rb +0 -133
  541. data/lib/gems/rspec-1.1.11/spec/spec/story/builders.rb +0 -46
  542. data/lib/gems/rspec-1.1.11/spec/spec/story/extensions/main_spec.rb +0 -161
  543. data/lib/gems/rspec-1.1.11/spec/spec/story/extensions_spec.rb +0 -14
  544. data/lib/gems/rspec-1.1.11/spec/spec/story/given_scenario_spec.rb +0 -27
  545. data/lib/gems/rspec-1.1.11/spec/spec/story/runner/plain_text_story_runner_spec.rb +0 -90
  546. data/lib/gems/rspec-1.1.11/spec/spec/story/runner/scenario_collector_spec.rb +0 -27
  547. data/lib/gems/rspec-1.1.11/spec/spec/story/runner/scenario_runner_spec.rb +0 -214
  548. data/lib/gems/rspec-1.1.11/spec/spec/story/runner/story_mediator_spec.rb +0 -143
  549. data/lib/gems/rspec-1.1.11/spec/spec/story/runner/story_parser_spec.rb +0 -401
  550. data/lib/gems/rspec-1.1.11/spec/spec/story/runner/story_runner_spec.rb +0 -294
  551. data/lib/gems/rspec-1.1.11/spec/spec/story/runner_spec.rb +0 -93
  552. data/lib/gems/rspec-1.1.11/spec/spec/story/scenario_spec.rb +0 -18
  553. data/lib/gems/rspec-1.1.11/spec/spec/story/step_group_spec.rb +0 -157
  554. data/lib/gems/rspec-1.1.11/spec/spec/story/step_mother_spec.rb +0 -84
  555. data/lib/gems/rspec-1.1.11/spec/spec/story/step_spec.rb +0 -272
  556. data/lib/gems/rspec-1.1.11/spec/spec/story/story_helper.rb +0 -2
  557. data/lib/gems/rspec-1.1.11/spec/spec/story/story_spec.rb +0 -84
  558. data/lib/gems/rspec-1.1.11/spec/spec/story/world_spec.rb +0 -423
  559. data/lib/gems/rspec-1.1.11/spec/spec_helper.rb +0 -77
  560. data/lib/gems/rspec-1.1.11/stories/all.rb +0 -5
  561. data/lib/gems/rspec-1.1.11/stories/configuration/before_blocks.story +0 -21
  562. data/lib/gems/rspec-1.1.11/stories/configuration/stories.rb +0 -7
  563. data/lib/gems/rspec-1.1.11/stories/example_groups/autogenerated_docstrings +0 -45
  564. data/lib/gems/rspec-1.1.11/stories/example_groups/example_group_with_should_methods +0 -17
  565. data/lib/gems/rspec-1.1.11/stories/example_groups/nested_groups +0 -17
  566. data/lib/gems/rspec-1.1.11/stories/example_groups/output +0 -25
  567. data/lib/gems/rspec-1.1.11/stories/example_groups/stories.rb +0 -7
  568. data/lib/gems/rspec-1.1.11/stories/helper.rb +0 -6
  569. data/lib/gems/rspec-1.1.11/stories/interop/examples_and_tests_together +0 -30
  570. data/lib/gems/rspec-1.1.11/stories/interop/stories.rb +0 -7
  571. data/lib/gems/rspec-1.1.11/stories/interop/test_case_with_should_methods +0 -17
  572. data/lib/gems/rspec-1.1.11/stories/mock_framework_integration/stories.rb +0 -7
  573. data/lib/gems/rspec-1.1.11/stories/mock_framework_integration/use_flexmock.story +0 -9
  574. data/lib/gems/rspec-1.1.11/stories/pending_stories/README +0 -3
  575. data/lib/gems/rspec-1.1.11/stories/resources/helpers/cmdline.rb +0 -9
  576. data/lib/gems/rspec-1.1.11/stories/resources/helpers/story_helper.rb +0 -16
  577. data/lib/gems/rspec-1.1.11/stories/resources/matchers/smart_match.rb +0 -37
  578. data/lib/gems/rspec-1.1.11/stories/resources/spec/before_blocks_example.rb +0 -32
  579. data/lib/gems/rspec-1.1.11/stories/resources/spec/example_group_with_should_methods.rb +0 -12
  580. data/lib/gems/rspec-1.1.11/stories/resources/spec/simple_spec.rb +0 -8
  581. data/lib/gems/rspec-1.1.11/stories/resources/spec/spec_with_flexmock.rb +0 -18
  582. data/lib/gems/rspec-1.1.11/stories/resources/steps/running_rspec.rb +0 -50
  583. data/lib/gems/rspec-1.1.11/stories/resources/stories/failing_story.rb +0 -15
  584. data/lib/gems/rspec-1.1.11/stories/resources/test/spec_and_test_together.rb +0 -57
  585. data/lib/gems/rspec-1.1.11/stories/resources/test/test_case_with_should_methods.rb +0 -30
  586. data/lib/gems/rspec-1.1.11/stories/stories/multiline_steps.story +0 -23
  587. data/lib/gems/rspec-1.1.11/stories/stories/steps/multiline_steps.rb +0 -13
  588. data/lib/gems/rspec-1.1.11/stories/stories/stories.rb +0 -6
  589. data/lib/gems/rspec-1.1.11/story_server/prototype/javascripts/builder.js +0 -136
  590. data/lib/gems/rspec-1.1.11/story_server/prototype/javascripts/controls.js +0 -972
  591. data/lib/gems/rspec-1.1.11/story_server/prototype/javascripts/dragdrop.js +0 -976
  592. data/lib/gems/rspec-1.1.11/story_server/prototype/javascripts/effects.js +0 -1117
  593. data/lib/gems/rspec-1.1.11/story_server/prototype/javascripts/prototype.js +0 -4140
  594. data/lib/gems/rspec-1.1.11/story_server/prototype/javascripts/rspec.js +0 -149
  595. data/lib/gems/rspec-1.1.11/story_server/prototype/javascripts/scriptaculous.js +0 -58
  596. data/lib/gems/rspec-1.1.11/story_server/prototype/javascripts/slider.js +0 -276
  597. data/lib/gems/rspec-1.1.11/story_server/prototype/javascripts/sound.js +0 -55
  598. data/lib/gems/rspec-1.1.11/story_server/prototype/javascripts/unittest.js +0 -568
  599. data/lib/gems/rspec-1.1.11/story_server/prototype/lib/server.rb +0 -24
  600. data/lib/gems/rspec-1.1.11/story_server/prototype/stories.html +0 -176
  601. data/lib/gems/rspec-1.1.11/story_server/prototype/stylesheets/test.css +0 -90
  602. data/lib/mack/testing/test_case.rb +0 -52
@@ -0,0 +1,1951 @@
1
+ # encoding: utf-8
2
+ module Cucumber
3
+ # :stopdoc:
4
+ module TreetopParser
5
+ module Feature
6
+ include Treetop::Runtime
7
+
8
+ def root
9
+ @root || :root
10
+ end
11
+
12
+ module Root0
13
+ def header
14
+ elements[1]
15
+ end
16
+
17
+ def scenario_sequence
18
+ elements[2]
19
+ end
20
+
21
+ end
22
+
23
+ module Root1
24
+ def compile
25
+ feature = Tree::Feature.new(header.text_value.strip)
26
+ scenario_sequence.compile(feature)
27
+ feature
28
+ end
29
+ end
30
+
31
+ def _nt_root
32
+ start_index = index
33
+ if node_cache[:root].has_key?(index)
34
+ cached = node_cache[:root][index]
35
+ @index = cached.interval.end if cached
36
+ return cached
37
+ end
38
+
39
+ i0, s0 = index, []
40
+ r2 = _nt_space
41
+ if r2
42
+ r1 = r2
43
+ else
44
+ r1 = SyntaxNode.new(input, index...index)
45
+ end
46
+ s0 << r1
47
+ if r1
48
+ r3 = _nt_header
49
+ s0 << r3
50
+ if r3
51
+ r4 = _nt_scenario_sequence
52
+ s0 << r4
53
+ if r4
54
+ r6 = _nt_space
55
+ if r6
56
+ r5 = r6
57
+ else
58
+ r5 = SyntaxNode.new(input, index...index)
59
+ end
60
+ s0 << r5
61
+ end
62
+ end
63
+ end
64
+ if s0.last
65
+ r0 = (SyntaxNode).new(input, i0...index, s0)
66
+ r0.extend(Root0)
67
+ r0.extend(Root1)
68
+ else
69
+ self.index = i0
70
+ r0 = nil
71
+ end
72
+
73
+ node_cache[:root][start_index] = r0
74
+
75
+ return r0
76
+ end
77
+
78
+ module Header0
79
+ end
80
+
81
+ def _nt_header
82
+ start_index = index
83
+ if node_cache[:header].has_key?(index)
84
+ cached = node_cache[:header][index]
85
+ @index = cached.interval.end if cached
86
+ return cached
87
+ end
88
+
89
+ s0, i0 = [], index
90
+ loop do
91
+ i1, s1 = index, []
92
+ i2 = index
93
+ i3 = index
94
+ r4 = _nt_scenario_keyword
95
+ if r4
96
+ r3 = r4
97
+ else
98
+ r5 = _nt_scenario_outline_keyword
99
+ if r5
100
+ r3 = r5
101
+ else
102
+ r6 = _nt_comment_to_eol
103
+ if r6
104
+ r3 = r6
105
+ else
106
+ self.index = i3
107
+ r3 = nil
108
+ end
109
+ end
110
+ end
111
+ if r3
112
+ r2 = nil
113
+ else
114
+ self.index = i2
115
+ r2 = SyntaxNode.new(input, index...index)
116
+ end
117
+ s1 << r2
118
+ if r2
119
+ if index < input_length
120
+ r7 = (SyntaxNode).new(input, index...(index + 1))
121
+ @index += 1
122
+ else
123
+ terminal_parse_failure("any character")
124
+ r7 = nil
125
+ end
126
+ s1 << r7
127
+ end
128
+ if s1.last
129
+ r1 = (SyntaxNode).new(input, i1...index, s1)
130
+ r1.extend(Header0)
131
+ else
132
+ self.index = i1
133
+ r1 = nil
134
+ end
135
+ if r1
136
+ s0 << r1
137
+ else
138
+ break
139
+ end
140
+ end
141
+ if s0.empty?
142
+ self.index = i0
143
+ r0 = nil
144
+ else
145
+ r0 = SyntaxNode.new(input, i0...index, s0)
146
+ end
147
+
148
+ node_cache[:header][start_index] = r0
149
+
150
+ return r0
151
+ end
152
+
153
+ module ScenarioSequence0
154
+ def space
155
+ elements[0]
156
+ end
157
+
158
+ def scenario_or_scenario_outline_or_table
159
+ elements[1]
160
+ end
161
+ end
162
+
163
+ module ScenarioSequence1
164
+ def head
165
+ elements[0]
166
+ end
167
+
168
+ def tail
169
+ elements[1]
170
+ end
171
+ end
172
+
173
+ module ScenarioSequence2
174
+ def compile(feature)
175
+ ([head] + tail).each do |scenario_or_scenario_outline_or_table|
176
+ scenario_or_scenario_outline_or_table.compile(feature) if scenario_or_scenario_outline_or_table.respond_to?(:compile)
177
+ end
178
+ end
179
+
180
+ def tail
181
+ super.elements.map { |elt| elt.scenario_or_scenario_outline_or_table }
182
+ end
183
+ end
184
+
185
+ def _nt_scenario_sequence
186
+ start_index = index
187
+ if node_cache[:scenario_sequence].has_key?(index)
188
+ cached = node_cache[:scenario_sequence][index]
189
+ @index = cached.interval.end if cached
190
+ return cached
191
+ end
192
+
193
+ i0, s0 = index, []
194
+ r2 = _nt_scenario_outline_or_scenario
195
+ if r2
196
+ r1 = r2
197
+ else
198
+ r1 = SyntaxNode.new(input, index...index)
199
+ end
200
+ s0 << r1
201
+ if r1
202
+ s3, i3 = [], index
203
+ loop do
204
+ i4, s4 = index, []
205
+ r5 = _nt_space
206
+ s4 << r5
207
+ if r5
208
+ r6 = _nt_scenario_or_scenario_outline_or_table
209
+ s4 << r6
210
+ end
211
+ if s4.last
212
+ r4 = (SyntaxNode).new(input, i4...index, s4)
213
+ r4.extend(ScenarioSequence0)
214
+ else
215
+ self.index = i4
216
+ r4 = nil
217
+ end
218
+ if r4
219
+ s3 << r4
220
+ else
221
+ break
222
+ end
223
+ end
224
+ r3 = SyntaxNode.new(input, i3...index, s3)
225
+ s0 << r3
226
+ end
227
+ if s0.last
228
+ r0 = (SyntaxNode).new(input, i0...index, s0)
229
+ r0.extend(ScenarioSequence1)
230
+ r0.extend(ScenarioSequence2)
231
+ else
232
+ self.index = i0
233
+ r0 = nil
234
+ end
235
+
236
+ node_cache[:scenario_sequence][start_index] = r0
237
+
238
+ return r0
239
+ end
240
+
241
+ def _nt_scenario_outline_or_scenario
242
+ start_index = index
243
+ if node_cache[:scenario_outline_or_scenario].has_key?(index)
244
+ cached = node_cache[:scenario_outline_or_scenario][index]
245
+ @index = cached.interval.end if cached
246
+ return cached
247
+ end
248
+
249
+ i0 = index
250
+ r1 = _nt_scenario_outline
251
+ if r1
252
+ r0 = r1
253
+ else
254
+ r2 = _nt_scenario
255
+ if r2
256
+ r0 = r2
257
+ else
258
+ self.index = i0
259
+ r0 = nil
260
+ end
261
+ end
262
+
263
+ node_cache[:scenario_outline_or_scenario][start_index] = r0
264
+
265
+ return r0
266
+ end
267
+
268
+ module Scenario0
269
+ def space
270
+ elements[0]
271
+ end
272
+
273
+ def step_sequence
274
+ elements[1]
275
+ end
276
+ end
277
+
278
+ module Scenario1
279
+ def scenario_keyword
280
+ elements[0]
281
+ end
282
+
283
+ def name
284
+ elements[2]
285
+ end
286
+
287
+ def steps
288
+ elements[3]
289
+ end
290
+ end
291
+
292
+ module Scenario2
293
+ def compile(feature)
294
+ line = input.line_of(interval.first)
295
+ scenario = feature.add_scenario(name.text_value.strip, line)
296
+ steps.step_sequence.compile(scenario) if steps.respond_to?(:step_sequence)
297
+ # TODO - GET RID OF THIS last_scenario NASTINESS
298
+ # Use a better datastructure, like a linked list...
299
+ Feature.last_scenario = scenario
300
+ end
301
+ end
302
+
303
+ def _nt_scenario
304
+ start_index = index
305
+ if node_cache[:scenario].has_key?(index)
306
+ cached = node_cache[:scenario][index]
307
+ @index = cached.interval.end if cached
308
+ return cached
309
+ end
310
+
311
+ i0, s0 = index, []
312
+ r1 = _nt_scenario_keyword
313
+ s0 << r1
314
+ if r1
315
+ r3 = _nt_space
316
+ if r3
317
+ r2 = r3
318
+ else
319
+ r2 = SyntaxNode.new(input, index...index)
320
+ end
321
+ s0 << r2
322
+ if r2
323
+ r4 = _nt_line_to_eol
324
+ s0 << r4
325
+ if r4
326
+ i6, s6 = index, []
327
+ r7 = _nt_space
328
+ s6 << r7
329
+ if r7
330
+ r8 = _nt_step_sequence
331
+ s6 << r8
332
+ end
333
+ if s6.last
334
+ r6 = (SyntaxNode).new(input, i6...index, s6)
335
+ r6.extend(Scenario0)
336
+ else
337
+ self.index = i6
338
+ r6 = nil
339
+ end
340
+ if r6
341
+ r5 = r6
342
+ else
343
+ r5 = SyntaxNode.new(input, index...index)
344
+ end
345
+ s0 << r5
346
+ end
347
+ end
348
+ end
349
+ if s0.last
350
+ r0 = (SyntaxNode).new(input, i0...index, s0)
351
+ r0.extend(Scenario1)
352
+ r0.extend(Scenario2)
353
+ else
354
+ self.index = i0
355
+ r0 = nil
356
+ end
357
+
358
+ node_cache[:scenario][start_index] = r0
359
+
360
+ return r0
361
+ end
362
+
363
+ module ScenarioOutline0
364
+ def scenario_outline_keyword
365
+ elements[0]
366
+ end
367
+
368
+ def name
369
+ elements[2]
370
+ end
371
+
372
+ def outline_body
373
+ elements[3]
374
+ end
375
+ end
376
+
377
+ module ScenarioOutline1
378
+ def compile(feature)
379
+ line = input.line_of(interval.first)
380
+ scenario = feature.add_scenario_outline(name.text_value.strip, line)
381
+ Feature.last_scenario = scenario
382
+ outline_body.compile(feature, scenario) if outline_body.respond_to?(:compile)
383
+ end
384
+ end
385
+
386
+ def _nt_scenario_outline
387
+ start_index = index
388
+ if node_cache[:scenario_outline].has_key?(index)
389
+ cached = node_cache[:scenario_outline][index]
390
+ @index = cached.interval.end if cached
391
+ return cached
392
+ end
393
+
394
+ i0, s0 = index, []
395
+ r1 = _nt_scenario_outline_keyword
396
+ s0 << r1
397
+ if r1
398
+ r3 = _nt_space
399
+ if r3
400
+ r2 = r3
401
+ else
402
+ r2 = SyntaxNode.new(input, index...index)
403
+ end
404
+ s0 << r2
405
+ if r2
406
+ r4 = _nt_line_to_eol
407
+ s0 << r4
408
+ if r4
409
+ r6 = _nt_steps_and_optional_examples
410
+ if r6
411
+ r5 = r6
412
+ else
413
+ r5 = SyntaxNode.new(input, index...index)
414
+ end
415
+ s0 << r5
416
+ end
417
+ end
418
+ end
419
+ if s0.last
420
+ r0 = (SyntaxNode).new(input, i0...index, s0)
421
+ r0.extend(ScenarioOutline0)
422
+ r0.extend(ScenarioOutline1)
423
+ else
424
+ self.index = i0
425
+ r0 = nil
426
+ end
427
+
428
+ node_cache[:scenario_outline][start_index] = r0
429
+
430
+ return r0
431
+ end
432
+
433
+ def _nt_scenario_or_scenario_outline_or_table
434
+ start_index = index
435
+ if node_cache[:scenario_or_scenario_outline_or_table].has_key?(index)
436
+ cached = node_cache[:scenario_or_scenario_outline_or_table][index]
437
+ @index = cached.interval.end if cached
438
+ return cached
439
+ end
440
+
441
+ i0 = index
442
+ r1 = _nt_scenario_outline
443
+ if r1
444
+ r0 = r1
445
+ else
446
+ i2 = index
447
+ r3 = _nt_scenario
448
+ if r3
449
+ r2 = r3
450
+ else
451
+ r4 = _nt_more_examples
452
+ if r4
453
+ r2 = r4
454
+ else
455
+ self.index = i2
456
+ r2 = nil
457
+ end
458
+ end
459
+ if r2
460
+ r0 = r2
461
+ else
462
+ self.index = i0
463
+ r0 = nil
464
+ end
465
+ end
466
+
467
+ node_cache[:scenario_or_scenario_outline_or_table][start_index] = r0
468
+
469
+ return r0
470
+ end
471
+
472
+ module StepsAndOptionalExamples0
473
+ def space
474
+ elements[0]
475
+ end
476
+
477
+ def step_sequence
478
+ elements[1]
479
+ end
480
+ end
481
+
482
+ module StepsAndOptionalExamples1
483
+ def space
484
+ elements[0]
485
+ end
486
+
487
+ def examples
488
+ elements[1]
489
+ end
490
+ end
491
+
492
+ module StepsAndOptionalExamples2
493
+ def steps
494
+ elements[0]
495
+ end
496
+
497
+ def table
498
+ elements[1]
499
+ end
500
+ end
501
+
502
+ module StepsAndOptionalExamples3
503
+ def compile(feature, scenario)
504
+ steps.step_sequence.compile(scenario) if steps.respond_to?(:step_sequence)
505
+ table.examples.compile(feature, scenario) if table.respond_to?(:examples) && table.examples.respond_to?(:compile)
506
+ end
507
+ end
508
+
509
+ def _nt_steps_and_optional_examples
510
+ start_index = index
511
+ if node_cache[:steps_and_optional_examples].has_key?(index)
512
+ cached = node_cache[:steps_and_optional_examples][index]
513
+ @index = cached.interval.end if cached
514
+ return cached
515
+ end
516
+
517
+ i0, s0 = index, []
518
+ i1, s1 = index, []
519
+ r2 = _nt_space
520
+ s1 << r2
521
+ if r2
522
+ r3 = _nt_step_sequence
523
+ s1 << r3
524
+ end
525
+ if s1.last
526
+ r1 = (SyntaxNode).new(input, i1...index, s1)
527
+ r1.extend(StepsAndOptionalExamples0)
528
+ else
529
+ self.index = i1
530
+ r1 = nil
531
+ end
532
+ s0 << r1
533
+ if r1
534
+ i5, s5 = index, []
535
+ r6 = _nt_space
536
+ s5 << r6
537
+ if r6
538
+ r7 = _nt_examples
539
+ s5 << r7
540
+ end
541
+ if s5.last
542
+ r5 = (SyntaxNode).new(input, i5...index, s5)
543
+ r5.extend(StepsAndOptionalExamples1)
544
+ else
545
+ self.index = i5
546
+ r5 = nil
547
+ end
548
+ if r5
549
+ r4 = r5
550
+ else
551
+ r4 = SyntaxNode.new(input, index...index)
552
+ end
553
+ s0 << r4
554
+ end
555
+ if s0.last
556
+ r0 = (SyntaxNode).new(input, i0...index, s0)
557
+ r0.extend(StepsAndOptionalExamples2)
558
+ r0.extend(StepsAndOptionalExamples3)
559
+ else
560
+ self.index = i0
561
+ r0 = nil
562
+ end
563
+
564
+ node_cache[:steps_and_optional_examples][start_index] = r0
565
+
566
+ return r0
567
+ end
568
+
569
+ module MoreExamples0
570
+ def more_examples_keyword
571
+ elements[0]
572
+ end
573
+
574
+ def table
575
+ elements[1]
576
+ end
577
+ end
578
+
579
+ module MoreExamples1
580
+ def compile(f)
581
+ table.compile(f)
582
+ end
583
+ end
584
+
585
+ def _nt_more_examples
586
+ start_index = index
587
+ if node_cache[:more_examples].has_key?(index)
588
+ cached = node_cache[:more_examples][index]
589
+ @index = cached.interval.end if cached
590
+ return cached
591
+ end
592
+
593
+ i0, s0 = index, []
594
+ r1 = _nt_more_examples_keyword
595
+ s0 << r1
596
+ if r1
597
+ r2 = _nt_table
598
+ s0 << r2
599
+ end
600
+ if s0.last
601
+ r0 = (SyntaxNode).new(input, i0...index, s0)
602
+ r0.extend(MoreExamples0)
603
+ r0.extend(MoreExamples1)
604
+ else
605
+ self.index = i0
606
+ r0 = nil
607
+ end
608
+
609
+ node_cache[:more_examples][start_index] = r0
610
+
611
+ return r0
612
+ end
613
+
614
+ module Examples0
615
+ def examples_keyword
616
+ elements[0]
617
+ end
618
+
619
+ def table
620
+ elements[1]
621
+ end
622
+ end
623
+
624
+ module Examples1
625
+ def compile(feature, scenario)
626
+ table.compile_examples(feature, scenario)
627
+ end
628
+ end
629
+
630
+ def _nt_examples
631
+ start_index = index
632
+ if node_cache[:examples].has_key?(index)
633
+ cached = node_cache[:examples][index]
634
+ @index = cached.interval.end if cached
635
+ return cached
636
+ end
637
+
638
+ i0, s0 = index, []
639
+ r1 = _nt_examples_keyword
640
+ s0 << r1
641
+ if r1
642
+ r2 = _nt_table
643
+ s0 << r2
644
+ end
645
+ if s0.last
646
+ r0 = (SyntaxNode).new(input, i0...index, s0)
647
+ r0.extend(Examples0)
648
+ r0.extend(Examples1)
649
+ else
650
+ self.index = i0
651
+ r0 = nil
652
+ end
653
+
654
+ node_cache[:examples][start_index] = r0
655
+
656
+ return r0
657
+ end
658
+
659
+ module Table0
660
+ def eol
661
+ elements[1]
662
+ end
663
+
664
+ def table_line
665
+ elements[3]
666
+ end
667
+ end
668
+
669
+ module Table1
670
+ def space
671
+ elements[0]
672
+ end
673
+
674
+ def head
675
+ elements[1]
676
+ end
677
+
678
+ def body
679
+ elements[2]
680
+ end
681
+ end
682
+
683
+ module Table2
684
+ def compile(feature)
685
+ Feature.last_scenario.table_header = head.cell_values
686
+ body.each do |table_line|
687
+ feature.add_row_scenario(Feature.last_scenario, table_line.cell_values, table_line.line)
688
+ end
689
+ end
690
+
691
+ def compile_examples(feature, scenario)
692
+ scenario.table_header = head.cell_values
693
+ body.each do |table_line|
694
+ feature.add_row_scenario_outline(scenario, table_line.cell_values, table_line.line)
695
+ end
696
+ end
697
+
698
+ def matrix
699
+ ([head] + body).map do |table_line|
700
+ table_line.cell_values # We're losing the line - we'll get it back when we make our own class
701
+ end
702
+ end
703
+
704
+ def to_arg
705
+ Model::Table.new(matrix)
706
+ end
707
+
708
+ def body
709
+ super.elements.map { |elt| elt.table_line }
710
+ end
711
+ end
712
+
713
+ def _nt_table
714
+ start_index = index
715
+ if node_cache[:table].has_key?(index)
716
+ cached = node_cache[:table][index]
717
+ @index = cached.interval.end if cached
718
+ return cached
719
+ end
720
+
721
+ i0, s0 = index, []
722
+ r1 = _nt_space
723
+ s0 << r1
724
+ if r1
725
+ r2 = _nt_table_line
726
+ s0 << r2
727
+ if r2
728
+ s3, i3 = [], index
729
+ loop do
730
+ i4, s4 = index, []
731
+ s5, i5 = [], index
732
+ loop do
733
+ r6 = _nt_blank
734
+ if r6
735
+ s5 << r6
736
+ else
737
+ break
738
+ end
739
+ end
740
+ r5 = SyntaxNode.new(input, i5...index, s5)
741
+ s4 << r5
742
+ if r5
743
+ r7 = _nt_eol
744
+ s4 << r7
745
+ if r7
746
+ r9 = _nt_space
747
+ if r9
748
+ r8 = r9
749
+ else
750
+ r8 = SyntaxNode.new(input, index...index)
751
+ end
752
+ s4 << r8
753
+ if r8
754
+ r10 = _nt_table_line
755
+ s4 << r10
756
+ end
757
+ end
758
+ end
759
+ if s4.last
760
+ r4 = (SyntaxNode).new(input, i4...index, s4)
761
+ r4.extend(Table0)
762
+ else
763
+ self.index = i4
764
+ r4 = nil
765
+ end
766
+ if r4
767
+ s3 << r4
768
+ else
769
+ break
770
+ end
771
+ end
772
+ r3 = SyntaxNode.new(input, i3...index, s3)
773
+ s0 << r3
774
+ end
775
+ end
776
+ if s0.last
777
+ r0 = (SyntaxNode).new(input, i0...index, s0)
778
+ r0.extend(Table1)
779
+ r0.extend(Table2)
780
+ else
781
+ self.index = i0
782
+ r0 = nil
783
+ end
784
+
785
+ node_cache[:table][start_index] = r0
786
+
787
+ return r0
788
+ end
789
+
790
+ module TableLine0
791
+ def cell_value
792
+ elements[1]
793
+ end
794
+
795
+ def separator
796
+ elements[3]
797
+ end
798
+ end
799
+
800
+ module TableLine1
801
+ def separator
802
+ elements[0]
803
+ end
804
+
805
+ def cells
806
+ elements[1]
807
+ end
808
+ end
809
+
810
+ module TableLine2
811
+ def cell_values
812
+ cells.elements.map { |elt| elt.cell_value.text_value.strip }
813
+ end
814
+
815
+ def line
816
+ input.line_of(interval.first)
817
+ end
818
+ end
819
+
820
+ def _nt_table_line
821
+ start_index = index
822
+ if node_cache[:table_line].has_key?(index)
823
+ cached = node_cache[:table_line][index]
824
+ @index = cached.interval.end if cached
825
+ return cached
826
+ end
827
+
828
+ i0, s0 = index, []
829
+ r1 = _nt_separator
830
+ s0 << r1
831
+ if r1
832
+ s2, i2 = [], index
833
+ loop do
834
+ i3, s3 = index, []
835
+ s4, i4 = [], index
836
+ loop do
837
+ r5 = _nt_blank
838
+ if r5
839
+ s4 << r5
840
+ else
841
+ break
842
+ end
843
+ end
844
+ r4 = SyntaxNode.new(input, i4...index, s4)
845
+ s3 << r4
846
+ if r4
847
+ r6 = _nt_cell_value
848
+ s3 << r6
849
+ if r6
850
+ s7, i7 = [], index
851
+ loop do
852
+ r8 = _nt_blank
853
+ if r8
854
+ s7 << r8
855
+ else
856
+ break
857
+ end
858
+ end
859
+ r7 = SyntaxNode.new(input, i7...index, s7)
860
+ s3 << r7
861
+ if r7
862
+ r9 = _nt_separator
863
+ s3 << r9
864
+ end
865
+ end
866
+ end
867
+ if s3.last
868
+ r3 = (SyntaxNode).new(input, i3...index, s3)
869
+ r3.extend(TableLine0)
870
+ else
871
+ self.index = i3
872
+ r3 = nil
873
+ end
874
+ if r3
875
+ s2 << r3
876
+ else
877
+ break
878
+ end
879
+ end
880
+ if s2.empty?
881
+ self.index = i2
882
+ r2 = nil
883
+ else
884
+ r2 = SyntaxNode.new(input, i2...index, s2)
885
+ end
886
+ s0 << r2
887
+ end
888
+ if s0.last
889
+ r0 = (SyntaxNode).new(input, i0...index, s0)
890
+ r0.extend(TableLine1)
891
+ r0.extend(TableLine2)
892
+ else
893
+ self.index = i0
894
+ r0 = nil
895
+ end
896
+
897
+ node_cache[:table_line][start_index] = r0
898
+
899
+ return r0
900
+ end
901
+
902
+ module CellValue0
903
+ end
904
+
905
+ def _nt_cell_value
906
+ start_index = index
907
+ if node_cache[:cell_value].has_key?(index)
908
+ cached = node_cache[:cell_value][index]
909
+ @index = cached.interval.end if cached
910
+ return cached
911
+ end
912
+
913
+ s0, i0 = [], index
914
+ loop do
915
+ i1, s1 = index, []
916
+ i2 = index
917
+ i3 = index
918
+ r4 = _nt_separator
919
+ if r4
920
+ r3 = r4
921
+ else
922
+ r5 = _nt_eol
923
+ if r5
924
+ r3 = r5
925
+ else
926
+ self.index = i3
927
+ r3 = nil
928
+ end
929
+ end
930
+ if r3
931
+ r2 = nil
932
+ else
933
+ self.index = i2
934
+ r2 = SyntaxNode.new(input, index...index)
935
+ end
936
+ s1 << r2
937
+ if r2
938
+ if index < input_length
939
+ r6 = (SyntaxNode).new(input, index...(index + 1))
940
+ @index += 1
941
+ else
942
+ terminal_parse_failure("any character")
943
+ r6 = nil
944
+ end
945
+ s1 << r6
946
+ end
947
+ if s1.last
948
+ r1 = (SyntaxNode).new(input, i1...index, s1)
949
+ r1.extend(CellValue0)
950
+ else
951
+ self.index = i1
952
+ r1 = nil
953
+ end
954
+ if r1
955
+ s0 << r1
956
+ else
957
+ break
958
+ end
959
+ end
960
+ r0 = SyntaxNode.new(input, i0...index, s0)
961
+
962
+ node_cache[:cell_value][start_index] = r0
963
+
964
+ return r0
965
+ end
966
+
967
+ module StepSequence0
968
+ def space
969
+ elements[0]
970
+ end
971
+
972
+ def step
973
+ elements[1]
974
+ end
975
+ end
976
+
977
+ module StepSequence1
978
+ def head
979
+ elements[0]
980
+ end
981
+
982
+ def tail
983
+ elements[1]
984
+ end
985
+ end
986
+
987
+ module StepSequence2
988
+ def compile(scenario)
989
+ ([head] + tail).each do |step|
990
+ step.compile(scenario)
991
+ end
992
+ end
993
+
994
+ def tail
995
+ super.elements.map { |elt| elt.step }
996
+ end
997
+ end
998
+
999
+ def _nt_step_sequence
1000
+ start_index = index
1001
+ if node_cache[:step_sequence].has_key?(index)
1002
+ cached = node_cache[:step_sequence][index]
1003
+ @index = cached.interval.end if cached
1004
+ return cached
1005
+ end
1006
+
1007
+ i0, s0 = index, []
1008
+ r1 = _nt_step
1009
+ s0 << r1
1010
+ if r1
1011
+ s2, i2 = [], index
1012
+ loop do
1013
+ i3, s3 = index, []
1014
+ r4 = _nt_space
1015
+ s3 << r4
1016
+ if r4
1017
+ r5 = _nt_step
1018
+ s3 << r5
1019
+ end
1020
+ if s3.last
1021
+ r3 = (SyntaxNode).new(input, i3...index, s3)
1022
+ r3.extend(StepSequence0)
1023
+ else
1024
+ self.index = i3
1025
+ r3 = nil
1026
+ end
1027
+ if r3
1028
+ s2 << r3
1029
+ else
1030
+ break
1031
+ end
1032
+ end
1033
+ r2 = SyntaxNode.new(input, i2...index, s2)
1034
+ s0 << r2
1035
+ end
1036
+ if s0.last
1037
+ r0 = (SyntaxNode).new(input, i0...index, s0)
1038
+ r0.extend(StepSequence1)
1039
+ r0.extend(StepSequence2)
1040
+ else
1041
+ self.index = i0
1042
+ r0 = nil
1043
+ end
1044
+
1045
+ node_cache[:step_sequence][start_index] = r0
1046
+
1047
+ return r0
1048
+ end
1049
+
1050
+ def _nt_step
1051
+ start_index = index
1052
+ if node_cache[:step].has_key?(index)
1053
+ cached = node_cache[:step][index]
1054
+ @index = cached.interval.end if cached
1055
+ return cached
1056
+ end
1057
+
1058
+ i0 = index
1059
+ r1 = _nt_given_scenario
1060
+ if r1
1061
+ r0 = r1
1062
+ else
1063
+ r2 = _nt_plain_step
1064
+ if r2
1065
+ r0 = r2
1066
+ else
1067
+ self.index = i0
1068
+ r0 = nil
1069
+ end
1070
+ end
1071
+
1072
+ node_cache[:step][start_index] = r0
1073
+
1074
+ return r0
1075
+ end
1076
+
1077
+ module GivenScenario0
1078
+ def given_scenario_keyword
1079
+ elements[0]
1080
+ end
1081
+
1082
+ def name
1083
+ elements[2]
1084
+ end
1085
+ end
1086
+
1087
+ module GivenScenario1
1088
+ def compile(scenario)
1089
+ line = input.line_of(interval.first)
1090
+ scenario.create_given_scenario(name.text_value.strip, line)
1091
+ end
1092
+ end
1093
+
1094
+ def _nt_given_scenario
1095
+ start_index = index
1096
+ if node_cache[:given_scenario].has_key?(index)
1097
+ cached = node_cache[:given_scenario][index]
1098
+ @index = cached.interval.end if cached
1099
+ return cached
1100
+ end
1101
+
1102
+ i0, s0 = index, []
1103
+ r1 = _nt_given_scenario_keyword
1104
+ s0 << r1
1105
+ if r1
1106
+ r3 = _nt_space
1107
+ if r3
1108
+ r2 = r3
1109
+ else
1110
+ r2 = SyntaxNode.new(input, index...index)
1111
+ end
1112
+ s0 << r2
1113
+ if r2
1114
+ r4 = _nt_line_to_eol
1115
+ s0 << r4
1116
+ end
1117
+ end
1118
+ if s0.last
1119
+ r0 = (SyntaxNode).new(input, i0...index, s0)
1120
+ r0.extend(GivenScenario0)
1121
+ r0.extend(GivenScenario1)
1122
+ else
1123
+ self.index = i0
1124
+ r0 = nil
1125
+ end
1126
+
1127
+ node_cache[:given_scenario][start_index] = r0
1128
+
1129
+ return r0
1130
+ end
1131
+
1132
+ module PlainStep0
1133
+ def step_keyword
1134
+ elements[0]
1135
+ end
1136
+
1137
+ def name
1138
+ elements[2]
1139
+ end
1140
+
1141
+ def multi
1142
+ elements[3]
1143
+ end
1144
+ end
1145
+
1146
+ module PlainStep1
1147
+ def compile(scenario)
1148
+ line = input.line_of(interval.first)
1149
+ step = scenario.create_step(step_keyword.text_value, name.text_value.strip, line)
1150
+
1151
+ if multi.respond_to?(:to_arg)
1152
+ step.extra_args << multi.to_arg
1153
+ end
1154
+ end
1155
+ end
1156
+
1157
+ def _nt_plain_step
1158
+ start_index = index
1159
+ if node_cache[:plain_step].has_key?(index)
1160
+ cached = node_cache[:plain_step][index]
1161
+ @index = cached.interval.end if cached
1162
+ return cached
1163
+ end
1164
+
1165
+ i0, s0 = index, []
1166
+ r1 = _nt_step_keyword
1167
+ s0 << r1
1168
+ if r1
1169
+ r3 = _nt_space
1170
+ if r3
1171
+ r2 = r3
1172
+ else
1173
+ r2 = SyntaxNode.new(input, index...index)
1174
+ end
1175
+ s0 << r2
1176
+ if r2
1177
+ r4 = _nt_line_to_eol
1178
+ s0 << r4
1179
+ if r4
1180
+ r6 = _nt_multiline_arg
1181
+ if r6
1182
+ r5 = r6
1183
+ else
1184
+ r5 = SyntaxNode.new(input, index...index)
1185
+ end
1186
+ s0 << r5
1187
+ end
1188
+ end
1189
+ end
1190
+ if s0.last
1191
+ r0 = (SyntaxNode).new(input, i0...index, s0)
1192
+ r0.extend(PlainStep0)
1193
+ r0.extend(PlainStep1)
1194
+ else
1195
+ self.index = i0
1196
+ r0 = nil
1197
+ end
1198
+
1199
+ node_cache[:plain_step][start_index] = r0
1200
+
1201
+ return r0
1202
+ end
1203
+
1204
+ def _nt_multiline_arg
1205
+ start_index = index
1206
+ if node_cache[:multiline_arg].has_key?(index)
1207
+ cached = node_cache[:multiline_arg][index]
1208
+ @index = cached.interval.end if cached
1209
+ return cached
1210
+ end
1211
+
1212
+ i0 = index
1213
+ r1 = _nt_table
1214
+ if r1
1215
+ r0 = r1
1216
+ else
1217
+ r2 = _nt_multiline_string
1218
+ if r2
1219
+ r0 = r2
1220
+ else
1221
+ self.index = i0
1222
+ r0 = nil
1223
+ end
1224
+ end
1225
+
1226
+ node_cache[:multiline_arg][start_index] = r0
1227
+
1228
+ return r0
1229
+ end
1230
+
1231
+ module MultilineString0
1232
+ end
1233
+
1234
+ module MultilineString1
1235
+ def eol
1236
+ elements[0]
1237
+ end
1238
+
1239
+ def indent
1240
+ elements[1]
1241
+ end
1242
+
1243
+ def triple_quote
1244
+ elements[2]
1245
+ end
1246
+
1247
+ def string
1248
+ elements[3]
1249
+ end
1250
+
1251
+ def triple_quote
1252
+ elements[4]
1253
+ end
1254
+ end
1255
+
1256
+ module MultilineString2
1257
+ def to_arg
1258
+ indent_length = indent.text_value.length
1259
+ significant_lines = string.text_value.split("\n")[1..-2]
1260
+ significant_lines.map do |l|
1261
+ l[indent_length..-1]
1262
+ end.join("\n")
1263
+ end
1264
+ end
1265
+
1266
+ def _nt_multiline_string
1267
+ start_index = index
1268
+ if node_cache[:multiline_string].has_key?(index)
1269
+ cached = node_cache[:multiline_string][index]
1270
+ @index = cached.interval.end if cached
1271
+ return cached
1272
+ end
1273
+
1274
+ i0, s0 = index, []
1275
+ r1 = _nt_eol
1276
+ s0 << r1
1277
+ if r1
1278
+ r2 = _nt_space
1279
+ s0 << r2
1280
+ if r2
1281
+ r3 = _nt_triple_quote
1282
+ s0 << r3
1283
+ if r3
1284
+ s4, i4 = [], index
1285
+ loop do
1286
+ i5, s5 = index, []
1287
+ i6 = index
1288
+ r7 = _nt_triple_quote
1289
+ if r7
1290
+ r6 = nil
1291
+ else
1292
+ self.index = i6
1293
+ r6 = SyntaxNode.new(input, index...index)
1294
+ end
1295
+ s5 << r6
1296
+ if r6
1297
+ if index < input_length
1298
+ r8 = (SyntaxNode).new(input, index...(index + 1))
1299
+ @index += 1
1300
+ else
1301
+ terminal_parse_failure("any character")
1302
+ r8 = nil
1303
+ end
1304
+ s5 << r8
1305
+ end
1306
+ if s5.last
1307
+ r5 = (SyntaxNode).new(input, i5...index, s5)
1308
+ r5.extend(MultilineString0)
1309
+ else
1310
+ self.index = i5
1311
+ r5 = nil
1312
+ end
1313
+ if r5
1314
+ s4 << r5
1315
+ else
1316
+ break
1317
+ end
1318
+ end
1319
+ r4 = SyntaxNode.new(input, i4...index, s4)
1320
+ s0 << r4
1321
+ if r4
1322
+ r9 = _nt_triple_quote
1323
+ s0 << r9
1324
+ end
1325
+ end
1326
+ end
1327
+ end
1328
+ if s0.last
1329
+ r0 = (SyntaxNode).new(input, i0...index, s0)
1330
+ r0.extend(MultilineString1)
1331
+ r0.extend(MultilineString2)
1332
+ else
1333
+ self.index = i0
1334
+ r0 = nil
1335
+ end
1336
+
1337
+ node_cache[:multiline_string][start_index] = r0
1338
+
1339
+ return r0
1340
+ end
1341
+
1342
+ def _nt_triple_quote
1343
+ start_index = index
1344
+ if node_cache[:triple_quote].has_key?(index)
1345
+ cached = node_cache[:triple_quote][index]
1346
+ @index = cached.interval.end if cached
1347
+ return cached
1348
+ end
1349
+
1350
+ if input.index('"""', index) == index
1351
+ r0 = (SyntaxNode).new(input, index...(index + 3))
1352
+ @index += 3
1353
+ else
1354
+ terminal_parse_failure('"""')
1355
+ r0 = nil
1356
+ end
1357
+
1358
+ node_cache[:triple_quote][start_index] = r0
1359
+
1360
+ return r0
1361
+ end
1362
+
1363
+ def _nt_separator
1364
+ start_index = index
1365
+ if node_cache[:separator].has_key?(index)
1366
+ cached = node_cache[:separator][index]
1367
+ @index = cached.interval.end if cached
1368
+ return cached
1369
+ end
1370
+
1371
+ if input.index('|', index) == index
1372
+ r0 = (SyntaxNode).new(input, index...(index + 1))
1373
+ @index += 1
1374
+ else
1375
+ terminal_parse_failure('|')
1376
+ r0 = nil
1377
+ end
1378
+
1379
+ node_cache[:separator][start_index] = r0
1380
+
1381
+ return r0
1382
+ end
1383
+
1384
+ def _nt_space
1385
+ start_index = index
1386
+ if node_cache[:space].has_key?(index)
1387
+ cached = node_cache[:space][index]
1388
+ @index = cached.interval.end if cached
1389
+ return cached
1390
+ end
1391
+
1392
+ s0, i0 = [], index
1393
+ loop do
1394
+ i1 = index
1395
+ r2 = _nt_white
1396
+ if r2
1397
+ r1 = r2
1398
+ else
1399
+ r3 = _nt_comment_to_eol
1400
+ if r3
1401
+ r1 = r3
1402
+ else
1403
+ self.index = i1
1404
+ r1 = nil
1405
+ end
1406
+ end
1407
+ if r1
1408
+ s0 << r1
1409
+ else
1410
+ break
1411
+ end
1412
+ end
1413
+ if s0.empty?
1414
+ self.index = i0
1415
+ r0 = nil
1416
+ else
1417
+ r0 = SyntaxNode.new(input, i0...index, s0)
1418
+ end
1419
+
1420
+ node_cache[:space][start_index] = r0
1421
+
1422
+ return r0
1423
+ end
1424
+
1425
+ module LineToEol0
1426
+ end
1427
+
1428
+ def _nt_line_to_eol
1429
+ start_index = index
1430
+ if node_cache[:line_to_eol].has_key?(index)
1431
+ cached = node_cache[:line_to_eol][index]
1432
+ @index = cached.interval.end if cached
1433
+ return cached
1434
+ end
1435
+
1436
+ s0, i0 = [], index
1437
+ loop do
1438
+ i1, s1 = index, []
1439
+ i2 = index
1440
+ r3 = _nt_eol
1441
+ if r3
1442
+ r2 = nil
1443
+ else
1444
+ self.index = i2
1445
+ r2 = SyntaxNode.new(input, index...index)
1446
+ end
1447
+ s1 << r2
1448
+ if r2
1449
+ if index < input_length
1450
+ r4 = (SyntaxNode).new(input, index...(index + 1))
1451
+ @index += 1
1452
+ else
1453
+ terminal_parse_failure("any character")
1454
+ r4 = nil
1455
+ end
1456
+ s1 << r4
1457
+ end
1458
+ if s1.last
1459
+ r1 = (SyntaxNode).new(input, i1...index, s1)
1460
+ r1.extend(LineToEol0)
1461
+ else
1462
+ self.index = i1
1463
+ r1 = nil
1464
+ end
1465
+ if r1
1466
+ s0 << r1
1467
+ else
1468
+ break
1469
+ end
1470
+ end
1471
+ r0 = SyntaxNode.new(input, i0...index, s0)
1472
+
1473
+ node_cache[:line_to_eol][start_index] = r0
1474
+
1475
+ return r0
1476
+ end
1477
+
1478
+ module CommentToEol0
1479
+ def line_to_eol
1480
+ elements[1]
1481
+ end
1482
+ end
1483
+
1484
+ def _nt_comment_to_eol
1485
+ start_index = index
1486
+ if node_cache[:comment_to_eol].has_key?(index)
1487
+ cached = node_cache[:comment_to_eol][index]
1488
+ @index = cached.interval.end if cached
1489
+ return cached
1490
+ end
1491
+
1492
+ i0, s0 = index, []
1493
+ if input.index('#', index) == index
1494
+ r1 = (SyntaxNode).new(input, index...(index + 1))
1495
+ @index += 1
1496
+ else
1497
+ terminal_parse_failure('#')
1498
+ r1 = nil
1499
+ end
1500
+ s0 << r1
1501
+ if r1
1502
+ r2 = _nt_line_to_eol
1503
+ s0 << r2
1504
+ end
1505
+ if s0.last
1506
+ r0 = (SyntaxNode).new(input, i0...index, s0)
1507
+ r0.extend(CommentToEol0)
1508
+ else
1509
+ self.index = i0
1510
+ r0 = nil
1511
+ end
1512
+
1513
+ node_cache[:comment_to_eol][start_index] = r0
1514
+
1515
+ return r0
1516
+ end
1517
+
1518
+ def _nt_white
1519
+ start_index = index
1520
+ if node_cache[:white].has_key?(index)
1521
+ cached = node_cache[:white][index]
1522
+ @index = cached.interval.end if cached
1523
+ return cached
1524
+ end
1525
+
1526
+ i0 = index
1527
+ r1 = _nt_blank
1528
+ if r1
1529
+ r0 = r1
1530
+ else
1531
+ r2 = _nt_eol
1532
+ if r2
1533
+ r0 = r2
1534
+ else
1535
+ self.index = i0
1536
+ r0 = nil
1537
+ end
1538
+ end
1539
+
1540
+ node_cache[:white][start_index] = r0
1541
+
1542
+ return r0
1543
+ end
1544
+
1545
+ def _nt_blank
1546
+ start_index = index
1547
+ if node_cache[:blank].has_key?(index)
1548
+ cached = node_cache[:blank][index]
1549
+ @index = cached.interval.end if cached
1550
+ return cached
1551
+ end
1552
+
1553
+ if input.index(Regexp.new('[ \\t]'), index) == index
1554
+ r0 = (SyntaxNode).new(input, index...(index + 1))
1555
+ @index += 1
1556
+ else
1557
+ r0 = nil
1558
+ end
1559
+
1560
+ node_cache[:blank][start_index] = r0
1561
+
1562
+ return r0
1563
+ end
1564
+
1565
+ module Eol0
1566
+ end
1567
+
1568
+ def _nt_eol
1569
+ start_index = index
1570
+ if node_cache[:eol].has_key?(index)
1571
+ cached = node_cache[:eol][index]
1572
+ @index = cached.interval.end if cached
1573
+ return cached
1574
+ end
1575
+
1576
+ i0 = index
1577
+ i1, s1 = index, []
1578
+ if input.index("\r", index) == index
1579
+ r2 = (SyntaxNode).new(input, index...(index + 1))
1580
+ @index += 1
1581
+ else
1582
+ terminal_parse_failure("\r")
1583
+ r2 = nil
1584
+ end
1585
+ s1 << r2
1586
+ if r2
1587
+ if input.index("\n", index) == index
1588
+ r4 = (SyntaxNode).new(input, index...(index + 1))
1589
+ @index += 1
1590
+ else
1591
+ terminal_parse_failure("\n")
1592
+ r4 = nil
1593
+ end
1594
+ if r4
1595
+ r3 = r4
1596
+ else
1597
+ r3 = SyntaxNode.new(input, index...index)
1598
+ end
1599
+ s1 << r3
1600
+ end
1601
+ if s1.last
1602
+ r1 = (SyntaxNode).new(input, i1...index, s1)
1603
+ r1.extend(Eol0)
1604
+ else
1605
+ self.index = i1
1606
+ r1 = nil
1607
+ end
1608
+ if r1
1609
+ r0 = r1
1610
+ else
1611
+ if input.index("\n", index) == index
1612
+ r5 = (SyntaxNode).new(input, index...(index + 1))
1613
+ @index += 1
1614
+ else
1615
+ terminal_parse_failure("\n")
1616
+ r5 = nil
1617
+ end
1618
+ if r5
1619
+ r0 = r5
1620
+ else
1621
+ self.index = i0
1622
+ r0 = nil
1623
+ end
1624
+ end
1625
+
1626
+ node_cache[:eol][start_index] = r0
1627
+
1628
+ return r0
1629
+ end
1630
+
1631
+ def _nt_step_keyword
1632
+ start_index = index
1633
+ if node_cache[:step_keyword].has_key?(index)
1634
+ cached = node_cache[:step_keyword][index]
1635
+ @index = cached.interval.end if cached
1636
+ return cached
1637
+ end
1638
+
1639
+ i0 = index
1640
+ if input.index("GIVN", index) == index
1641
+ r1 = (SyntaxNode).new(input, index...(index + 4))
1642
+ @index += 4
1643
+ else
1644
+ terminal_parse_failure("GIVN")
1645
+ r1 = nil
1646
+ end
1647
+ if r1
1648
+ r0 = r1
1649
+ else
1650
+ if input.index("WEN", index) == index
1651
+ r2 = (SyntaxNode).new(input, index...(index + 3))
1652
+ @index += 3
1653
+ else
1654
+ terminal_parse_failure("WEN")
1655
+ r2 = nil
1656
+ end
1657
+ if r2
1658
+ r0 = r2
1659
+ else
1660
+ if input.index("DEN", index) == index
1661
+ r3 = (SyntaxNode).new(input, index...(index + 3))
1662
+ @index += 3
1663
+ else
1664
+ terminal_parse_failure("DEN")
1665
+ r3 = nil
1666
+ end
1667
+ if r3
1668
+ r0 = r3
1669
+ else
1670
+ if input.index("AN", index) == index
1671
+ r4 = (SyntaxNode).new(input, index...(index + 2))
1672
+ @index += 2
1673
+ else
1674
+ terminal_parse_failure("AN")
1675
+ r4 = nil
1676
+ end
1677
+ if r4
1678
+ r0 = r4
1679
+ else
1680
+ if input.index("BUT", index) == index
1681
+ r5 = (SyntaxNode).new(input, index...(index + 3))
1682
+ @index += 3
1683
+ else
1684
+ terminal_parse_failure("BUT")
1685
+ r5 = nil
1686
+ end
1687
+ if r5
1688
+ r0 = r5
1689
+ else
1690
+ self.index = i0
1691
+ r0 = nil
1692
+ end
1693
+ end
1694
+ end
1695
+ end
1696
+ end
1697
+
1698
+ node_cache[:step_keyword][start_index] = r0
1699
+
1700
+ return r0
1701
+ end
1702
+
1703
+ module ScenarioKeyword0
1704
+ end
1705
+
1706
+ def _nt_scenario_keyword
1707
+ start_index = index
1708
+ if node_cache[:scenario_keyword].has_key?(index)
1709
+ cached = node_cache[:scenario_keyword][index]
1710
+ @index = cached.interval.end if cached
1711
+ return cached
1712
+ end
1713
+
1714
+ i0, s0 = index, []
1715
+ if input.index("MISHUN", index) == index
1716
+ r1 = (SyntaxNode).new(input, index...(index + 6))
1717
+ @index += 6
1718
+ else
1719
+ terminal_parse_failure("MISHUN")
1720
+ r1 = nil
1721
+ end
1722
+ s0 << r1
1723
+ if r1
1724
+ if input.index(":", index) == index
1725
+ r3 = (SyntaxNode).new(input, index...(index + 1))
1726
+ @index += 1
1727
+ else
1728
+ terminal_parse_failure(":")
1729
+ r3 = nil
1730
+ end
1731
+ if r3
1732
+ r2 = r3
1733
+ else
1734
+ r2 = SyntaxNode.new(input, index...index)
1735
+ end
1736
+ s0 << r2
1737
+ end
1738
+ if s0.last
1739
+ r0 = (SyntaxNode).new(input, i0...index, s0)
1740
+ r0.extend(ScenarioKeyword0)
1741
+ else
1742
+ self.index = i0
1743
+ r0 = nil
1744
+ end
1745
+
1746
+ node_cache[:scenario_keyword][start_index] = r0
1747
+
1748
+ return r0
1749
+ end
1750
+
1751
+ module ScenarioOutlineKeyword0
1752
+ end
1753
+
1754
+ def _nt_scenario_outline_keyword
1755
+ start_index = index
1756
+ if node_cache[:scenario_outline_keyword].has_key?(index)
1757
+ cached = node_cache[:scenario_outline_keyword][index]
1758
+ @index = cached.interval.end if cached
1759
+ return cached
1760
+ end
1761
+
1762
+ i0, s0 = index, []
1763
+ if input.index("Scenario Outline", index) == index
1764
+ r1 = (SyntaxNode).new(input, index...(index + 16))
1765
+ @index += 16
1766
+ else
1767
+ terminal_parse_failure("Scenario Outline")
1768
+ r1 = nil
1769
+ end
1770
+ s0 << r1
1771
+ if r1
1772
+ if input.index(":", index) == index
1773
+ r3 = (SyntaxNode).new(input, index...(index + 1))
1774
+ @index += 1
1775
+ else
1776
+ terminal_parse_failure(":")
1777
+ r3 = nil
1778
+ end
1779
+ if r3
1780
+ r2 = r3
1781
+ else
1782
+ r2 = SyntaxNode.new(input, index...index)
1783
+ end
1784
+ s0 << r2
1785
+ end
1786
+ if s0.last
1787
+ r0 = (SyntaxNode).new(input, i0...index, s0)
1788
+ r0.extend(ScenarioOutlineKeyword0)
1789
+ else
1790
+ self.index = i0
1791
+ r0 = nil
1792
+ end
1793
+
1794
+ node_cache[:scenario_outline_keyword][start_index] = r0
1795
+
1796
+ return r0
1797
+ end
1798
+
1799
+ module MoreExamplesKeyword0
1800
+ end
1801
+
1802
+ def _nt_more_examples_keyword
1803
+ start_index = index
1804
+ if node_cache[:more_examples_keyword].has_key?(index)
1805
+ cached = node_cache[:more_examples_keyword][index]
1806
+ @index = cached.interval.end if cached
1807
+ return cached
1808
+ end
1809
+
1810
+ i0, s0 = index, []
1811
+ if input.index("MOAR EXAMPLZ", index) == index
1812
+ r1 = (SyntaxNode).new(input, index...(index + 12))
1813
+ @index += 12
1814
+ else
1815
+ terminal_parse_failure("MOAR EXAMPLZ")
1816
+ r1 = nil
1817
+ end
1818
+ s0 << r1
1819
+ if r1
1820
+ if input.index(":", index) == index
1821
+ r3 = (SyntaxNode).new(input, index...(index + 1))
1822
+ @index += 1
1823
+ else
1824
+ terminal_parse_failure(":")
1825
+ r3 = nil
1826
+ end
1827
+ if r3
1828
+ r2 = r3
1829
+ else
1830
+ r2 = SyntaxNode.new(input, index...index)
1831
+ end
1832
+ s0 << r2
1833
+ end
1834
+ if s0.last
1835
+ r0 = (SyntaxNode).new(input, i0...index, s0)
1836
+ r0.extend(MoreExamplesKeyword0)
1837
+ else
1838
+ self.index = i0
1839
+ r0 = nil
1840
+ end
1841
+
1842
+ node_cache[:more_examples_keyword][start_index] = r0
1843
+
1844
+ return r0
1845
+ end
1846
+
1847
+ module ExamplesKeyword0
1848
+ end
1849
+
1850
+ def _nt_examples_keyword
1851
+ start_index = index
1852
+ if node_cache[:examples_keyword].has_key?(index)
1853
+ cached = node_cache[:examples_keyword][index]
1854
+ @index = cached.interval.end if cached
1855
+ return cached
1856
+ end
1857
+
1858
+ i0, s0 = index, []
1859
+ if input.index("Examples", index) == index
1860
+ r1 = (SyntaxNode).new(input, index...(index + 8))
1861
+ @index += 8
1862
+ else
1863
+ terminal_parse_failure("Examples")
1864
+ r1 = nil
1865
+ end
1866
+ s0 << r1
1867
+ if r1
1868
+ if input.index(":", index) == index
1869
+ r3 = (SyntaxNode).new(input, index...(index + 1))
1870
+ @index += 1
1871
+ else
1872
+ terminal_parse_failure(":")
1873
+ r3 = nil
1874
+ end
1875
+ if r3
1876
+ r2 = r3
1877
+ else
1878
+ r2 = SyntaxNode.new(input, index...index)
1879
+ end
1880
+ s0 << r2
1881
+ end
1882
+ if s0.last
1883
+ r0 = (SyntaxNode).new(input, i0...index, s0)
1884
+ r0.extend(ExamplesKeyword0)
1885
+ else
1886
+ self.index = i0
1887
+ r0 = nil
1888
+ end
1889
+
1890
+ node_cache[:examples_keyword][start_index] = r0
1891
+
1892
+ return r0
1893
+ end
1894
+
1895
+ module GivenScenarioKeyword0
1896
+ end
1897
+
1898
+ def _nt_given_scenario_keyword
1899
+ start_index = index
1900
+ if node_cache[:given_scenario_keyword].has_key?(index)
1901
+ cached = node_cache[:given_scenario_keyword][index]
1902
+ @index = cached.interval.end if cached
1903
+ return cached
1904
+ end
1905
+
1906
+ i0, s0 = index, []
1907
+ if input.index("SRSLY", index) == index
1908
+ r1 = (SyntaxNode).new(input, index...(index + 5))
1909
+ @index += 5
1910
+ else
1911
+ terminal_parse_failure("SRSLY")
1912
+ r1 = nil
1913
+ end
1914
+ s0 << r1
1915
+ if r1
1916
+ if input.index(":", index) == index
1917
+ r3 = (SyntaxNode).new(input, index...(index + 1))
1918
+ @index += 1
1919
+ else
1920
+ terminal_parse_failure(":")
1921
+ r3 = nil
1922
+ end
1923
+ if r3
1924
+ r2 = r3
1925
+ else
1926
+ r2 = SyntaxNode.new(input, index...index)
1927
+ end
1928
+ s0 << r2
1929
+ end
1930
+ if s0.last
1931
+ r0 = (SyntaxNode).new(input, i0...index, s0)
1932
+ r0.extend(GivenScenarioKeyword0)
1933
+ else
1934
+ self.index = i0
1935
+ r0 = nil
1936
+ end
1937
+
1938
+ node_cache[:given_scenario_keyword][start_index] = r0
1939
+
1940
+ return r0
1941
+ end
1942
+
1943
+ end
1944
+
1945
+ class FeatureParser < Treetop::Runtime::CompiledParser
1946
+ include Feature
1947
+ end
1948
+
1949
+
1950
+ end
1951
+ end