vim-jar 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (926) hide show
  1. data/.gitignore +2 -0
  2. data/Gemfile.lock +21 -1
  3. data/README.md +35 -1
  4. data/autotest/discover.rb +2 -0
  5. data/bundler/ruby/1.8/bin/autotest +4 -6
  6. data/bundler/ruby/1.8/bin/cdiff +19 -0
  7. data/bundler/ruby/1.8/bin/cucumber +19 -0
  8. data/bundler/ruby/1.8/bin/decolor +19 -0
  9. data/bundler/ruby/1.8/bin/edit_json.rb +19 -0
  10. data/bundler/ruby/1.8/bin/prettify_json.rb +19 -0
  11. data/bundler/ruby/1.8/bin/unit_diff +4 -6
  12. data/bundler/ruby/1.8/gems/aruba-0.2.6/.document +5 -0
  13. data/bundler/ruby/1.8/gems/aruba-0.2.6/.gitignore +23 -0
  14. data/bundler/ruby/1.8/gems/aruba-0.2.6/.rvmrc +1 -0
  15. data/bundler/ruby/1.8/gems/aruba-0.2.6/Gemfile +10 -0
  16. data/bundler/ruby/1.8/gems/aruba-0.2.6/History.txt +123 -0
  17. data/bundler/ruby/1.8/gems/aruba-0.2.6/LICENSE +20 -0
  18. data/bundler/ruby/1.8/gems/aruba-0.2.6/README.rdoc +41 -0
  19. data/bundler/ruby/1.8/gems/aruba-0.2.6/Rakefile +13 -0
  20. data/bundler/ruby/1.8/gems/aruba-0.2.6/aruba.gemspec +24 -0
  21. data/bundler/ruby/1.8/gems/aruba-0.2.6/config/.gitignore +1 -0
  22. data/bundler/ruby/1.8/gems/aruba-0.2.6/cucumber.yml +2 -0
  23. data/bundler/ruby/1.8/gems/aruba-0.2.6/features/exit_statuses.feature +29 -0
  24. data/bundler/ruby/1.8/gems/aruba-0.2.6/features/file_system_commands.feature +128 -0
  25. data/bundler/ruby/1.8/gems/aruba-0.2.6/features/flushing.feature +23 -0
  26. data/bundler/ruby/1.8/gems/aruba-0.2.6/features/interactive.feature +38 -0
  27. data/bundler/ruby/1.8/gems/aruba-0.2.6/features/output.feature +171 -0
  28. data/bundler/ruby/1.8/gems/aruba-0.2.6/features/step_definitions/aruba_dev_steps.rb +24 -0
  29. data/bundler/ruby/1.8/gems/aruba-0.2.6/features/support/env.rb +15 -0
  30. data/bundler/ruby/1.8/gems/aruba-0.2.6/lib/aruba/api.rb +297 -0
  31. data/bundler/ruby/1.8/gems/aruba-0.2.6/lib/aruba/cucumber.rb +273 -0
  32. data/bundler/ruby/1.8/gems/aruba-0.2.6/lib/aruba/process.rb +46 -0
  33. data/bundler/ruby/1.8/gems/aruba-0.2.6/lib/aruba.rb +1 -0
  34. data/bundler/ruby/1.8/gems/autotest-4.4.5/.autotest +18 -0
  35. data/bundler/ruby/1.8/gems/autotest-4.4.5/.gitignore +1 -0
  36. data/bundler/ruby/1.8/gems/autotest-4.4.5/Gemfile +7 -0
  37. data/bundler/ruby/1.8/gems/autotest-4.4.5/Gemfile.lock +38 -0
  38. data/bundler/ruby/1.8/gems/autotest-4.4.5/History.txt +709 -0
  39. data/bundler/ruby/1.8/gems/autotest-4.4.5/Rakefile +67 -0
  40. data/bundler/ruby/1.8/gems/autotest-4.4.5/Readme.md +95 -0
  41. data/bundler/ruby/1.8/gems/autotest-4.4.5/VERSION +1 -0
  42. data/bundler/ruby/1.8/gems/autotest-4.4.5/articles/getting_started_with_autotest.html +533 -0
  43. data/bundler/ruby/1.8/gems/autotest-4.4.5/autotest.gemspec +62 -0
  44. data/bundler/ruby/1.8/gems/autotest-4.4.5/bin/autotest +67 -0
  45. data/bundler/ruby/1.8/gems/autotest-4.4.5/bin/unit_diff +44 -0
  46. data/bundler/ruby/1.8/gems/autotest-4.4.5/example_dot_autotest.rb +12 -0
  47. data/bundler/ruby/1.8/gems/autotest-4.4.5/lib/autotest/autoupdate.rb +26 -0
  48. data/bundler/ruby/1.8/gems/autotest-4.4.5/lib/autotest/once.rb +9 -0
  49. data/bundler/ruby/1.8/gems/autotest-4.4.5/lib/autotest/rcov.rb +27 -0
  50. data/bundler/ruby/1.8/gems/autotest-4.4.5/lib/autotest/restart.rb +12 -0
  51. data/bundler/ruby/1.8/gems/autotest-4.4.5/lib/autotest/timestamp.rb +9 -0
  52. data/bundler/ruby/1.8/gems/autotest-4.4.5/lib/autotest.rb +724 -0
  53. data/bundler/ruby/1.8/gems/autotest-4.4.5/lib/unit_diff.rb +274 -0
  54. data/bundler/ruby/1.8/gems/autotest-4.4.5/test/helper.rb +6 -0
  55. data/bundler/ruby/1.8/gems/autotest-4.4.5/test/test_autotest.rb +515 -0
  56. data/bundler/ruby/1.8/gems/autotest-4.4.5/test/test_autotest_integration.rb +95 -0
  57. data/bundler/ruby/1.8/gems/autotest-4.4.5/test/test_unit_diff.rb +335 -0
  58. data/bundler/ruby/1.8/gems/background_process-1.2/MIT-LICENSE +20 -0
  59. data/bundler/ruby/1.8/gems/background_process-1.2/README.textile +82 -0
  60. data/bundler/ruby/1.8/gems/background_process-1.2/lib/background_process/background_process.rb +114 -0
  61. data/bundler/ruby/1.8/gems/background_process-1.2/lib/background_process/io_helpers.rb +24 -0
  62. data/bundler/ruby/1.8/gems/background_process-1.2/lib/background_process/pty_background_process.rb +64 -0
  63. data/bundler/ruby/1.8/gems/background_process-1.2/lib/background_process.rb +3 -0
  64. data/bundler/ruby/1.8/gems/background_process-1.2/spec/background_process/background_process_spec.rb +129 -0
  65. data/bundler/ruby/1.8/gems/background_process-1.2/spec/background_process/io_helpers_spec.rb +30 -0
  66. data/bundler/ruby/1.8/gems/background_process-1.2/spec/background_process/pty_background_process_spec.rb +49 -0
  67. data/bundler/ruby/1.8/gems/background_process-1.2/spec/spec_helper.rb +1 -0
  68. data/bundler/ruby/1.8/gems/builder-2.1.2/CHANGES +85 -0
  69. data/bundler/ruby/1.8/gems/builder-2.1.2/README +210 -0
  70. data/bundler/ruby/1.8/gems/builder-2.1.2/Rakefile +263 -0
  71. data/bundler/ruby/1.8/gems/builder-2.1.2/doc/releases/builder-1.2.4.rdoc +31 -0
  72. data/bundler/ruby/1.8/gems/builder-2.1.2/doc/releases/builder-2.0.0.rdoc +46 -0
  73. data/bundler/ruby/1.8/gems/builder-2.1.2/doc/releases/builder-2.1.1.rdoc +58 -0
  74. data/bundler/ruby/1.8/gems/builder-2.1.2/lib/blankslate.rb +113 -0
  75. data/bundler/ruby/1.8/gems/builder-2.1.2/lib/builder/blankslate.rb +20 -0
  76. data/bundler/ruby/1.8/gems/builder-2.1.2/lib/builder/xchar.rb +115 -0
  77. data/bundler/ruby/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb +139 -0
  78. data/bundler/ruby/1.8/gems/builder-2.1.2/lib/builder/xmlevents.rb +63 -0
  79. data/bundler/ruby/1.8/gems/builder-2.1.2/lib/builder/xmlmarkup.rb +328 -0
  80. data/bundler/ruby/1.8/gems/builder-2.1.2/lib/builder.rb +13 -0
  81. data/bundler/ruby/1.8/gems/builder-2.1.2/scripts/publish.rb +17 -0
  82. data/bundler/ruby/1.8/gems/builder-2.1.2/test/performance.rb +30 -0
  83. data/bundler/ruby/1.8/gems/builder-2.1.2/test/preload.rb +29 -0
  84. data/bundler/ruby/1.8/gems/builder-2.1.2/test/test_xchar.rb +37 -0
  85. data/bundler/ruby/1.8/gems/builder-2.1.2/test/testblankslate.rb +183 -0
  86. data/bundler/ruby/1.8/gems/builder-2.1.2/test/testeventbuilder.rb +133 -0
  87. data/bundler/ruby/1.8/gems/builder-2.1.2/test/testmarkupbuilder.rb +449 -0
  88. data/bundler/ruby/1.8/gems/cucumber-0.9.4/.gitattributes +1 -0
  89. data/bundler/ruby/1.8/gems/cucumber-0.9.4/.gitignore +24 -0
  90. data/bundler/ruby/1.8/gems/cucumber-0.9.4/.rspec +1 -0
  91. data/bundler/ruby/1.8/gems/cucumber-0.9.4/Gemfile +7 -0
  92. data/bundler/ruby/1.8/gems/cucumber-0.9.4/History.txt +1597 -0
  93. data/bundler/ruby/1.8/gems/cucumber-0.9.4/LICENSE +22 -0
  94. data/bundler/ruby/1.8/gems/cucumber-0.9.4/README.rdoc +26 -0
  95. data/bundler/ruby/1.8/gems/cucumber-0.9.4/Rakefile +12 -0
  96. data/bundler/ruby/1.8/gems/cucumber-0.9.4/bin/cucumber +16 -0
  97. data/bundler/ruby/1.8/gems/cucumber-0.9.4/cucumber.gemspec +49 -0
  98. data/bundler/ruby/1.8/gems/cucumber-0.9.4/cucumber.yml +20 -0
  99. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/README.textile +18 -0
  100. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/Rakefile +33 -0
  101. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ar/Rakefile +6 -0
  102. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ar/features/addition.feature +17 -0
  103. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ar/features/step_definitons/calculator_steps.rb +24 -0
  104. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ar/lib/calculator.rb +11 -0
  105. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/bg/Rakefile +6 -0
  106. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/bg/features/addition.feature +12 -0
  107. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/bg/features/consecutive_calculations.feature +19 -0
  108. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/bg/features/division.feature +17 -0
  109. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/bg/features/step_definitons/calculator_steps.rb +24 -0
  110. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/bg/features/support/env.rb +5 -0
  111. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/bg/features/support/world.rb +8 -0
  112. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/bg/lib/calculator.rb +24 -0
  113. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ca/Rakefile +6 -0
  114. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ca/features/step_definitons/calculator_steps.rb +21 -0
  115. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ca/features/suma.feature +17 -0
  116. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ca/lib/calculadora.rb +16 -0
  117. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/da/Rakefile +6 -0
  118. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/da/features/sammenlaegning.feature +18 -0
  119. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/da/features/step_definitons/lommeregner_steps.rb +24 -0
  120. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/da/lib/lommeregner.rb +11 -0
  121. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/de/.gitignore +1 -0
  122. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/de/Rakefile +6 -0
  123. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/de/features/addition.feature +17 -0
  124. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/de/features/division.feature +10 -0
  125. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/de/features/step_definitons/calculator_steps.rb +24 -0
  126. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/de/lib/calculator.rb +14 -0
  127. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en/.gitignore +1 -0
  128. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en/Rakefile +6 -0
  129. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en/features/addition.feature +17 -0
  130. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en/features/division.feature +10 -0
  131. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en/features/step_definitons/calculator_steps.rb +24 -0
  132. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en/lib/calculator.rb +14 -0
  133. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en-lol/Rakefile +4 -0
  134. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en-lol/features/step_definitions/cucumbrz_steps.rb +16 -0
  135. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en-lol/features/stuffing.feature +8 -0
  136. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en-lol/features/support/env.rb +7 -0
  137. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en-lol/lib/basket.rb +12 -0
  138. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en-lol/lib/belly.rb +11 -0
  139. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/eo/.gitignore +1 -0
  140. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/eo/Rakefile +6 -0
  141. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/eo/features/adicio.feature +17 -0
  142. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/eo/features/divido.feature +10 -0
  143. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/eo/features/step_definitons/calculator_steps.rb +24 -0
  144. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/eo/lib/calculator.rb +14 -0
  145. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/es/Rakefile +6 -0
  146. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/es/features/adicion.feature +17 -0
  147. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/es/features/step_definitons/calculador_steps.rb +21 -0
  148. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/es/lib/calculador.rb +14 -0
  149. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/et/Rakefile +6 -0
  150. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/et/features/jagamine.feature +10 -0
  151. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/et/features/liitmine.feature +17 -0
  152. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/et/features/step_definitions/kalkulaator_steps.rb +24 -0
  153. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/et/lib/kalkulaator.rb +14 -0
  154. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fi/.gitignore +1 -0
  155. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fi/Rakefile +6 -0
  156. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fi/features/jakolasku.feature +10 -0
  157. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fi/features/step_definitons/laskin_steps.rb +24 -0
  158. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fi/features/yhteenlasku.feature +17 -0
  159. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fi/lib/laskin.rb +14 -0
  160. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fr/Rakefile +6 -0
  161. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fr/features/addition.feature +18 -0
  162. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fr/features/addition2.feature +17 -0
  163. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fr/features/step_definitions/calculatrice_steps.rb +32 -0
  164. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fr/features/support/env.rb +5 -0
  165. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fr/lib/calculatrice.rb +10 -0
  166. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/he/Rakefile +6 -0
  167. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/he/features/addition.feature +17 -0
  168. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/he/features/division.feature +10 -0
  169. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/he/features/step_definitons/calculator_steps.rb +24 -0
  170. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/he/lib/calculator.rb +15 -0
  171. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/hu/.gitignore +1 -0
  172. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/hu/Rakefile +6 -0
  173. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/hu/features/osszeadas.feature +17 -0
  174. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/hu/features/osztas.feature +10 -0
  175. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/hu/features/step_definitons/calculator_steps.rb +25 -0
  176. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/hu/lib/calculator.rb +14 -0
  177. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/id/.gitignore +1 -0
  178. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/id/Rakefile +6 -0
  179. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/id/features/addition.feature +17 -0
  180. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/id/features/division.feature +10 -0
  181. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/id/features/step_definitons/calculator_steps.rb +24 -0
  182. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/id/lib/calculator.rb +14 -0
  183. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/it/Rakefile +6 -0
  184. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/it/features/somma.feature +11 -0
  185. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/it/features/step_definitons/calcolatrice_steps.rb +24 -0
  186. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/it/lib/calcolatrice.rb +11 -0
  187. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ja/.gitignore +1 -0
  188. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ja/Rakefile +6 -0
  189. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ja/features/addition.feature +17 -0
  190. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ja/features/division.feature +10 -0
  191. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ja/features/step_definitons/calculator_steps.rb +19 -0
  192. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ja/features/support/env.rb +5 -0
  193. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ja/lib/calculator.rb +14 -0
  194. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ko/.gitignore +1 -0
  195. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ko/Rakefile +6 -0
  196. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ko/features/addition.feature +17 -0
  197. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ko/features/division.feature +11 -0
  198. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ko/features/step_definitons/calculator_steps.rb +24 -0
  199. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ko/lib/calculator.rb +14 -0
  200. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lt/.gitignore +1 -0
  201. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lt/Rakefile +6 -0
  202. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lt/features/addition.feature +17 -0
  203. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lt/features/division.feature +10 -0
  204. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lt/features/step_definitons/calculator_steps.rb +24 -0
  205. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lt/lib/calculator.rb +14 -0
  206. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lv/Rakefile +6 -0
  207. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lv/features/addition.feature +17 -0
  208. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lv/features/division.feature +10 -0
  209. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lv/features/step_definitons/calculator_steps.rb +24 -0
  210. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lv/lib/calculator.rb +14 -0
  211. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/no/Rakefile +6 -0
  212. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/no/features/step_definitons/kalkulator_steps.rb +17 -0
  213. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/no/features/summering.feature +19 -0
  214. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/no/features/support/env.rb +6 -0
  215. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/no/lib/kalkulator.rb +11 -0
  216. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pl/.gitignore +1 -0
  217. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pl/Rakefile +6 -0
  218. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pl/features/addition.feature +17 -0
  219. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pl/features/division.feature +10 -0
  220. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pl/features/step_definitons/calculator_steps.rb +24 -0
  221. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pl/features/support/env.rb +5 -0
  222. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pl/lib/calculator.rb +14 -0
  223. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pt/Rakefile +6 -0
  224. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pt/features/adicao.feature +11 -0
  225. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pt/features/step_definitions/calculadora_steps.rb +20 -0
  226. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pt/features/support/env.rb +5 -0
  227. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pt/lib/calculadora.rb +10 -0
  228. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ro/Rakefile +6 -0
  229. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ro/features/step_definitons/calculator_steps.rb +24 -0
  230. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ro/features/suma.feature +11 -0
  231. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ro/lib/calculator.rb +11 -0
  232. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ru/Rakefile +6 -0
  233. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ru/features/addition.feature +11 -0
  234. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ru/features/consecutive_calculations.feature +17 -0
  235. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ru/features/division.feature +16 -0
  236. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ru/features/step_definitons/calculator_steps.rb +19 -0
  237. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ru/features/support/env.rb +5 -0
  238. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ru/features/support/world.rb +8 -0
  239. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ru/lib/calculator.rb +24 -0
  240. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sk/.gitignore +1 -0
  241. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sk/Rakefile +6 -0
  242. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sk/features/addition.feature +17 -0
  243. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sk/features/division.feature +10 -0
  244. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sk/features/step_definitons/calculator_steps.rb +24 -0
  245. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sk/lib/calculator.rb +14 -0
  246. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sr-Cyrl/Rakefile +6 -0
  247. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sr-Cyrl/features/sabiranje.feature +18 -0
  248. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sr-Cyrl/features/step_definitons/calculator_steps.rb +20 -0
  249. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sr-Cyrl/features/support/env.rb +5 -0
  250. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sr-Cyrl/lib/calculator.rb +12 -0
  251. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sr-Latn/Rakefile +6 -0
  252. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sr-Latn/features/sabiranje.feature +18 -0
  253. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sr-Latn/features/step_definitons/calculator_steps.rb +24 -0
  254. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sr-Latn/lib/calculator.rb +12 -0
  255. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sv/Rakefile +6 -0
  256. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sv/features/step_definitons/kalkulator_steps.rb +24 -0
  257. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sv/features/summering.feature +18 -0
  258. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sv/lib/kalkulator.rb +11 -0
  259. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/tr/.gitignore +1 -0
  260. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/tr/Rakefile +6 -0
  261. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/tr/features/bolme.feature +10 -0
  262. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/tr/features/step_definitons/hesap_makinesi_adimlari.rb +24 -0
  263. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/tr/features/toplama.feature +18 -0
  264. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/tr/lib/hesap_makinesi.rb +15 -0
  265. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uk/Rakefile +6 -0
  266. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uk/features/addition.feature +11 -0
  267. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uk/features/consecutive_calculations.feature +17 -0
  268. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uk/features/division.feature +16 -0
  269. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uk/features/step_definitons/calculator_steps.rb +19 -0
  270. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uk/features/support/env.rb +5 -0
  271. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uk/features/support/world.rb +8 -0
  272. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uk/lib/calculator.rb +24 -0
  273. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uz/Rakefile +6 -0
  274. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uz/features/addition.feature +10 -0
  275. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uz/features/consecutive_calculations.feature +17 -0
  276. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uz/features/division.feature +17 -0
  277. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uz/features/step_definitons/calculator_steps.rb +19 -0
  278. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uz/features/support/env.rb +5 -0
  279. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uz/features/support/world.rb +8 -0
  280. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uz/lib/calculator.rb +24 -0
  281. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/zh-CN/Rakefile +4 -0
  282. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/zh-CN/features/addition.feature +18 -0
  283. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/zh-CN/features/step_definitons/calculator_steps.rb +26 -0
  284. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/zh-CN/lib/calculator.rb +10 -0
  285. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/zh-TW/.gitignore +1 -0
  286. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/zh-TW/Rakefile +4 -0
  287. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/zh-TW/features/addition.feature +17 -0
  288. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/zh-TW/features/division.feature +11 -0
  289. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/zh-TW/features/step_definitons/calculator_steps.rb +24 -0
  290. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/zh-TW/lib/calculator.rb +14 -0
  291. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/python/README.textile +7 -0
  292. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/python/Rakefile +4 -0
  293. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/python/features/fibonacci.feature +19 -0
  294. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/python/features/step_definitions/fib_steps.py +11 -0
  295. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/python/lib/.gitignore +1 -0
  296. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/python/lib/fib.py +7 -0
  297. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ramaze/README.textile +7 -0
  298. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ramaze/Rakefile +6 -0
  299. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ramaze/app.rb +21 -0
  300. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ramaze/features/add.feature +11 -0
  301. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ramaze/features/step_definitions/add_steps.rb +15 -0
  302. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ramaze/features/support/env.rb +32 -0
  303. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ramaze/layout/default.html.erb +8 -0
  304. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ramaze/view/index.html.erb +5 -0
  305. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/rspec_doubles/Rakefile +4 -0
  306. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/rspec_doubles/features/mocking.feature +9 -0
  307. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/rspec_doubles/features/step_definitions/calvin_steps.rb +19 -0
  308. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/rspec_doubles/features/support/env.rb +12 -0
  309. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ruby2python/README.textile +7 -0
  310. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ruby2python/Rakefile +4 -0
  311. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ruby2python/features/fibonacci.feature +19 -0
  312. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ruby2python/features/step_definitions/fib_steps.rb +7 -0
  313. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ruby2python/features/support/env.rb +21 -0
  314. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ruby2python/lib/.gitignore +1 -0
  315. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ruby2python/lib/fib.py +7 -0
  316. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/sinatra/README.textile +13 -0
  317. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/sinatra/Rakefile +6 -0
  318. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/sinatra/app.rb +14 -0
  319. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/sinatra/features/add.feature +11 -0
  320. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/sinatra/features/step_definitions/add_steps.rb +15 -0
  321. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/sinatra/features/support/env.rb +13 -0
  322. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/sinatra/views/add.erb +7 -0
  323. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/sinatra/views/layout.erb +8 -0
  324. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/tcl/README.textile +11 -0
  325. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/tcl/Rakefile +6 -0
  326. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/tcl/features/fibonnacci.feature +17 -0
  327. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/tcl/features/step_definitions/fib_steps.rb +7 -0
  328. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/tcl/features/support/env.rb +6 -0
  329. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/tcl/src/fib.tcl +3 -0
  330. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/test_unit/Rakefile +6 -0
  331. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/test_unit/features/step_definitions/test_unit_steps.rb +23 -0
  332. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/test_unit/features/test_unit.feature +9 -0
  333. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/v8/Rakefile +6 -0
  334. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/v8/features/fibonacci.feature +43 -0
  335. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/v8/features/step_definitions/fib_steps.js +49 -0
  336. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/v8/features/support/env.js +14 -0
  337. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/v8/lib/fibonacci.js +19 -0
  338. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/watir/.gitignore +2 -0
  339. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/watir/README.textile +16 -0
  340. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/watir/Rakefile +12 -0
  341. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/watir/cucumber.yml +1 -0
  342. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/watir/features/search.feature +12 -0
  343. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/watir/features/step_definitions/search_steps.rb +26 -0
  344. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/watir/features/support/env.rb +32 -0
  345. data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/watir/features/support/screenshots.rb +47 -0
  346. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/announce.feature +164 -0
  347. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/api/list_step_defs_as_json.feature +50 -0
  348. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/api/run_cli_main_with_existing_runtime.feature +34 -0
  349. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/around_hooks.feature +232 -0
  350. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/background.feature +309 -0
  351. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/bug_371.feature +32 -0
  352. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/bug_464.feature +16 -0
  353. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/bug_475.feature +42 -0
  354. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/bug_585_tab_indentation.feature +22 -0
  355. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/bug_600.feature +67 -0
  356. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/call_steps_from_stepdefs.feature +154 -0
  357. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/cucumber_cli.feature +591 -0
  358. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/cucumber_cli_outlines.feature +117 -0
  359. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/custom_formatter.feature +111 -0
  360. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/default_snippets.feature +42 -0
  361. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/diffing.feature +25 -0
  362. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/drb_server_integration.feature +174 -0
  363. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/exception_in_after_block.feature +127 -0
  364. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/exception_in_after_step_block.feature +104 -0
  365. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/exception_in_before_block.feature +98 -0
  366. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/exclude_files.feature +20 -0
  367. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/expand.feature +60 -0
  368. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/html_formatter/a.html +582 -0
  369. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/html_formatter.feature +8 -0
  370. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/json_formatter.feature +333 -0
  371. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/junit_formatter.feature +92 -0
  372. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/language_from_header.feature +30 -0
  373. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/language_help.feature +78 -0
  374. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/listener_debugger_formatter.feature +42 -0
  375. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/multiline_names.feature +44 -0
  376. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/negative_tagged_hooks.feature +60 -0
  377. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/post_configuration_hook.feature +50 -0
  378. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/profiles.feature +126 -0
  379. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/rake_task.feature +152 -0
  380. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/report_called_undefined_steps.feature +34 -0
  381. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/rerun_formatter.feature +45 -0
  382. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/simplest.feature +11 -0
  383. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/snippet.feature +23 -0
  384. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/snippets_when_using_star_keyword.feature +36 -0
  385. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/step_definitions/cucumber_steps.rb +166 -0
  386. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/step_definitions/extra_steps.rb +2 -0
  387. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/step_definitions/simplest_steps.rb +3 -0
  388. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/step_definitions/wire_steps.rb +33 -0
  389. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/support/env.rb +157 -0
  390. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/support/env.rb.simplest +7 -0
  391. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/support/fake_wire_server.rb +77 -0
  392. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/table_diffing.feature +45 -0
  393. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/table_mapping.feature +34 -0
  394. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/tag_logic.feature +258 -0
  395. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/transform.feature +245 -0
  396. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/unicode_table.feature +35 -0
  397. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/usage_and_stepdefs_formatter.feature +169 -0
  398. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/wire_protocol.feature +332 -0
  399. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/wire_protocol_table_diffing.feature +119 -0
  400. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/wire_protocol_tags.feature +87 -0
  401. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/wire_protocol_timeouts.feature +63 -0
  402. data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/work_in_progress.feature +156 -0
  403. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/json/features/background.feature +7 -0
  404. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/json/features/embed.feature +4 -0
  405. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/json/features/one_passing_one_failing.feature +11 -0
  406. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/json/features/pystring.feature +8 -0
  407. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/json/features/step_definitions/steps.rb +32 -0
  408. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/json/features/tables.feature +13 -0
  409. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/junit/features/one_passing_one_failing.feature +8 -0
  410. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/junit/features/pending.feature +5 -0
  411. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/junit/features/step_definitions/steps.rb +11 -0
  412. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/.gitignore +1 -0
  413. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/README.textile +6 -0
  414. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/Rakefile +6 -0
  415. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/background/background_tagged_before_on_outline.feature +12 -0
  416. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/background/background_with_name.feature +7 -0
  417. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/background/failing_background.feature +12 -0
  418. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/background/failing_background_after_success.feature +11 -0
  419. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/background/multiline_args_background.feature +32 -0
  420. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/background/passing_background.feature +10 -0
  421. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/background/pending_background.feature +10 -0
  422. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/background/scenario_outline_failing_background.feature +16 -0
  423. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/background/scenario_outline_passing_background.feature +16 -0
  424. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/call_undefined_step_from_step_def.feature +7 -0
  425. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/failing_expectation.feature +4 -0
  426. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/lots_of_undefined.feature +8 -0
  427. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/multiline_name.feature +27 -0
  428. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/outline_sample.feature +15 -0
  429. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/sample.feature +21 -0
  430. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/search_sample.feature +32 -0
  431. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/step_definitions/sample_steps.rb +84 -0
  432. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/support/env.rb +18 -0
  433. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/tags_sample.feature +17 -0
  434. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/tons_of_cukes.feature +52 -0
  435. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/undefined_multiline_args.feature +12 -0
  436. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/list-of-features.txt +1 -0
  437. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/steps_library/features/step_definitions/steps_lib1.rb +8 -0
  438. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/steps_library/features/step_definitions/steps_lib2.rb +8 -0
  439. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/Rakefile +20 -0
  440. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/172.feature +28 -0
  441. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/177/1.feature +28 -0
  442. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/177/2.feature +20 -0
  443. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/177/3.feature +18 -0
  444. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/180.feature +7 -0
  445. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/229/tagged_hooks.feature +8 -0
  446. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/229/tagged_hooks.rb +14 -0
  447. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/236.feature +13 -0
  448. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/241.feature +12 -0
  449. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/246.feature +4 -0
  450. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/248.feature +11 -0
  451. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/270/back.feature +14 -0
  452. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/270/back.steps.rb +14 -0
  453. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/272/hooks.feature +26 -0
  454. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/272/hooks_steps.rb +53 -0
  455. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/279/py_string_indent.feature +25 -0
  456. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/279/py_string_indent.steps.rb +12 -0
  457. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/279/wrong.feature_ +11 -0
  458. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/301/filter_background_tagged_hooks.feature +6 -0
  459. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/301/filter_background_tagged_hooks_steps.rb +12 -0
  460. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/306/only_background.feature +4 -0
  461. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/around_timeout.feature +6 -0
  462. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/gherkin_67.feature +12 -0
  463. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/gherkin_68.feature +4 -0
  464. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/half_manual.feature +11 -0
  465. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/lib/eatting_machine.rb +18 -0
  466. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/lib/pantry.rb +20 -0
  467. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/scenario_outline.feature +95 -0
  468. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/step_definitons/246_steps.rb +3 -0
  469. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/step_definitons/248_steps.rb +15 -0
  470. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/step_definitons/around_timeout_steps.rb +9 -0
  471. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/step_definitons/half_manual_steps.rb +11 -0
  472. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/step_definitons/scenario_outline_steps.rb +42 -0
  473. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/step_definitons/tickets_steps.rb +88 -0
  474. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/table_diffing.feature +13 -0
  475. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/tickets.feature +28 -0
  476. data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features.html +138 -0
  477. data/bundler/ruby/1.8/gems/cucumber-0.9.4/gem_tasks/contributors.rake +15 -0
  478. data/bundler/ruby/1.8/gems/cucumber-0.9.4/gem_tasks/environment.rake +7 -0
  479. data/bundler/ruby/1.8/gems/cucumber-0.9.4/gem_tasks/examples.rake +11 -0
  480. data/bundler/ruby/1.8/gems/cucumber-0.9.4/gem_tasks/features.rake +14 -0
  481. data/bundler/ruby/1.8/gems/cucumber-0.9.4/gem_tasks/fix_cr_lf.rake +10 -0
  482. data/bundler/ruby/1.8/gems/cucumber-0.9.4/gem_tasks/flog.rake +4 -0
  483. data/bundler/ruby/1.8/gems/cucumber-0.9.4/gem_tasks/rspec.rake +8 -0
  484. data/bundler/ruby/1.8/gems/cucumber-0.9.4/gem_tasks/sass.rake +4 -0
  485. data/bundler/ruby/1.8/gems/cucumber-0.9.4/gem_tasks/sdoc.rake +12 -0
  486. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/README.rdoc +12 -0
  487. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/autotest/cucumber.rb +6 -0
  488. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/autotest/cucumber_mixin.rb +135 -0
  489. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/autotest/cucumber_rails.rb +6 -0
  490. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/autotest/cucumber_rails_rspec.rb +6 -0
  491. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/autotest/cucumber_rails_rspec2.rb +6 -0
  492. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/autotest/cucumber_rspec.rb +6 -0
  493. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/autotest/cucumber_rspec2.rb +6 -0
  494. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/autotest/discover.rb +9 -0
  495. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/background.rb +99 -0
  496. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/comment.rb +31 -0
  497. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/examples.rb +38 -0
  498. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/feature.rb +98 -0
  499. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/feature_element.rb +73 -0
  500. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/features.rb +35 -0
  501. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/outline_table.rb +187 -0
  502. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/py_string.rb +80 -0
  503. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/scenario.rb +117 -0
  504. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/scenario_outline.rb +117 -0
  505. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/step.rb +121 -0
  506. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/step_collection.rb +76 -0
  507. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/step_invocation.rb +195 -0
  508. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/table.rb +688 -0
  509. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/tags.rb +28 -0
  510. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/tree_walker.rb +222 -0
  511. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/visitor.rb +11 -0
  512. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast.rb +30 -0
  513. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/broadcaster.rb +13 -0
  514. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/cli/configuration.rb +209 -0
  515. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/cli/drb_client.rb +43 -0
  516. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/cli/main.rb +83 -0
  517. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/cli/options.rb +407 -0
  518. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/cli/profile_loader.rb +91 -0
  519. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/configuration.rb +49 -0
  520. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/constantize.rb +34 -0
  521. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/core_ext/disable_mini_unit_autorun.rb +14 -0
  522. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/core_ext/instance_exec.rb +98 -0
  523. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/core_ext/proc.rb +34 -0
  524. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/core_ext/string.rb +9 -0
  525. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/errors.rb +40 -0
  526. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/feature_file.rb +62 -0
  527. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/ansicolor.rb +162 -0
  528. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/color_io.rb +23 -0
  529. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/console.rb +177 -0
  530. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/cucumber.css +275 -0
  531. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/cucumber.sass +271 -0
  532. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/debug.rb +33 -0
  533. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/duration.rb +13 -0
  534. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/html.rb +644 -0
  535. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/io.rb +33 -0
  536. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/jquery-min.js +154 -0
  537. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/json.rb +166 -0
  538. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/json_pretty.rb +14 -0
  539. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/junit.rb +150 -0
  540. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/ordered_xml_markup.rb +24 -0
  541. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/pdf.rb +244 -0
  542. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/pretty.rb +237 -0
  543. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/progress.rb +92 -0
  544. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/rerun.rb +55 -0
  545. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/stepdefs.rb +14 -0
  546. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/steps.rb +49 -0
  547. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/summary.rb +35 -0
  548. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/tag_cloud.rb +35 -0
  549. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/unicode.rb +58 -0
  550. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/usage.rb +127 -0
  551. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/js_support/js_dsl.js +57 -0
  552. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/js_support/js_language.rb +185 -0
  553. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/js_support/js_snippets.rb +27 -0
  554. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/language_support/language_methods.rb +129 -0
  555. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/language_support.rb +30 -0
  556. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/parser/gherkin_builder.rb +124 -0
  557. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/parser.rb +2 -0
  558. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/platform.rb +29 -0
  559. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/py_support/py_dsl.py +10 -0
  560. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/py_support/py_language.py +10 -0
  561. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/py_support/py_language.rb +84 -0
  562. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/rake/task.rb +170 -0
  563. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/rb_support/rb_dsl.rb +112 -0
  564. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/rb_support/rb_hook.rb +18 -0
  565. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/rb_support/rb_language.rb +195 -0
  566. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/rb_support/rb_step_definition.rb +82 -0
  567. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/rb_support/rb_transform.rb +37 -0
  568. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/rb_support/rb_world.rb +95 -0
  569. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/rb_support/regexp_argument_matcher.rb +21 -0
  570. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/rspec/disable_option_parser.rb +23 -0
  571. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/rspec/doubles.rb +16 -0
  572. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/runtime/features_loader.rb +62 -0
  573. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/runtime/for_programming_languages.rb +65 -0
  574. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/runtime/results.rb +64 -0
  575. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/runtime/support_code.rb +203 -0
  576. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/runtime/user_interface.rb +80 -0
  577. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/runtime.rb +145 -0
  578. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/step_argument.rb +9 -0
  579. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/step_definition_light.rb +20 -0
  580. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/step_definitions.rb +14 -0
  581. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/step_match.rb +111 -0
  582. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/step_mother.rb +10 -0
  583. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/wire_support/configuration.rb +30 -0
  584. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/wire_support/connection.rb +55 -0
  585. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/wire_support/request_handler.rb +32 -0
  586. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/wire_support/wire_exception.rb +32 -0
  587. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/wire_support/wire_language.rb +54 -0
  588. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/wire_support/wire_packet.rb +32 -0
  589. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/wire_support/wire_protocol/requests.rb +123 -0
  590. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/wire_support/wire_protocol.rb +44 -0
  591. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/wire_support/wire_step_definition.rb +26 -0
  592. data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber.rb +27 -0
  593. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/ast/background_spec.rb +110 -0
  594. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/ast/feature_factory.rb +60 -0
  595. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/ast/feature_spec.rb +63 -0
  596. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/ast/outline_table_spec.rb +21 -0
  597. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/ast/py_string_spec.rb +40 -0
  598. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/ast/scenario_outline_spec.rb +65 -0
  599. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/ast/scenario_spec.rb +43 -0
  600. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/ast/step_spec.rb +66 -0
  601. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/ast/table_spec.rb +465 -0
  602. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/ast/tree_walker_spec.rb +11 -0
  603. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/broadcaster_spec.rb +15 -0
  604. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/cli/configuration_spec.rb +431 -0
  605. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/cli/drb_client_spec.rb +77 -0
  606. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/cli/main_spec.rb +134 -0
  607. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/cli/options_spec.rb +351 -0
  608. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/cli/profile_loader_spec.rb +35 -0
  609. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/configuration_spec.rb +23 -0
  610. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/core_ext/proc_spec.rb +68 -0
  611. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/formatter/ansicolor_spec.rb +31 -0
  612. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/formatter/color_io_spec.rb +29 -0
  613. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/formatter/duration_spec.rb +22 -0
  614. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/formatter/html_spec.rb +258 -0
  615. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/formatter/junit_spec.rb +111 -0
  616. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/formatter/progress_spec.rb +38 -0
  617. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/formatter/spec_helper.rb +51 -0
  618. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/rb_support/rb_language_spec.rb +283 -0
  619. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/rb_support/rb_step_definition_spec.rb +99 -0
  620. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/rb_support/regexp_argument_matcher_spec.rb +18 -0
  621. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/runtime/support_code_spec.rb +112 -0
  622. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/runtime_spec.rb +41 -0
  623. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/sell_cucumbers.feature +19 -0
  624. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/step_match_spec.rb +69 -0
  625. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/wire_support/configuration_spec.rb +51 -0
  626. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/wire_support/connection_spec.rb +46 -0
  627. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/wire_support/wire_exception_spec.rb +44 -0
  628. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/wire_support/wire_language_spec.rb +47 -0
  629. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/wire_support/wire_packet_spec.rb +40 -0
  630. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/wire_support/wire_step_definition_spec.rb +20 -0
  631. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/world/pending_spec.rb +46 -0
  632. data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/spec_helper.rb +10 -0
  633. data/bundler/ruby/1.8/gems/gherkin-2.2.9/.gitattributes +2 -0
  634. data/bundler/ruby/1.8/gems/gherkin-2.2.9/.gitignore +11 -0
  635. data/bundler/ruby/1.8/gems/gherkin-2.2.9/.mailmap +2 -0
  636. data/bundler/ruby/1.8/gems/gherkin-2.2.9/.rspec +1 -0
  637. data/bundler/ruby/1.8/gems/gherkin-2.2.9/.rvmrc +1 -0
  638. data/bundler/ruby/1.8/gems/gherkin-2.2.9/Gemfile +5 -0
  639. data/bundler/ruby/1.8/gems/gherkin-2.2.9/History.txt +327 -0
  640. data/bundler/ruby/1.8/gems/gherkin-2.2.9/LICENSE +20 -0
  641. data/bundler/ruby/1.8/gems/gherkin-2.2.9/README.rdoc +59 -0
  642. data/bundler/ruby/1.8/gems/gherkin-2.2.9/Rakefile +16 -0
  643. data/bundler/ruby/1.8/gems/gherkin-2.2.9/VERSION +1 -0
  644. data/bundler/ruby/1.8/gems/gherkin-2.2.9/build_native_gems.sh +8 -0
  645. data/bundler/ruby/1.8/gems/gherkin-2.2.9/cucumber.yml +3 -0
  646. data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/escaped_pipes.feature +8 -0
  647. data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/feature_parser.feature +237 -0
  648. data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/json_formatter.feature +278 -0
  649. data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/json_parser.feature +318 -0
  650. data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/native_lexer.feature +19 -0
  651. data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/parser_with_native_lexer.feature +205 -0
  652. data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/pretty_formatter.feature +15 -0
  653. data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/step_definitions/eyeball_steps.rb +3 -0
  654. data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/step_definitions/gherkin_steps.rb +29 -0
  655. data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/step_definitions/json_formatter_steps.rb +28 -0
  656. data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/step_definitions/json_parser_steps.rb +22 -0
  657. data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/step_definitions/pretty_formatter_steps.rb +84 -0
  658. data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/steps_parser.feature +46 -0
  659. data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/support/env.rb +39 -0
  660. data/bundler/ruby/1.8/gems/gherkin-2.2.9/gherkin.gemspec +58 -0
  661. data/bundler/ruby/1.8/gems/gherkin-2.2.9/ikvm/.gitignore +3 -0
  662. data/bundler/ruby/1.8/gems/gherkin-2.2.9/java/.gitignore +5 -0
  663. data/bundler/ruby/1.8/gems/gherkin-2.2.9/java/src/main/java/gherkin/lexer/i18n/.gitignore +1 -0
  664. data/bundler/ruby/1.8/gems/gherkin-2.2.9/java/src/main/resources/gherkin/.gitignore +1 -0
  665. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/.gitignore +4 -0
  666. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/c_lexer.rb +17 -0
  667. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/argument.rb +15 -0
  668. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/colors.rb +116 -0
  669. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/escaping.rb +15 -0
  670. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/filter_formatter.rb +136 -0
  671. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/json_formatter.rb +72 -0
  672. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/line_filter.rb +26 -0
  673. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/model.rb +239 -0
  674. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/pretty_formatter.rb +217 -0
  675. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/regexp_filter.rb +21 -0
  676. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/step_printer.rb +17 -0
  677. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/tag_count_formatter.rb +47 -0
  678. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/tag_filter.rb +19 -0
  679. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/i18n.rb +180 -0
  680. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/i18n.yml +601 -0
  681. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/json_parser.rb +88 -0
  682. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/lexer/i18n_lexer.rb +47 -0
  683. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/listener/event.rb +45 -0
  684. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/listener/formatter_listener.rb +113 -0
  685. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/native/ikvm.rb +55 -0
  686. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/native/java.rb +55 -0
  687. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/native/null.rb +9 -0
  688. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/native.rb +7 -0
  689. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/parser/meta.txt +5 -0
  690. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/parser/parser.rb +164 -0
  691. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/parser/root.txt +11 -0
  692. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/parser/steps.txt +4 -0
  693. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/rb_lexer/.gitignore +1 -0
  694. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/rb_lexer/README.rdoc +8 -0
  695. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/rb_lexer.rb +8 -0
  696. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/rubify.rb +24 -0
  697. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/tag_expression.rb +62 -0
  698. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/version.rb +3 -0
  699. data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin.rb +2 -0
  700. data/bundler/ruby/1.8/gems/gherkin-2.2.9/ragel/i18n/.gitignore +1 -0
  701. data/bundler/ruby/1.8/gems/gherkin-2.2.9/ragel/lexer.c.rl.erb +459 -0
  702. data/bundler/ruby/1.8/gems/gherkin-2.2.9/ragel/lexer.java.rl.erb +224 -0
  703. data/bundler/ruby/1.8/gems/gherkin-2.2.9/ragel/lexer.rb.rl.erb +179 -0
  704. data/bundler/ruby/1.8/gems/gherkin-2.2.9/ragel/lexer_common.rl.erb +50 -0
  705. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/c_lexer_spec.rb +21 -0
  706. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/1.feature +8 -0
  707. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/comments_in_table.feature +9 -0
  708. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/complex.feature +45 -0
  709. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/complex.json +143 -0
  710. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/complex_for_filtering.feature +60 -0
  711. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/complex_with_tags.feature +61 -0
  712. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/dos_line_endings.feature +45 -0
  713. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/hantu_pisang.feature +35 -0
  714. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/i18n_fr.feature +14 -0
  715. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/i18n_no.feature +7 -0
  716. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/i18n_zh-CN.feature +9 -0
  717. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/scenario_outline_with_tags.feature +13 -0
  718. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/scenario_without_steps.feature +5 -0
  719. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/simple_with_comments.feature +7 -0
  720. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/simple_with_tags.feature +11 -0
  721. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/with_bom.feature +3 -0
  722. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/formatter/colors_spec.rb +18 -0
  723. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/formatter/filter_formatter_spec.rb +167 -0
  724. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/formatter/model_spec.rb +15 -0
  725. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/formatter/pretty_formatter_spec.rb +147 -0
  726. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/formatter/spaces.feature +9 -0
  727. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/formatter/step_printer_spec.rb +55 -0
  728. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/formatter/tabs.feature +9 -0
  729. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/formatter/tag_count_formatter_spec.rb +30 -0
  730. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/i18n_spec.rb +153 -0
  731. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/java_lexer_spec.rb +20 -0
  732. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/java_libs.rb +13 -0
  733. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/json.rb +5 -0
  734. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/json_parser_spec.rb +67 -0
  735. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/lexer/i18n_lexer_spec.rb +43 -0
  736. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/output_stream_string_io.rb +20 -0
  737. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/parser/parser_spec.rb +16 -0
  738. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/rb_lexer_spec.rb +19 -0
  739. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/sexp_recorder.rb +56 -0
  740. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/shared/lexer_group.rb +592 -0
  741. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/shared/py_string_group.rb +153 -0
  742. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/shared/row_group.rb +120 -0
  743. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/shared/tags_group.rb +54 -0
  744. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/tag_expression_spec.rb +137 -0
  745. data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/spec_helper.rb +69 -0
  746. data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/bench/feature_builder.rb +49 -0
  747. data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/bench/generated/.gitignore +1 -0
  748. data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/bench/null_listener.rb +4 -0
  749. data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/bench.rake +184 -0
  750. data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/compile.rake +102 -0
  751. data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/cucumber.rake +18 -0
  752. data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/gems.rake +42 -0
  753. data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/ikvm.rake +54 -0
  754. data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/ragel_task.rb +70 -0
  755. data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/rdoc.rake +9 -0
  756. data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/release.rake +30 -0
  757. data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/rspec.rake +8 -0
  758. data/bundler/ruby/1.8/gems/json-1.4.6/.require_paths +4 -0
  759. data/bundler/ruby/1.8/gems/json-1.4.6/CHANGES +179 -0
  760. data/bundler/ruby/1.8/gems/json-1.4.6/COPYING +58 -0
  761. data/bundler/ruby/1.8/gems/json-1.4.6/GPL +340 -0
  762. data/bundler/ruby/1.8/gems/json-1.4.6/README +356 -0
  763. data/bundler/ruby/1.8/gems/json-1.4.6/Rakefile +292 -0
  764. data/bundler/ruby/1.8/gems/json-1.4.6/TODO +1 -0
  765. data/bundler/ruby/1.8/gems/json-1.4.6/VERSION +1 -0
  766. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkComparison.log +52 -0
  767. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast-autocorrelation.dat +1000 -0
  768. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat +1001 -0
  769. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty-autocorrelation.dat +900 -0
  770. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty.dat +901 -0
  771. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe-autocorrelation.dat +1000 -0
  772. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat +1001 -0
  773. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt.log +261 -0
  774. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast-autocorrelation.dat +1000 -0
  775. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast.dat +1001 -0
  776. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat +1000 -0
  777. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat +1001 -0
  778. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat +1000 -0
  779. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat +1001 -0
  780. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure.log +262 -0
  781. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat +1000 -0
  782. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat +1001 -0
  783. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails.log +82 -0
  784. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkComparison.log +34 -0
  785. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat +900 -0
  786. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser.dat +901 -0
  787. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt.log +81 -0
  788. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat +1000 -0
  789. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat +1001 -0
  790. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure.log +82 -0
  791. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat +1000 -0
  792. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat +1001 -0
  793. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails.log +82 -0
  794. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser-autocorrelation.dat +1000 -0
  795. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat +1001 -0
  796. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML.log +82 -0
  797. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/generator2_benchmark.rb +222 -0
  798. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/generator_benchmark.rb +224 -0
  799. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/ohai.json +1216 -0
  800. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/ohai.ruby +1 -0
  801. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/parser2_benchmark.rb +251 -0
  802. data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/parser_benchmark.rb +259 -0
  803. data/bundler/ruby/1.8/gems/json-1.4.6/bin/edit_json.rb +9 -0
  804. data/bundler/ruby/1.8/gems/json-1.4.6/bin/prettify_json.rb +75 -0
  805. data/bundler/ruby/1.8/gems/json-1.4.6/data/example.json +1 -0
  806. data/bundler/ruby/1.8/gems/json-1.4.6/data/index.html +38 -0
  807. data/bundler/ruby/1.8/gems/json-1.4.6/data/prototype.js +4184 -0
  808. data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/generator/Makefile +157 -0
  809. data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/generator/extconf.rb +20 -0
  810. data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/generator/generator.bundle +0 -0
  811. data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/generator/generator.c +1417 -0
  812. data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/generator/generator.h +197 -0
  813. data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/generator/generator.o +0 -0
  814. data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/generator/mkmf.log +10 -0
  815. data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/json/ext/generator.bundle +0 -0
  816. data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/json/ext/parser.bundle +0 -0
  817. data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/parser/Makefile +157 -0
  818. data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/parser/extconf.rb +15 -0
  819. data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/parser/mkmf.log +10 -0
  820. data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/parser/parser.bundle +0 -0
  821. data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/parser/parser.c +1935 -0
  822. data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/parser/parser.h +71 -0
  823. data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/parser/parser.o +0 -0
  824. data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/parser/parser.rl +792 -0
  825. data/bundler/ruby/1.8/gems/json-1.4.6/install.rb +26 -0
  826. data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/Array.xpm +21 -0
  827. data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/FalseClass.xpm +21 -0
  828. data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/Hash.xpm +21 -0
  829. data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/Key.xpm +73 -0
  830. data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/NilClass.xpm +21 -0
  831. data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/Numeric.xpm +28 -0
  832. data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/String.xpm +96 -0
  833. data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/TrueClass.xpm +21 -0
  834. data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/add/core.rb +148 -0
  835. data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/add/rails.rb +58 -0
  836. data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/common.rb +391 -0
  837. data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/editor.rb +1371 -0
  838. data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/ext.rb +15 -0
  839. data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/json.xpm +1499 -0
  840. data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/pure/generator.rb +439 -0
  841. data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/pure/parser.rb +309 -0
  842. data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/pure.rb +77 -0
  843. data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/version.rb +8 -0
  844. data/bundler/ruby/1.8/gems/json-1.4.6/lib/json.rb +10 -0
  845. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail1.json +1 -0
  846. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail10.json +1 -0
  847. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail11.json +1 -0
  848. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail12.json +1 -0
  849. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail13.json +1 -0
  850. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail14.json +1 -0
  851. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail18.json +1 -0
  852. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail19.json +1 -0
  853. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail2.json +1 -0
  854. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail20.json +1 -0
  855. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail21.json +1 -0
  856. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail22.json +1 -0
  857. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail23.json +1 -0
  858. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail24.json +1 -0
  859. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail25.json +1 -0
  860. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail27.json +2 -0
  861. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail28.json +2 -0
  862. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail3.json +1 -0
  863. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail4.json +1 -0
  864. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail5.json +1 -0
  865. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail6.json +1 -0
  866. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail7.json +1 -0
  867. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail8.json +1 -0
  868. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail9.json +1 -0
  869. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/pass1.json +56 -0
  870. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/pass15.json +1 -0
  871. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/pass16.json +1 -0
  872. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/pass17.json +1 -0
  873. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/pass2.json +1 -0
  874. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/pass26.json +1 -0
  875. data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/pass3.json +6 -0
  876. data/bundler/ruby/1.8/gems/json-1.4.6/tests/test_json.rb +394 -0
  877. data/bundler/ruby/1.8/gems/json-1.4.6/tests/test_json_addition.rb +162 -0
  878. data/bundler/ruby/1.8/gems/json-1.4.6/tests/test_json_encoding.rb +68 -0
  879. data/bundler/ruby/1.8/gems/json-1.4.6/tests/test_json_fixtures.rb +34 -0
  880. data/bundler/ruby/1.8/gems/json-1.4.6/tests/test_json_generate.rb +181 -0
  881. data/bundler/ruby/1.8/gems/json-1.4.6/tests/test_json_rails.rb +144 -0
  882. data/bundler/ruby/1.8/gems/json-1.4.6/tests/test_json_unicode.rb +76 -0
  883. data/bundler/ruby/1.8/gems/json-1.4.6/tools/fuzz.rb +139 -0
  884. data/bundler/ruby/1.8/gems/json-1.4.6/tools/server.rb +61 -0
  885. data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/CHANGES +28 -0
  886. data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/COPYING +340 -0
  887. data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/README +137 -0
  888. data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/Rakefile +88 -0
  889. data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/VERSION +1 -0
  890. data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/bin/cdiff +19 -0
  891. data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/bin/decolor +12 -0
  892. data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/examples/example.rb +90 -0
  893. data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/install.rb +15 -0
  894. data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/lib/term/ansicolor/version.rb +10 -0
  895. data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/lib/term/ansicolor.rb +102 -0
  896. data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/tests/ansicolor_test.rb +66 -0
  897. data/bundler/ruby/1.8/specifications/aruba-0.2.6.gemspec +39 -0
  898. data/bundler/ruby/1.8/specifications/autotest-4.4.5.gemspec +28 -0
  899. data/bundler/ruby/1.8/specifications/background_process-1.2.gemspec +31 -0
  900. data/bundler/ruby/1.8/specifications/builder-2.1.2.gemspec +33 -0
  901. data/bundler/ruby/1.8/specifications/cucumber-0.9.4.gemspec +78 -0
  902. data/bundler/ruby/1.8/specifications/gherkin-2.2.9.gemspec +53 -0
  903. data/bundler/ruby/1.8/specifications/json-1.4.6.gemspec +34 -0
  904. data/bundler/ruby/1.8/specifications/term-ansicolor-1.0.5.gemspec +32 -0
  905. data/cucumber.yml +6 -0
  906. data/features/init.feature +31 -0
  907. data/features/install.feature +25 -0
  908. data/features/list.feature +6 -0
  909. data/features/step_definitions/command_steps.rb +9 -0
  910. data/features/step_definitions/environment_steps.rb +31 -0
  911. data/features/step_definitions/file_check_steps.rb +16 -0
  912. data/features/step_definitions/message_steps.rb +28 -0
  913. data/features/step_definitions/plugin_steps.rb +4 -0
  914. data/features/support/env.rb +20 -0
  915. data/features/support/hook.rb +8 -0
  916. data/features/support/stubs.rb +0 -0
  917. data/features/uninstall.feature +13 -0
  918. data/lib/vim-jar/cli.rb +1 -25
  919. data/lib/vim-jar/config.rb +65 -11
  920. data/lib/vim-jar/pathogen/pathogen_v1.2.vim +139 -0
  921. data/lib/vim-jar/plugin.rb +2 -0
  922. data/lib/vim-jar/plugins.yml +5 -0
  923. data/lib/vim-jar/version.rb +1 -1
  924. data/spec/vim-jar/config_spec.rb +33 -4
  925. data/vim-jar.gemspec +4 -0
  926. metadata +972 -5
