resque-pool 0.3.0.beta.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1084) hide show
  1. data/Changelog.md +24 -0
  2. data/README.md +3 -0
  3. data/examples/Gemfile +1 -0
  4. data/examples/Gemfile.lock +57 -44
  5. data/examples/chef_cookbook/templates/default/initd.erb +1 -1
  6. data/features/step_definitions/resque-pool_steps.rb +17 -9
  7. data/features/support/aruba_daemon_support.rb +1 -0
  8. data/features/support/env.rb +1 -1
  9. data/lib/resque/pool/cli.rb +3 -2
  10. data/lib/resque/pool/logging.rb +10 -3
  11. data/lib/resque/pool/pooled_worker.rb +7 -11
  12. data/lib/resque/pool/version.rb +1 -1
  13. data/lib/resque/pool.rb +7 -1
  14. data/man/resque-pool.1 +14 -1
  15. data/man/resque-pool.1.ronn +9 -0
  16. data/man/resque-pool.yml.5 +1 -1
  17. data/resque-pool.gemspec +1 -1
  18. data/tags +33009 -0
  19. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/Gemfile +5 -0
  20. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/History.md +769 -0
  21. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/LICENSE +20 -0
  22. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/README.md +256 -0
  23. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/Rakefile +26 -0
  24. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/build_native_gems.sh +7 -0
  25. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/cucumber.yml +4 -0
  26. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/examples/parse_and_output_json.rb +19 -0
  27. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ar/Makefile +157 -0
  28. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ar/extconf.rb +6 -0
  29. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ar/gherkin_lexer_ar.c +1432 -0
  30. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ar/gherkin_lexer_ar.o +0 -0
  31. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ar/gherkin_lexer_ar.so +0 -0
  32. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_bg/Makefile +157 -0
  33. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_bg/extconf.rb +6 -0
  34. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_bg/gherkin_lexer_bg.c +1655 -0
  35. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_bg/gherkin_lexer_bg.o +0 -0
  36. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_bg/gherkin_lexer_bg.so +0 -0
  37. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ca/Makefile +157 -0
  38. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ca/extconf.rb +6 -0
  39. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ca/gherkin_lexer_ca.c +1581 -0
  40. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ca/gherkin_lexer_ca.o +0 -0
  41. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ca/gherkin_lexer_ca.so +0 -0
  42. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_cs/Makefile +157 -0
  43. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_cs/extconf.rb +6 -0
  44. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_cs/gherkin_lexer_cs.c +1427 -0
  45. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_cs/gherkin_lexer_cs.o +0 -0
  46. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_cs/gherkin_lexer_cs.so +0 -0
  47. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_cy_gb/Makefile +157 -0
  48. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_cy_gb/extconf.rb +6 -0
  49. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_cy_gb/gherkin_lexer_cy_gb.c +1282 -0
  50. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_cy_gb/gherkin_lexer_cy_gb.o +0 -0
  51. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_cy_gb/gherkin_lexer_cy_gb.so +0 -0
  52. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_da/Makefile +157 -0
  53. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_da/extconf.rb +6 -0
  54. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_da/gherkin_lexer_da.c +1298 -0
  55. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_da/gherkin_lexer_da.o +0 -0
  56. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_da/gherkin_lexer_da.so +0 -0
  57. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_de/Makefile +157 -0
  58. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_de/extconf.rb +6 -0
  59. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_de/gherkin_lexer_de.c +1415 -0
  60. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_de/gherkin_lexer_de.o +0 -0
  61. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_de/gherkin_lexer_de.so +0 -0
  62. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en/Makefile +157 -0
  63. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en/extconf.rb +6 -0
  64. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en/gherkin_lexer_en.c +1265 -0
  65. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en/gherkin_lexer_en.o +0 -0
  66. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en/gherkin_lexer_en.so +0 -0
  67. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_au/Makefile +157 -0
  68. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_au/extconf.rb +6 -0
  69. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_au/gherkin_lexer_en_au.c +1223 -0
  70. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_au/gherkin_lexer_en_au.o +0 -0
  71. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_au/gherkin_lexer_en_au.so +0 -0
  72. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_lol/Makefile +157 -0
  73. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_lol/extconf.rb +6 -0
  74. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.c +1177 -0
  75. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.o +0 -0
  76. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.so +0 -0
  77. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_pirate/Makefile +157 -0
  78. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_pirate/extconf.rb +6 -0
  79. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_pirate/gherkin_lexer_en_pirate.c +1471 -0
  80. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_pirate/gherkin_lexer_en_pirate.o +0 -0
  81. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_pirate/gherkin_lexer_en_pirate.so +0 -0
  82. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_scouse/Makefile +157 -0
  83. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_scouse/extconf.rb +6 -0
  84. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_scouse/gherkin_lexer_en_scouse.c +1634 -0
  85. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_scouse/gherkin_lexer_en_scouse.o +0 -0
  86. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_scouse/gherkin_lexer_en_scouse.so +0 -0
  87. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_tx/Makefile +157 -0
  88. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_tx/extconf.rb +6 -0
  89. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_tx/gherkin_lexer_en_tx.c +1265 -0
  90. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_tx/gherkin_lexer_en_tx.o +0 -0
  91. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_tx/gherkin_lexer_en_tx.so +0 -0
  92. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_eo/Makefile +157 -0
  93. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_eo/extconf.rb +6 -0
  94. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_eo/gherkin_lexer_eo.c +1241 -0
  95. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_eo/gherkin_lexer_eo.o +0 -0
  96. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_eo/gherkin_lexer_eo.so +0 -0
  97. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_es/Makefile +157 -0
  98. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_es/extconf.rb +6 -0
  99. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_es/gherkin_lexer_es.c +1399 -0
  100. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_es/gherkin_lexer_es.o +0 -0
  101. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_es/gherkin_lexer_es.so +0 -0
  102. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_et/Makefile +157 -0
  103. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_et/extconf.rb +6 -0
  104. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_et/gherkin_lexer_et.c +1236 -0
  105. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_et/gherkin_lexer_et.o +0 -0
  106. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_et/gherkin_lexer_et.so +0 -0
  107. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_fi/Makefile +157 -0
  108. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_fi/extconf.rb +6 -0
  109. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_fi/gherkin_lexer_fi.c +1215 -0
  110. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_fi/gherkin_lexer_fi.o +0 -0
  111. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_fi/gherkin_lexer_fi.so +0 -0
  112. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_fr/Makefile +157 -0
  113. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_fr/extconf.rb +6 -0
  114. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_fr/gherkin_lexer_fr.c +1493 -0
  115. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_fr/gherkin_lexer_fr.o +0 -0
  116. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_fr/gherkin_lexer_fr.so +0 -0
  117. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_he/Makefile +157 -0
  118. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_he/extconf.rb +6 -0
  119. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_he/gherkin_lexer_he.c +1374 -0
  120. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_he/gherkin_lexer_he.o +0 -0
  121. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_he/gherkin_lexer_he.so +0 -0
  122. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_hr/Makefile +157 -0
  123. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_hr/extconf.rb +6 -0
  124. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_hr/gherkin_lexer_hr.c +1323 -0
  125. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_hr/gherkin_lexer_hr.o +0 -0
  126. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_hr/gherkin_lexer_hr.so +0 -0
  127. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_hu/Makefile +157 -0
  128. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_hu/extconf.rb +6 -0
  129. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_hu/gherkin_lexer_hu.c +1376 -0
  130. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_hu/gherkin_lexer_hu.o +0 -0
  131. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_hu/gherkin_lexer_hu.so +0 -0
  132. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_id/Makefile +157 -0
  133. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_id/extconf.rb +6 -0
  134. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_id/gherkin_lexer_id.c +1208 -0
  135. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_id/gherkin_lexer_id.o +0 -0
  136. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_id/gherkin_lexer_id.so +0 -0
  137. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_is/Makefile +157 -0
  138. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_is/extconf.rb +6 -0
  139. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_is/gherkin_lexer_is.c +1376 -0
  140. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_is/gherkin_lexer_is.o +0 -0
  141. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_is/gherkin_lexer_is.so +0 -0
  142. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_it/Makefile +157 -0
  143. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_it/extconf.rb +6 -0
  144. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_it/gherkin_lexer_it.c +1340 -0
  145. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_it/gherkin_lexer_it.o +0 -0
  146. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_it/gherkin_lexer_it.so +0 -0
  147. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ja/Makefile +157 -0
  148. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ja/extconf.rb +6 -0
  149. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ja/gherkin_lexer_ja.c +1699 -0
  150. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ja/gherkin_lexer_ja.o +0 -0
  151. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ja/gherkin_lexer_ja.so +0 -0
  152. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ko/Makefile +157 -0
  153. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ko/extconf.rb +6 -0
  154. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ko/gherkin_lexer_ko.c +1360 -0
  155. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ko/gherkin_lexer_ko.o +0 -0
  156. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ko/gherkin_lexer_ko.so +0 -0
  157. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lt/Makefile +157 -0
  158. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lt/extconf.rb +6 -0
  159. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lt/gherkin_lexer_lt.c +1296 -0
  160. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lt/gherkin_lexer_lt.o +0 -0
  161. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lt/gherkin_lexer_lt.so +0 -0
  162. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lu/Makefile +157 -0
  163. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lu/extconf.rb +6 -0
  164. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lu/gherkin_lexer_lu.c +1389 -0
  165. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lu/gherkin_lexer_lu.o +0 -0
  166. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lu/gherkin_lexer_lu.so +0 -0
  167. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lv/Makefile +157 -0
  168. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lv/extconf.rb +6 -0
  169. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lv/gherkin_lexer_lv.c +1425 -0
  170. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lv/gherkin_lexer_lv.o +0 -0
  171. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lv/gherkin_lexer_lv.so +0 -0
  172. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_nl/Makefile +157 -0
  173. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_nl/extconf.rb +6 -0
  174. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_nl/gherkin_lexer_nl.c +1368 -0
  175. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_nl/gherkin_lexer_nl.o +0 -0
  176. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_nl/gherkin_lexer_nl.so +0 -0
  177. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_no/Makefile +157 -0
  178. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_no/extconf.rb +6 -0
  179. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_no/gherkin_lexer_no.c +1311 -0
  180. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_no/gherkin_lexer_no.o +0 -0
  181. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_no/gherkin_lexer_no.so +0 -0
  182. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_pl/Makefile +157 -0
  183. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_pl/extconf.rb +6 -0
  184. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_pl/gherkin_lexer_pl.c +1477 -0
  185. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_pl/gherkin_lexer_pl.o +0 -0
  186. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_pl/gherkin_lexer_pl.so +0 -0
  187. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_pt/Makefile +157 -0
  188. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_pt/extconf.rb +6 -0
  189. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_pt/gherkin_lexer_pt.c +1350 -0
  190. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_pt/gherkin_lexer_pt.o +0 -0
  191. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_pt/gherkin_lexer_pt.so +0 -0
  192. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ro/Makefile +157 -0
  193. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ro/extconf.rb +6 -0
  194. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ro/gherkin_lexer_ro.c +1427 -0
  195. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ro/gherkin_lexer_ro.o +0 -0
  196. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ro/gherkin_lexer_ro.so +0 -0
  197. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ru/Makefile +157 -0
  198. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ru/extconf.rb +6 -0
  199. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ru/gherkin_lexer_ru.c +2058 -0
  200. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ru/gherkin_lexer_ru.o +0 -0
  201. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ru/gherkin_lexer_ru.so +0 -0
  202. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sk/Makefile +157 -0
  203. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sk/extconf.rb +6 -0
  204. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sk/gherkin_lexer_sk.c +1298 -0
  205. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sk/gherkin_lexer_sk.o +0 -0
  206. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sk/gherkin_lexer_sk.so +0 -0
  207. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sr_cyrl/Makefile +157 -0
  208. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sr_cyrl/extconf.rb +6 -0
  209. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sr_cyrl/gherkin_lexer_sr_cyrl.c +2112 -0
  210. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sr_cyrl/gherkin_lexer_sr_cyrl.o +0 -0
  211. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sr_cyrl/gherkin_lexer_sr_cyrl.so +0 -0
  212. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sr_latn/Makefile +157 -0
  213. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sr_latn/extconf.rb +6 -0
  214. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.c +1567 -0
  215. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.o +0 -0
  216. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.so +0 -0
  217. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sv/Makefile +157 -0
  218. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sv/extconf.rb +6 -0
  219. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sv/gherkin_lexer_sv.c +1324 -0
  220. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sv/gherkin_lexer_sv.o +0 -0
  221. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sv/gherkin_lexer_sv.so +0 -0
  222. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_tr/Makefile +157 -0
  223. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_tr/extconf.rb +6 -0
  224. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_tr/gherkin_lexer_tr.c +1347 -0
  225. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_tr/gherkin_lexer_tr.o +0 -0
  226. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_tr/gherkin_lexer_tr.so +0 -0
  227. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_uk/Makefile +157 -0
  228. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_uk/extconf.rb +6 -0
  229. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_uk/gherkin_lexer_uk.c +1941 -0
  230. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_uk/gherkin_lexer_uk.o +0 -0
  231. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_uk/gherkin_lexer_uk.so +0 -0
  232. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_uz/Makefile +157 -0
  233. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_uz/extconf.rb +6 -0
  234. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_uz/gherkin_lexer_uz.c +1651 -0
  235. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_uz/gherkin_lexer_uz.o +0 -0
  236. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_uz/gherkin_lexer_uz.so +0 -0
  237. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_vi/Makefile +157 -0
  238. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_vi/extconf.rb +6 -0
  239. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_vi/gherkin_lexer_vi.c +1458 -0
  240. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_vi/gherkin_lexer_vi.o +0 -0
  241. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_vi/gherkin_lexer_vi.so +0 -0
  242. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_zh_cn/Makefile +157 -0
  243. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_zh_cn/extconf.rb +6 -0
  244. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_zh_cn/gherkin_lexer_zh_cn.c +1314 -0
  245. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_zh_cn/gherkin_lexer_zh_cn.o +0 -0
  246. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_zh_cn/gherkin_lexer_zh_cn.so +0 -0
  247. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_zh_tw/Makefile +157 -0
  248. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_zh_tw/extconf.rb +6 -0
  249. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_zh_tw/gherkin_lexer_zh_tw.c +1307 -0
  250. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_zh_tw/gherkin_lexer_zh_tw.o +0 -0
  251. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_zh_tw/gherkin_lexer_zh_tw.so +0 -0
  252. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/escaped_pipes.feature +8 -0
  253. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/feature_parser.feature +237 -0
  254. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/json_formatter.feature +498 -0
  255. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/json_parser.feature +331 -0
  256. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/native_lexer.feature +19 -0
  257. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/parser_with_native_lexer.feature +205 -0
  258. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/pretty_formatter.feature +16 -0
  259. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/step_definitions/eyeball_steps.rb +3 -0
  260. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/step_definitions/gherkin_steps.rb +29 -0
  261. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/step_definitions/json_formatter_steps.rb +30 -0
  262. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/step_definitions/json_parser_steps.rb +20 -0
  263. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/step_definitions/pretty_formatter_steps.rb +85 -0
  264. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/steps_parser.feature +46 -0
  265. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/support/env.rb +42 -0
  266. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/gherkin.gemspec +77 -0
  267. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/c_lexer.rb +17 -0
  268. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/ansi_escapes.rb +97 -0
  269. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/argument.rb +16 -0
  270. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/escaping.rb +15 -0
  271. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/filter_formatter.rb +146 -0
  272. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/hashable.rb +19 -0
  273. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/json_formatter.rb +107 -0
  274. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/line_filter.rb +26 -0
  275. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/model.rb +281 -0
  276. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/pretty_formatter.rb +244 -0
  277. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/regexp_filter.rb +21 -0
  278. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/step_printer.rb +17 -0
  279. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/tag_count_formatter.rb +47 -0
  280. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/tag_filter.rb +19 -0
  281. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/i18n.rb +180 -0
  282. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/i18n.yml +600 -0
  283. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/js_lexer.rb +20 -0
  284. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/json_parser.rb +144 -0
  285. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/lexer/i18n_lexer.rb +46 -0
  286. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/listener/event.rb +45 -0
  287. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/listener/formatter_listener.rb +143 -0
  288. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/native/ikvm.rb +55 -0
  289. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/native/java.rb +76 -0
  290. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/native/null.rb +9 -0
  291. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/native.rb +7 -0
  292. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/parser/meta.txt +5 -0
  293. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/parser/parser.rb +164 -0
  294. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/parser/root.txt +11 -0
  295. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/parser/steps.txt +4 -0
  296. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/README.rdoc +8 -0
  297. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/ar.rb +1165 -0
  298. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/bg.rb +1377 -0
  299. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/ca.rb +1305 -0
  300. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/cs.rb +1157 -0
  301. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/cy_gb.rb +1027 -0
  302. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/da.rb +1043 -0
  303. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/de.rb +1151 -0
  304. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/en.rb +1011 -0
  305. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/en_au.rb +971 -0
  306. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/en_lol.rb +929 -0
  307. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/en_pirate.rb +1205 -0
  308. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/en_scouse.rb +1357 -0
  309. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/en_tx.rb +1011 -0
  310. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/eo.rb +990 -0
  311. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/es.rb +1135 -0
  312. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/et.rb +985 -0
  313. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/fi.rb +964 -0
  314. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/fr.rb +1223 -0
  315. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/he.rb +1113 -0
  316. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/hr.rb +1061 -0
  317. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/hu.rb +1113 -0
  318. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/id.rb +958 -0
  319. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/is.rb +1115 -0
  320. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/it.rb +1081 -0
  321. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/ja.rb +1413 -0
  322. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/ko.rb +1097 -0
  323. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/lt.rb +1040 -0
  324. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/lu.rb +1127 -0
  325. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/lv.rb +1161 -0
  326. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/nl.rb +1110 -0
  327. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/no.rb +1055 -0
  328. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/pl.rb +1209 -0
  329. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/pt.rb +1089 -0
  330. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/ro.rb +1159 -0
  331. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/ru.rb +1749 -0
  332. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/sk.rb +1041 -0
  333. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/sr_cyrl.rb +1798 -0
  334. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/sr_latn.rb +1289 -0
  335. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/sv.rb +1065 -0
  336. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/tr.rb +1087 -0
  337. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/uk.rb +1641 -0
  338. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/uz.rb +1371 -0
  339. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/vi.rb +1193 -0
  340. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/zh_cn.rb +1053 -0
  341. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/zh_tw.rb +1047 -0
  342. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer.rb +8 -0
  343. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rubify.rb +24 -0
  344. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/tag_expression.rb +62 -0
  345. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin.rb +2 -0
  346. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_ar.so +0 -0
  347. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_bg.so +0 -0
  348. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_ca.so +0 -0
  349. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_cs.so +0 -0
  350. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_cy_gb.so +0 -0
  351. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_da.so +0 -0
  352. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_de.so +0 -0
  353. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_en.so +0 -0
  354. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_en_au.so +0 -0
  355. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_en_lol.so +0 -0
  356. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_en_pirate.so +0 -0
  357. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_en_scouse.so +0 -0
  358. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_en_tx.so +0 -0
  359. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_eo.so +0 -0
  360. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_es.so +0 -0
  361. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_et.so +0 -0
  362. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_fi.so +0 -0
  363. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_fr.so +0 -0
  364. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_he.so +0 -0
  365. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_hr.so +0 -0
  366. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_hu.so +0 -0
  367. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_id.so +0 -0
  368. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_is.so +0 -0
  369. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_it.so +0 -0
  370. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_ja.so +0 -0
  371. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_ko.so +0 -0
  372. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_lt.so +0 -0
  373. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_lu.so +0 -0
  374. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_lv.so +0 -0
  375. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_nl.so +0 -0
  376. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_no.so +0 -0
  377. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_pl.so +0 -0
  378. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_pt.so +0 -0
  379. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_ro.so +0 -0
  380. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_ru.so +0 -0
  381. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_sk.so +0 -0
  382. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_sr_cyrl.so +0 -0
  383. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_sr_latn.so +0 -0
  384. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_sv.so +0 -0
  385. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_tr.so +0 -0
  386. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_uk.so +0 -0
  387. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_uz.so +0 -0
  388. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_vi.so +0 -0
  389. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_zh_cn.so +0 -0
  390. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_zh_tw.so +0 -0
  391. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ragel/lexer.c.rl.erb +454 -0
  392. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ragel/lexer.java.rl.erb +219 -0
  393. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ragel/lexer.js.rl.erb +227 -0
  394. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ragel/lexer.rb.rl.erb +174 -0
  395. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ragel/lexer_common.rl.erb +50 -0
  396. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/c_lexer_spec.rb +22 -0
  397. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/1.feature +8 -0
  398. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/comments_in_table.feature +9 -0
  399. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/complex.feature +45 -0
  400. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/complex.json +139 -0
  401. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/complex_for_filtering.feature +60 -0
  402. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/complex_with_tags.feature +61 -0
  403. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/dos_line_endings.feature +45 -0
  404. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/examples_with_only_header.feature +14 -0
  405. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/hantu_pisang.feature +35 -0
  406. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/i18n_fr.feature +14 -0
  407. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/i18n_fr2.feature +8 -0
  408. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/i18n_no.feature +7 -0
  409. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/i18n_zh-CN.feature +9 -0
  410. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/issue_145.feature +22 -0
  411. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/scenario_outline_with_tags.feature +13 -0
  412. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/scenario_without_steps.feature +5 -0
  413. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/simple_with_comments.feature +7 -0
  414. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/simple_with_tags.feature +11 -0
  415. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/with_bom.feature +3 -0
  416. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/formatter/ansi_escapes_spec.rb +32 -0
  417. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/formatter/filter_formatter_spec.rb +196 -0
  418. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/formatter/json_formatter_spec.rb +80 -0
  419. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/formatter/model_spec.rb +28 -0
  420. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/formatter/pretty_formatter_spec.rb +158 -0
  421. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/formatter/spaces.feature +9 -0
  422. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/formatter/step_printer_spec.rb +55 -0
  423. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/formatter/tabs.feature +9 -0
  424. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/formatter/tag_count_formatter_spec.rb +30 -0
  425. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/i18n_spec.rb +168 -0
  426. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/java_lexer_spec.rb +20 -0
  427. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/js_lexer_spec.rb +23 -0
  428. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/json_parser_spec.rb +138 -0
  429. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/lexer/i18n_lexer_spec.rb +43 -0
  430. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/output_stream_string_io.rb +20 -0
  431. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/parser/parser_spec.rb +16 -0
  432. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/rb_lexer_spec.rb +20 -0
  433. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/sexp_recorder.rb +59 -0
  434. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/shared/bom_group.rb +20 -0
  435. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/shared/doc_string_group.rb +163 -0
  436. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/shared/lexer_group.rb +591 -0
  437. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/shared/row_group.rb +125 -0
  438. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/shared/tags_group.rb +54 -0
  439. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/tag_expression_spec.rb +142 -0
  440. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/spec_helper.rb +75 -0
  441. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/bench/feature_builder.rb +49 -0
  442. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/bench/null_listener.rb +4 -0
  443. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/bench.rake +184 -0
  444. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/compile.rake +120 -0
  445. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/cucumber.rake +22 -0
  446. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/gems.rake +31 -0
  447. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/ikvm.rake +124 -0
  448. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/ragel_task.rb +98 -0
  449. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/release.rake +49 -0
  450. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/rspec.rake +8 -0
  451. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/yard/default/layout/html/bubble_32x32.png +0 -0
  452. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/yard/default/layout/html/bubble_48x48.png +0 -0
  453. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/yard/default/layout/html/footer.erb +5 -0
  454. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/yard/default/layout/html/index.erb +1 -0
  455. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/yard/default/layout/html/layout.erb +25 -0
  456. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/yard/default/layout/html/logo.erb +1 -0
  457. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/yard/default/layout/html/setup.rb +4 -0
  458. data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/yard.rake +7 -0
  459. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/CHANGES +239 -0
  460. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/COPYING +58 -0
  461. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/COPYING-json-jruby +57 -0
  462. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/GPL +340 -0
  463. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/Gemfile +15 -0
  464. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/README-json-jruby.markdown +33 -0
  465. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/README.rdoc +358 -0
  466. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/Rakefile +398 -0
  467. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/TODO +1 -0
  468. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/VERSION +1 -0
  469. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/data/example.json +1 -0
  470. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/data/index.html +38 -0
  471. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/data/prototype.js +4184 -0
  472. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/fbuffer/fbuffer.h +156 -0
  473. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/generator/Makefile +157 -0
  474. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/generator/extconf.rb +13 -0
  475. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/generator/generator.c +1393 -0
  476. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/generator/generator.h +162 -0
  477. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/generator/generator.o +0 -0
  478. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/generator/generator.so +0 -0
  479. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/json/ext/generator.so +0 -0
  480. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/json/ext/parser.so +0 -0
  481. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/parser/Makefile +157 -0
  482. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/parser/extconf.rb +13 -0
  483. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/parser/parser.c +2203 -0
  484. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/parser/parser.h +77 -0
  485. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/parser/parser.o +0 -0
  486. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/parser/parser.rl +926 -0
  487. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/parser/parser.so +0 -0
  488. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/install.rb +23 -0
  489. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/ByteListTranscoder.java +167 -0
  490. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/Generator.java +437 -0
  491. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/GeneratorMethods.java +232 -0
  492. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/GeneratorService.java +43 -0
  493. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/GeneratorState.java +522 -0
  494. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/OptionsReader.java +113 -0
  495. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/Parser.java +2640 -0
  496. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/Parser.rl +964 -0
  497. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/ParserService.java +35 -0
  498. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/RuntimeInfo.java +121 -0
  499. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/StringDecoder.java +167 -0
  500. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/StringEncoder.java +106 -0
  501. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/Utils.java +89 -0
  502. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/json-java.gemspec +22 -0
  503. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/json.gemspec +37 -0
  504. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/json_pure.gemspec +39 -0
  505. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/bigdecimal.rb +21 -0
  506. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/complex.rb +22 -0
  507. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/core.rb +11 -0
  508. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/date.rb +34 -0
  509. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/date_time.rb +50 -0
  510. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/exception.rb +31 -0
  511. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/ostruct.rb +31 -0
  512. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/range.rb +29 -0
  513. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/rational.rb +22 -0
  514. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/regexp.rb +30 -0
  515. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/struct.rb +30 -0
  516. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/symbol.rb +25 -0
  517. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/time.rb +35 -0
  518. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/common.rb +470 -0
  519. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/ext.rb +21 -0
  520. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/pure/generator.rb +472 -0
  521. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/pure/parser.rb +359 -0
  522. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/pure.rb +21 -0
  523. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/version.rb +8 -0
  524. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json.rb +62 -0
  525. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail1.json +1 -0
  526. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail10.json +1 -0
  527. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail11.json +1 -0
  528. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail12.json +1 -0
  529. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail13.json +1 -0
  530. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail14.json +1 -0
  531. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail18.json +1 -0
  532. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail19.json +1 -0
  533. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail2.json +1 -0
  534. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail20.json +1 -0
  535. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail21.json +1 -0
  536. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail22.json +1 -0
  537. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail23.json +1 -0
  538. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail24.json +1 -0
  539. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail25.json +1 -0
  540. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail27.json +2 -0
  541. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail28.json +2 -0
  542. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail3.json +1 -0
  543. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail4.json +1 -0
  544. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail5.json +1 -0
  545. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail6.json +1 -0
  546. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail7.json +1 -0
  547. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail8.json +1 -0
  548. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail9.json +1 -0
  549. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/pass1.json +56 -0
  550. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/pass15.json +1 -0
  551. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/pass16.json +1 -0
  552. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/pass17.json +1 -0
  553. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/pass2.json +1 -0
  554. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/pass26.json +1 -0
  555. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/pass3.json +6 -0
  556. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/setup_variant.rb +11 -0
  557. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/test_json.rb +527 -0
  558. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/test_json_addition.rb +188 -0
  559. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/test_json_encoding.rb +65 -0
  560. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/test_json_fixtures.rb +35 -0
  561. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/test_json_generate.rb +251 -0
  562. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/test_json_string_matching.rb +40 -0
  563. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/test_json_unicode.rb +72 -0
  564. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tools/fuzz.rb +139 -0
  565. data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tools/server.rb +62 -0
  566. data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/Gemfile +7 -0
  567. data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/LICENSE.md +20 -0
  568. data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/README.md +117 -0
  569. data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/Rakefile +25 -0
  570. data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/lib/multi_json/engines/json_common.rb +27 -0
  571. data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/lib/multi_json/engines/json_gem.rb +12 -0
  572. data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/lib/multi_json/engines/json_pure.rb +12 -0
  573. data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/lib/multi_json/engines/nsjsonserialization.rb +34 -0
  574. data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/lib/multi_json/engines/oj.rb +22 -0
  575. data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/lib/multi_json/engines/ok_json.rb +48 -0
  576. data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/lib/multi_json/engines/yajl.rb +18 -0
  577. data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/lib/multi_json/vendor/ok_json.rb +587 -0
  578. data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/lib/multi_json/version.rb +3 -0
  579. data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/lib/multi_json.rb +90 -0
  580. data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/multi_json.gemspec +22 -0
  581. data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/spec/engine_shared_example.rb +115 -0
  582. data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/spec/helper.rb +30 -0
  583. data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/spec/multi_json_spec.rb +72 -0
  584. data/vendor/bundle/ruby/1.8/gems/rspec-2.9.0/License.txt +24 -0
  585. data/vendor/bundle/ruby/1.8/gems/rspec-2.9.0/README.markdown +47 -0
  586. data/vendor/bundle/ruby/1.8/gems/rspec-2.9.0/lib/rspec/version.rb +5 -0
  587. data/vendor/bundle/ruby/1.8/gems/rspec-2.9.0/lib/rspec.rb +4 -0
  588. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/Changelog.md +493 -0
  589. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/License.txt +24 -0
  590. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/README.md +228 -0
  591. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/exe/autospec +13 -0
  592. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/exe/rspec +25 -0
  593. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/Autotest.md +38 -0
  594. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/README.md +17 -0
  595. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/Upgrade.md +364 -0
  596. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/README.md +28 -0
  597. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/example_name_option.feature +86 -0
  598. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/exit_status.feature +83 -0
  599. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/format_option.feature +81 -0
  600. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/init.feature +18 -0
  601. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/line_number_appended_to_path.feature +140 -0
  602. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/line_number_option.feature +58 -0
  603. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/order.feature +29 -0
  604. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/pattern_option.feature +31 -0
  605. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/rake_task.feature +68 -0
  606. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/ruby.feature +22 -0
  607. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/tag.feature +91 -0
  608. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/configuration/alias_example_to.feature +48 -0
  609. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/configuration/custom_settings.feature +84 -0
  610. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/configuration/default_path.feature +38 -0
  611. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/configuration/fail_fast.feature +77 -0
  612. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/configuration/read_options_from_file.feature +87 -0
  613. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/example_groups/basic_structure.feature +55 -0
  614. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/example_groups/shared_context.feature +74 -0
  615. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/example_groups/shared_examples.feature +204 -0
  616. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/expectation_framework_integration/configure_expectation_framework.feature +73 -0
  617. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/filtering/exclusion_filters.feature +139 -0
  618. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/filtering/if_and_unless.feature +168 -0
  619. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/filtering/inclusion_filters.feature +105 -0
  620. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/filtering/run_all_when_everything_filtered.feature +46 -0
  621. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/formatters/custom_formatter.feature +36 -0
  622. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/formatters/text_formatter.feature +46 -0
  623. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/helper_methods/arbitrary_methods.feature +40 -0
  624. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/helper_methods/let.feature +50 -0
  625. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/helper_methods/modules.feature +149 -0
  626. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/hooks/around_hooks.feature +343 -0
  627. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/hooks/before_and_after_hooks.feature +423 -0
  628. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/hooks/filtering.feature +234 -0
  629. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/metadata/current_example.feature +17 -0
  630. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/metadata/described_class.feature +17 -0
  631. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/metadata/user_defined.feature +113 -0
  632. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/mock_framework_integration/use_any_framework.feature +106 -0
  633. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/mock_framework_integration/use_flexmock.feature +96 -0
  634. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/mock_framework_integration/use_mocha.feature +97 -0
  635. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/mock_framework_integration/use_rr.feature +98 -0
  636. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/mock_framework_integration/use_rspec.feature +97 -0
  637. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/pending/pending_examples.feature +229 -0
  638. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/spec_files/arbitrary_file_suffix.feature +13 -0
  639. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/step_definitions/additional_cli_steps.rb +30 -0
  640. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/subject/attribute_of_subject.feature +124 -0
  641. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/subject/explicit_subject.feature +82 -0
  642. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/subject/implicit_receiver.feature +29 -0
  643. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/subject/implicit_subject.feature +63 -0
  644. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/support/env.rb +12 -0
  645. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/autotest/discover.rb +1 -0
  646. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/autotest/rspec2.rb +73 -0
  647. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/autorun.rb +2 -0
  648. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/backward_compatibility.rb +65 -0
  649. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb +36 -0
  650. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/configuration.rb +909 -0
  651. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/configuration_options.rb +124 -0
  652. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/deprecation.rb +51 -0
  653. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/drb_command_line.rb +23 -0
  654. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/drb_options.rb +85 -0
  655. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/dsl.rb +24 -0
  656. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/example.rb +247 -0
  657. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb +443 -0
  658. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/extensions/instance_eval_with_args.rb +44 -0
  659. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/extensions/kernel.rb +9 -0
  660. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/extensions/module_eval_with_args.rb +38 -0
  661. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/extensions/ordered.rb +21 -0
  662. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/extensions.rb +4 -0
  663. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/filter_manager.rb +203 -0
  664. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/formatters/base_formatter.rb +174 -0
  665. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/formatters/base_text_formatter.rb +194 -0
  666. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/formatters/documentation_formatter.rb +67 -0
  667. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/formatters/helpers.rb +39 -0
  668. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/formatters/html_formatter.rb +464 -0
  669. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/formatters/progress_formatter.rb +32 -0
  670. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/formatters/snippet_extractor.rb +58 -0
  671. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/formatters/text_mate_formatter.rb +34 -0
  672. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb +417 -0
  673. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/let.rb +103 -0
  674. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/load_path.rb +3 -0
  675. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/metadata.rb +268 -0
  676. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/metadata_hash_builder.rb +97 -0
  677. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/mocking/with_absolutely_nothing.rb +11 -0
  678. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/mocking/with_flexmock.rb +27 -0
  679. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/mocking/with_mocha.rb +23 -0
  680. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/mocking/with_rr.rb +27 -0
  681. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/mocking/with_rspec.rb +23 -0
  682. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/option_parser.rb +180 -0
  683. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/pending.rb +101 -0
  684. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/project_initializer.rb +81 -0
  685. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/rake_task.rb +179 -0
  686. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb +102 -0
  687. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/ruby_project.rb +44 -0
  688. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb +76 -0
  689. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/shared_context.rb +49 -0
  690. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/shared_example_group.rb +72 -0
  691. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/subject.rb +183 -0
  692. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/version.rb +7 -0
  693. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/world.rb +132 -0
  694. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core.rb +107 -0
  695. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/autotest/discover_spec.rb +19 -0
  696. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/autotest/failed_results_re_spec.rb +45 -0
  697. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/autotest/rspec_spec.rb +123 -0
  698. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/command_line/order_spec.rb +137 -0
  699. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/command_line_spec.rb +166 -0
  700. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/command_line_spec_output.txt +0 -0
  701. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/configuration_options_spec.rb +355 -0
  702. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/configuration_spec.rb +1156 -0
  703. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/deprecations_spec.rb +66 -0
  704. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/drb_command_line_spec.rb +107 -0
  705. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/drb_options_spec.rb +179 -0
  706. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/example_group_spec.rb +1090 -0
  707. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/example_spec.rb +302 -0
  708. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/filter_manager_spec.rb +256 -0
  709. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/base_formatter_spec.rb +80 -0
  710. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/base_text_formatter_spec.rb +344 -0
  711. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/documentation_formatter_spec.rb +88 -0
  712. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/helpers_spec.rb +66 -0
  713. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +410 -0
  714. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/html_formatted-1.8.7.html +409 -0
  715. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/html_formatted-1.9.2.html +416 -0
  716. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/html_formatted-1.9.3.html +416 -0
  717. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/html_formatter_spec.rb +82 -0
  718. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/progress_formatter_spec.rb +30 -0
  719. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/snippet_extractor_spec.rb +18 -0
  720. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html +410 -0
  721. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +409 -0
  722. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +416 -0
  723. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/text_mate_formatted-1.9.3.html +416 -0
  724. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/text_mate_formatter_spec.rb +83 -0
  725. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/hooks_filtering_spec.rb +227 -0
  726. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/hooks_spec.rb +143 -0
  727. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/kernel_extensions_spec.rb +9 -0
  728. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/let_spec.rb +55 -0
  729. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/metadata_spec.rb +437 -0
  730. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/option_parser_spec.rb +165 -0
  731. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/pending_example_spec.rb +219 -0
  732. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/project_initializer_spec.rb +130 -0
  733. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/rake_task_spec.rb +138 -0
  734. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/reporter_spec.rb +103 -0
  735. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/resources/a_bar.rb +0 -0
  736. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/resources/a_foo.rb +0 -0
  737. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/resources/a_spec.rb +1 -0
  738. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/resources/custom_example_group_runner.rb +14 -0
  739. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/resources/formatter_specs.rb +60 -0
  740. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/resources/utf8_encoded.rb +8 -0
  741. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/rspec_matchers_spec.rb +45 -0
  742. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/ruby_project_spec.rb +24 -0
  743. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/runner_spec.rb +82 -0
  744. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/shared_context_spec.rb +67 -0
  745. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/shared_example_group_spec.rb +84 -0
  746. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/subject_spec.rb +228 -0
  747. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/world_spec.rb +144 -0
  748. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core_spec.rb +25 -0
  749. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/spec_helper.rb +98 -0
  750. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb +27 -0
  751. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/support/matchers.rb +65 -0
  752. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/support/shared_example_groups.rb +41 -0
  753. data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/support/spec_files.rb +44 -0
  754. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/Changelog.md +176 -0
  755. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/License.txt +23 -0
  756. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/README.md +147 -0
  757. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/README.markdown +49 -0
  758. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/Upgrade.md +53 -0
  759. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/README.md +90 -0
  760. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/be.feature +135 -0
  761. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/be_within.feature +43 -0
  762. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/cover.feature +45 -0
  763. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/equality.feature +145 -0
  764. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/exist.feature +43 -0
  765. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/expect_change.feature +59 -0
  766. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/expect_error.feature +138 -0
  767. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/have.feature +103 -0
  768. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/include.feature +121 -0
  769. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/match.feature +50 -0
  770. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/operators.feature +221 -0
  771. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/predicates.feature +128 -0
  772. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/respond_to.feature +78 -0
  773. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/satisfy.feature +31 -0
  774. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/throw_symbol.feature +85 -0
  775. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/types.feature +114 -0
  776. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/custom_matchers/access_running_example.feature +53 -0
  777. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/custom_matchers/define_diffable_matcher.feature +27 -0
  778. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/custom_matchers/define_matcher.feature +340 -0
  779. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/custom_matchers/define_matcher_outside_rspec.feature +38 -0
  780. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/custom_matchers/define_matcher_with_fluent_interface.feature +24 -0
  781. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/customized_message.feature +22 -0
  782. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/diffing.feature +85 -0
  783. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/implicit_docstrings.feature +52 -0
  784. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/step_definitions/additional_cli_steps.rb +22 -0
  785. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/support/env.rb +5 -0
  786. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/test_frameworks/test_unit.feature +46 -0
  787. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations/deprecation.rb +38 -0
  788. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations/differ.rb +76 -0
  789. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations/errors.rb +9 -0
  790. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations/extensions/array.rb +9 -0
  791. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations/extensions/kernel.rb +26 -0
  792. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations/extensions/object.rb +39 -0
  793. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations/extensions.rb +3 -0
  794. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations/fail_with.rb +54 -0
  795. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations/handler.rb +48 -0
  796. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations/version.rb +8 -0
  797. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations.rb +45 -0
  798. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/be_close.rb +9 -0
  799. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/block_aliases.rb +20 -0
  800. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/base_matcher.rb +58 -0
  801. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/be.rb +183 -0
  802. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/be_instance_of.rb +13 -0
  803. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/be_kind_of.rb +13 -0
  804. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/be_within.rb +39 -0
  805. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/change.rb +132 -0
  806. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/cover.rb +22 -0
  807. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/eq.rb +26 -0
  808. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/eql.rb +25 -0
  809. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/equal.rb +48 -0
  810. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/exist.rb +28 -0
  811. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/has.rb +47 -0
  812. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/have.rb +107 -0
  813. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/include.rb +52 -0
  814. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/match.rb +13 -0
  815. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/match_array.rb +52 -0
  816. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/raise_error.rb +96 -0
  817. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/respond_to.rb +73 -0
  818. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/satisfy.rb +29 -0
  819. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/throw_symbol.rb +93 -0
  820. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in.rb +33 -0
  821. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/compatibility.rb +14 -0
  822. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/dsl.rb +23 -0
  823. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/extensions/instance_eval_with_args.rb +39 -0
  824. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/generated_descriptions.rb +36 -0
  825. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/matcher.rb +298 -0
  826. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/method_missing.rb +12 -0
  827. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/operator_matcher.rb +84 -0
  828. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/pretty.rb +60 -0
  829. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers.rb +572 -0
  830. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec-expectations.rb +1 -0
  831. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/expectations/differ_spec.rb +144 -0
  832. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/expectations/extensions/kernel_spec.rb +45 -0
  833. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/expectations/fail_with_spec.rb +70 -0
  834. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/expectations/handler_spec.rb +206 -0
  835. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/base_matcher_spec.rb +52 -0
  836. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/be_close_spec.rb +22 -0
  837. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/be_instance_of_spec.rb +36 -0
  838. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/be_kind_of_spec.rb +33 -0
  839. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/be_spec.rb +452 -0
  840. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/be_within_spec.rb +64 -0
  841. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/change_spec.rb +522 -0
  842. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/compatibility_spec.rb +28 -0
  843. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/cover_spec.rb +65 -0
  844. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/description_generation_spec.rb +176 -0
  845. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/dsl_spec.rb +41 -0
  846. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/eq_spec.rb +38 -0
  847. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/eql_spec.rb +37 -0
  848. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/equal_spec.rb +57 -0
  849. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/exist_spec.rb +104 -0
  850. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/has_spec.rb +113 -0
  851. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/have_spec.rb +458 -0
  852. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/include_spec.rb +351 -0
  853. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/match_array_spec.rb +108 -0
  854. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/match_spec.rb +57 -0
  855. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/matcher_spec.rb +434 -0
  856. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/matchers_spec.rb +31 -0
  857. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/method_missing_spec.rb +24 -0
  858. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/operator_matcher_spec.rb +221 -0
  859. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/raise_error_spec.rb +339 -0
  860. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/respond_to_spec.rb +292 -0
  861. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/satisfy_spec.rb +40 -0
  862. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/throw_symbol_spec.rb +111 -0
  863. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/spec_helper.rb +27 -0
  864. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/support/classes.rb +56 -0
  865. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/support/matchers.rb +22 -0
  866. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/support/ruby_version.rb +10 -0
  867. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/Changelog.md +187 -0
  868. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/License.txt +23 -0
  869. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/README.md +147 -0
  870. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/README.markdown +49 -0
  871. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/Upgrade.md +53 -0
  872. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/README.md +90 -0
  873. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/be.feature +135 -0
  874. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/be_within.feature +43 -0
  875. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/cover.feature +45 -0
  876. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/equality.feature +145 -0
  877. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/exist.feature +43 -0
  878. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/expect_change.feature +59 -0
  879. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/expect_error.feature +138 -0
  880. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/have.feature +103 -0
  881. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/include.feature +121 -0
  882. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/match.feature +50 -0
  883. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/operators.feature +221 -0
  884. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/predicates.feature +128 -0
  885. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/respond_to.feature +78 -0
  886. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/satisfy.feature +31 -0
  887. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/throw_symbol.feature +85 -0
  888. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/types.feature +114 -0
  889. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/custom_matchers/access_running_example.feature +53 -0
  890. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/custom_matchers/define_diffable_matcher.feature +27 -0
  891. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/custom_matchers/define_matcher.feature +340 -0
  892. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/custom_matchers/define_matcher_outside_rspec.feature +38 -0
  893. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/custom_matchers/define_matcher_with_fluent_interface.feature +24 -0
  894. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/customized_message.feature +22 -0
  895. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/diffing.feature +85 -0
  896. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/implicit_docstrings.feature +52 -0
  897. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/step_definitions/additional_cli_steps.rb +22 -0
  898. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/support/env.rb +5 -0
  899. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/test_frameworks/test_unit.feature +46 -0
  900. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations/deprecation.rb +38 -0
  901. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations/differ.rb +81 -0
  902. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations/errors.rb +9 -0
  903. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations/extensions/array.rb +9 -0
  904. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations/extensions/kernel.rb +26 -0
  905. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations/extensions/object.rb +39 -0
  906. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations/extensions.rb +3 -0
  907. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations/fail_with.rb +55 -0
  908. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations/handler.rb +48 -0
  909. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations/version.rb +8 -0
  910. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations.rb +45 -0
  911. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/be_close.rb +9 -0
  912. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/block_aliases.rb +21 -0
  913. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/base_matcher.rb +58 -0
  914. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/be.rb +183 -0
  915. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/be_instance_of.rb +13 -0
  916. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/be_kind_of.rb +13 -0
  917. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/be_within.rb +39 -0
  918. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/change.rb +132 -0
  919. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/cover.rb +22 -0
  920. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/eq.rb +26 -0
  921. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/eql.rb +25 -0
  922. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/equal.rb +48 -0
  923. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/exist.rb +28 -0
  924. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/has.rb +47 -0
  925. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/have.rb +107 -0
  926. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/include.rb +52 -0
  927. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/match.rb +13 -0
  928. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/match_array.rb +52 -0
  929. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/raise_error.rb +96 -0
  930. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/respond_to.rb +73 -0
  931. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/satisfy.rb +29 -0
  932. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/throw_symbol.rb +93 -0
  933. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in.rb +33 -0
  934. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/compatibility.rb +14 -0
  935. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/dsl.rb +24 -0
  936. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/extensions/instance_eval_with_args.rb +39 -0
  937. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/generated_descriptions.rb +36 -0
  938. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/matcher.rb +299 -0
  939. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/method_missing.rb +12 -0
  940. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/operator_matcher.rb +84 -0
  941. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/pretty.rb +60 -0
  942. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers.rb +572 -0
  943. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec-expectations.rb +1 -0
  944. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/expectations/differ_spec.rb +153 -0
  945. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/expectations/extensions/kernel_spec.rb +45 -0
  946. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/expectations/fail_with_spec.rb +70 -0
  947. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/expectations/handler_spec.rb +206 -0
  948. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/base_matcher_spec.rb +52 -0
  949. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/be_close_spec.rb +22 -0
  950. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/be_instance_of_spec.rb +36 -0
  951. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/be_kind_of_spec.rb +33 -0
  952. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/be_spec.rb +452 -0
  953. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/be_within_spec.rb +64 -0
  954. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/change_spec.rb +522 -0
  955. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/compatibility_spec.rb +28 -0
  956. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/cover_spec.rb +65 -0
  957. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/description_generation_spec.rb +176 -0
  958. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/dsl_spec.rb +57 -0
  959. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/eq_spec.rb +38 -0
  960. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/eql_spec.rb +37 -0
  961. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/equal_spec.rb +57 -0
  962. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/exist_spec.rb +104 -0
  963. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/has_spec.rb +113 -0
  964. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/have_spec.rb +458 -0
  965. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/include_spec.rb +363 -0
  966. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/match_array_spec.rb +108 -0
  967. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/match_spec.rb +57 -0
  968. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/matcher_spec.rb +434 -0
  969. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/matchers_spec.rb +31 -0
  970. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/method_missing_spec.rb +24 -0
  971. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/operator_matcher_spec.rb +221 -0
  972. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/raise_error_spec.rb +339 -0
  973. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/respond_to_spec.rb +292 -0
  974. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/satisfy_spec.rb +40 -0
  975. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/throw_symbol_spec.rb +111 -0
  976. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/spec_helper.rb +27 -0
  977. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/support/classes.rb +56 -0
  978. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/support/matchers.rb +22 -0
  979. data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/support/ruby_version.rb +10 -0
  980. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/Changelog.md +147 -0
  981. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/License.txt +23 -0
  982. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/README.md +257 -0
  983. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/README.markdown +67 -0
  984. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/Scope.md +17 -0
  985. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/Upgrade.md +22 -0
  986. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/argument_matchers/README.md +27 -0
  987. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/argument_matchers/explicit.feature +60 -0
  988. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/argument_matchers/general_matchers.feature +85 -0
  989. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/argument_matchers/type_matchers.feature +25 -0
  990. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/message_expectations/README.md +58 -0
  991. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/message_expectations/any_instance.feature +21 -0
  992. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/message_expectations/block_local_expectations.feature.pending +55 -0
  993. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/message_expectations/expect_message.feature +94 -0
  994. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/message_expectations/receive_counts.feature +209 -0
  995. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/message_expectations/warn_when_expectation_is_set_on_nil.feature +50 -0
  996. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/method_stubs/README.md +43 -0
  997. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/method_stubs/any_instance.feature +133 -0
  998. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/method_stubs/as_null_object.feature +35 -0
  999. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/method_stubs/simple_return_value.feature +64 -0
  1000. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/method_stubs/stub_chain.feature +51 -0
  1001. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/method_stubs/stub_implementation.feature +26 -0
  1002. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/method_stubs/to_ary.feature +47 -0
  1003. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/outside_rspec/configuration.feature +82 -0
  1004. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/outside_rspec/standalone.feature +32 -0
  1005. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/step_definitions/additional_cli_steps.rb +4 -0
  1006. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/support/env.rb +6 -0
  1007. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/any_instance/chain.rb +158 -0
  1008. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/any_instance/message_chains.rb +60 -0
  1009. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/any_instance/recorder.rb +192 -0
  1010. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/any_instance.rb +45 -0
  1011. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/argument_expectation.rb +52 -0
  1012. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/argument_matchers.rb +230 -0
  1013. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/error_generator.rb +107 -0
  1014. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/errors.rb +12 -0
  1015. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/example_methods.rb +54 -0
  1016. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/extensions/instance_exec.rb +34 -0
  1017. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/extensions/marshal.rb +23 -0
  1018. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/extensions/psych.rb +23 -0
  1019. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/framework.rb +18 -0
  1020. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/message_expectation.rb +506 -0
  1021. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/method_double.rb +190 -0
  1022. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/methods.rb +151 -0
  1023. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/mock.rb +81 -0
  1024. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/order_group.rb +40 -0
  1025. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/proxy.rb +179 -0
  1026. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/serialization.rb +34 -0
  1027. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/space.rb +34 -0
  1028. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/standalone.rb +3 -0
  1029. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/version.rb +7 -0
  1030. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks.rb +39 -0
  1031. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/spec/mocks.rb +2 -0
  1032. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/and_yield_spec.rb +114 -0
  1033. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/any_instance/message_chains_spec.rb +40 -0
  1034. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/any_instance_spec.rb +785 -0
  1035. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/any_number_of_times_spec.rb +30 -0
  1036. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/argument_expectation_spec.rb +34 -0
  1037. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/at_least_spec.rb +103 -0
  1038. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/at_most_spec.rb +99 -0
  1039. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/block_return_value_spec.rb +45 -0
  1040. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_10260_spec.rb +8 -0
  1041. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_10263_spec.rb +25 -0
  1042. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_11545_spec.rb +32 -0
  1043. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_496_spec.rb +17 -0
  1044. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_600_spec.rb +22 -0
  1045. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_7611_spec.rb +16 -0
  1046. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_8165_spec.rb +31 -0
  1047. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_830_spec.rb +21 -0
  1048. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_957_spec.rb +22 -0
  1049. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/double_spec.rb +12 -0
  1050. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/failing_argument_matchers_spec.rb +95 -0
  1051. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/hash_excluding_matcher_spec.rb +67 -0
  1052. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/hash_including_matcher_spec.rb +90 -0
  1053. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/mock_ordering_spec.rb +103 -0
  1054. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/mock_space_spec.rb +58 -0
  1055. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/mock_spec.rb +715 -0
  1056. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/multiple_return_value_spec.rb +188 -0
  1057. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/nil_expectation_warning_spec.rb +62 -0
  1058. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/null_object_mock_spec.rb +78 -0
  1059. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/once_counts_spec.rb +53 -0
  1060. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/options_hash_spec.rb +35 -0
  1061. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/partial_mock_spec.rb +156 -0
  1062. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb +95 -0
  1063. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/passing_argument_matchers_spec.rb +142 -0
  1064. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/precise_counts_spec.rb +58 -0
  1065. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/record_messages_spec.rb +26 -0
  1066. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/serialization_spec.rb +110 -0
  1067. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/stash_spec.rb +27 -0
  1068. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/stub_chain_spec.rb +149 -0
  1069. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/stub_implementation_spec.rb +68 -0
  1070. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/stub_spec.rb +238 -0
  1071. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/stubbed_message_expectations_spec.rb +47 -0
  1072. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/to_ary_spec.rb +40 -0
  1073. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/twice_counts_spec.rb +67 -0
  1074. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks_spec.rb +51 -0
  1075. data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/spec_helper.rb +53 -0
  1076. data/vendor/bundle/ruby/1.8/specifications/gherkin-2.9.3.gemspec +64 -0
  1077. data/vendor/bundle/ruby/1.8/specifications/json-1.6.6.gemspec +36 -0
  1078. data/vendor/bundle/ruby/1.8/specifications/multi_json-1.2.0.gemspec +40 -0
  1079. data/vendor/bundle/ruby/1.8/specifications/rspec-2.9.0.gemspec +39 -0
  1080. data/vendor/bundle/ruby/1.8/specifications/rspec-core-2.9.0.gemspec +58 -0
  1081. data/vendor/bundle/ruby/1.8/specifications/rspec-expectations-2.9.0.gemspec +40 -0
  1082. data/vendor/bundle/ruby/1.8/specifications/rspec-expectations-2.9.1.gemspec +40 -0
  1083. data/vendor/bundle/ruby/1.8/specifications/rspec-mocks-2.9.0.gemspec +37 -0
  1084. metadata +1077 -15