@@ -0,0 +1,1935 @@
1
+
2
+ #line 1 "parser.rl"
3
+ #include "parser.h"
4
+
5
+ /* unicode */
6
+
7
+ static const char digit_values[256] = {
8
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
9
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
10
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -1,
11
+ -1, -1, -1, -1, -1, -1, 10, 11, 12, 13, 14, 15, -1, -1, -1, -1, -1, -1, -1,
12
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
13
+ 10, 11, 12, 13, 14, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
14
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
15
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
16
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
17
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
18
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
19
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
20
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
21
+ -1, -1, -1, -1, -1, -1, -1
22
+ };
23
+
24
+ static UTF32 unescape_unicode(const unsigned char *p)
25
+ {
26
+ char b;
27
+ UTF32 result = 0;
28
+ b = digit_values[p[0]];
29
+ if (b < 0) return UNI_REPLACEMENT_CHAR;
30
+ result = (result << 4) | b;
31
+ b = digit_values[p[1]];
32
+ result = (result << 4) | b;
33
+ if (b < 0) return UNI_REPLACEMENT_CHAR;
34
+ b = digit_values[p[2]];
35
+ result = (result << 4) | b;
36
+ if (b < 0) return UNI_REPLACEMENT_CHAR;
37
+ b = digit_values[p[3]];
38
+ result = (result << 4) | b;
39
+ if (b < 0) return UNI_REPLACEMENT_CHAR;
40
+ return result;
41
+ }
42
+
43
+ static int convert_UTF32_to_UTF8(char *buf, UTF32 ch)
44
+ {
45
+ int len = 1;
46
+ if (ch <= 0x7F) {
47
+ buf[0] = (char) ch;
48
+ } else if (ch <= 0x07FF) {
49
+ buf[0] = (char) ((ch >> 6) | 0xC0);
50
+ buf[1] = (char) ((ch & 0x3F) | 0x80);
51
+ len++;
52
+ } else if (ch <= 0xFFFF) {
53
+ buf[0] = (char) ((ch >> 12) | 0xE0);
54
+ buf[1] = (char) (((ch >> 6) & 0x3F) | 0x80);
55
+ buf[2] = (char) ((ch & 0x3F) | 0x80);
56
+ len += 2;
57
+ } else if (ch <= 0x1fffff) {
58
+ buf[0] =(char) ((ch >> 18) | 0xF0);
59
+ buf[1] =(char) (((ch >> 12) & 0x3F) | 0x80);
60
+ buf[2] =(char) (((ch >> 6) & 0x3F) | 0x80);
61
+ buf[3] =(char) ((ch & 0x3F) | 0x80);
62
+ len += 3;
63
+ } else {
64
+ buf[0] = '?';
65
+ }
66
+ return len;
67
+ }
68
+
69
+ #ifdef HAVE_RUBY_ENCODING_H
70
+ static VALUE CEncoding_ASCII_8BIT, CEncoding_UTF_8, CEncoding_UTF_16BE,
71
+ CEncoding_UTF_16LE, CEncoding_UTF_32BE, CEncoding_UTF_32LE;
72
+ static ID i_encoding, i_encode, i_encode_bang, i_force_encoding;
73
+ #else
74
+ static ID i_iconv;
75
+ #endif
76
+
77
+ static VALUE mJSON, mExt, cParser, eParserError, eNestingError;
78
+ static VALUE CNaN, CInfinity, CMinusInfinity;
79
+
80
+ static ID i_json_creatable_p, i_json_create, i_create_id, i_create_additions,
81
+ i_chr, i_max_nesting, i_allow_nan, i_symbolize_names, i_object_class,
82
+ i_array_class, i_key_p, i_deep_const_get;
83
+
84
+
85
+ #line 108 "parser.rl"
86
+
87
+
88
+
89
+ #line 90 "parser.c"
90
+ static const int JSON_object_start = 1;
91
+ static const int JSON_object_first_final = 27;
92
+ static const int JSON_object_error = 0;
93
+
94
+ static const int JSON_object_en_main = 1;
95
+
96
+
97
+ #line 143 "parser.rl"
98
+
99
+
100
+ static char *JSON_parse_object(JSON_Parser *json, char *p, char *pe, VALUE *result)
101
+ {
102
+ int cs = EVIL;
103
+ VALUE last_name = Qnil;
104
+ VALUE object_class = json->object_class;
105
+
106
+ if (json->max_nesting && json->current_nesting > json->max_nesting) {
107
+ rb_raise(eNestingError, "nesting of %d is too deep", json->current_nesting);
108
+ }
109
+
110
+ *result = NIL_P(object_class) ? rb_hash_new() : rb_class_new_instance(0, 0, object_class);
111
+
112
+
113
+ #line 114 "parser.c"
114
+ {
115
+ cs = JSON_object_start;
116
+ }
117
+
118
+ #line 158 "parser.rl"
119
+
120
+ #line 121 "parser.c"
121
+ {
122
+ if ( p == pe )
123
+ goto _test_eof;
124
+ switch ( cs )
125
+ {
126
+ case 1:
127
+ if ( (*p) == 123 )
128
+ goto st2;
129
+ goto st0;
130
+ st0:
131
+ cs = 0;
132
+ goto _out;
133
+ st2:
134
+ if ( ++p == pe )
135
+ goto _test_eof2;
136
+ case 2:
137
+ switch( (*p) ) {
138
+ case 13: goto st2;
139
+ case 32: goto st2;
140
+ case 34: goto tr2;
141
+ case 47: goto st23;
142
+ case 125: goto tr4;
143
+ }
144
+ if ( 9 <= (*p) && (*p) <= 10 )
145
+ goto st2;
146
+ goto st0;
147
+ tr2:
148
+ #line 127 "parser.rl"
149
+ {
150
+ char *np;
151
+ json->parsing_name = 1;
152
+ np = JSON_parse_string(json, p, pe, &last_name);
153
+ json->parsing_name = 0;
154
+ if (np == NULL) { p--; {p++; cs = 3; goto _out;} } else {p = (( np))-1;}
155
+ }
156
+ goto st3;
157
+ st3:
158
+ if ( ++p == pe )
159
+ goto _test_eof3;
160
+ case 3:
161
+ #line 161 "parser.c"
162
+ switch( (*p) ) {
163
+ case 13: goto st3;
164
+ case 32: goto st3;
165
+ case 47: goto st4;
166
+ case 58: goto st8;
167
+ }
168
+ if ( 9 <= (*p) && (*p) <= 10 )
169
+ goto st3;
170
+ goto st0;
171
+ st4:
172
+ if ( ++p == pe )
173
+ goto _test_eof4;
174
+ case 4:
175
+ switch( (*p) ) {
176
+ case 42: goto st5;
177
+ case 47: goto st7;
178
+ }
179
+ goto st0;
180
+ st5:
181
+ if ( ++p == pe )
182
+ goto _test_eof5;
183
+ case 5:
184
+ if ( (*p) == 42 )
185
+ goto st6;
186
+ goto st5;
187
+ st6:
188
+ if ( ++p == pe )
189
+ goto _test_eof6;
190
+ case 6:
191
+ switch( (*p) ) {
192
+ case 42: goto st6;
193
+ case 47: goto st3;
194
+ }
195
+ goto st5;
196
+ st7:
197
+ if ( ++p == pe )
198
+ goto _test_eof7;
199
+ case 7:
200
+ if ( (*p) == 10 )
201
+ goto st3;
202
+ goto st7;
203
+ st8:
204
+ if ( ++p == pe )
205
+ goto _test_eof8;
206
+ case 8:
207
+ switch( (*p) ) {
208
+ case 13: goto st8;
209
+ case 32: goto st8;
210
+ case 34: goto tr11;
211
+ case 45: goto tr11;
212
+ case 47: goto st19;
213
+ case 73: goto tr11;
214
+ case 78: goto tr11;
215
+ case 91: goto tr11;
216
+ case 102: goto tr11;
217
+ case 110: goto tr11;
218
+ case 116: goto tr11;
219
+ case 123: goto tr11;
220
+ }
221
+ if ( (*p) > 10 ) {
222
+ if ( 48 <= (*p) && (*p) <= 57 )
223
+ goto tr11;
224
+ } else if ( (*p) >= 9 )
225
+ goto st8;
226
+ goto st0;
227
+ tr11:
228
+ #line 116 "parser.rl"
229
+ {
230
+ VALUE v = Qnil;
231
+ char *np = JSON_parse_value(json, p, pe, &v);
232
+ if (np == NULL) {
233
+ p--; {p++; cs = 9; goto _out;}
234
+ } else {
235
+ rb_hash_aset(*result, last_name, v);
236
+ {p = (( np))-1;}
237
+ }
238
+ }
239
+ goto st9;
240
+ st9:
241
+ if ( ++p == pe )
242
+ goto _test_eof9;
243
+ case 9:
244
+ #line 244 "parser.c"
245
+ switch( (*p) ) {
246
+ case 13: goto st9;
247
+ case 32: goto st9;
248
+ case 44: goto st10;
249
+ case 47: goto st15;
250
+ case 125: goto tr4;
251
+ }
252
+ if ( 9 <= (*p) && (*p) <= 10 )
253
+ goto st9;
254
+ goto st0;
255
+ st10:
256
+ if ( ++p == pe )
257
+ goto _test_eof10;
258
+ case 10:
259
+ switch( (*p) ) {
260
+ case 13: goto st10;
261
+ case 32: goto st10;
262
+ case 34: goto tr2;
263
+ case 47: goto st11;
264
+ }
265
+ if ( 9 <= (*p) && (*p) <= 10 )
266
+ goto st10;
267
+ goto st0;
268
+ st11:
269
+ if ( ++p == pe )
270
+ goto _test_eof11;
271
+ case 11:
272
+ switch( (*p) ) {
273
+ case 42: goto st12;
274
+ case 47: goto st14;
275
+ }
276
+ goto st0;
277
+ st12:
278
+ if ( ++p == pe )
279
+ goto _test_eof12;
280
+ case 12:
281
+ if ( (*p) == 42 )
282
+ goto st13;
283
+ goto st12;
284
+ st13:
285
+ if ( ++p == pe )
286
+ goto _test_eof13;
287
+ case 13:
288
+ switch( (*p) ) {
289
+ case 42: goto st13;
290
+ case 47: goto st10;
291
+ }
292
+ goto st12;
293
+ st14:
294
+ if ( ++p == pe )
295
+ goto _test_eof14;
296
+ case 14:
297
+ if ( (*p) == 10 )
298
+ goto st10;
299
+ goto st14;
300
+ st15:
301
+ if ( ++p == pe )
302
+ goto _test_eof15;
303
+ case 15:
304
+ switch( (*p) ) {
305
+ case 42: goto st16;
306
+ case 47: goto st18;
307
+ }
308
+ goto st0;
309
+ st16:
310
+ if ( ++p == pe )
311
+ goto _test_eof16;
312
+ case 16:
313
+ if ( (*p) == 42 )
314
+ goto st17;
315
+ goto st16;
316
+ st17:
317
+ if ( ++p == pe )
318
+ goto _test_eof17;
319
+ case 17:
320
+ switch( (*p) ) {
321
+ case 42: goto st17;
322
+ case 47: goto st9;
323
+ }
324
+ goto st16;
325
+ st18:
326
+ if ( ++p == pe )
327
+ goto _test_eof18;
328
+ case 18:
329
+ if ( (*p) == 10 )
330
+ goto st9;
331
+ goto st18;
332
+ tr4:
333
+ #line 134 "parser.rl"
334
+ { p--; {p++; cs = 27; goto _out;} }
335
+ goto st27;
336
+ st27:
337
+ if ( ++p == pe )
338
+ goto _test_eof27;
339
+ case 27:
340
+ #line 340 "parser.c"
341
+ goto st0;
342
+ st19:
343
+ if ( ++p == pe )
344
+ goto _test_eof19;
345
+ case 19:
346
+ switch( (*p) ) {
347
+ case 42: goto st20;
348
+ case 47: goto st22;
349
+ }
350
+ goto st0;
351
+ st20:
352
+ if ( ++p == pe )
353
+ goto _test_eof20;
354
+ case 20:
355
+ if ( (*p) == 42 )
356
+ goto st21;
357
+ goto st20;
358
+ st21:
359
+ if ( ++p == pe )
360
+ goto _test_eof21;
361
+ case 21:
362
+ switch( (*p) ) {
363
+ case 42: goto st21;
364
+ case 47: goto st8;
365
+ }
366
+ goto st20;
367
+ st22:
368
+ if ( ++p == pe )
369
+ goto _test_eof22;
370
+ case 22:
371
+ if ( (*p) == 10 )
372
+ goto st8;
373
+ goto st22;
374
+ st23:
375
+ if ( ++p == pe )
376
+ goto _test_eof23;
377
+ case 23:
378
+ switch( (*p) ) {
379
+ case 42: goto st24;
380
+ case 47: goto st26;
381
+ }
382
+ goto st0;
383
+ st24:
384
+ if ( ++p == pe )
385
+ goto _test_eof24;
386
+ case 24:
387
+ if ( (*p) == 42 )
388
+ goto st25;
389
+ goto st24;
390
+ st25:
391
+ if ( ++p == pe )
392
+ goto _test_eof25;
393
+ case 25:
394
+ switch( (*p) ) {
395
+ case 42: goto st25;
396
+ case 47: goto st2;
397
+ }
398
+ goto st24;
399
+ st26:
400
+ if ( ++p == pe )
401
+ goto _test_eof26;
402
+ case 26:
403
+ if ( (*p) == 10 )
404
+ goto st2;
405
+ goto st26;
406
+ }
407
+ _test_eof2: cs = 2; goto _test_eof;
408
+ _test_eof3: cs = 3; goto _test_eof;
409
+ _test_eof4: cs = 4; goto _test_eof;
410
+ _test_eof5: cs = 5; goto _test_eof;
411
+ _test_eof6: cs = 6; goto _test_eof;
412
+ _test_eof7: cs = 7; goto _test_eof;
413
+ _test_eof8: cs = 8; goto _test_eof;
414
+ _test_eof9: cs = 9; goto _test_eof;
415
+ _test_eof10: cs = 10; goto _test_eof;
416
+ _test_eof11: cs = 11; goto _test_eof;
417
+ _test_eof12: cs = 12; goto _test_eof;
418
+ _test_eof13: cs = 13; goto _test_eof;
419
+ _test_eof14: cs = 14; goto _test_eof;
420
+ _test_eof15: cs = 15; goto _test_eof;
421
+ _test_eof16: cs = 16; goto _test_eof;
422
+ _test_eof17: cs = 17; goto _test_eof;
423
+ _test_eof18: cs = 18; goto _test_eof;
424
+ _test_eof27: cs = 27; goto _test_eof;
425
+ _test_eof19: cs = 19; goto _test_eof;
426
+ _test_eof20: cs = 20; goto _test_eof;
427
+ _test_eof21: cs = 21; goto _test_eof;
428
+ _test_eof22: cs = 22; goto _test_eof;
429
+ _test_eof23: cs = 23; goto _test_eof;
430
+ _test_eof24: cs = 24; goto _test_eof;
431
+ _test_eof25: cs = 25; goto _test_eof;
432
+ _test_eof26: cs = 26; goto _test_eof;
433
+
434
+ _test_eof: {}
435
+ _out: {}
436
+ }
437
+
438
+ #line 159 "parser.rl"
439
+
440
+ if (cs >= JSON_object_first_final) {
441
+ if (RTEST(json->create_id)) {
442
+ VALUE klassname = rb_hash_aref(*result, json->create_id);
443
+ if (!NIL_P(klassname)) {
444
+ VALUE klass = rb_funcall(mJSON, i_deep_const_get, 1, klassname);
445
+ if RTEST(rb_funcall(klass, i_json_creatable_p, 0)) {
446
+ *result = rb_funcall(klass, i_json_create, 1, *result);
447
+ }
448
+ }
449
+ }
450
+ return p + 1;
451
+ } else {
452
+ return NULL;
453
+ }
454
+ }
455
+
456
+
457
+ #line 457 "parser.c"
458
+ static const int JSON_value_start = 1;
459
+ static const int JSON_value_first_final = 21;
460
+ static const int JSON_value_error = 0;
461
+
462
+ static const int JSON_value_en_main = 1;
463
+
464
+
465
+ #line 257 "parser.rl"
466
+
467
+
468
+ static char *JSON_parse_value(JSON_Parser *json, char *p, char *pe, VALUE *result)
469
+ {
470
+ int cs = EVIL;
471
+
472
+
473
+ #line 473 "parser.c"
474
+ {
475
+ cs = JSON_value_start;
476
+ }
477
+
478
+ #line 264 "parser.rl"
479
+
480
+ #line 480 "parser.c"
481
+ {
482
+ if ( p == pe )
483
+ goto _test_eof;
484
+ switch ( cs )
485
+ {
486
+ case 1:
487
+ switch( (*p) ) {
488
+ case 34: goto tr0;
489
+ case 45: goto tr2;
490
+ case 73: goto st2;
491
+ case 78: goto st9;
492
+ case 91: goto tr5;
493
+ case 102: goto st11;
494
+ case 110: goto st15;
495
+ case 116: goto st18;
496
+ case 123: goto tr9;
497
+ }
498
+ if ( 48 <= (*p) && (*p) <= 57 )
499
+ goto tr2;
500
+ goto st0;
501
+ st0:
502
+ cs = 0;
503
+ goto _out;
504
+ tr0:
505
+ #line 205 "parser.rl"
506
+ {
507
+ char *np = JSON_parse_string(json, p, pe, result);
508
+ if (np == NULL) { p--; {p++; cs = 21; goto _out;} } else {p = (( np))-1;}
509
+ }
510
+ goto st21;
511
+ tr2:
512
+ #line 210 "parser.rl"
513
+ {
514
+ char *np;
515
+ if(pe > p + 9 && !strncmp(MinusInfinity, p, 9)) {
516
+ if (json->allow_nan) {
517
+ *result = CMinusInfinity;
518
+ {p = (( p + 10))-1;}
519
+ p--; {p++; cs = 21; goto _out;}
520
+ } else {
521
+ rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p);
522
+ }
523
+ }
524
+ np = JSON_parse_float(json, p, pe, result);
525
+ if (np != NULL) {p = (( np))-1;}
526
+ np = JSON_parse_integer(json, p, pe, result);
527
+ if (np != NULL) {p = (( np))-1;}
528
+ p--; {p++; cs = 21; goto _out;}
529
+ }
530
+ goto st21;
531
+ tr5:
532
+ #line 228 "parser.rl"
533
+ {
534
+ char *np;
535
+ json->current_nesting++;
536
+ np = JSON_parse_array(json, p, pe, result);
537
+ json->current_nesting--;
538
+ if (np == NULL) { p--; {p++; cs = 21; goto _out;} } else {p = (( np))-1;}
539
+ }
540
+ goto st21;
541
+ tr9:
542
+ #line 236 "parser.rl"
543
+ {
544
+ char *np;
545
+ json->current_nesting++;
546
+ np = JSON_parse_object(json, p, pe, result);
547
+ json->current_nesting--;
548
+ if (np == NULL) { p--; {p++; cs = 21; goto _out;} } else {p = (( np))-1;}
549
+ }
550
+ goto st21;
551
+ tr16:
552
+ #line 198 "parser.rl"
553
+ {
554
+ if (json->allow_nan) {
555
+ *result = CInfinity;
556
+ } else {
557
+ rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p - 8);
558
+ }
559
+ }
560
+ goto st21;
561
+ tr18:
562
+ #line 191 "parser.rl"
563
+ {
564
+ if (json->allow_nan) {
565
+ *result = CNaN;
566
+ } else {
567
+ rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p - 2);
568
+ }
569
+ }
570
+ goto st21;
571
+ tr22:
572
+ #line 185 "parser.rl"
573
+ {
574
+ *result = Qfalse;
575
+ }
576
+ goto st21;
577
+ tr25:
578
+ #line 182 "parser.rl"
579
+ {
580
+ *result = Qnil;
581
+ }
582
+ goto st21;
583
+ tr28:
584
+ #line 188 "parser.rl"
585
+ {
586
+ *result = Qtrue;
587
+ }
588
+ goto st21;
589
+ st21:
590
+ if ( ++p == pe )
591
+ goto _test_eof21;
592
+ case 21:
593
+ #line 244 "parser.rl"
594
+ { p--; {p++; cs = 21; goto _out;} }
595
+ #line 595 "parser.c"
596
+ goto st0;
597
+ st2:
598
+ if ( ++p == pe )
599
+ goto _test_eof2;
600
+ case 2:
601
+ if ( (*p) == 110 )
602
+ goto st3;
603
+ goto st0;
604
+ st3:
605
+ if ( ++p == pe )
606
+ goto _test_eof3;
607
+ case 3:
608
+ if ( (*p) == 102 )
609
+ goto st4;
610
+ goto st0;
611
+ st4:
612
+ if ( ++p == pe )
613
+ goto _test_eof4;
614
+ case 4:
615
+ if ( (*p) == 105 )
616
+ goto st5;
617
+ goto st0;
618
+ st5:
619
+ if ( ++p == pe )
620
+ goto _test_eof5;
621
+ case 5:
622
+ if ( (*p) == 110 )
623
+ goto st6;
624
+ goto st0;
625
+ st6:
626
+ if ( ++p == pe )
627
+ goto _test_eof6;
628
+ case 6:
629
+ if ( (*p) == 105 )
630
+ goto st7;
631
+ goto st0;
632
+ st7:
633
+ if ( ++p == pe )
634
+ goto _test_eof7;
635
+ case 7:
636
+ if ( (*p) == 116 )
637
+ goto st8;
638
+ goto st0;
639
+ st8:
640
+ if ( ++p == pe )
641
+ goto _test_eof8;
642
+ case 8:
643
+ if ( (*p) == 121 )
644
+ goto tr16;
645
+ goto st0;
646
+ st9:
647
+ if ( ++p == pe )
648
+ goto _test_eof9;
649
+ case 9:
650
+ if ( (*p) == 97 )
651
+ goto st10;
652
+ goto st0;
653
+ st10:
654
+ if ( ++p == pe )
655
+ goto _test_eof10;
656
+ case 10:
657
+ if ( (*p) == 78 )
658
+ goto tr18;
659
+ goto st0;
660
+ st11:
661
+ if ( ++p == pe )
662
+ goto _test_eof11;
663
+ case 11:
664
+ if ( (*p) == 97 )
665
+ goto st12;
666
+ goto st0;
667
+ st12:
668
+ if ( ++p == pe )
669
+ goto _test_eof12;
670
+ case 12:
671
+ if ( (*p) == 108 )
672
+ goto st13;
673
+ goto st0;
674
+ st13:
675
+ if ( ++p == pe )
676
+ goto _test_eof13;
677
+ case 13:
678
+ if ( (*p) == 115 )
679
+ goto st14;
680
+ goto st0;
681
+ st14:
682
+ if ( ++p == pe )
683
+ goto _test_eof14;
684
+ case 14:
685
+ if ( (*p) == 101 )
686
+ goto tr22;
687
+ goto st0;
688
+ st15:
689
+ if ( ++p == pe )
690
+ goto _test_eof15;
691
+ case 15:
692
+ if ( (*p) == 117 )
693
+ goto st16;
694
+ goto st0;
695
+ st16:
696
+ if ( ++p == pe )
697
+ goto _test_eof16;
698
+ case 16:
699
+ if ( (*p) == 108 )
700
+ goto st17;
701
+ goto st0;
702
+ st17:
703
+ if ( ++p == pe )
704
+ goto _test_eof17;
705
+ case 17:
706
+ if ( (*p) == 108 )
707
+ goto tr25;
708
+ goto st0;
709
+ st18:
710
+ if ( ++p == pe )
711
+ goto _test_eof18;
712
+ case 18:
713
+ if ( (*p) == 114 )
714
+ goto st19;
715
+ goto st0;
716
+ st19:
717
+ if ( ++p == pe )
718
+ goto _test_eof19;
719
+ case 19:
720
+ if ( (*p) == 117 )
721
+ goto st20;
722
+ goto st0;
723
+ st20:
724
+ if ( ++p == pe )
725
+ goto _test_eof20;
726
+ case 20:
727
+ if ( (*p) == 101 )
728
+ goto tr28;
729
+ goto st0;
730
+ }
731
+ _test_eof21: cs = 21; goto _test_eof;
732
+ _test_eof2: cs = 2; goto _test_eof;
733
+ _test_eof3: cs = 3; goto _test_eof;
734
+ _test_eof4: cs = 4; goto _test_eof;
735
+ _test_eof5: cs = 5; goto _test_eof;
736
+ _test_eof6: cs = 6; goto _test_eof;
737
+ _test_eof7: cs = 7; goto _test_eof;
738
+ _test_eof8: cs = 8; goto _test_eof;
739
+ _test_eof9: cs = 9; goto _test_eof;
740
+ _test_eof10: cs = 10; goto _test_eof;
741
+ _test_eof11: cs = 11; goto _test_eof;
742
+ _test_eof12: cs = 12; goto _test_eof;
743
+ _test_eof13: cs = 13; goto _test_eof;
744
+ _test_eof14: cs = 14; goto _test_eof;
745
+ _test_eof15: cs = 15; goto _test_eof;
746
+ _test_eof16: cs = 16; goto _test_eof;
747
+ _test_eof17: cs = 17; goto _test_eof;
748
+ _test_eof18: cs = 18; goto _test_eof;
749
+ _test_eof19: cs = 19; goto _test_eof;
750
+ _test_eof20: cs = 20; goto _test_eof;
751
+
752
+ _test_eof: {}
753
+ _out: {}
754
+ }
755
+
756
+ #line 265 "parser.rl"
757
+
758
+ if (cs >= JSON_value_first_final) {
759
+ return p;
760
+ } else {
761
+ return NULL;
762
+ }
763
+ }
764
+
765
+
766
+ #line 766 "parser.c"
767
+ static const int JSON_integer_start = 1;
768
+ static const int JSON_integer_first_final = 5;
769
+ static const int JSON_integer_error = 0;
770
+
771
+ static const int JSON_integer_en_main = 1;
772
+
773
+
774
+ #line 281 "parser.rl"
775
+
776
+
777
+ static char *JSON_parse_integer(JSON_Parser *json, char *p, char *pe, VALUE *result)
778
+ {
779
+ int cs = EVIL;
780
+
781
+
782
+ #line 782 "parser.c"
783
+ {
784
+ cs = JSON_integer_start;
785
+ }
786
+
787
+ #line 288 "parser.rl"
788
+ json->memo = p;
789
+
790
+ #line 790 "parser.c"
791
+ {
792
+ if ( p == pe )
793
+ goto _test_eof;
794
+ switch ( cs )
795
+ {
796
+ case 1:
797
+ switch( (*p) ) {
798
+ case 45: goto st2;
799
+ case 48: goto st3;
800
+ }
801
+ if ( 49 <= (*p) && (*p) <= 57 )
802
+ goto st4;
803
+ goto st0;
804
+ st0:
805
+ cs = 0;
806
+ goto _out;
807
+ st2:
808
+ if ( ++p == pe )
809
+ goto _test_eof2;
810
+ case 2:
811
+ if ( (*p) == 48 )
812
+ goto st3;
813
+ if ( 49 <= (*p) && (*p) <= 57 )
814
+ goto st4;
815
+ goto st0;
816
+ st3:
817
+ if ( ++p == pe )
818
+ goto _test_eof3;
819
+ case 3:
820
+ if ( 48 <= (*p) && (*p) <= 57 )
821
+ goto st0;
822
+ goto tr4;
823
+ tr4:
824
+ #line 278 "parser.rl"
825
+ { p--; {p++; cs = 5; goto _out;} }
826
+ goto st5;
827
+ st5:
828
+ if ( ++p == pe )
829
+ goto _test_eof5;
830
+ case 5:
831
+ #line 831 "parser.c"
832
+ goto st0;
833
+ st4:
834
+ if ( ++p == pe )
835
+ goto _test_eof4;
836
+ case 4:
837
+ if ( 48 <= (*p) && (*p) <= 57 )
838
+ goto st4;
839
+ goto tr4;
840
+ }
841
+ _test_eof2: cs = 2; goto _test_eof;
842
+ _test_eof3: cs = 3; goto _test_eof;
843
+ _test_eof5: cs = 5; goto _test_eof;
844
+ _test_eof4: cs = 4; goto _test_eof;
845
+
846
+ _test_eof: {}
847
+ _out: {}
848
+ }
849
+
850
+ #line 290 "parser.rl"
851
+
852
+ if (cs >= JSON_integer_first_final) {
853
+ long len = p - json->memo;
854
+ *result = rb_Integer(rb_str_new(json->memo, len));
855
+ return p + 1;
856
+ } else {
857
+ return NULL;
858
+ }
859
+ }
860
+
861
+
862
+ #line 862 "parser.c"
863
+ static const int JSON_float_start = 1;
864
+ static const int JSON_float_first_final = 10;
865
+ static const int JSON_float_error = 0;
866
+
867
+ static const int JSON_float_en_main = 1;
868
+
869
+
870
+ #line 312 "parser.rl"
871
+
872
+
873
+ static char *JSON_parse_float(JSON_Parser *json, char *p, char *pe, VALUE *result)
874
+ {
875
+ int cs = EVIL;
876
+
877
+
878
+ #line 878 "parser.c"
879
+ {
880
+ cs = JSON_float_start;
881
+ }
882
+
883
+ #line 319 "parser.rl"
884
+ json->memo = p;
885
+
886
+ #line 886 "parser.c"
887
+ {
888
+ if ( p == pe )
889
+ goto _test_eof;
890
+ switch ( cs )
891
+ {
892
+ case 1:
893
+ switch( (*p) ) {
894
+ case 45: goto st2;
895
+ case 48: goto st3;
896
+ }
897
+ if ( 49 <= (*p) && (*p) <= 57 )
898
+ goto st9;
899
+ goto st0;
900
+ st0:
901
+ cs = 0;
902
+ goto _out;
903
+ st2:
904
+ if ( ++p == pe )
905
+ goto _test_eof2;
906
+ case 2:
907
+ if ( (*p) == 48 )
908
+ goto st3;
909
+ if ( 49 <= (*p) && (*p) <= 57 )
910
+ goto st9;
911
+ goto st0;
912
+ st3:
913
+ if ( ++p == pe )
914
+ goto _test_eof3;
915
+ case 3:
916
+ switch( (*p) ) {
917
+ case 46: goto st4;
918
+ case 69: goto st6;
919
+ case 101: goto st6;
920
+ }
921
+ goto st0;
922
+ st4:
923
+ if ( ++p == pe )
924
+ goto _test_eof4;
925
+ case 4:
926
+ if ( 48 <= (*p) && (*p) <= 57 )
927
+ goto st5;
928
+ goto st0;
929
+ st5:
930
+ if ( ++p == pe )
931
+ goto _test_eof5;
932
+ case 5:
933
+ switch( (*p) ) {
934
+ case 69: goto st6;
935
+ case 101: goto st6;
936
+ }
937
+ if ( (*p) > 46 ) {
938
+ if ( 48 <= (*p) && (*p) <= 57 )
939
+ goto st5;
940
+ } else if ( (*p) >= 45 )
941
+ goto st0;
942
+ goto tr7;
943
+ tr7:
944
+ #line 306 "parser.rl"
945
+ { p--; {p++; cs = 10; goto _out;} }
946
+ goto st10;
947
+ st10:
948
+ if ( ++p == pe )
949
+ goto _test_eof10;
950
+ case 10:
951
+ #line 951 "parser.c"
952
+ goto st0;
953
+ st6:
954
+ if ( ++p == pe )
955
+ goto _test_eof6;
956
+ case 6:
957
+ switch( (*p) ) {
958
+ case 43: goto st7;
959
+ case 45: goto st7;
960
+ }
961
+ if ( 48 <= (*p) && (*p) <= 57 )
962
+ goto st8;
963
+ goto st0;
964
+ st7:
965
+ if ( ++p == pe )
966
+ goto _test_eof7;
967
+ case 7:
968
+ if ( 48 <= (*p) && (*p) <= 57 )
969
+ goto st8;
970
+ goto st0;
971
+ st8:
972
+ if ( ++p == pe )
973
+ goto _test_eof8;
974
+ case 8:
975
+ switch( (*p) ) {
976
+ case 69: goto st0;
977
+ case 101: goto st0;
978
+ }
979
+ if ( (*p) > 46 ) {
980
+ if ( 48 <= (*p) && (*p) <= 57 )
981
+ goto st8;
982
+ } else if ( (*p) >= 45 )
983
+ goto st0;
984
+ goto tr7;
985
+ st9:
986
+ if ( ++p == pe )
987
+ goto _test_eof9;
988
+ case 9:
989
+ switch( (*p) ) {
990
+ case 46: goto st4;
991
+ case 69: goto st6;
992
+ case 101: goto st6;
993
+ }
994
+ if ( 48 <= (*p) && (*p) <= 57 )
995
+ goto st9;
996
+ goto st0;
997
+ }
998
+ _test_eof2: cs = 2; goto _test_eof;
999
+ _test_eof3: cs = 3; goto _test_eof;
1000
+ _test_eof4: cs = 4; goto _test_eof;
1001
+ _test_eof5: cs = 5; goto _test_eof;
1002
+ _test_eof10: cs = 10; goto _test_eof;
1003
+ _test_eof6: cs = 6; goto _test_eof;
1004
+ _test_eof7: cs = 7; goto _test_eof;
1005
+ _test_eof8: cs = 8; goto _test_eof;
1006
+ _test_eof9: cs = 9; goto _test_eof;
1007
+
1008
+ _test_eof: {}
1009
+ _out: {}
1010
+ }
1011
+
1012
+ #line 321 "parser.rl"
1013
+
1014
+ if (cs >= JSON_float_first_final) {
1015
+ long len = p - json->memo;
1016
+ *result = rb_Float(rb_str_new(json->memo, len));
1017
+ return p + 1;
1018
+ } else {
1019
+ return NULL;
1020
+ }
1021
+ }
1022
+
1023
+
1024
+
1025
+ #line 1025 "parser.c"
1026
+ static const int JSON_array_start = 1;
1027
+ static const int JSON_array_first_final = 17;
1028
+ static const int JSON_array_error = 0;
1029
+
1030
+ static const int JSON_array_en_main = 1;
1031
+
1032
+
1033
+ #line 357 "parser.rl"
1034
+
1035
+
1036
+ static char *JSON_parse_array(JSON_Parser *json, char *p, char *pe, VALUE *result)
1037
+ {
1038
+ int cs = EVIL;
1039
+ VALUE array_class = json->array_class;
1040
+
1041
+ if (json->max_nesting && json->current_nesting > json->max_nesting) {
1042
+ rb_raise(eNestingError, "nesting of %d is too deep", json->current_nesting);
1043
+ }
1044
+ *result = NIL_P(array_class) ? rb_ary_new() : rb_class_new_instance(0, 0, array_class);
1045
+
1046
+
1047
+ #line 1047 "parser.c"
1048
+ {
1049
+ cs = JSON_array_start;
1050
+ }
1051
+
1052
+ #line 370 "parser.rl"
1053
+
1054
+ #line 1054 "parser.c"
1055
+ {
1056
+ if ( p == pe )
1057
+ goto _test_eof;
1058
+ switch ( cs )
1059
+ {
1060
+ case 1:
1061
+ if ( (*p) == 91 )
1062
+ goto st2;
1063
+ goto st0;
1064
+ st0:
1065
+ cs = 0;
1066
+ goto _out;
1067
+ st2:
1068
+ if ( ++p == pe )
1069
+ goto _test_eof2;
1070
+ case 2:
1071
+ switch( (*p) ) {
1072
+ case 13: goto st2;
1073
+ case 32: goto st2;
1074
+ case 34: goto tr2;
1075
+ case 45: goto tr2;
1076
+ case 47: goto st13;
1077
+ case 73: goto tr2;
1078
+ case 78: goto tr2;
1079
+ case 91: goto tr2;
1080
+ case 93: goto tr4;
1081
+ case 102: goto tr2;
1082
+ case 110: goto tr2;
1083
+ case 116: goto tr2;
1084
+ case 123: goto tr2;
1085
+ }
1086
+ if ( (*p) > 10 ) {
1087
+ if ( 48 <= (*p) && (*p) <= 57 )
1088
+ goto tr2;
1089
+ } else if ( (*p) >= 9 )
1090
+ goto st2;
1091
+ goto st0;
1092
+ tr2:
1093
+ #line 338 "parser.rl"
1094
+ {
1095
+ VALUE v = Qnil;
1096
+ char *np = JSON_parse_value(json, p, pe, &v);
1097
+ if (np == NULL) {
1098
+ p--; {p++; cs = 3; goto _out;}
1099
+ } else {
1100
+ rb_ary_push(*result, v);
1101
+ {p = (( np))-1;}
1102
+ }
1103
+ }
1104
+ goto st3;
1105
+ st3:
1106
+ if ( ++p == pe )
1107
+ goto _test_eof3;
1108
+ case 3:
1109
+ #line 1109 "parser.c"
1110
+ switch( (*p) ) {
1111
+ case 13: goto st3;
1112
+ case 32: goto st3;
1113
+ case 44: goto st4;
1114
+ case 47: goto st9;
1115
+ case 93: goto tr4;
1116
+ }
1117
+ if ( 9 <= (*p) && (*p) <= 10 )
1118
+ goto st3;
1119
+ goto st0;
1120
+ st4:
1121
+ if ( ++p == pe )
1122
+ goto _test_eof4;
1123
+ case 4:
1124
+ switch( (*p) ) {
1125
+ case 13: goto st4;
1126
+ case 32: goto st4;
1127
+ case 34: goto tr2;
1128
+ case 45: goto tr2;
1129
+ case 47: goto st5;
1130
+ case 73: goto tr2;
1131
+ case 78: goto tr2;
1132
+ case 91: goto tr2;
1133
+ case 102: goto tr2;
1134
+ case 110: goto tr2;
1135
+ case 116: goto tr2;
1136
+ case 123: goto tr2;
1137
+ }
1138
+ if ( (*p) > 10 ) {
1139
+ if ( 48 <= (*p) && (*p) <= 57 )
1140
+ goto tr2;
1141
+ } else if ( (*p) >= 9 )
1142
+ goto st4;
1143
+ goto st0;
1144
+ st5:
1145
+ if ( ++p == pe )
1146
+ goto _test_eof5;
1147
+ case 5:
1148
+ switch( (*p) ) {
1149
+ case 42: goto st6;
1150
+ case 47: goto st8;
1151
+ }
1152
+ goto st0;
1153
+ st6:
1154
+ if ( ++p == pe )
1155
+ goto _test_eof6;
1156
+ case 6:
1157
+ if ( (*p) == 42 )
1158
+ goto st7;
1159
+ goto st6;
1160
+ st7:
1161
+ if ( ++p == pe )
1162
+ goto _test_eof7;
1163
+ case 7:
1164
+ switch( (*p) ) {
1165
+ case 42: goto st7;
1166
+ case 47: goto st4;
1167
+ }
1168
+ goto st6;
1169
+ st8:
1170
+ if ( ++p == pe )
1171
+ goto _test_eof8;
1172
+ case 8:
1173
+ if ( (*p) == 10 )
1174
+ goto st4;
1175
+ goto st8;
1176
+ st9:
1177
+ if ( ++p == pe )
1178
+ goto _test_eof9;
1179
+ case 9:
1180
+ switch( (*p) ) {
1181
+ case 42: goto st10;
1182
+ case 47: goto st12;
1183
+ }
1184
+ goto st0;
1185
+ st10:
1186
+ if ( ++p == pe )
1187
+ goto _test_eof10;
1188
+ case 10:
1189
+ if ( (*p) == 42 )
1190
+ goto st11;
1191
+ goto st10;
1192
+ st11:
1193
+ if ( ++p == pe )
1194
+ goto _test_eof11;
1195
+ case 11:
1196
+ switch( (*p) ) {
1197
+ case 42: goto st11;
1198
+ case 47: goto st3;
1199
+ }
1200
+ goto st10;
1201
+ st12:
1202
+ if ( ++p == pe )
1203
+ goto _test_eof12;
1204
+ case 12:
1205
+ if ( (*p) == 10 )
1206
+ goto st3;
1207
+ goto st12;
1208
+ tr4:
1209
+ #line 349 "parser.rl"
1210
+ { p--; {p++; cs = 17; goto _out;} }
1211
+ goto st17;
1212
+ st17:
1213
+ if ( ++p == pe )
1214
+ goto _test_eof17;
1215
+ case 17:
1216
+ #line 1216 "parser.c"
1217
+ goto st0;
1218
+ st13:
1219
+ if ( ++p == pe )
1220
+ goto _test_eof13;
1221
+ case 13:
1222
+ switch( (*p) ) {
1223
+ case 42: goto st14;
1224
+ case 47: goto st16;
1225
+ }
1226
+ goto st0;
1227
+ st14:
1228
+ if ( ++p == pe )
1229
+ goto _test_eof14;
1230
+ case 14:
1231
+ if ( (*p) == 42 )
1232
+ goto st15;
1233
+ goto st14;
1234
+ st15:
1235
+ if ( ++p == pe )
1236
+ goto _test_eof15;
1237
+ case 15:
1238
+ switch( (*p) ) {
1239
+ case 42: goto st15;
1240
+ case 47: goto st2;
1241
+ }
1242
+ goto st14;
1243
+ st16:
1244
+ if ( ++p == pe )
1245
+ goto _test_eof16;
1246
+ case 16:
1247
+ if ( (*p) == 10 )
1248
+ goto st2;
1249
+ goto st16;
1250
+ }
1251
+ _test_eof2: cs = 2; goto _test_eof;
1252
+ _test_eof3: cs = 3; goto _test_eof;
1253
+ _test_eof4: cs = 4; goto _test_eof;
1254
+ _test_eof5: cs = 5; goto _test_eof;
1255
+ _test_eof6: cs = 6; goto _test_eof;
1256
+ _test_eof7: cs = 7; goto _test_eof;
1257
+ _test_eof8: cs = 8; goto _test_eof;
1258
+ _test_eof9: cs = 9; goto _test_eof;
1259
+ _test_eof10: cs = 10; goto _test_eof;
1260
+ _test_eof11: cs = 11; goto _test_eof;
1261
+ _test_eof12: cs = 12; goto _test_eof;
1262
+ _test_eof17: cs = 17; goto _test_eof;
1263
+ _test_eof13: cs = 13; goto _test_eof;
1264
+ _test_eof14: cs = 14; goto _test_eof;
1265
+ _test_eof15: cs = 15; goto _test_eof;
1266
+ _test_eof16: cs = 16; goto _test_eof;
1267
+
1268
+ _test_eof: {}
1269
+ _out: {}
1270
+ }
1271
+
1272
+ #line 371 "parser.rl"
1273
+
1274
+ if(cs >= JSON_array_first_final) {
1275
+ return p + 1;
1276
+ } else {
1277
+ rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p);
1278
+ return NULL;
1279
+ }
1280
+ }
1281
+
1282
+ static VALUE json_string_unescape(VALUE result, char *string, char *stringEnd)
1283
+ {
1284
+ char *p = string, *pe = string, *unescape;
1285
+ int unescape_len;
1286
+
1287
+ while (pe < stringEnd) {
1288
+ if (*pe == '\\') {
1289
+ unescape = (char *) "?";
1290
+ unescape_len = 1;
1291
+ if (pe > p) rb_str_buf_cat(result, p, pe - p);
1292
+ switch (*++pe) {
1293
+ case 'n':
1294
+ unescape = (char *) "\n";
1295
+ break;
1296
+ case 'r':
1297
+ unescape = (char *) "\r";
1298
+ break;
1299
+ case 't':
1300
+ unescape = (char *) "\t";
1301
+ break;
1302
+ case '"':
1303
+ unescape = (char *) "\"";
1304
+ break;
1305
+ case '\\':
1306
+ unescape = (char *) "\\";
1307
+ break;
1308
+ case 'b':
1309
+ unescape = (char *) "\b";
1310
+ break;
1311
+ case 'f':
1312
+ unescape = (char *) "\f";
1313
+ break;
1314
+ case 'u':
1315
+ if (pe > stringEnd - 4) {
1316
+ return Qnil;
1317
+ } else {
1318
+ char buf[4];
1319
+ UTF32 ch = unescape_unicode((unsigned char *) ++pe);
1320
+ pe += 3;
1321
+ if (UNI_SUR_HIGH_START == (ch & 0xFC00)) {
1322
+ pe++;
1323
+ if (pe > stringEnd - 6) return Qnil;
1324
+ if (pe[0] == '\\' && pe[1] == 'u') {
1325
+ UTF32 sur = unescape_unicode((unsigned char *) pe + 2);
1326
+ ch = (((ch & 0x3F) << 10) | ((((ch >> 6) & 0xF) + 1) << 16)
1327
+ | (sur & 0x3FF));
1328
+ pe += 5;
1329
+ } else {
1330
+ unescape = (char *) "?";
1331
+ break;
1332
+ }
1333
+ }
1334
+ unescape_len = convert_UTF32_to_UTF8(buf, ch);
1335
+ unescape = buf;
1336
+ }
1337
+ break;
1338
+ default:
1339
+ p = pe;
1340
+ continue;
1341
+ }
1342
+ rb_str_buf_cat(result, unescape, unescape_len);
1343
+ p = ++pe;
1344
+ } else {
1345
+ pe++;
1346
+ }
1347
+ }
1348
+ rb_str_buf_cat(result, p, pe - p);
1349
+ return result;
1350
+ }
1351
+
1352
+
1353
+ #line 1353 "parser.c"
1354
+ static const int JSON_string_start = 1;
1355
+ static const int JSON_string_first_final = 8;
1356
+ static const int JSON_string_error = 0;
1357
+
1358
+ static const int JSON_string_en_main = 1;
1359
+
1360
+
1361
+ #line 470 "parser.rl"
1362
+
1363
+
1364
+ static char *JSON_parse_string(JSON_Parser *json, char *p, char *pe, VALUE *result)
1365
+ {
1366
+ int cs = EVIL;
1367
+
1368
+ *result = rb_str_buf_new(0);
1369
+
1370
+ #line 1370 "parser.c"
1371
+ {
1372
+ cs = JSON_string_start;
1373
+ }
1374
+
1375
+ #line 478 "parser.rl"
1376
+ json->memo = p;
1377
+
1378
+ #line 1378 "parser.c"
1379
+ {
1380
+ if ( p == pe )
1381
+ goto _test_eof;
1382
+ switch ( cs )
1383
+ {
1384
+ case 1:
1385
+ if ( (*p) == 34 )
1386
+ goto st2;
1387
+ goto st0;
1388
+ st0:
1389
+ cs = 0;
1390
+ goto _out;
1391
+ st2:
1392
+ if ( ++p == pe )
1393
+ goto _test_eof2;
1394
+ case 2:
1395
+ switch( (*p) ) {
1396
+ case 34: goto tr2;
1397
+ case 92: goto st3;
1398
+ }
1399
+ if ( 0 <= (*p) && (*p) <= 31 )
1400
+ goto st0;
1401
+ goto st2;
1402
+ tr2:
1403
+ #line 456 "parser.rl"
1404
+ {
1405
+ *result = json_string_unescape(*result, json->memo + 1, p);
1406
+ if (NIL_P(*result)) {
1407
+ p--;
1408
+ {p++; cs = 8; goto _out;}
1409
+ } else {
1410
+ FORCE_UTF8(*result);
1411
+ {p = (( p + 1))-1;}
1412
+ }
1413
+ }
1414
+ #line 467 "parser.rl"
1415
+ { p--; {p++; cs = 8; goto _out;} }
1416
+ goto st8;
1417
+ st8:
1418
+ if ( ++p == pe )
1419
+ goto _test_eof8;
1420
+ case 8:
1421
+ #line 1421 "parser.c"
1422
+ goto st0;
1423
+ st3:
1424
+ if ( ++p == pe )
1425
+ goto _test_eof3;
1426
+ case 3:
1427
+ if ( (*p) == 117 )
1428
+ goto st4;
1429
+ if ( 0 <= (*p) && (*p) <= 31 )
1430
+ goto st0;
1431
+ goto st2;
1432
+ st4:
1433
+ if ( ++p == pe )
1434
+ goto _test_eof4;
1435
+ case 4:
1436
+ if ( (*p) < 65 ) {
1437
+ if ( 48 <= (*p) && (*p) <= 57 )
1438
+ goto st5;
1439
+ } else if ( (*p) > 70 ) {
1440
+ if ( 97 <= (*p) && (*p) <= 102 )
1441
+ goto st5;
1442
+ } else
1443
+ goto st5;
1444
+ goto st0;
1445
+ st5:
1446
+ if ( ++p == pe )
1447
+ goto _test_eof5;
1448
+ case 5:
1449
+ if ( (*p) < 65 ) {
1450
+ if ( 48 <= (*p) && (*p) <= 57 )
1451
+ goto st6;
1452
+ } else if ( (*p) > 70 ) {
1453
+ if ( 97 <= (*p) && (*p) <= 102 )
1454
+ goto st6;
1455
+ } else
1456
+ goto st6;
1457
+ goto st0;
1458
+ st6:
1459
+ if ( ++p == pe )
1460
+ goto _test_eof6;
1461
+ case 6:
1462
+ if ( (*p) < 65 ) {
1463
+ if ( 48 <= (*p) && (*p) <= 57 )
1464
+ goto st7;
1465
+ } else if ( (*p) > 70 ) {
1466
+ if ( 97 <= (*p) && (*p) <= 102 )
1467
+ goto st7;
1468
+ } else
1469
+ goto st7;
1470
+ goto st0;
1471
+ st7:
1472
+ if ( ++p == pe )
1473
+ goto _test_eof7;
1474
+ case 7:
1475
+ if ( (*p) < 65 ) {
1476
+ if ( 48 <= (*p) && (*p) <= 57 )
1477
+ goto st2;
1478
+ } else if ( (*p) > 70 ) {
1479
+ if ( 97 <= (*p) && (*p) <= 102 )
1480
+ goto st2;
1481
+ } else
1482
+ goto st2;
1483
+ goto st0;
1484
+ }
1485
+ _test_eof2: cs = 2; goto _test_eof;
1486
+ _test_eof8: cs = 8; goto _test_eof;
1487
+ _test_eof3: cs = 3; goto _test_eof;
1488
+ _test_eof4: cs = 4; goto _test_eof;
1489
+ _test_eof5: cs = 5; goto _test_eof;
1490
+ _test_eof6: cs = 6; goto _test_eof;
1491
+ _test_eof7: cs = 7; goto _test_eof;
1492
+
1493
+ _test_eof: {}
1494
+ _out: {}
1495
+ }
1496
+
1497
+ #line 480 "parser.rl"
1498
+
1499
+ if (json->symbolize_names && json->parsing_name) {
1500
+ *result = rb_str_intern(*result);
1501
+ }
1502
+ if (cs >= JSON_string_first_final) {
1503
+ return p + 1;
1504
+ } else {
1505
+ return NULL;
1506
+ }
1507
+ }
1508
+
1509
+
1510
+
1511
+ #line 1511 "parser.c"
1512
+ static const int JSON_start = 1;
1513
+ static const int JSON_first_final = 10;
1514
+ static const int JSON_error = 0;
1515
+
1516
+ static const int JSON_en_main = 1;
1517
+
1518
+
1519
+ #line 517 "parser.rl"
1520
+
1521
+
1522
+ /*
1523
+ * Document-class: JSON::Ext::Parser
1524
+ *
1525
+ * This is the JSON parser implemented as a C extension. It can be configured
1526
+ * to be used by setting
1527
+ *
1528
+ * JSON.parser = JSON::Ext::Parser
1529
+ *
1530
+ * with the method parser= in JSON.
1531
+ *
1532
+ */
1533
+
1534
+ static VALUE convert_encoding(VALUE source)
1535
+ {
1536
+ char *ptr = RSTRING_PTR(source);
1537
+ long len = RSTRING_LEN(source);
1538
+ if (len < 2) {
1539
+ rb_raise(eParserError, "A JSON text must at least contain two octets!");
1540
+ }
1541
+ #ifdef HAVE_RUBY_ENCODING_H
1542
+ {
1543
+ VALUE encoding = rb_funcall(source, i_encoding, 0);
1544
+ if (encoding == CEncoding_ASCII_8BIT) {
1545
+ if (len >= 4 && ptr[0] == 0 && ptr[1] == 0 && ptr[2] == 0) {
1546
+ source = rb_str_dup(source);
1547
+ rb_funcall(source, i_force_encoding, 1, CEncoding_UTF_32BE);
1548
+ source = rb_funcall(source, i_encode_bang, 1, CEncoding_UTF_8);
1549
+ } else if (len >= 4 && ptr[0] == 0 && ptr[2] == 0) {
1550
+ source = rb_str_dup(source);
1551
+ rb_funcall(source, i_force_encoding, 1, CEncoding_UTF_16BE);
1552
+ source = rb_funcall(source, i_encode_bang, 1, CEncoding_UTF_8);
1553
+ } else if (len >= 4 && ptr[1] == 0 && ptr[2] == 0 && ptr[3] == 0) {
1554
+ source = rb_str_dup(source);
1555
+ rb_funcall(source, i_force_encoding, 1, CEncoding_UTF_32LE);
1556
+ source = rb_funcall(source, i_encode_bang, 1, CEncoding_UTF_8);
1557
+ } else if (len >= 4 && ptr[1] == 0 && ptr[3] == 0) {
1558
+ source = rb_str_dup(source);
1559
+ rb_funcall(source, i_force_encoding, 1, CEncoding_UTF_16LE);
1560
+ source = rb_funcall(source, i_encode_bang, 1, CEncoding_UTF_8);
1561
+ } else {
1562
+ FORCE_UTF8(source);
1563
+ }
1564
+ } else {
1565
+ source = rb_funcall(source, i_encode, 1, CEncoding_UTF_8);
1566
+ }
1567
+ }
1568
+ #else
1569
+ if (len >= 4 && ptr[0] == 0 && ptr[1] == 0 && ptr[2] == 0) {
1570
+ source = rb_funcall(mJSON, i_iconv, 3, rb_str_new2("utf-8"), rb_str_new2("utf-32be"), source);
1571
+ } else if (len >= 4 && ptr[0] == 0 && ptr[2] == 0) {
1572
+ source = rb_funcall(mJSON, i_iconv, 3, rb_str_new2("utf-8"), rb_str_new2("utf-16be"), source);
1573
+ } else if (len >= 4 && ptr[1] == 0 && ptr[2] == 0 && ptr[3] == 0) {
1574
+ source = rb_funcall(mJSON, i_iconv, 3, rb_str_new2("utf-8"), rb_str_new2("utf-32le"), source);
1575
+ } else if (len >= 4 && ptr[1] == 0 && ptr[3] == 0) {
1576
+ source = rb_funcall(mJSON, i_iconv, 3, rb_str_new2("utf-8"), rb_str_new2("utf-16le"), source);
1577
+ }
1578
+ #endif
1579
+ return source;
1580
+ }
1581
+
1582
+ /*
1583
+ * call-seq: new(source, opts => {})
1584
+ *
1585
+ * Creates a new JSON::Ext::Parser instance for the string _source_.
1586
+ *
1587
+ * Creates a new JSON::Ext::Parser instance for the string _source_.
1588
+ *
1589
+ * It will be configured by the _opts_ hash. _opts_ can have the following
1590
+ * keys:
1591
+ *
1592
+ * _opts_ can have the following keys:
1593
+ * * *max_nesting*: The maximum depth of nesting allowed in the parsed data
1594
+ * structures. Disable depth checking with :max_nesting => false|nil|0, it
1595
+ * defaults to 19.
1596
+ * * *allow_nan*: If set to true, allow NaN, Infinity and -Infinity in
1597
+ * defiance of RFC 4627 to be parsed by the Parser. This option defaults to
1598
+ * false.
1599
+ * * *symbolize_names*: If set to true, returns symbols for the names
1600
+ * (keys) in a JSON object. Otherwise strings are returned, which is also
1601
+ * the default.
1602
+ * * *create_additions*: If set to false, the Parser doesn't create
1603
+ * additions even if a matchin class and create_id was found. This option
1604
+ * defaults to true.
1605
+ * * *object_class*: Defaults to Hash
1606
+ * * *array_class*: Defaults to Array
1607
+ */
1608
+ static VALUE cParser_initialize(int argc, VALUE *argv, VALUE self)
1609
+ {
1610
+ char *ptr;
1611
+ long len;
1612
+ VALUE source, opts;
1613
+ GET_PARSER;
1614
+ rb_scan_args(argc, argv, "11", &source, &opts);
1615
+ source = convert_encoding(StringValue(source));
1616
+ ptr = RSTRING_PTR(source);
1617
+ len = RSTRING_LEN(source);
1618
+ if (!NIL_P(opts)) {
1619
+ opts = rb_convert_type(opts, T_HASH, "Hash", "to_hash");
1620
+ if (NIL_P(opts)) {
1621
+ rb_raise(rb_eArgError, "opts needs to be like a hash");
1622
+ } else {
1623
+ VALUE tmp = ID2SYM(i_max_nesting);
1624
+ if (option_given_p(opts, tmp)) {
1625
+ VALUE max_nesting = rb_hash_aref(opts, tmp);
1626
+ if (RTEST(max_nesting)) {
1627
+ Check_Type(max_nesting, T_FIXNUM);
1628
+ json->max_nesting = FIX2INT(max_nesting);
1629
+ } else {
1630
+ json->max_nesting = 0;
1631
+ }
1632
+ } else {
1633
+ json->max_nesting = 19;
1634
+ }
1635
+ tmp = ID2SYM(i_allow_nan);
1636
+ if (option_given_p(opts, tmp)) {
1637
+ VALUE allow_nan = rb_hash_aref(opts, tmp);
1638
+ json->allow_nan = RTEST(allow_nan) ? 1 : 0;
1639
+ } else {
1640
+ json->allow_nan = 0;
1641
+ }
1642
+ tmp = ID2SYM(i_symbolize_names);
1643
+ if (option_given_p(opts, tmp)) {
1644
+ VALUE symbolize_names = rb_hash_aref(opts, tmp);
1645
+ json->symbolize_names = RTEST(symbolize_names) ? 1 : 0;
1646
+ } else {
1647
+ json->symbolize_names = 0;
1648
+ }
1649
+ tmp = ID2SYM(i_create_additions);
1650
+ if (option_given_p(opts, tmp)) {
1651
+ VALUE create_additions = rb_hash_aref(opts, tmp);
1652
+ if (RTEST(create_additions)) {
1653
+ json->create_id = rb_funcall(mJSON, i_create_id, 0);
1654
+ } else {
1655
+ json->create_id = Qnil;
1656
+ }
1657
+ } else {
1658
+ json->create_id = rb_funcall(mJSON, i_create_id, 0);
1659
+ }
1660
+ tmp = ID2SYM(i_object_class);
1661
+ if (option_given_p(opts, tmp)) {
1662
+ json->object_class = rb_hash_aref(opts, tmp);
1663
+ } else {
1664
+ json->object_class = Qnil;
1665
+ }
1666
+ tmp = ID2SYM(i_array_class);
1667
+ if (option_given_p(opts, tmp)) {
1668
+ json->array_class = rb_hash_aref(opts, tmp);
1669
+ } else {
1670
+ json->array_class = Qnil;
1671
+ }
1672
+ }
1673
+ } else {
1674
+ json->max_nesting = 19;
1675
+ json->allow_nan = 0;
1676
+ json->create_id = rb_funcall(mJSON, i_create_id, 0);
1677
+ json->object_class = Qnil;
1678
+ json->array_class = Qnil;
1679
+ }
1680
+ json->current_nesting = 0;
1681
+ json->len = len;
1682
+ json->source = ptr;
1683
+ json->Vsource = source;
1684
+ return self;
1685
+ }
1686
+
1687
+ /*
1688
+ * call-seq: parse()
1689
+ *
1690
+ * Parses the current JSON text _source_ and returns the complete data
1691
+ * structure as a result.
1692
+ */
1693
+ static VALUE cParser_parse(VALUE self)
1694
+ {
1695
+ char *p, *pe;
1696
+ int cs = EVIL;
1697
+ VALUE result = Qnil;
1698
+ GET_PARSER;
1699
+
1700
+
1701
+ #line 1701 "parser.c"
1702
+ {
1703
+ cs = JSON_start;
1704
+ }
1705
+
1706
+ #line 698 "parser.rl"
1707
+ p = json->source;
1708
+ pe = p + json->len;
1709
+
1710
+ #line 1710 "parser.c"
1711
+ {
1712
+ if ( p == pe )
1713
+ goto _test_eof;
1714
+ switch ( cs )
1715
+ {
1716
+ st1:
1717
+ if ( ++p == pe )
1718
+ goto _test_eof1;
1719
+ case 1:
1720
+ switch( (*p) ) {
1721
+ case 13: goto st1;
1722
+ case 32: goto st1;
1723
+ case 47: goto st2;
1724
+ case 91: goto tr3;
1725
+ case 123: goto tr4;
1726
+ }
1727
+ if ( 9 <= (*p) && (*p) <= 10 )
1728
+ goto st1;
1729
+ goto st0;
1730
+ st0:
1731
+ cs = 0;
1732
+ goto _out;
1733
+ st2:
1734
+ if ( ++p == pe )
1735
+ goto _test_eof2;
1736
+ case 2:
1737
+ switch( (*p) ) {
1738
+ case 42: goto st3;
1739
+ case 47: goto st5;
1740
+ }
1741
+ goto st0;
1742
+ st3:
1743
+ if ( ++p == pe )
1744
+ goto _test_eof3;
1745
+ case 3:
1746
+ if ( (*p) == 42 )
1747
+ goto st4;
1748
+ goto st3;
1749
+ st4:
1750
+ if ( ++p == pe )
1751
+ goto _test_eof4;
1752
+ case 4:
1753
+ switch( (*p) ) {
1754
+ case 42: goto st4;
1755
+ case 47: goto st1;
1756
+ }
1757
+ goto st3;
1758
+ st5:
1759
+ if ( ++p == pe )
1760
+ goto _test_eof5;
1761
+ case 5:
1762
+ if ( (*p) == 10 )
1763
+ goto st1;
1764
+ goto st5;
1765
+ tr3:
1766
+ #line 506 "parser.rl"
1767
+ {
1768
+ char *np;
1769
+ json->current_nesting = 1;
1770
+ np = JSON_parse_array(json, p, pe, &result);
1771
+ if (np == NULL) { p--; {p++; cs = 10; goto _out;} } else {p = (( np))-1;}
1772
+ }
1773
+ goto st10;
1774
+ tr4:
1775
+ #line 499 "parser.rl"
1776
+ {
1777
+ char *np;
1778
+ json->current_nesting = 1;
1779
+ np = JSON_parse_object(json, p, pe, &result);
1780
+ if (np == NULL) { p--; {p++; cs = 10; goto _out;} } else {p = (( np))-1;}
1781
+ }
1782
+ goto st10;
1783
+ st10:
1784
+ if ( ++p == pe )
1785
+ goto _test_eof10;
1786
+ case 10:
1787
+ #line 1787 "parser.c"
1788
+ switch( (*p) ) {
1789
+ case 13: goto st10;
1790
+ case 32: goto st10;
1791
+ case 47: goto st6;
1792
+ }
1793
+ if ( 9 <= (*p) && (*p) <= 10 )
1794
+ goto st10;
1795
+ goto st0;
1796
+ st6:
1797
+ if ( ++p == pe )
1798
+ goto _test_eof6;
1799
+ case 6:
1800
+ switch( (*p) ) {
1801
+ case 42: goto st7;
1802
+ case 47: goto st9;
1803
+ }
1804
+ goto st0;
1805
+ st7:
1806
+ if ( ++p == pe )
1807
+ goto _test_eof7;
1808
+ case 7:
1809
+ if ( (*p) == 42 )
1810
+ goto st8;
1811
+ goto st7;
1812
+ st8:
1813
+ if ( ++p == pe )
1814
+ goto _test_eof8;
1815
+ case 8:
1816
+ switch( (*p) ) {
1817
+ case 42: goto st8;
1818
+ case 47: goto st10;
1819
+ }
1820
+ goto st7;
1821
+ st9:
1822
+ if ( ++p == pe )
1823
+ goto _test_eof9;
1824
+ case 9:
1825
+ if ( (*p) == 10 )
1826
+ goto st10;
1827
+ goto st9;
1828
+ }
1829
+ _test_eof1: cs = 1; goto _test_eof;
1830
+ _test_eof2: cs = 2; goto _test_eof;
1831
+ _test_eof3: cs = 3; goto _test_eof;
1832
+ _test_eof4: cs = 4; goto _test_eof;
1833
+ _test_eof5: cs = 5; goto _test_eof;
1834
+ _test_eof10: cs = 10; goto _test_eof;
1835
+ _test_eof6: cs = 6; goto _test_eof;
1836
+ _test_eof7: cs = 7; goto _test_eof;
1837
+ _test_eof8: cs = 8; goto _test_eof;
1838
+ _test_eof9: cs = 9; goto _test_eof;
1839
+
1840
+ _test_eof: {}
1841
+ _out: {}
1842
+ }
1843
+
1844
+ #line 701 "parser.rl"
1845
+
1846
+ if (cs >= JSON_first_final && p == pe) {
1847
+ return result;
1848
+ } else {
1849
+ rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p);
1850
+ return Qnil;
1851
+ }
1852
+ }
1853
+
1854
+ static JSON_Parser *JSON_allocate()
1855
+ {
1856
+ JSON_Parser *json = ALLOC(JSON_Parser);
1857
+ MEMZERO(json, JSON_Parser, 1);
1858
+ return json;
1859
+ }
1860
+
1861
+ static void JSON_mark(JSON_Parser *json)
1862
+ {
1863
+ rb_gc_mark_maybe(json->Vsource);
1864
+ rb_gc_mark_maybe(json->create_id);
1865
+ rb_gc_mark_maybe(json->object_class);
1866
+ rb_gc_mark_maybe(json->array_class);
1867
+ }
1868
+
1869
+ static void JSON_free(JSON_Parser *json)
1870
+ {
1871
+ ruby_xfree(json);
1872
+ }
1873
+
1874
+ static VALUE cJSON_parser_s_allocate(VALUE klass)
1875
+ {
1876
+ JSON_Parser *json = JSON_allocate();
1877
+ return Data_Wrap_Struct(klass, JSON_mark, JSON_free, json);
1878
+ }
1879
+
1880
+ /*
1881
+ * call-seq: source()
1882
+ *
1883
+ * Returns a copy of the current _source_ string, that was used to construct
1884
+ * this Parser.
1885
+ */
1886
+ static VALUE cParser_source(VALUE self)
1887
+ {
1888
+ GET_PARSER;
1889
+ return rb_str_dup(json->Vsource);
1890
+ }
1891
+
1892
+ void Init_parser()
1893
+ {
1894
+ rb_require("json/common");
1895
+ mJSON = rb_define_module("JSON");
1896
+ mExt = rb_define_module_under(mJSON, "Ext");
1897
+ cParser = rb_define_class_under(mExt, "Parser", rb_cObject);
1898
+ eParserError = rb_path2class("JSON::ParserError");
1899
+ eNestingError = rb_path2class("JSON::NestingError");
1900
+ rb_define_alloc_func(cParser, cJSON_parser_s_allocate);
1901
+ rb_define_method(cParser, "initialize", cParser_initialize, -1);
1902
+ rb_define_method(cParser, "parse", cParser_parse, 0);
1903
+ rb_define_method(cParser, "source", cParser_source, 0);
1904
+
1905
+ CNaN = rb_const_get(mJSON, rb_intern("NaN"));
1906
+ CInfinity = rb_const_get(mJSON, rb_intern("Infinity"));
1907
+ CMinusInfinity = rb_const_get(mJSON, rb_intern("MinusInfinity"));
1908
+
1909
+ i_json_creatable_p = rb_intern("json_creatable?");
1910
+ i_json_create = rb_intern("json_create");
1911
+ i_create_id = rb_intern("create_id");
1912
+ i_create_additions = rb_intern("create_additions");
1913
+ i_chr = rb_intern("chr");
1914
+ i_max_nesting = rb_intern("max_nesting");
1915
+ i_allow_nan = rb_intern("allow_nan");
1916
+ i_symbolize_names = rb_intern("symbolize_names");
1917
+ i_object_class = rb_intern("object_class");
1918
+ i_array_class = rb_intern("array_class");
1919
+ i_key_p = rb_intern("key?");
1920
+ i_deep_const_get = rb_intern("deep_const_get");
1921
+ #ifdef HAVE_RUBY_ENCODING_H
1922
+ CEncoding_UTF_8 = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-8"));
1923
+ CEncoding_UTF_16BE = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-16be"));
1924
+ CEncoding_UTF_16LE = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-16le"));
1925
+ CEncoding_UTF_32BE = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-32be"));
1926
+ CEncoding_UTF_32LE = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-32le"));
1927
+ CEncoding_ASCII_8BIT = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("ascii-8bit"));
1928
+ i_encoding = rb_intern("encoding");
1929
+ i_encode = rb_intern("encode");
1930
+ i_encode_bang = rb_intern("encode!");
1931
+ i_force_encoding = rb_intern("force_encoding");
1932
+ #else
1933
+ i_iconv = rb_intern("iconv");
1934
+ #endif
1935
+ }