@@ -0,0 +1,2640 @@
1
+
2
+ // line 1 "Parser.rl"
3
+ /*
4
+ * This code is copyrighted work by Daniel Luz <dev at mernen dot com>.
5
+ *
6
+ * Distributed under the Ruby and GPLv2 licenses; see COPYING and GPL files
7
+ * for details.
8
+ */
9
+ package json.ext;
10
+
11
+ import org.jruby.Ruby;
12
+ import org.jruby.RubyArray;
13
+ import org.jruby.RubyClass;
14
+ import org.jruby.RubyEncoding;
15
+ import org.jruby.RubyFloat;
16
+ import org.jruby.RubyHash;
17
+ import org.jruby.RubyInteger;
18
+ import org.jruby.RubyModule;
19
+ import org.jruby.RubyNumeric;
20
+ import org.jruby.RubyObject;
21
+ import org.jruby.RubyString;
22
+ import org.jruby.anno.JRubyMethod;
23
+ import org.jruby.exceptions.JumpException;
24
+ import org.jruby.exceptions.RaiseException;
25
+ import org.jruby.runtime.Block;
26
+ import org.jruby.runtime.ObjectAllocator;
27
+ import org.jruby.runtime.ThreadContext;
28
+ import org.jruby.runtime.Visibility;
29
+ import org.jruby.runtime.builtin.IRubyObject;
30
+ import org.jruby.util.ByteList;
31
+ import org.jruby.util.ConvertBytes;
32
+ import static org.jruby.util.ConvertDouble.DoubleConverter;
33
+
34
+ /**
35
+ * The <code>JSON::Ext::Parser</code> class.
36
+ *
37
+ * <p>This is the JSON parser implemented as a Java class. To use it as the
38
+ * standard parser, set
39
+ * <pre>JSON.parser = JSON::Ext::Parser</pre>
40
+ * This is performed for you when you <code>include "json/ext"</code>.
41
+ *
42
+ * <p>This class does not perform the actual parsing, just acts as an interface
43
+ * to Ruby code. When the {@link #parse()} method is invoked, a
44
+ * Parser.ParserSession object is instantiated, which handles the process.
45
+ *
46
+ * @author mernen
47
+ */
48
+ public class Parser extends RubyObject {
49
+ private final RuntimeInfo info;
50
+ private RubyString vSource;
51
+ private RubyString createId;
52
+ private boolean createAdditions;
53
+ private int maxNesting;
54
+ private boolean allowNaN;
55
+ private boolean symbolizeNames;
56
+ private boolean quirksMode;
57
+ private RubyClass objectClass;
58
+ private RubyClass arrayClass;
59
+ private RubyHash match_string;
60
+
61
+ private static final int DEFAULT_MAX_NESTING = 19;
62
+
63
+ private static final ByteList JSON_MINUS_INFINITY = new ByteList(ByteList.plain("-Infinity"));
64
+ // constant names in the JSON module containing those values
65
+ private static final String CONST_NAN = "NaN";
66
+ private static final String CONST_INFINITY = "Infinity";
67
+ private static final String CONST_MINUS_INFINITY = "MinusInfinity";
68
+
69
+ static final ObjectAllocator ALLOCATOR = new ObjectAllocator() {
70
+ public IRubyObject allocate(Ruby runtime, RubyClass klazz) {
71
+ return new Parser(runtime, klazz);
72
+ }
73
+ };
74
+
75
+ /**
76
+ * Multiple-value return for internal parser methods.
77
+ *
78
+ * <p>All the <code>parse<var>Stuff</var></code> methods return instances of
79
+ * <code>ParserResult</code> when successful, or <code>null</code> when
80
+ * there's a problem with the input data.
81
+ */
82
+ static final class ParserResult {
83
+ /**
84
+ * The result of the successful parsing. Should never be
85
+ * <code>null</code>.
86
+ */
87
+ IRubyObject result;
88
+ /**
89
+ * The point where the parser returned.
90
+ */
91
+ int p;
92
+
93
+ void update(IRubyObject result, int p) {
94
+ this.result = result;
95
+ this.p = p;
96
+ }
97
+ }
98
+
99
+ public Parser(Ruby runtime, RubyClass metaClass) {
100
+ super(runtime, metaClass);
101
+ info = RuntimeInfo.forRuntime(runtime);
102
+ }
103
+
104
+ /**
105
+ * <code>Parser.new(source, opts = {})</code>
106
+ *
107
+ * <p>Creates a new <code>JSON::Ext::Parser</code> instance for the string
108
+ * <code>source</code>.
109
+ * It will be configured by the <code>opts</code> Hash.
110
+ * <code>opts</code> can have the following keys:
111
+ *
112
+ * <dl>
113
+ * <dt><code>:max_nesting</code>
114
+ * <dd>The maximum depth of nesting allowed in the parsed data
115
+ * structures. Disable depth checking with <code>:max_nesting => false|nil|0</code>,
116
+ * it defaults to 19.
117
+ *
118
+ * <dt><code>:allow_nan</code>
119
+ * <dd>If set to <code>true</code>, allow <code>NaN</code>,
120
+ * <code>Infinity</code> and <code>-Infinity</code> in defiance of RFC 4627
121
+ * to be parsed by the Parser. This option defaults to <code>false</code>.
122
+ *
123
+ * <dt><code>:symbolize_names</code>
124
+ * <dd>If set to <code>true</code>, returns symbols for the names (keys) in
125
+ * a JSON object. Otherwise strings are returned, which is also the default.
126
+ *
127
+ * <dt><code>:quirks_mode?</code>
128
+ * <dd>If set to <code>true</code>, if the parse is in quirks_mode, false
129
+ * otherwise.
130
+ *
131
+ * <dt><code>:create_additions</code>
132
+ * <dd>If set to <code>false</code>, the Parser doesn't create additions
133
+ * even if a matchin class and <code>create_id</code> was found. This option
134
+ * defaults to <code>true</code>.
135
+ *
136
+ * <dt><code>:object_class</code>
137
+ * <dd>Defaults to Hash.
138
+ *
139
+ * <dt><code>:array_class</code>
140
+ * <dd>Defaults to Array.
141
+ *
142
+ * <dt><code>:quirks_mode</code>
143
+ * <dd>Enables quirks_mode for parser, that is for example parsing single
144
+ * JSON values instead of documents is possible.
145
+ * </dl>
146
+ */
147
+ @JRubyMethod(name = "new", required = 1, optional = 1, meta = true)
148
+ public static IRubyObject newInstance(IRubyObject clazz, IRubyObject[] args, Block block) {
149
+ Parser parser = (Parser)((RubyClass)clazz).allocate();
150
+
151
+ parser.callInit(args, block);
152
+
153
+ return parser;
154
+ }
155
+
156
+ @JRubyMethod(required = 1, optional = 1, visibility = Visibility.PRIVATE)
157
+ public IRubyObject initialize(ThreadContext context, IRubyObject[] args) {
158
+ Ruby runtime = context.getRuntime();
159
+ if (this.vSource != null) {
160
+ throw runtime.newTypeError("already initialized instance");
161
+ }
162
+
163
+ OptionsReader opts = new OptionsReader(context, args.length > 1 ? args[1] : null);
164
+ this.maxNesting = opts.getInt("max_nesting", DEFAULT_MAX_NESTING);
165
+ this.allowNaN = opts.getBool("allow_nan", false);
166
+ this.symbolizeNames = opts.getBool("symbolize_names", false);
167
+ this.quirksMode = opts.getBool("quirks_mode", false);
168
+ this.createId = opts.getString("create_id", getCreateId(context));
169
+ this.createAdditions = opts.getBool("create_additions", true);
170
+ this.objectClass = opts.getClass("object_class", runtime.getHash());
171
+ this.arrayClass = opts.getClass("array_class", runtime.getArray());
172
+ this.match_string = opts.getHash("match_string");
173
+
174
+ this.vSource = args[0].convertToString();
175
+ if (!quirksMode) this.vSource = convertEncoding(context, vSource);
176
+
177
+ return this;
178
+ }
179
+
180
+ /**
181
+ * Checks the given string's encoding. If a non-UTF-8 encoding is detected,
182
+ * a converted copy is returned.
183
+ * Returns the source string if no conversion is needed.
184
+ */
185
+ private RubyString convertEncoding(ThreadContext context, RubyString source) {
186
+ ByteList bl = source.getByteList();
187
+ int len = bl.length();
188
+ if (len < 2) {
189
+ throw Utils.newException(context, Utils.M_PARSER_ERROR,
190
+ "A JSON text must at least contain two octets!");
191
+ }
192
+
193
+ if (info.encodingsSupported()) {
194
+ RubyEncoding encoding = (RubyEncoding)source.encoding(context);
195
+ if (encoding != info.ascii8bit.get()) {
196
+ return (RubyString)source.encode(context, info.utf8.get());
197
+ }
198
+
199
+ String sniffedEncoding = sniffByteList(bl);
200
+ if (sniffedEncoding == null) return source; // assume UTF-8
201
+ return reinterpretEncoding(context, source, sniffedEncoding);
202
+ }
203
+
204
+ String sniffedEncoding = sniffByteList(bl);
205
+ if (sniffedEncoding == null) return source; // assume UTF-8
206
+ Ruby runtime = context.getRuntime();
207
+ return (RubyString)info.jsonModule.get().
208
+ callMethod(context, "iconv",
209
+ new IRubyObject[] {
210
+ runtime.newString("utf-8"),
211
+ runtime.newString(sniffedEncoding),
212
+ source});
213
+ }
214
+
215
+ /**
216
+ * Checks the first four bytes of the given ByteList to infer its encoding,
217
+ * using the principle demonstrated on section 3 of RFC 4627 (JSON).
218
+ */
219
+ private static String sniffByteList(ByteList bl) {
220
+ if (bl.length() < 4) return null;
221
+ if (bl.get(0) == 0 && bl.get(2) == 0) {
222
+ return bl.get(1) == 0 ? "utf-32be" : "utf-16be";
223
+ }
224
+ if (bl.get(1) == 0 && bl.get(3) == 0) {
225
+ return bl.get(2) == 0 ? "utf-32le" : "utf-16le";
226
+ }
227
+ return null;
228
+ }
229
+
230
+ /**
231
+ * Assumes the given (binary) RubyString to be in the given encoding, then
232
+ * converts it to UTF-8.
233
+ */
234
+ private RubyString reinterpretEncoding(ThreadContext context,
235
+ RubyString str, String sniffedEncoding) {
236
+ RubyEncoding actualEncoding = info.getEncoding(context, sniffedEncoding);
237
+ RubyEncoding targetEncoding = info.utf8.get();
238
+ RubyString dup = (RubyString)str.dup();
239
+ dup.force_encoding(context, actualEncoding);
240
+ return (RubyString)dup.encode_bang(context, targetEncoding);
241
+ }
242
+
243
+ /**
244
+ * <code>Parser#parse()</code>
245
+ *
246
+ * <p>Parses the current JSON text <code>source</code> and returns the
247
+ * complete data structure as a result.
248
+ */
249
+ @JRubyMethod
250
+ public IRubyObject parse(ThreadContext context) {
251
+ return new ParserSession(this, context).parse();
252
+ }
253
+
254
+ /**
255
+ * <code>Parser#source()</code>
256
+ *
257
+ * <p>Returns a copy of the current <code>source</code> string, that was
258
+ * used to construct this Parser.
259
+ */
260
+ @JRubyMethod(name = "source")
261
+ public IRubyObject source_get() {
262
+ return checkAndGetSource().dup();
263
+ }
264
+
265
+ /**
266
+ * <code>Parser#quirks_mode?()</code>
267
+ *
268
+ * <p>If set to <code>true</code>, if the parse is in quirks_mode, false
269
+ * otherwise.
270
+ */
271
+ @JRubyMethod(name = "quirks_mode?")
272
+ public IRubyObject quirks_mode_p(ThreadContext context) {
273
+ return context.getRuntime().newBoolean(quirksMode);
274
+ }
275
+
276
+ public RubyString checkAndGetSource() {
277
+ if (vSource != null) {
278
+ return vSource;
279
+ } else {
280
+ throw getRuntime().newTypeError("uninitialized instance");
281
+ }
282
+ }
283
+
284
+ /**
285
+ * Queries <code>JSON.create_id</code>. Returns <code>null</code> if it is
286
+ * set to <code>nil</code> or <code>false</code>, and a String if not.
287
+ */
288
+ private RubyString getCreateId(ThreadContext context) {
289
+ IRubyObject v = info.jsonModule.get().callMethod(context, "create_id");
290
+ return v.isTrue() ? v.convertToString() : null;
291
+ }
292
+
293
+ /**
294
+ * A string parsing session.
295
+ *
296
+ * <p>Once a ParserSession is instantiated, the source string should not
297
+ * change until the parsing is complete. The ParserSession object assumes
298
+ * the source {@link RubyString} is still associated to its original
299
+ * {@link ByteList}, which in turn must still be bound to the same
300
+ * <code>byte[]</code> value (and on the same offset).
301
+ */
302
+ // Ragel uses lots of fall-through
303
+ @SuppressWarnings("fallthrough")
304
+ private static class ParserSession {
305
+ private final Parser parser;
306
+ private final ThreadContext context;
307
+ private final ByteList byteList;
308
+ private final ByteList view;
309
+ private final byte[] data;
310
+ private final StringDecoder decoder;
311
+ private int currentNesting = 0;
312
+ private final DoubleConverter dc;
313
+
314
+ // initialization value for all state variables.
315
+ // no idea about the origins of this value, ask Flori ;)
316
+ private static final int EVIL = 0x666;
317
+
318
+ private ParserSession(Parser parser, ThreadContext context) {
319
+ this.parser = parser;
320
+ this.context = context;
321
+ this.byteList = parser.checkAndGetSource().getByteList();
322
+ this.data = byteList.unsafeBytes();
323
+ this.view = new ByteList(data, false);
324
+ this.decoder = new StringDecoder(context);
325
+ this.dc = new DoubleConverter();
326
+ }
327
+
328
+ private RaiseException unexpectedToken(int absStart, int absEnd) {
329
+ RubyString msg = getRuntime().newString("unexpected token at '")
330
+ .cat(data, absStart, absEnd - absStart)
331
+ .cat((byte)'\'');
332
+ return newException(Utils.M_PARSER_ERROR, msg);
333
+ }
334
+
335
+ private Ruby getRuntime() {
336
+ return context.getRuntime();
337
+ }
338
+
339
+
340
+ // line 363 "Parser.rl"
341
+
342
+
343
+
344
+ // line 345 "Parser.java"
345
+ private static byte[] init__JSON_value_actions_0()
346
+ {
347
+ return new byte [] {
348
+ 0, 1, 0, 1, 1, 1, 2, 1, 3, 1, 4, 1,
349
+ 5, 1, 6, 1, 7, 1, 8, 1, 9
350
+ };
351
+ }
352
+
353
+ private static final byte _JSON_value_actions[] = init__JSON_value_actions_0();
354
+
355
+
356
+ private static byte[] init__JSON_value_key_offsets_0()
357
+ {
358
+ return new byte [] {
359
+ 0, 0, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
360
+ 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
361
+ };
362
+ }
363
+
364
+ private static final byte _JSON_value_key_offsets[] = init__JSON_value_key_offsets_0();
365
+
366
+
367
+ private static char[] init__JSON_value_trans_keys_0()
368
+ {
369
+ return new char [] {
370
+ 34, 45, 73, 78, 91, 102, 110, 116, 123, 48, 57, 110,
371
+ 102, 105, 110, 105, 116, 121, 97, 78, 97, 108, 115, 101,
372
+ 117, 108, 108, 114, 117, 101, 0
373
+ };
374
+ }
375
+
376
+ private static final char _JSON_value_trans_keys[] = init__JSON_value_trans_keys_0();
377
+
378
+
379
+ private static byte[] init__JSON_value_single_lengths_0()
380
+ {
381
+ return new byte [] {
382
+ 0, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
383
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0
384
+ };
385
+ }
386
+
387
+ private static final byte _JSON_value_single_lengths[] = init__JSON_value_single_lengths_0();
388
+
389
+
390
+ private static byte[] init__JSON_value_range_lengths_0()
391
+ {
392
+ return new byte [] {
393
+ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
394
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
395
+ };
396
+ }
397
+
398
+ private static final byte _JSON_value_range_lengths[] = init__JSON_value_range_lengths_0();
399
+
400
+
401
+ private static byte[] init__JSON_value_index_offsets_0()
402
+ {
403
+ return new byte [] {
404
+ 0, 0, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29,
405
+ 31, 33, 35, 37, 39, 41, 43, 45, 47, 49
406
+ };
407
+ }
408
+
409
+ private static final byte _JSON_value_index_offsets[] = init__JSON_value_index_offsets_0();
410
+
411
+
412
+ private static byte[] init__JSON_value_trans_targs_0()
413
+ {
414
+ return new byte [] {
415
+ 21, 21, 2, 9, 21, 11, 15, 18, 21, 21, 0, 3,
416
+ 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 21,
417
+ 0, 10, 0, 21, 0, 12, 0, 13, 0, 14, 0, 21,
418
+ 0, 16, 0, 17, 0, 21, 0, 19, 0, 20, 0, 21,
419
+ 0, 0, 0
420
+ };
421
+ }
422
+
423
+ private static final byte _JSON_value_trans_targs[] = init__JSON_value_trans_targs_0();
424
+
425
+
426
+ private static byte[] init__JSON_value_trans_actions_0()
427
+ {
428
+ return new byte [] {
429
+ 13, 11, 0, 0, 15, 0, 0, 0, 17, 11, 0, 0,
430
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9,
431
+ 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 3,
432
+ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 5,
433
+ 0, 0, 0
434
+ };
435
+ }
436
+
437
+ private static final byte _JSON_value_trans_actions[] = init__JSON_value_trans_actions_0();
438
+
439
+
440
+ private static byte[] init__JSON_value_from_state_actions_0()
441
+ {
442
+ return new byte [] {
443
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
444
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 19
445
+ };
446
+ }
447
+
448
+ private static final byte _JSON_value_from_state_actions[] = init__JSON_value_from_state_actions_0();
449
+
450
+
451
+ static final int JSON_value_start = 1;
452
+ static final int JSON_value_first_final = 21;
453
+ static final int JSON_value_error = 0;
454
+
455
+ static final int JSON_value_en_main = 1;
456
+
457
+
458
+ // line 469 "Parser.rl"
459
+
460
+
461
+ void parseValue(ParserResult res, int p, int pe) {
462
+ int cs = EVIL;
463
+ IRubyObject result = null;
464
+
465
+
466
+ // line 467 "Parser.java"
467
+ {
468
+ cs = JSON_value_start;
469
+ }
470
+
471
+ // line 476 "Parser.rl"
472
+
473
+ // line 474 "Parser.java"
474
+ {
475
+ int _klen;
476
+ int _trans = 0;
477
+ int _acts;
478
+ int _nacts;
479
+ int _keys;
480
+ int _goto_targ = 0;
481
+
482
+ _goto: while (true) {
483
+ switch ( _goto_targ ) {
484
+ case 0:
485
+ if ( p == pe ) {
486
+ _goto_targ = 4;
487
+ continue _goto;
488
+ }
489
+ if ( cs == 0 ) {
490
+ _goto_targ = 5;
491
+ continue _goto;
492
+ }
493
+ case 1:
494
+ _acts = _JSON_value_from_state_actions[cs];
495
+ _nacts = (int) _JSON_value_actions[_acts++];
496
+ while ( _nacts-- > 0 ) {
497
+ switch ( _JSON_value_actions[_acts++] ) {
498
+ case 9:
499
+ // line 454 "Parser.rl"
500
+ {
501
+ p--;
502
+ { p += 1; _goto_targ = 5; if (true) continue _goto;}
503
+ }
504
+ break;
505
+ // line 506 "Parser.java"
506
+ }
507
+ }
508
+
509
+ _match: do {
510
+ _keys = _JSON_value_key_offsets[cs];
511
+ _trans = _JSON_value_index_offsets[cs];
512
+ _klen = _JSON_value_single_lengths[cs];
513
+ if ( _klen > 0 ) {
514
+ int _lower = _keys;
515
+ int _mid;
516
+ int _upper = _keys + _klen - 1;
517
+ while (true) {
518
+ if ( _upper < _lower )
519
+ break;
520
+
521
+ _mid = _lower + ((_upper-_lower) >> 1);
522
+ if ( data[p] < _JSON_value_trans_keys[_mid] )
523
+ _upper = _mid - 1;
524
+ else if ( data[p] > _JSON_value_trans_keys[_mid] )
525
+ _lower = _mid + 1;
526
+ else {
527
+ _trans += (_mid - _keys);
528
+ break _match;
529
+ }
530
+ }
531
+ _keys += _klen;
532
+ _trans += _klen;
533
+ }
534
+
535
+ _klen = _JSON_value_range_lengths[cs];
536
+ if ( _klen > 0 ) {
537
+ int _lower = _keys;
538
+ int _mid;
539
+ int _upper = _keys + (_klen<<1) - 2;
540
+ while (true) {
541
+ if ( _upper < _lower )
542
+ break;
543
+
544
+ _mid = _lower + (((_upper-_lower) >> 1) & ~1);
545
+ if ( data[p] < _JSON_value_trans_keys[_mid] )
546
+ _upper = _mid - 2;
547
+ else if ( data[p] > _JSON_value_trans_keys[_mid+1] )
548
+ _lower = _mid + 2;
549
+ else {
550
+ _trans += ((_mid - _keys)>>1);
551
+ break _match;
552
+ }
553
+ }
554
+ _trans += _klen;
555
+ }
556
+ } while (false);
557
+
558
+ cs = _JSON_value_trans_targs[_trans];
559
+
560
+ if ( _JSON_value_trans_actions[_trans] != 0 ) {
561
+ _acts = _JSON_value_trans_actions[_trans];
562
+ _nacts = (int) _JSON_value_actions[_acts++];
563
+ while ( _nacts-- > 0 )
564
+ {
565
+ switch ( _JSON_value_actions[_acts++] )
566
+ {
567
+ case 0:
568
+ // line 371 "Parser.rl"
569
+ {
570
+ result = getRuntime().getNil();
571
+ }
572
+ break;
573
+ case 1:
574
+ // line 374 "Parser.rl"
575
+ {
576
+ result = getRuntime().getFalse();
577
+ }
578
+ break;
579
+ case 2:
580
+ // line 377 "Parser.rl"
581
+ {
582
+ result = getRuntime().getTrue();
583
+ }
584
+ break;
585
+ case 3:
586
+ // line 380 "Parser.rl"
587
+ {
588
+ if (parser.allowNaN) {
589
+ result = getConstant(CONST_NAN);
590
+ } else {
591
+ throw unexpectedToken(p - 2, pe);
592
+ }
593
+ }
594
+ break;
595
+ case 4:
596
+ // line 387 "Parser.rl"
597
+ {
598
+ if (parser.allowNaN) {
599
+ result = getConstant(CONST_INFINITY);
600
+ } else {
601
+ throw unexpectedToken(p - 7, pe);
602
+ }
603
+ }
604
+ break;
605
+ case 5:
606
+ // line 394 "Parser.rl"
607
+ {
608
+ if (pe > p + 9 - (parser.quirksMode ? 1 : 0) &&
609
+ absSubSequence(p, p + 9).equals(JSON_MINUS_INFINITY)) {
610
+
611
+ if (parser.allowNaN) {
612
+ result = getConstant(CONST_MINUS_INFINITY);
613
+ {p = (( p + 10))-1;}
614
+ p--;
615
+ { p += 1; _goto_targ = 5; if (true) continue _goto;}
616
+ } else {
617
+ throw unexpectedToken(p, pe);
618
+ }
619
+ }
620
+ parseFloat(res, p, pe);
621
+ if (res.result != null) {
622
+ result = res.result;
623
+ {p = (( res.p))-1;}
624
+ }
625
+ parseInteger(res, p, pe);
626
+ if (res.result != null) {
627
+ result = res.result;
628
+ {p = (( res.p))-1;}
629
+ }
630
+ p--;
631
+ { p += 1; _goto_targ = 5; if (true) continue _goto;}
632
+ }
633
+ break;
634
+ case 6:
635
+ // line 420 "Parser.rl"
636
+ {
637
+ parseString(res, p, pe);
638
+ if (res.result == null) {
639
+ p--;
640
+ { p += 1; _goto_targ = 5; if (true) continue _goto;}
641
+ } else {
642
+ result = res.result;
643
+ {p = (( res.p))-1;}
644
+ }
645
+ }
646
+ break;
647
+ case 7:
648
+ // line 430 "Parser.rl"
649
+ {
650
+ currentNesting++;
651
+ parseArray(res, p, pe);
652
+ currentNesting--;
653
+ if (res.result == null) {
654
+ p--;
655
+ { p += 1; _goto_targ = 5; if (true) continue _goto;}
656
+ } else {
657
+ result = res.result;
658
+ {p = (( res.p))-1;}
659
+ }
660
+ }
661
+ break;
662
+ case 8:
663
+ // line 442 "Parser.rl"
664
+ {
665
+ currentNesting++;
666
+ parseObject(res, p, pe);
667
+ currentNesting--;
668
+ if (res.result == null) {
669
+ p--;
670
+ { p += 1; _goto_targ = 5; if (true) continue _goto;}
671
+ } else {
672
+ result = res.result;
673
+ {p = (( res.p))-1;}
674
+ }
675
+ }
676
+ break;
677
+ // line 678 "Parser.java"
678
+ }
679
+ }
680
+ }
681
+
682
+ case 2:
683
+ if ( cs == 0 ) {
684
+ _goto_targ = 5;
685
+ continue _goto;
686
+ }
687
+ if ( ++p != pe ) {
688
+ _goto_targ = 1;
689
+ continue _goto;
690
+ }
691
+ case 4:
692
+ case 5:
693
+ }
694
+ break; }
695
+ }
696
+
697
+ // line 477 "Parser.rl"
698
+
699
+ if (cs >= JSON_value_first_final && result != null) {
700
+ res.update(result, p);
701
+ } else {
702
+ res.update(null, p);
703
+ }
704
+ }
705
+
706
+
707
+ // line 708 "Parser.java"
708
+ private static byte[] init__JSON_integer_actions_0()
709
+ {
710
+ return new byte [] {
711
+ 0, 1, 0
712
+ };
713
+ }
714
+
715
+ private static final byte _JSON_integer_actions[] = init__JSON_integer_actions_0();
716
+
717
+
718
+ private static byte[] init__JSON_integer_key_offsets_0()
719
+ {
720
+ return new byte [] {
721
+ 0, 0, 4, 7, 9, 9
722
+ };
723
+ }
724
+
725
+ private static final byte _JSON_integer_key_offsets[] = init__JSON_integer_key_offsets_0();
726
+
727
+
728
+ private static char[] init__JSON_integer_trans_keys_0()
729
+ {
730
+ return new char [] {
731
+ 45, 48, 49, 57, 48, 49, 57, 48, 57, 48, 57, 0
732
+ };
733
+ }
734
+
735
+ private static final char _JSON_integer_trans_keys[] = init__JSON_integer_trans_keys_0();
736
+
737
+
738
+ private static byte[] init__JSON_integer_single_lengths_0()
739
+ {
740
+ return new byte [] {
741
+ 0, 2, 1, 0, 0, 0
742
+ };
743
+ }
744
+
745
+ private static final byte _JSON_integer_single_lengths[] = init__JSON_integer_single_lengths_0();
746
+
747
+
748
+ private static byte[] init__JSON_integer_range_lengths_0()
749
+ {
750
+ return new byte [] {
751
+ 0, 1, 1, 1, 0, 1
752
+ };
753
+ }
754
+
755
+ private static final byte _JSON_integer_range_lengths[] = init__JSON_integer_range_lengths_0();
756
+
757
+
758
+ private static byte[] init__JSON_integer_index_offsets_0()
759
+ {
760
+ return new byte [] {
761
+ 0, 0, 4, 7, 9, 10
762
+ };
763
+ }
764
+
765
+ private static final byte _JSON_integer_index_offsets[] = init__JSON_integer_index_offsets_0();
766
+
767
+
768
+ private static byte[] init__JSON_integer_indicies_0()
769
+ {
770
+ return new byte [] {
771
+ 0, 2, 3, 1, 2, 3, 1, 1, 4, 1, 3, 4,
772
+ 0
773
+ };
774
+ }
775
+
776
+ private static final byte _JSON_integer_indicies[] = init__JSON_integer_indicies_0();
777
+
778
+
779
+ private static byte[] init__JSON_integer_trans_targs_0()
780
+ {
781
+ return new byte [] {
782
+ 2, 0, 3, 5, 4
783
+ };
784
+ }
785
+
786
+ private static final byte _JSON_integer_trans_targs[] = init__JSON_integer_trans_targs_0();
787
+
788
+
789
+ private static byte[] init__JSON_integer_trans_actions_0()
790
+ {
791
+ return new byte [] {
792
+ 0, 0, 0, 0, 1
793
+ };
794
+ }
795
+
796
+ private static final byte _JSON_integer_trans_actions[] = init__JSON_integer_trans_actions_0();
797
+
798
+
799
+ static final int JSON_integer_start = 1;
800
+ static final int JSON_integer_first_final = 3;
801
+ static final int JSON_integer_error = 0;
802
+
803
+ static final int JSON_integer_en_main = 1;
804
+
805
+
806
+ // line 496 "Parser.rl"
807
+
808
+
809
+ void parseInteger(ParserResult res, int p, int pe) {
810
+ int new_p = parseIntegerInternal(p, pe);
811
+ if (new_p == -1) {
812
+ res.update(null, p);
813
+ return;
814
+ }
815
+ RubyInteger number = createInteger(p, new_p);
816
+ res.update(number, new_p + 1);
817
+ return;
818
+ }
819
+
820
+ int parseIntegerInternal(int p, int pe) {
821
+ int cs = EVIL;
822
+
823
+
824
+ // line 825 "Parser.java"
825
+ {
826
+ cs = JSON_integer_start;
827
+ }
828
+
829
+ // line 513 "Parser.rl"
830
+ int memo = p;
831
+
832
+ // line 833 "Parser.java"
833
+ {
834
+ int _klen;
835
+ int _trans = 0;
836
+ int _acts;
837
+ int _nacts;
838
+ int _keys;
839
+ int _goto_targ = 0;
840
+
841
+ _goto: while (true) {
842
+ switch ( _goto_targ ) {
843
+ case 0:
844
+ if ( p == pe ) {
845
+ _goto_targ = 4;
846
+ continue _goto;
847
+ }
848
+ if ( cs == 0 ) {
849
+ _goto_targ = 5;
850
+ continue _goto;
851
+ }
852
+ case 1:
853
+ _match: do {
854
+ _keys = _JSON_integer_key_offsets[cs];
855
+ _trans = _JSON_integer_index_offsets[cs];
856
+ _klen = _JSON_integer_single_lengths[cs];
857
+ if ( _klen > 0 ) {
858
+ int _lower = _keys;
859
+ int _mid;
860
+ int _upper = _keys + _klen - 1;
861
+ while (true) {
862
+ if ( _upper < _lower )
863
+ break;
864
+
865
+ _mid = _lower + ((_upper-_lower) >> 1);
866
+ if ( data[p] < _JSON_integer_trans_keys[_mid] )
867
+ _upper = _mid - 1;
868
+ else if ( data[p] > _JSON_integer_trans_keys[_mid] )
869
+ _lower = _mid + 1;
870
+ else {
871
+ _trans += (_mid - _keys);
872
+ break _match;
873
+ }
874
+ }
875
+ _keys += _klen;
876
+ _trans += _klen;
877
+ }
878
+
879
+ _klen = _JSON_integer_range_lengths[cs];
880
+ if ( _klen > 0 ) {
881
+ int _lower = _keys;
882
+ int _mid;
883
+ int _upper = _keys + (_klen<<1) - 2;
884
+ while (true) {
885
+ if ( _upper < _lower )
886
+ break;
887
+
888
+ _mid = _lower + (((_upper-_lower) >> 1) & ~1);
889
+ if ( data[p] < _JSON_integer_trans_keys[_mid] )
890
+ _upper = _mid - 2;
891
+ else if ( data[p] > _JSON_integer_trans_keys[_mid+1] )
892
+ _lower = _mid + 2;
893
+ else {
894
+ _trans += ((_mid - _keys)>>1);
895
+ break _match;
896
+ }
897
+ }
898
+ _trans += _klen;
899
+ }
900
+ } while (false);
901
+
902
+ _trans = _JSON_integer_indicies[_trans];
903
+ cs = _JSON_integer_trans_targs[_trans];
904
+
905
+ if ( _JSON_integer_trans_actions[_trans] != 0 ) {
906
+ _acts = _JSON_integer_trans_actions[_trans];
907
+ _nacts = (int) _JSON_integer_actions[_acts++];
908
+ while ( _nacts-- > 0 )
909
+ {
910
+ switch ( _JSON_integer_actions[_acts++] )
911
+ {
912
+ case 0:
913
+ // line 490 "Parser.rl"
914
+ {
915
+ p--;
916
+ { p += 1; _goto_targ = 5; if (true) continue _goto;}
917
+ }
918
+ break;
919
+ // line 920 "Parser.java"
920
+ }
921
+ }
922
+ }
923
+
924
+ case 2:
925
+ if ( cs == 0 ) {
926
+ _goto_targ = 5;
927
+ continue _goto;
928
+ }
929
+ if ( ++p != pe ) {
930
+ _goto_targ = 1;
931
+ continue _goto;
932
+ }
933
+ case 4:
934
+ case 5:
935
+ }
936
+ break; }
937
+ }
938
+
939
+ // line 515 "Parser.rl"
940
+
941
+ if (cs < JSON_integer_first_final) {
942
+ return -1;
943
+ }
944
+
945
+ return p;
946
+ }
947
+
948
+ RubyInteger createInteger(int p, int new_p) {
949
+ Ruby runtime = getRuntime();
950
+ ByteList num = absSubSequence(p, new_p);
951
+ return bytesToInum(runtime, num);
952
+ }
953
+
954
+ RubyInteger bytesToInum(Ruby runtime, ByteList num) {
955
+ return runtime.is1_9() ?
956
+ ConvertBytes.byteListToInum19(runtime, num, 10, true) :
957
+ ConvertBytes.byteListToInum(runtime, num, 10, true);
958
+ }
959
+
960
+
961
+ // line 962 "Parser.java"
962
+ private static byte[] init__JSON_float_actions_0()
963
+ {
964
+ return new byte [] {
965
+ 0, 1, 0
966
+ };
967
+ }
968
+
969
+ private static final byte _JSON_float_actions[] = init__JSON_float_actions_0();
970
+
971
+
972
+ private static byte[] init__JSON_float_key_offsets_0()
973
+ {
974
+ return new byte [] {
975
+ 0, 0, 4, 7, 10, 12, 16, 18, 23, 29, 29
976
+ };
977
+ }
978
+
979
+ private static final byte _JSON_float_key_offsets[] = init__JSON_float_key_offsets_0();
980
+
981
+
982
+ private static char[] init__JSON_float_trans_keys_0()
983
+ {
984
+ return new char [] {
985
+ 45, 48, 49, 57, 48, 49, 57, 46, 69, 101, 48, 57,
986
+ 43, 45, 48, 57, 48, 57, 46, 69, 101, 48, 57, 69,
987
+ 101, 45, 46, 48, 57, 69, 101, 45, 46, 48, 57, 0
988
+ };
989
+ }
990
+
991
+ private static final char _JSON_float_trans_keys[] = init__JSON_float_trans_keys_0();
992
+
993
+
994
+ private static byte[] init__JSON_float_single_lengths_0()
995
+ {
996
+ return new byte [] {
997
+ 0, 2, 1, 3, 0, 2, 0, 3, 2, 0, 2
998
+ };
999
+ }
1000
+
1001
+ private static final byte _JSON_float_single_lengths[] = init__JSON_float_single_lengths_0();
1002
+
1003
+
1004
+ private static byte[] init__JSON_float_range_lengths_0()
1005
+ {
1006
+ return new byte [] {
1007
+ 0, 1, 1, 0, 1, 1, 1, 1, 2, 0, 2
1008
+ };
1009
+ }
1010
+
1011
+ private static final byte _JSON_float_range_lengths[] = init__JSON_float_range_lengths_0();
1012
+
1013
+
1014
+ private static byte[] init__JSON_float_index_offsets_0()
1015
+ {
1016
+ return new byte [] {
1017
+ 0, 0, 4, 7, 11, 13, 17, 19, 24, 29, 30
1018
+ };
1019
+ }
1020
+
1021
+ private static final byte _JSON_float_index_offsets[] = init__JSON_float_index_offsets_0();
1022
+
1023
+
1024
+ private static byte[] init__JSON_float_indicies_0()
1025
+ {
1026
+ return new byte [] {
1027
+ 0, 2, 3, 1, 2, 3, 1, 4, 5, 5, 1, 6,
1028
+ 1, 7, 7, 8, 1, 8, 1, 4, 5, 5, 3, 1,
1029
+ 5, 5, 1, 6, 9, 1, 1, 1, 1, 8, 9, 0
1030
+ };
1031
+ }
1032
+
1033
+ private static final byte _JSON_float_indicies[] = init__JSON_float_indicies_0();
1034
+
1035
+
1036
+ private static byte[] init__JSON_float_trans_targs_0()
1037
+ {
1038
+ return new byte [] {
1039
+ 2, 0, 3, 7, 4, 5, 8, 6, 10, 9
1040
+ };
1041
+ }
1042
+
1043
+ private static final byte _JSON_float_trans_targs[] = init__JSON_float_trans_targs_0();
1044
+
1045
+
1046
+ private static byte[] init__JSON_float_trans_actions_0()
1047
+ {
1048
+ return new byte [] {
1049
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1
1050
+ };
1051
+ }
1052
+
1053
+ private static final byte _JSON_float_trans_actions[] = init__JSON_float_trans_actions_0();
1054
+
1055
+
1056
+ static final int JSON_float_start = 1;
1057
+ static final int JSON_float_first_final = 8;
1058
+ static final int JSON_float_error = 0;
1059
+
1060
+ static final int JSON_float_en_main = 1;
1061
+
1062
+
1063
+ // line 550 "Parser.rl"
1064
+
1065
+
1066
+ void parseFloat(ParserResult res, int p, int pe) {
1067
+ int new_p = parseFloatInternal(p, pe);
1068
+ if (new_p == -1) {
1069
+ res.update(null, p);
1070
+ return;
1071
+ }
1072
+ RubyFloat number = createFloat(p, new_p);
1073
+ res.update(number, new_p + 1);
1074
+ return;
1075
+ }
1076
+
1077
+ int parseFloatInternal(int p, int pe) {
1078
+ int cs = EVIL;
1079
+
1080
+
1081
+ // line 1082 "Parser.java"
1082
+ {
1083
+ cs = JSON_float_start;
1084
+ }
1085
+
1086
+ // line 567 "Parser.rl"
1087
+ int memo = p;
1088
+
1089
+ // line 1090 "Parser.java"
1090
+ {
1091
+ int _klen;
1092
+ int _trans = 0;
1093
+ int _acts;
1094
+ int _nacts;
1095
+ int _keys;
1096
+ int _goto_targ = 0;
1097
+
1098
+ _goto: while (true) {
1099
+ switch ( _goto_targ ) {
1100
+ case 0:
1101
+ if ( p == pe ) {
1102
+ _goto_targ = 4;
1103
+ continue _goto;
1104
+ }
1105
+ if ( cs == 0 ) {
1106
+ _goto_targ = 5;
1107
+ continue _goto;
1108
+ }
1109
+ case 1:
1110
+ _match: do {
1111
+ _keys = _JSON_float_key_offsets[cs];
1112
+ _trans = _JSON_float_index_offsets[cs];
1113
+ _klen = _JSON_float_single_lengths[cs];
1114
+ if ( _klen > 0 ) {
1115
+ int _lower = _keys;
1116
+ int _mid;
1117
+ int _upper = _keys + _klen - 1;
1118
+ while (true) {
1119
+ if ( _upper < _lower )
1120
+ break;
1121
+
1122
+ _mid = _lower + ((_upper-_lower) >> 1);
1123
+ if ( data[p] < _JSON_float_trans_keys[_mid] )
1124
+ _upper = _mid - 1;
1125
+ else if ( data[p] > _JSON_float_trans_keys[_mid] )
1126
+ _lower = _mid + 1;
1127
+ else {
1128
+ _trans += (_mid - _keys);
1129
+ break _match;
1130
+ }
1131
+ }
1132
+ _keys += _klen;
1133
+ _trans += _klen;
1134
+ }
1135
+
1136
+ _klen = _JSON_float_range_lengths[cs];
1137
+ if ( _klen > 0 ) {
1138
+ int _lower = _keys;
1139
+ int _mid;
1140
+ int _upper = _keys + (_klen<<1) - 2;
1141
+ while (true) {
1142
+ if ( _upper < _lower )
1143
+ break;
1144
+
1145
+ _mid = _lower + (((_upper-_lower) >> 1) & ~1);
1146
+ if ( data[p] < _JSON_float_trans_keys[_mid] )
1147
+ _upper = _mid - 2;
1148
+ else if ( data[p] > _JSON_float_trans_keys[_mid+1] )
1149
+ _lower = _mid + 2;
1150
+ else {
1151
+ _trans += ((_mid - _keys)>>1);
1152
+ break _match;
1153
+ }
1154
+ }
1155
+ _trans += _klen;
1156
+ }
1157
+ } while (false);
1158
+
1159
+ _trans = _JSON_float_indicies[_trans];
1160
+ cs = _JSON_float_trans_targs[_trans];
1161
+
1162
+ if ( _JSON_float_trans_actions[_trans] != 0 ) {
1163
+ _acts = _JSON_float_trans_actions[_trans];
1164
+ _nacts = (int) _JSON_float_actions[_acts++];
1165
+ while ( _nacts-- > 0 )
1166
+ {
1167
+ switch ( _JSON_float_actions[_acts++] )
1168
+ {
1169
+ case 0:
1170
+ // line 541 "Parser.rl"
1171
+ {
1172
+ p--;
1173
+ { p += 1; _goto_targ = 5; if (true) continue _goto;}
1174
+ }
1175
+ break;
1176
+ // line 1177 "Parser.java"
1177
+ }
1178
+ }
1179
+ }
1180
+
1181
+ case 2:
1182
+ if ( cs == 0 ) {
1183
+ _goto_targ = 5;
1184
+ continue _goto;
1185
+ }
1186
+ if ( ++p != pe ) {
1187
+ _goto_targ = 1;
1188
+ continue _goto;
1189
+ }
1190
+ case 4:
1191
+ case 5:
1192
+ }
1193
+ break; }
1194
+ }
1195
+
1196
+ // line 569 "Parser.rl"
1197
+
1198
+ if (cs < JSON_float_first_final) {
1199
+ return -1;
1200
+ }
1201
+
1202
+ return p;
1203
+ }
1204
+
1205
+ RubyFloat createFloat(int p, int new_p) {
1206
+ Ruby runtime = getRuntime();
1207
+ ByteList num = absSubSequence(p, new_p);
1208
+ return RubyFloat.newFloat(runtime, dc.parse(num, true, runtime.is1_9()));
1209
+ }
1210
+
1211
+
1212
+ // line 1213 "Parser.java"
1213
+ private static byte[] init__JSON_string_actions_0()
1214
+ {
1215
+ return new byte [] {
1216
+ 0, 2, 0, 1
1217
+ };
1218
+ }
1219
+
1220
+ private static final byte _JSON_string_actions[] = init__JSON_string_actions_0();
1221
+
1222
+
1223
+ private static byte[] init__JSON_string_key_offsets_0()
1224
+ {
1225
+ return new byte [] {
1226
+ 0, 0, 1, 5, 8, 14, 20, 26, 32
1227
+ };
1228
+ }
1229
+
1230
+ private static final byte _JSON_string_key_offsets[] = init__JSON_string_key_offsets_0();
1231
+
1232
+
1233
+ private static char[] init__JSON_string_trans_keys_0()
1234
+ {
1235
+ return new char [] {
1236
+ 34, 34, 92, 0, 31, 117, 0, 31, 48, 57, 65, 70,
1237
+ 97, 102, 48, 57, 65, 70, 97, 102, 48, 57, 65, 70,
1238
+ 97, 102, 48, 57, 65, 70, 97, 102, 0
1239
+ };
1240
+ }
1241
+
1242
+ private static final char _JSON_string_trans_keys[] = init__JSON_string_trans_keys_0();
1243
+
1244
+
1245
+ private static byte[] init__JSON_string_single_lengths_0()
1246
+ {
1247
+ return new byte [] {
1248
+ 0, 1, 2, 1, 0, 0, 0, 0, 0
1249
+ };
1250
+ }
1251
+
1252
+ private static final byte _JSON_string_single_lengths[] = init__JSON_string_single_lengths_0();
1253
+
1254
+
1255
+ private static byte[] init__JSON_string_range_lengths_0()
1256
+ {
1257
+ return new byte [] {
1258
+ 0, 0, 1, 1, 3, 3, 3, 3, 0
1259
+ };
1260
+ }
1261
+
1262
+ private static final byte _JSON_string_range_lengths[] = init__JSON_string_range_lengths_0();
1263
+
1264
+
1265
+ private static byte[] init__JSON_string_index_offsets_0()
1266
+ {
1267
+ return new byte [] {
1268
+ 0, 0, 2, 6, 9, 13, 17, 21, 25
1269
+ };
1270
+ }
1271
+
1272
+ private static final byte _JSON_string_index_offsets[] = init__JSON_string_index_offsets_0();
1273
+
1274
+
1275
+ private static byte[] init__JSON_string_indicies_0()
1276
+ {
1277
+ return new byte [] {
1278
+ 0, 1, 2, 3, 1, 0, 4, 1, 0, 5, 5, 5,
1279
+ 1, 6, 6, 6, 1, 7, 7, 7, 1, 0, 0, 0,
1280
+ 1, 1, 0
1281
+ };
1282
+ }
1283
+
1284
+ private static final byte _JSON_string_indicies[] = init__JSON_string_indicies_0();
1285
+
1286
+
1287
+ private static byte[] init__JSON_string_trans_targs_0()
1288
+ {
1289
+ return new byte [] {
1290
+ 2, 0, 8, 3, 4, 5, 6, 7
1291
+ };
1292
+ }
1293
+
1294
+ private static final byte _JSON_string_trans_targs[] = init__JSON_string_trans_targs_0();
1295
+
1296
+
1297
+ private static byte[] init__JSON_string_trans_actions_0()
1298
+ {
1299
+ return new byte [] {
1300
+ 0, 0, 1, 0, 0, 0, 0, 0
1301
+ };
1302
+ }
1303
+
1304
+ private static final byte _JSON_string_trans_actions[] = init__JSON_string_trans_actions_0();
1305
+
1306
+
1307
+ static final int JSON_string_start = 1;
1308
+ static final int JSON_string_first_final = 8;
1309
+ static final int JSON_string_error = 0;
1310
+
1311
+ static final int JSON_string_en_main = 1;
1312
+
1313
+
1314
+ // line 614 "Parser.rl"
1315
+
1316
+
1317
+ void parseString(ParserResult res, int p, int pe) {
1318
+ int cs = EVIL;
1319
+ IRubyObject result = null;
1320
+
1321
+
1322
+ // line 1323 "Parser.java"
1323
+ {
1324
+ cs = JSON_string_start;
1325
+ }
1326
+
1327
+ // line 621 "Parser.rl"
1328
+ int memo = p;
1329
+
1330
+ // line 1331 "Parser.java"
1331
+ {
1332
+ int _klen;
1333
+ int _trans = 0;
1334
+ int _acts;
1335
+ int _nacts;
1336
+ int _keys;
1337
+ int _goto_targ = 0;
1338
+
1339
+ _goto: while (true) {
1340
+ switch ( _goto_targ ) {
1341
+ case 0:
1342
+ if ( p == pe ) {
1343
+ _goto_targ = 4;
1344
+ continue _goto;
1345
+ }
1346
+ if ( cs == 0 ) {
1347
+ _goto_targ = 5;
1348
+ continue _goto;
1349
+ }
1350
+ case 1:
1351
+ _match: do {
1352
+ _keys = _JSON_string_key_offsets[cs];
1353
+ _trans = _JSON_string_index_offsets[cs];
1354
+ _klen = _JSON_string_single_lengths[cs];
1355
+ if ( _klen > 0 ) {
1356
+ int _lower = _keys;
1357
+ int _mid;
1358
+ int _upper = _keys + _klen - 1;
1359
+ while (true) {
1360
+ if ( _upper < _lower )
1361
+ break;
1362
+
1363
+ _mid = _lower + ((_upper-_lower) >> 1);
1364
+ if ( data[p] < _JSON_string_trans_keys[_mid] )
1365
+ _upper = _mid - 1;
1366
+ else if ( data[p] > _JSON_string_trans_keys[_mid] )
1367
+ _lower = _mid + 1;
1368
+ else {
1369
+ _trans += (_mid - _keys);
1370
+ break _match;
1371
+ }
1372
+ }
1373
+ _keys += _klen;
1374
+ _trans += _klen;
1375
+ }
1376
+
1377
+ _klen = _JSON_string_range_lengths[cs];
1378
+ if ( _klen > 0 ) {
1379
+ int _lower = _keys;
1380
+ int _mid;
1381
+ int _upper = _keys + (_klen<<1) - 2;
1382
+ while (true) {
1383
+ if ( _upper < _lower )
1384
+ break;
1385
+
1386
+ _mid = _lower + (((_upper-_lower) >> 1) & ~1);
1387
+ if ( data[p] < _JSON_string_trans_keys[_mid] )
1388
+ _upper = _mid - 2;
1389
+ else if ( data[p] > _JSON_string_trans_keys[_mid+1] )
1390
+ _lower = _mid + 2;
1391
+ else {
1392
+ _trans += ((_mid - _keys)>>1);
1393
+ break _match;
1394
+ }
1395
+ }
1396
+ _trans += _klen;
1397
+ }
1398
+ } while (false);
1399
+
1400
+ _trans = _JSON_string_indicies[_trans];
1401
+ cs = _JSON_string_trans_targs[_trans];
1402
+
1403
+ if ( _JSON_string_trans_actions[_trans] != 0 ) {
1404
+ _acts = _JSON_string_trans_actions[_trans];
1405
+ _nacts = (int) _JSON_string_actions[_acts++];
1406
+ while ( _nacts-- > 0 )
1407
+ {
1408
+ switch ( _JSON_string_actions[_acts++] )
1409
+ {
1410
+ case 0:
1411
+ // line 589 "Parser.rl"
1412
+ {
1413
+ int offset = byteList.begin();
1414
+ ByteList decoded = decoder.decode(byteList, memo + 1 - offset,
1415
+ p - offset);
1416
+ result = getRuntime().newString(decoded);
1417
+ if (result == null) {
1418
+ p--;
1419
+ { p += 1; _goto_targ = 5; if (true) continue _goto;}
1420
+ } else {
1421
+ {p = (( p + 1))-1;}
1422
+ }
1423
+ }
1424
+ break;
1425
+ case 1:
1426
+ // line 602 "Parser.rl"
1427
+ {
1428
+ p--;
1429
+ { p += 1; _goto_targ = 5; if (true) continue _goto;}
1430
+ }
1431
+ break;
1432
+ // line 1433 "Parser.java"
1433
+ }
1434
+ }
1435
+ }
1436
+
1437
+ case 2:
1438
+ if ( cs == 0 ) {
1439
+ _goto_targ = 5;
1440
+ continue _goto;
1441
+ }
1442
+ if ( ++p != pe ) {
1443
+ _goto_targ = 1;
1444
+ continue _goto;
1445
+ }
1446
+ case 4:
1447
+ case 5:
1448
+ }
1449
+ break; }
1450
+ }
1451
+
1452
+ // line 623 "Parser.rl"
1453
+
1454
+ if (parser.createAdditions) {
1455
+ RubyHash match_string = parser.match_string;
1456
+ if (match_string != null) {
1457
+ final IRubyObject[] memoArray = { result, null };
1458
+ try {
1459
+ match_string.visitAll(new RubyHash.Visitor() {
1460
+ @Override
1461
+ public void visit(IRubyObject pattern, IRubyObject klass) {
1462
+ if (pattern.callMethod(context, "===", memoArray[0]).isTrue()) {
1463
+ memoArray[1] = klass;
1464
+ throw JumpException.SPECIAL_JUMP;
1465
+ }
1466
+ }
1467
+ });
1468
+ } catch (JumpException e) { }
1469
+ if (memoArray[1] != null) {
1470
+ RubyClass klass = (RubyClass) memoArray[1];
1471
+ if (klass.respondsTo("json_creatable?") &&
1472
+ klass.callMethod(context, "json_creatable?").isTrue()) {
1473
+ result = klass.callMethod(context, "json_create", result);
1474
+ }
1475
+ }
1476
+ }
1477
+ }
1478
+
1479
+ if (cs >= JSON_string_first_final && result != null) {
1480
+ res.update(result, p + 1);
1481
+ } else {
1482
+ res.update(null, p + 1);
1483
+ }
1484
+ }
1485
+
1486
+
1487
+ // line 1488 "Parser.java"
1488
+ private static byte[] init__JSON_array_actions_0()
1489
+ {
1490
+ return new byte [] {
1491
+ 0, 1, 0, 1, 1
1492
+ };
1493
+ }
1494
+
1495
+ private static final byte _JSON_array_actions[] = init__JSON_array_actions_0();
1496
+
1497
+
1498
+ private static byte[] init__JSON_array_key_offsets_0()
1499
+ {
1500
+ return new byte [] {
1501
+ 0, 0, 1, 18, 25, 41, 43, 44, 46, 47, 49, 50,
1502
+ 52, 53, 55, 56, 58, 59
1503
+ };
1504
+ }
1505
+
1506
+ private static final byte _JSON_array_key_offsets[] = init__JSON_array_key_offsets_0();
1507
+
1508
+
1509
+ private static char[] init__JSON_array_trans_keys_0()
1510
+ {
1511
+ return new char [] {
1512
+ 91, 13, 32, 34, 45, 47, 73, 78, 91, 93, 102, 110,
1513
+ 116, 123, 9, 10, 48, 57, 13, 32, 44, 47, 93, 9,
1514
+ 10, 13, 32, 34, 45, 47, 73, 78, 91, 102, 110, 116,
1515
+ 123, 9, 10, 48, 57, 42, 47, 42, 42, 47, 10, 42,
1516
+ 47, 42, 42, 47, 10, 42, 47, 42, 42, 47, 10, 0
1517
+ };
1518
+ }
1519
+
1520
+ private static final char _JSON_array_trans_keys[] = init__JSON_array_trans_keys_0();
1521
+
1522
+
1523
+ private static byte[] init__JSON_array_single_lengths_0()
1524
+ {
1525
+ return new byte [] {
1526
+ 0, 1, 13, 5, 12, 2, 1, 2, 1, 2, 1, 2,
1527
+ 1, 2, 1, 2, 1, 0
1528
+ };
1529
+ }
1530
+
1531
+ private static final byte _JSON_array_single_lengths[] = init__JSON_array_single_lengths_0();
1532
+
1533
+
1534
+ private static byte[] init__JSON_array_range_lengths_0()
1535
+ {
1536
+ return new byte [] {
1537
+ 0, 0, 2, 1, 2, 0, 0, 0, 0, 0, 0, 0,
1538
+ 0, 0, 0, 0, 0, 0
1539
+ };
1540
+ }
1541
+
1542
+ private static final byte _JSON_array_range_lengths[] = init__JSON_array_range_lengths_0();
1543
+
1544
+
1545
+ private static byte[] init__JSON_array_index_offsets_0()
1546
+ {
1547
+ return new byte [] {
1548
+ 0, 0, 2, 18, 25, 40, 43, 45, 48, 50, 53, 55,
1549
+ 58, 60, 63, 65, 68, 70
1550
+ };
1551
+ }
1552
+
1553
+ private static final byte _JSON_array_index_offsets[] = init__JSON_array_index_offsets_0();
1554
+
1555
+
1556
+ private static byte[] init__JSON_array_indicies_0()
1557
+ {
1558
+ return new byte [] {
1559
+ 0, 1, 0, 0, 2, 2, 3, 2, 2, 2, 4, 2,
1560
+ 2, 2, 2, 0, 2, 1, 5, 5, 6, 7, 4, 5,
1561
+ 1, 6, 6, 2, 2, 8, 2, 2, 2, 2, 2, 2,
1562
+ 2, 6, 2, 1, 9, 10, 1, 11, 9, 11, 6, 9,
1563
+ 6, 10, 12, 13, 1, 14, 12, 14, 5, 12, 5, 13,
1564
+ 15, 16, 1, 17, 15, 17, 0, 15, 0, 16, 1, 0
1565
+ };
1566
+ }
1567
+
1568
+ private static final byte _JSON_array_indicies[] = init__JSON_array_indicies_0();
1569
+
1570
+
1571
+ private static byte[] init__JSON_array_trans_targs_0()
1572
+ {
1573
+ return new byte [] {
1574
+ 2, 0, 3, 13, 17, 3, 4, 9, 5, 6, 8, 7,
1575
+ 10, 12, 11, 14, 16, 15
1576
+ };
1577
+ }
1578
+
1579
+ private static final byte _JSON_array_trans_targs[] = init__JSON_array_trans_targs_0();
1580
+
1581
+
1582
+ private static byte[] init__JSON_array_trans_actions_0()
1583
+ {
1584
+ return new byte [] {
1585
+ 0, 0, 1, 0, 3, 0, 0, 0, 0, 0, 0, 0,
1586
+ 0, 0, 0, 0, 0, 0
1587
+ };
1588
+ }
1589
+
1590
+ private static final byte _JSON_array_trans_actions[] = init__JSON_array_trans_actions_0();
1591
+
1592
+
1593
+ static final int JSON_array_start = 1;
1594
+ static final int JSON_array_first_final = 17;
1595
+ static final int JSON_array_error = 0;
1596
+
1597
+ static final int JSON_array_en_main = 1;
1598
+
1599
+
1600
+ // line 693 "Parser.rl"
1601
+
1602
+
1603
+ void parseArray(ParserResult res, int p, int pe) {
1604
+ int cs = EVIL;
1605
+
1606
+ if (parser.maxNesting > 0 && currentNesting > parser.maxNesting) {
1607
+ throw newException(Utils.M_NESTING_ERROR,
1608
+ "nesting of " + currentNesting + " is too deep");
1609
+ }
1610
+
1611
+ IRubyObject result;
1612
+ if (parser.arrayClass == getRuntime().getArray()) {
1613
+ result = RubyArray.newArray(getRuntime());
1614
+ } else {
1615
+ result = parser.arrayClass.newInstance(context,
1616
+ IRubyObject.NULL_ARRAY, Block.NULL_BLOCK);
1617
+ }
1618
+
1619
+
1620
+ // line 1623 "Parser.java"
1621
+ {
1622
+ cs = JSON_array_start;
1623
+ }
1624
+
1625
+ // line 714 "Parser.rl"
1626
+
1627
+ // line 1630 "Parser.java"
1628
+ {
1629
+ int _klen;
1630
+ int _trans = 0;
1631
+ int _acts;
1632
+ int _nacts;
1633
+ int _keys;
1634
+ int _goto_targ = 0;
1635
+
1636
+ _goto: while (true) {
1637
+ switch ( _goto_targ ) {
1638
+ case 0:
1639
+ if ( p == pe ) {
1640
+ _goto_targ = 4;
1641
+ continue _goto;
1642
+ }
1643
+ if ( cs == 0 ) {
1644
+ _goto_targ = 5;
1645
+ continue _goto;
1646
+ }
1647
+ case 1:
1648
+ _match: do {
1649
+ _keys = _JSON_array_key_offsets[cs];
1650
+ _trans = _JSON_array_index_offsets[cs];
1651
+ _klen = _JSON_array_single_lengths[cs];
1652
+ if ( _klen > 0 ) {
1653
+ int _lower = _keys;
1654
+ int _mid;
1655
+ int _upper = _keys + _klen - 1;
1656
+ while (true) {
1657
+ if ( _upper < _lower )
1658
+ break;
1659
+
1660
+ _mid = _lower + ((_upper-_lower) >> 1);
1661
+ if ( data[p] < _JSON_array_trans_keys[_mid] )
1662
+ _upper = _mid - 1;
1663
+ else if ( data[p] > _JSON_array_trans_keys[_mid] )
1664
+ _lower = _mid + 1;
1665
+ else {
1666
+ _trans += (_mid - _keys);
1667
+ break _match;
1668
+ }
1669
+ }
1670
+ _keys += _klen;
1671
+ _trans += _klen;
1672
+ }
1673
+
1674
+ _klen = _JSON_array_range_lengths[cs];
1675
+ if ( _klen > 0 ) {
1676
+ int _lower = _keys;
1677
+ int _mid;
1678
+ int _upper = _keys + (_klen<<1) - 2;
1679
+ while (true) {
1680
+ if ( _upper < _lower )
1681
+ break;
1682
+
1683
+ _mid = _lower + (((_upper-_lower) >> 1) & ~1);
1684
+ if ( data[p] < _JSON_array_trans_keys[_mid] )
1685
+ _upper = _mid - 2;
1686
+ else if ( data[p] > _JSON_array_trans_keys[_mid+1] )
1687
+ _lower = _mid + 2;
1688
+ else {
1689
+ _trans += ((_mid - _keys)>>1);
1690
+ break _match;
1691
+ }
1692
+ }
1693
+ _trans += _klen;
1694
+ }
1695
+ } while (false);
1696
+
1697
+ _trans = _JSON_array_indicies[_trans];
1698
+ cs = _JSON_array_trans_targs[_trans];
1699
+
1700
+ if ( _JSON_array_trans_actions[_trans] != 0 ) {
1701
+ _acts = _JSON_array_trans_actions[_trans];
1702
+ _nacts = (int) _JSON_array_actions[_acts++];
1703
+ while ( _nacts-- > 0 )
1704
+ {
1705
+ switch ( _JSON_array_actions[_acts++] )
1706
+ {
1707
+ case 0:
1708
+ // line 662 "Parser.rl"
1709
+ {
1710
+ parseValue(res, p, pe);
1711
+ if (res.result == null) {
1712
+ p--;
1713
+ { p += 1; _goto_targ = 5; if (true) continue _goto;}
1714
+ } else {
1715
+ if (parser.arrayClass == getRuntime().getArray()) {
1716
+ ((RubyArray)result).append(res.result);
1717
+ } else {
1718
+ result.callMethod(context, "<<", res.result);
1719
+ }
1720
+ {p = (( res.p))-1;}
1721
+ }
1722
+ }
1723
+ break;
1724
+ case 1:
1725
+ // line 677 "Parser.rl"
1726
+ {
1727
+ p--;
1728
+ { p += 1; _goto_targ = 5; if (true) continue _goto;}
1729
+ }
1730
+ break;
1731
+ // line 1734 "Parser.java"
1732
+ }
1733
+ }
1734
+ }
1735
+
1736
+ case 2:
1737
+ if ( cs == 0 ) {
1738
+ _goto_targ = 5;
1739
+ continue _goto;
1740
+ }
1741
+ if ( ++p != pe ) {
1742
+ _goto_targ = 1;
1743
+ continue _goto;
1744
+ }
1745
+ case 4:
1746
+ case 5:
1747
+ }
1748
+ break; }
1749
+ }
1750
+
1751
+ // line 715 "Parser.rl"
1752
+
1753
+ if (cs >= JSON_array_first_final) {
1754
+ res.update(result, p + 1);
1755
+ } else {
1756
+ throw unexpectedToken(p, pe);
1757
+ }
1758
+ }
1759
+
1760
+
1761
+ // line 1764 "Parser.java"
1762
+ private static byte[] init__JSON_object_actions_0()
1763
+ {
1764
+ return new byte [] {
1765
+ 0, 1, 0, 1, 1, 1, 2
1766
+ };
1767
+ }
1768
+
1769
+ private static final byte _JSON_object_actions[] = init__JSON_object_actions_0();
1770
+
1771
+
1772
+ private static byte[] init__JSON_object_key_offsets_0()
1773
+ {
1774
+ return new byte [] {
1775
+ 0, 0, 1, 8, 14, 16, 17, 19, 20, 36, 43, 49,
1776
+ 51, 52, 54, 55, 57, 58, 60, 61, 63, 64, 66, 67,
1777
+ 69, 70, 72, 73
1778
+ };
1779
+ }
1780
+
1781
+ private static final byte _JSON_object_key_offsets[] = init__JSON_object_key_offsets_0();
1782
+
1783
+
1784
+ private static char[] init__JSON_object_trans_keys_0()
1785
+ {
1786
+ return new char [] {
1787
+ 123, 13, 32, 34, 47, 125, 9, 10, 13, 32, 47, 58,
1788
+ 9, 10, 42, 47, 42, 42, 47, 10, 13, 32, 34, 45,
1789
+ 47, 73, 78, 91, 102, 110, 116, 123, 9, 10, 48, 57,
1790
+ 13, 32, 44, 47, 125, 9, 10, 13, 32, 34, 47, 9,
1791
+ 10, 42, 47, 42, 42, 47, 10, 42, 47, 42, 42, 47,
1792
+ 10, 42, 47, 42, 42, 47, 10, 42, 47, 42, 42, 47,
1793
+ 10, 0
1794
+ };
1795
+ }
1796
+
1797
+ private static final char _JSON_object_trans_keys[] = init__JSON_object_trans_keys_0();
1798
+
1799
+
1800
+ private static byte[] init__JSON_object_single_lengths_0()
1801
+ {
1802
+ return new byte [] {
1803
+ 0, 1, 5, 4, 2, 1, 2, 1, 12, 5, 4, 2,
1804
+ 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,
1805
+ 1, 2, 1, 0
1806
+ };
1807
+ }
1808
+
1809
+ private static final byte _JSON_object_single_lengths[] = init__JSON_object_single_lengths_0();
1810
+
1811
+
1812
+ private static byte[] init__JSON_object_range_lengths_0()
1813
+ {
1814
+ return new byte [] {
1815
+ 0, 0, 1, 1, 0, 0, 0, 0, 2, 1, 1, 0,
1816
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1817
+ 0, 0, 0, 0
1818
+ };
1819
+ }
1820
+
1821
+ private static final byte _JSON_object_range_lengths[] = init__JSON_object_range_lengths_0();
1822
+
1823
+
1824
+ private static byte[] init__JSON_object_index_offsets_0()
1825
+ {
1826
+ return new byte [] {
1827
+ 0, 0, 2, 9, 15, 18, 20, 23, 25, 40, 47, 53,
1828
+ 56, 58, 61, 63, 66, 68, 71, 73, 76, 78, 81, 83,
1829
+ 86, 88, 91, 93
1830
+ };
1831
+ }
1832
+
1833
+ private static final byte _JSON_object_index_offsets[] = init__JSON_object_index_offsets_0();
1834
+
1835
+
1836
+ private static byte[] init__JSON_object_indicies_0()
1837
+ {
1838
+ return new byte [] {
1839
+ 0, 1, 0, 0, 2, 3, 4, 0, 1, 5, 5, 6,
1840
+ 7, 5, 1, 8, 9, 1, 10, 8, 10, 5, 8, 5,
1841
+ 9, 7, 7, 11, 11, 12, 11, 11, 11, 11, 11, 11,
1842
+ 11, 7, 11, 1, 13, 13, 14, 15, 4, 13, 1, 14,
1843
+ 14, 2, 16, 14, 1, 17, 18, 1, 19, 17, 19, 14,
1844
+ 17, 14, 18, 20, 21, 1, 22, 20, 22, 13, 20, 13,
1845
+ 21, 23, 24, 1, 25, 23, 25, 7, 23, 7, 24, 26,
1846
+ 27, 1, 28, 26, 28, 0, 26, 0, 27, 1, 0
1847
+ };
1848
+ }
1849
+
1850
+ private static final byte _JSON_object_indicies[] = init__JSON_object_indicies_0();
1851
+
1852
+
1853
+ private static byte[] init__JSON_object_trans_targs_0()
1854
+ {
1855
+ return new byte [] {
1856
+ 2, 0, 3, 23, 27, 3, 4, 8, 5, 7, 6, 9,
1857
+ 19, 9, 10, 15, 11, 12, 14, 13, 16, 18, 17, 20,
1858
+ 22, 21, 24, 26, 25
1859
+ };
1860
+ }
1861
+
1862
+ private static final byte _JSON_object_trans_targs[] = init__JSON_object_trans_targs_0();
1863
+
1864
+
1865
+ private static byte[] init__JSON_object_trans_actions_0()
1866
+ {
1867
+ return new byte [] {
1868
+ 0, 0, 3, 0, 5, 0, 0, 0, 0, 0, 0, 1,
1869
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1870
+ 0, 0, 0, 0, 0
1871
+ };
1872
+ }
1873
+
1874
+ private static final byte _JSON_object_trans_actions[] = init__JSON_object_trans_actions_0();
1875
+
1876
+
1877
+ static final int JSON_object_start = 1;
1878
+ static final int JSON_object_first_final = 27;
1879
+ static final int JSON_object_error = 0;
1880
+
1881
+ static final int JSON_object_en_main = 1;
1882
+
1883
+
1884
+ // line 774 "Parser.rl"
1885
+
1886
+
1887
+ void parseObject(ParserResult res, int p, int pe) {
1888
+ int cs = EVIL;
1889
+ IRubyObject lastName = null;
1890
+ boolean objectDefault = true;
1891
+
1892
+ if (parser.maxNesting > 0 && currentNesting > parser.maxNesting) {
1893
+ throw newException(Utils.M_NESTING_ERROR,
1894
+ "nesting of " + currentNesting + " is too deep");
1895
+ }
1896
+
1897
+ // this is guaranteed to be a RubyHash due to the earlier
1898
+ // allocator test at OptionsReader#getClass
1899
+ IRubyObject result;
1900
+ if (parser.objectClass == getRuntime().getHash()) {
1901
+ result = RubyHash.newHash(getRuntime());
1902
+ } else {
1903
+ objectDefault = false;
1904
+ result = parser.objectClass.newInstance(context,
1905
+ IRubyObject.NULL_ARRAY, Block.NULL_BLOCK);
1906
+ }
1907
+
1908
+
1909
+ // line 1912 "Parser.java"
1910
+ {
1911
+ cs = JSON_object_start;
1912
+ }
1913
+
1914
+ // line 798 "Parser.rl"
1915
+
1916
+ // line 1919 "Parser.java"
1917
+ {
1918
+ int _klen;
1919
+ int _trans = 0;
1920
+ int _acts;
1921
+ int _nacts;
1922
+ int _keys;
1923
+ int _goto_targ = 0;
1924
+
1925
+ _goto: while (true) {
1926
+ switch ( _goto_targ ) {
1927
+ case 0:
1928
+ if ( p == pe ) {
1929
+ _goto_targ = 4;
1930
+ continue _goto;
1931
+ }
1932
+ if ( cs == 0 ) {
1933
+ _goto_targ = 5;
1934
+ continue _goto;
1935
+ }
1936
+ case 1:
1937
+ _match: do {
1938
+ _keys = _JSON_object_key_offsets[cs];
1939
+ _trans = _JSON_object_index_offsets[cs];
1940
+ _klen = _JSON_object_single_lengths[cs];
1941
+ if ( _klen > 0 ) {
1942
+ int _lower = _keys;
1943
+ int _mid;
1944
+ int _upper = _keys + _klen - 1;
1945
+ while (true) {
1946
+ if ( _upper < _lower )
1947
+ break;
1948
+
1949
+ _mid = _lower + ((_upper-_lower) >> 1);
1950
+ if ( data[p] < _JSON_object_trans_keys[_mid] )
1951
+ _upper = _mid - 1;
1952
+ else if ( data[p] > _JSON_object_trans_keys[_mid] )
1953
+ _lower = _mid + 1;
1954
+ else {
1955
+ _trans += (_mid - _keys);
1956
+ break _match;
1957
+ }
1958
+ }
1959
+ _keys += _klen;
1960
+ _trans += _klen;
1961
+ }
1962
+
1963
+ _klen = _JSON_object_range_lengths[cs];
1964
+ if ( _klen > 0 ) {
1965
+ int _lower = _keys;
1966
+ int _mid;
1967
+ int _upper = _keys + (_klen<<1) - 2;
1968
+ while (true) {
1969
+ if ( _upper < _lower )
1970
+ break;
1971
+
1972
+ _mid = _lower + (((_upper-_lower) >> 1) & ~1);
1973
+ if ( data[p] < _JSON_object_trans_keys[_mid] )
1974
+ _upper = _mid - 2;
1975
+ else if ( data[p] > _JSON_object_trans_keys[_mid+1] )
1976
+ _lower = _mid + 2;
1977
+ else {
1978
+ _trans += ((_mid - _keys)>>1);
1979
+ break _match;
1980
+ }
1981
+ }
1982
+ _trans += _klen;
1983
+ }
1984
+ } while (false);
1985
+
1986
+ _trans = _JSON_object_indicies[_trans];
1987
+ cs = _JSON_object_trans_targs[_trans];
1988
+
1989
+ if ( _JSON_object_trans_actions[_trans] != 0 ) {
1990
+ _acts = _JSON_object_trans_actions[_trans];
1991
+ _nacts = (int) _JSON_object_actions[_acts++];
1992
+ while ( _nacts-- > 0 )
1993
+ {
1994
+ switch ( _JSON_object_actions[_acts++] )
1995
+ {
1996
+ case 0:
1997
+ // line 729 "Parser.rl"
1998
+ {
1999
+ parseValue(res, p, pe);
2000
+ if (res.result == null) {
2001
+ p--;
2002
+ { p += 1; _goto_targ = 5; if (true) continue _goto;}
2003
+ } else {
2004
+ if (parser.objectClass == getRuntime().getHash()) {
2005
+ ((RubyHash)result).op_aset(context, lastName, res.result);
2006
+ } else {
2007
+ result.callMethod(context, "[]=", new IRubyObject[] { lastName, res.result });
2008
+ }
2009
+ {p = (( res.p))-1;}
2010
+ }
2011
+ }
2012
+ break;
2013
+ case 1:
2014
+ // line 744 "Parser.rl"
2015
+ {
2016
+ parseString(res, p, pe);
2017
+ if (res.result == null) {
2018
+ p--;
2019
+ { p += 1; _goto_targ = 5; if (true) continue _goto;}
2020
+ } else {
2021
+ RubyString name = (RubyString)res.result;
2022
+ if (parser.symbolizeNames) {
2023
+ lastName = context.getRuntime().is1_9()
2024
+ ? name.intern19()
2025
+ : name.intern();
2026
+ } else {
2027
+ lastName = name;
2028
+ }
2029
+ {p = (( res.p))-1;}
2030
+ }
2031
+ }
2032
+ break;
2033
+ case 2:
2034
+ // line 762 "Parser.rl"
2035
+ {
2036
+ p--;
2037
+ { p += 1; _goto_targ = 5; if (true) continue _goto;}
2038
+ }
2039
+ break;
2040
+ // line 2043 "Parser.java"
2041
+ }
2042
+ }
2043
+ }
2044
+
2045
+ case 2:
2046
+ if ( cs == 0 ) {
2047
+ _goto_targ = 5;
2048
+ continue _goto;
2049
+ }
2050
+ if ( ++p != pe ) {
2051
+ _goto_targ = 1;
2052
+ continue _goto;
2053
+ }
2054
+ case 4:
2055
+ case 5:
2056
+ }
2057
+ break; }
2058
+ }
2059
+
2060
+ // line 799 "Parser.rl"
2061
+
2062
+ if (cs < JSON_object_first_final) {
2063
+ res.update(null, p + 1);
2064
+ return;
2065
+ }
2066
+
2067
+ IRubyObject returnedResult = result;
2068
+
2069
+ // attempt to de-serialize object
2070
+ if (parser.createAdditions) {
2071
+ IRubyObject vKlassName;
2072
+ if (objectDefault) {
2073
+ vKlassName = ((RubyHash)result).op_aref(context, parser.createId);
2074
+ } else {
2075
+ vKlassName = result.callMethod(context, "[]", parser.createId);
2076
+ }
2077
+
2078
+ if (!vKlassName.isNil()) {
2079
+ // might throw ArgumentError, we let it propagate
2080
+ IRubyObject klass = parser.info.jsonModule.get().
2081
+ callMethod(context, "deep_const_get", vKlassName);
2082
+ if (klass.respondsTo("json_creatable?") &&
2083
+ klass.callMethod(context, "json_creatable?").isTrue()) {
2084
+
2085
+ returnedResult = klass.callMethod(context, "json_create", result);
2086
+ }
2087
+ }
2088
+ }
2089
+ res.update(returnedResult, p + 1);
2090
+ }
2091
+
2092
+
2093
+ // line 2096 "Parser.java"
2094
+ private static byte[] init__JSON_actions_0()
2095
+ {
2096
+ return new byte [] {
2097
+ 0, 1, 0, 1, 1
2098
+ };
2099
+ }
2100
+
2101
+ private static final byte _JSON_actions[] = init__JSON_actions_0();
2102
+
2103
+
2104
+ private static byte[] init__JSON_key_offsets_0()
2105
+ {
2106
+ return new byte [] {
2107
+ 0, 0, 7, 9, 10, 12, 13, 15, 16, 18, 19
2108
+ };
2109
+ }
2110
+
2111
+ private static final byte _JSON_key_offsets[] = init__JSON_key_offsets_0();
2112
+
2113
+
2114
+ private static char[] init__JSON_trans_keys_0()
2115
+ {
2116
+ return new char [] {
2117
+ 13, 32, 47, 91, 123, 9, 10, 42, 47, 42, 42, 47,
2118
+ 10, 42, 47, 42, 42, 47, 10, 13, 32, 47, 9, 10,
2119
+ 0
2120
+ };
2121
+ }
2122
+
2123
+ private static final char _JSON_trans_keys[] = init__JSON_trans_keys_0();
2124
+
2125
+
2126
+ private static byte[] init__JSON_single_lengths_0()
2127
+ {
2128
+ return new byte [] {
2129
+ 0, 5, 2, 1, 2, 1, 2, 1, 2, 1, 3
2130
+ };
2131
+ }
2132
+
2133
+ private static final byte _JSON_single_lengths[] = init__JSON_single_lengths_0();
2134
+
2135
+
2136
+ private static byte[] init__JSON_range_lengths_0()
2137
+ {
2138
+ return new byte [] {
2139
+ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1
2140
+ };
2141
+ }
2142
+
2143
+ private static final byte _JSON_range_lengths[] = init__JSON_range_lengths_0();
2144
+
2145
+
2146
+ private static byte[] init__JSON_index_offsets_0()
2147
+ {
2148
+ return new byte [] {
2149
+ 0, 0, 7, 10, 12, 15, 17, 20, 22, 25, 27
2150
+ };
2151
+ }
2152
+
2153
+ private static final byte _JSON_index_offsets[] = init__JSON_index_offsets_0();
2154
+
2155
+
2156
+ private static byte[] init__JSON_indicies_0()
2157
+ {
2158
+ return new byte [] {
2159
+ 0, 0, 2, 3, 4, 0, 1, 5, 6, 1, 7, 5,
2160
+ 7, 0, 5, 0, 6, 8, 9, 1, 10, 8, 10, 11,
2161
+ 8, 11, 9, 11, 11, 12, 11, 1, 0
2162
+ };
2163
+ }
2164
+
2165
+ private static final byte _JSON_indicies[] = init__JSON_indicies_0();
2166
+
2167
+
2168
+ private static byte[] init__JSON_trans_targs_0()
2169
+ {
2170
+ return new byte [] {
2171
+ 1, 0, 2, 10, 10, 3, 5, 4, 7, 9, 8, 10,
2172
+ 6
2173
+ };
2174
+ }
2175
+
2176
+ private static final byte _JSON_trans_targs[] = init__JSON_trans_targs_0();
2177
+
2178
+
2179
+ private static byte[] init__JSON_trans_actions_0()
2180
+ {
2181
+ return new byte [] {
2182
+ 0, 0, 0, 3, 1, 0, 0, 0, 0, 0, 0, 0,
2183
+ 0
2184
+ };
2185
+ }
2186
+
2187
+ private static final byte _JSON_trans_actions[] = init__JSON_trans_actions_0();
2188
+
2189
+
2190
+ static final int JSON_start = 1;
2191
+ static final int JSON_first_final = 10;
2192
+ static final int JSON_error = 0;
2193
+
2194
+ static final int JSON_en_main = 1;
2195
+
2196
+
2197
+ // line 864 "Parser.rl"
2198
+
2199
+
2200
+ public IRubyObject parseStrict() {
2201
+ int cs = EVIL;
2202
+ int p, pe;
2203
+ IRubyObject result = null;
2204
+ ParserResult res = new ParserResult();
2205
+
2206
+
2207
+ // line 2210 "Parser.java"
2208
+ {
2209
+ cs = JSON_start;
2210
+ }
2211
+
2212
+ // line 873 "Parser.rl"
2213
+ p = byteList.begin();
2214
+ pe = p + byteList.length();
2215
+
2216
+ // line 2219 "Parser.java"
2217
+ {
2218
+ int _klen;
2219
+ int _trans = 0;
2220
+ int _acts;
2221
+ int _nacts;
2222
+ int _keys;
2223
+ int _goto_targ = 0;
2224
+
2225
+ _goto: while (true) {
2226
+ switch ( _goto_targ ) {
2227
+ case 0:
2228
+ if ( p == pe ) {
2229
+ _goto_targ = 4;
2230
+ continue _goto;
2231
+ }
2232
+ if ( cs == 0 ) {
2233
+ _goto_targ = 5;
2234
+ continue _goto;
2235
+ }
2236
+ case 1:
2237
+ _match: do {
2238
+ _keys = _JSON_key_offsets[cs];
2239
+ _trans = _JSON_index_offsets[cs];
2240
+ _klen = _JSON_single_lengths[cs];
2241
+ if ( _klen > 0 ) {
2242
+ int _lower = _keys;
2243
+ int _mid;
2244
+ int _upper = _keys + _klen - 1;
2245
+ while (true) {
2246
+ if ( _upper < _lower )
2247
+ break;
2248
+
2249
+ _mid = _lower + ((_upper-_lower) >> 1);
2250
+ if ( data[p] < _JSON_trans_keys[_mid] )
2251
+ _upper = _mid - 1;
2252
+ else if ( data[p] > _JSON_trans_keys[_mid] )
2253
+ _lower = _mid + 1;
2254
+ else {
2255
+ _trans += (_mid - _keys);
2256
+ break _match;
2257
+ }
2258
+ }
2259
+ _keys += _klen;
2260
+ _trans += _klen;
2261
+ }
2262
+
2263
+ _klen = _JSON_range_lengths[cs];
2264
+ if ( _klen > 0 ) {
2265
+ int _lower = _keys;
2266
+ int _mid;
2267
+ int _upper = _keys + (_klen<<1) - 2;
2268
+ while (true) {
2269
+ if ( _upper < _lower )
2270
+ break;
2271
+
2272
+ _mid = _lower + (((_upper-_lower) >> 1) & ~1);
2273
+ if ( data[p] < _JSON_trans_keys[_mid] )
2274
+ _upper = _mid - 2;
2275
+ else if ( data[p] > _JSON_trans_keys[_mid+1] )
2276
+ _lower = _mid + 2;
2277
+ else {
2278
+ _trans += ((_mid - _keys)>>1);
2279
+ break _match;
2280
+ }
2281
+ }
2282
+ _trans += _klen;
2283
+ }
2284
+ } while (false);
2285
+
2286
+ _trans = _JSON_indicies[_trans];
2287
+ cs = _JSON_trans_targs[_trans];
2288
+
2289
+ if ( _JSON_trans_actions[_trans] != 0 ) {
2290
+ _acts = _JSON_trans_actions[_trans];
2291
+ _nacts = (int) _JSON_actions[_acts++];
2292
+ while ( _nacts-- > 0 )
2293
+ {
2294
+ switch ( _JSON_actions[_acts++] )
2295
+ {
2296
+ case 0:
2297
+ // line 836 "Parser.rl"
2298
+ {
2299
+ currentNesting = 1;
2300
+ parseObject(res, p, pe);
2301
+ if (res.result == null) {
2302
+ p--;
2303
+ { p += 1; _goto_targ = 5; if (true) continue _goto;}
2304
+ } else {
2305
+ result = res.result;
2306
+ {p = (( res.p))-1;}
2307
+ }
2308
+ }
2309
+ break;
2310
+ case 1:
2311
+ // line 848 "Parser.rl"
2312
+ {
2313
+ currentNesting = 1;
2314
+ parseArray(res, p, pe);
2315
+ if (res.result == null) {
2316
+ p--;
2317
+ { p += 1; _goto_targ = 5; if (true) continue _goto;}
2318
+ } else {
2319
+ result = res.result;
2320
+ {p = (( res.p))-1;}
2321
+ }
2322
+ }
2323
+ break;
2324
+ // line 2327 "Parser.java"
2325
+ }
2326
+ }
2327
+ }
2328
+
2329
+ case 2:
2330
+ if ( cs == 0 ) {
2331
+ _goto_targ = 5;
2332
+ continue _goto;
2333
+ }
2334
+ if ( ++p != pe ) {
2335
+ _goto_targ = 1;
2336
+ continue _goto;
2337
+ }
2338
+ case 4:
2339
+ case 5:
2340
+ }
2341
+ break; }
2342
+ }
2343
+
2344
+ // line 876 "Parser.rl"
2345
+
2346
+ if (cs >= JSON_first_final && p == pe) {
2347
+ return result;
2348
+ } else {
2349
+ throw unexpectedToken(p, pe);
2350
+ }
2351
+ }
2352
+
2353
+
2354
+ // line 2357 "Parser.java"
2355
+ private static byte[] init__JSON_quirks_mode_actions_0()
2356
+ {
2357
+ return new byte [] {
2358
+ 0, 1, 0
2359
+ };
2360
+ }
2361
+
2362
+ private static final byte _JSON_quirks_mode_actions[] = init__JSON_quirks_mode_actions_0();
2363
+
2364
+
2365
+ private static byte[] init__JSON_quirks_mode_key_offsets_0()
2366
+ {
2367
+ return new byte [] {
2368
+ 0, 0, 16, 18, 19, 21, 22, 24, 25, 27, 28
2369
+ };
2370
+ }
2371
+
2372
+ private static final byte _JSON_quirks_mode_key_offsets[] = init__JSON_quirks_mode_key_offsets_0();
2373
+
2374
+
2375
+ private static char[] init__JSON_quirks_mode_trans_keys_0()
2376
+ {
2377
+ return new char [] {
2378
+ 13, 32, 34, 45, 47, 73, 78, 91, 102, 110, 116, 123,
2379
+ 9, 10, 48, 57, 42, 47, 42, 42, 47, 10, 42, 47,
2380
+ 42, 42, 47, 10, 13, 32, 47, 9, 10, 0
2381
+ };
2382
+ }
2383
+
2384
+ private static final char _JSON_quirks_mode_trans_keys[] = init__JSON_quirks_mode_trans_keys_0();
2385
+
2386
+
2387
+ private static byte[] init__JSON_quirks_mode_single_lengths_0()
2388
+ {
2389
+ return new byte [] {
2390
+ 0, 12, 2, 1, 2, 1, 2, 1, 2, 1, 3
2391
+ };
2392
+ }
2393
+
2394
+ private static final byte _JSON_quirks_mode_single_lengths[] = init__JSON_quirks_mode_single_lengths_0();
2395
+
2396
+
2397
+ private static byte[] init__JSON_quirks_mode_range_lengths_0()
2398
+ {
2399
+ return new byte [] {
2400
+ 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 1
2401
+ };
2402
+ }
2403
+
2404
+ private static final byte _JSON_quirks_mode_range_lengths[] = init__JSON_quirks_mode_range_lengths_0();
2405
+
2406
+
2407
+ private static byte[] init__JSON_quirks_mode_index_offsets_0()
2408
+ {
2409
+ return new byte [] {
2410
+ 0, 0, 15, 18, 20, 23, 25, 28, 30, 33, 35
2411
+ };
2412
+ }
2413
+
2414
+ private static final byte _JSON_quirks_mode_index_offsets[] = init__JSON_quirks_mode_index_offsets_0();
2415
+
2416
+
2417
+ private static byte[] init__JSON_quirks_mode_indicies_0()
2418
+ {
2419
+ return new byte [] {
2420
+ 0, 0, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2,
2421
+ 0, 2, 1, 4, 5, 1, 6, 4, 6, 7, 4, 7,
2422
+ 5, 8, 9, 1, 10, 8, 10, 0, 8, 0, 9, 7,
2423
+ 7, 11, 7, 1, 0
2424
+ };
2425
+ }
2426
+
2427
+ private static final byte _JSON_quirks_mode_indicies[] = init__JSON_quirks_mode_indicies_0();
2428
+
2429
+
2430
+ private static byte[] init__JSON_quirks_mode_trans_targs_0()
2431
+ {
2432
+ return new byte [] {
2433
+ 1, 0, 10, 6, 3, 5, 4, 10, 7, 9, 8, 2
2434
+ };
2435
+ }
2436
+
2437
+ private static final byte _JSON_quirks_mode_trans_targs[] = init__JSON_quirks_mode_trans_targs_0();
2438
+
2439
+
2440
+ private static byte[] init__JSON_quirks_mode_trans_actions_0()
2441
+ {
2442
+ return new byte [] {
2443
+ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0
2444
+ };
2445
+ }
2446
+
2447
+ private static final byte _JSON_quirks_mode_trans_actions[] = init__JSON_quirks_mode_trans_actions_0();
2448
+
2449
+
2450
+ static final int JSON_quirks_mode_start = 1;
2451
+ static final int JSON_quirks_mode_first_final = 10;
2452
+ static final int JSON_quirks_mode_error = 0;
2453
+
2454
+ static final int JSON_quirks_mode_en_main = 1;
2455
+
2456
+
2457
+ // line 904 "Parser.rl"
2458
+
2459
+
2460
+ public IRubyObject parseQuirksMode() {
2461
+ int cs = EVIL;
2462
+ int p, pe;
2463
+ IRubyObject result = null;
2464
+ ParserResult res = new ParserResult();
2465
+
2466
+
2467
+ // line 2470 "Parser.java"
2468
+ {
2469
+ cs = JSON_quirks_mode_start;
2470
+ }
2471
+
2472
+ // line 913 "Parser.rl"
2473
+ p = byteList.begin();
2474
+ pe = p + byteList.length();
2475
+
2476
+ // line 2479 "Parser.java"
2477
+ {
2478
+ int _klen;
2479
+ int _trans = 0;
2480
+ int _acts;
2481
+ int _nacts;
2482
+ int _keys;
2483
+ int _goto_targ = 0;
2484
+
2485
+ _goto: while (true) {
2486
+ switch ( _goto_targ ) {
2487
+ case 0:
2488
+ if ( p == pe ) {
2489
+ _goto_targ = 4;
2490
+ continue _goto;
2491
+ }
2492
+ if ( cs == 0 ) {
2493
+ _goto_targ = 5;
2494
+ continue _goto;
2495
+ }
2496
+ case 1:
2497
+ _match: do {
2498
+ _keys = _JSON_quirks_mode_key_offsets[cs];
2499
+ _trans = _JSON_quirks_mode_index_offsets[cs];
2500
+ _klen = _JSON_quirks_mode_single_lengths[cs];
2501
+ if ( _klen > 0 ) {
2502
+ int _lower = _keys;
2503
+ int _mid;
2504
+ int _upper = _keys + _klen - 1;
2505
+ while (true) {
2506
+ if ( _upper < _lower )
2507
+ break;
2508
+
2509
+ _mid = _lower + ((_upper-_lower) >> 1);
2510
+ if ( data[p] < _JSON_quirks_mode_trans_keys[_mid] )
2511
+ _upper = _mid - 1;
2512
+ else if ( data[p] > _JSON_quirks_mode_trans_keys[_mid] )
2513
+ _lower = _mid + 1;
2514
+ else {
2515
+ _trans += (_mid - _keys);
2516
+ break _match;
2517
+ }
2518
+ }
2519
+ _keys += _klen;
2520
+ _trans += _klen;
2521
+ }
2522
+
2523
+ _klen = _JSON_quirks_mode_range_lengths[cs];
2524
+ if ( _klen > 0 ) {
2525
+ int _lower = _keys;
2526
+ int _mid;
2527
+ int _upper = _keys + (_klen<<1) - 2;
2528
+ while (true) {
2529
+ if ( _upper < _lower )
2530
+ break;
2531
+
2532
+ _mid = _lower + (((_upper-_lower) >> 1) & ~1);
2533
+ if ( data[p] < _JSON_quirks_mode_trans_keys[_mid] )
2534
+ _upper = _mid - 2;
2535
+ else if ( data[p] > _JSON_quirks_mode_trans_keys[_mid+1] )
2536
+ _lower = _mid + 2;
2537
+ else {
2538
+ _trans += ((_mid - _keys)>>1);
2539
+ break _match;
2540
+ }
2541
+ }
2542
+ _trans += _klen;
2543
+ }
2544
+ } while (false);
2545
+
2546
+ _trans = _JSON_quirks_mode_indicies[_trans];
2547
+ cs = _JSON_quirks_mode_trans_targs[_trans];
2548
+
2549
+ if ( _JSON_quirks_mode_trans_actions[_trans] != 0 ) {
2550
+ _acts = _JSON_quirks_mode_trans_actions[_trans];
2551
+ _nacts = (int) _JSON_quirks_mode_actions[_acts++];
2552
+ while ( _nacts-- > 0 )
2553
+ {
2554
+ switch ( _JSON_quirks_mode_actions[_acts++] )
2555
+ {
2556
+ case 0:
2557
+ // line 890 "Parser.rl"
2558
+ {
2559
+ parseValue(res, p, pe);
2560
+ if (res.result == null) {
2561
+ p--;
2562
+ { p += 1; _goto_targ = 5; if (true) continue _goto;}
2563
+ } else {
2564
+ result = res.result;
2565
+ {p = (( res.p))-1;}
2566
+ }
2567
+ }
2568
+ break;
2569
+ // line 2572 "Parser.java"
2570
+ }
2571
+ }
2572
+ }
2573
+
2574
+ case 2:
2575
+ if ( cs == 0 ) {
2576
+ _goto_targ = 5;
2577
+ continue _goto;
2578
+ }
2579
+ if ( ++p != pe ) {
2580
+ _goto_targ = 1;
2581
+ continue _goto;
2582
+ }
2583
+ case 4:
2584
+ case 5:
2585
+ }
2586
+ break; }
2587
+ }
2588
+
2589
+ // line 916 "Parser.rl"
2590
+
2591
+ if (cs >= JSON_quirks_mode_first_final && p == pe) {
2592
+ return result;
2593
+ } else {
2594
+ throw unexpectedToken(p, pe);
2595
+ }
2596
+ }
2597
+
2598
+ public IRubyObject parse() {
2599
+ if (parser.quirksMode) {
2600
+ return parseQuirksMode();
2601
+ } else {
2602
+ return parseStrict();
2603
+ }
2604
+
2605
+ }
2606
+
2607
+ /**
2608
+ * Updates the "view" bytelist with the new offsets and returns it.
2609
+ * @param start
2610
+ * @param end
2611
+ */
2612
+ private ByteList absSubSequence(int absStart, int absEnd) {
2613
+ view.setBegin(absStart);
2614
+ view.setRealSize(absEnd - absStart);
2615
+ return view;
2616
+ }
2617
+
2618
+ /**
2619
+ * Retrieves a constant directly descended from the <code>JSON</code> module.
2620
+ * @param name The constant name
2621
+ */
2622
+ private IRubyObject getConstant(String name) {
2623
+ return parser.info.jsonModule.get().getConstant(name);
2624
+ }
2625
+
2626
+ private RaiseException newException(String className, String message) {
2627
+ return Utils.newException(context, className, message);
2628
+ }
2629
+
2630
+ private RaiseException newException(String className, RubyString message) {
2631
+ return Utils.newException(context, className, message);
2632
+ }
2633
+
2634
+ private RaiseException newException(String className,
2635
+ String messageBegin, ByteList messageEnd) {
2636
+ return newException(className,
2637
+ getRuntime().newString(messageBegin).cat(messageEnd));
2638
+ }
2639
+ }
2640
+ }