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.
- data/Changelog.md +24 -0
- data/README.md +3 -0
- data/examples/Gemfile +1 -0
- data/examples/Gemfile.lock +57 -44
- data/examples/chef_cookbook/templates/default/initd.erb +1 -1
- data/features/step_definitions/resque-pool_steps.rb +17 -9
- data/features/support/aruba_daemon_support.rb +1 -0
- data/features/support/env.rb +1 -1
- data/lib/resque/pool/cli.rb +3 -2
- data/lib/resque/pool/logging.rb +10 -3
- data/lib/resque/pool/pooled_worker.rb +7 -11
- data/lib/resque/pool/version.rb +1 -1
- data/lib/resque/pool.rb +7 -1
- data/man/resque-pool.1 +14 -1
- data/man/resque-pool.1.ronn +9 -0
- data/man/resque-pool.yml.5 +1 -1
- data/resque-pool.gemspec +1 -1
- data/tags +33009 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/Gemfile +5 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/History.md +769 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/LICENSE +20 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/README.md +256 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/Rakefile +26 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/build_native_gems.sh +7 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/cucumber.yml +4 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/examples/parse_and_output_json.rb +19 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ar/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ar/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ar/gherkin_lexer_ar.c +1432 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ar/gherkin_lexer_ar.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ar/gherkin_lexer_ar.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_bg/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_bg/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_bg/gherkin_lexer_bg.c +1655 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_bg/gherkin_lexer_bg.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_bg/gherkin_lexer_bg.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ca/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ca/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ca/gherkin_lexer_ca.c +1581 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ca/gherkin_lexer_ca.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ca/gherkin_lexer_ca.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_cs/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_cs/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_cs/gherkin_lexer_cs.c +1427 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_cs/gherkin_lexer_cs.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_cs/gherkin_lexer_cs.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_cy_gb/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_cy_gb/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_cy_gb/gherkin_lexer_cy_gb.c +1282 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_cy_gb/gherkin_lexer_cy_gb.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_cy_gb/gherkin_lexer_cy_gb.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_da/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_da/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_da/gherkin_lexer_da.c +1298 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_da/gherkin_lexer_da.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_da/gherkin_lexer_da.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_de/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_de/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_de/gherkin_lexer_de.c +1415 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_de/gherkin_lexer_de.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_de/gherkin_lexer_de.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en/gherkin_lexer_en.c +1265 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en/gherkin_lexer_en.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en/gherkin_lexer_en.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_au/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_au/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_au/gherkin_lexer_en_au.c +1223 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_au/gherkin_lexer_en_au.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_au/gherkin_lexer_en_au.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_lol/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_lol/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.c +1177 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_pirate/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_pirate/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_pirate/gherkin_lexer_en_pirate.c +1471 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_pirate/gherkin_lexer_en_pirate.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_pirate/gherkin_lexer_en_pirate.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_scouse/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_scouse/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_scouse/gherkin_lexer_en_scouse.c +1634 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_scouse/gherkin_lexer_en_scouse.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_scouse/gherkin_lexer_en_scouse.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_tx/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_tx/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_tx/gherkin_lexer_en_tx.c +1265 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_tx/gherkin_lexer_en_tx.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_en_tx/gherkin_lexer_en_tx.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_eo/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_eo/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_eo/gherkin_lexer_eo.c +1241 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_eo/gherkin_lexer_eo.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_eo/gherkin_lexer_eo.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_es/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_es/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_es/gherkin_lexer_es.c +1399 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_es/gherkin_lexer_es.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_es/gherkin_lexer_es.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_et/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_et/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_et/gherkin_lexer_et.c +1236 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_et/gherkin_lexer_et.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_et/gherkin_lexer_et.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_fi/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_fi/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_fi/gherkin_lexer_fi.c +1215 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_fi/gherkin_lexer_fi.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_fi/gherkin_lexer_fi.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_fr/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_fr/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_fr/gherkin_lexer_fr.c +1493 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_fr/gherkin_lexer_fr.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_fr/gherkin_lexer_fr.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_he/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_he/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_he/gherkin_lexer_he.c +1374 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_he/gherkin_lexer_he.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_he/gherkin_lexer_he.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_hr/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_hr/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_hr/gherkin_lexer_hr.c +1323 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_hr/gherkin_lexer_hr.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_hr/gherkin_lexer_hr.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_hu/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_hu/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_hu/gherkin_lexer_hu.c +1376 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_hu/gherkin_lexer_hu.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_hu/gherkin_lexer_hu.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_id/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_id/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_id/gherkin_lexer_id.c +1208 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_id/gherkin_lexer_id.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_id/gherkin_lexer_id.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_is/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_is/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_is/gherkin_lexer_is.c +1376 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_is/gherkin_lexer_is.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_is/gherkin_lexer_is.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_it/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_it/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_it/gherkin_lexer_it.c +1340 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_it/gherkin_lexer_it.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_it/gherkin_lexer_it.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ja/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ja/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ja/gherkin_lexer_ja.c +1699 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ja/gherkin_lexer_ja.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ja/gherkin_lexer_ja.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ko/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ko/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ko/gherkin_lexer_ko.c +1360 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ko/gherkin_lexer_ko.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ko/gherkin_lexer_ko.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lt/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lt/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lt/gherkin_lexer_lt.c +1296 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lt/gherkin_lexer_lt.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lt/gherkin_lexer_lt.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lu/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lu/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lu/gherkin_lexer_lu.c +1389 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lu/gherkin_lexer_lu.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lu/gherkin_lexer_lu.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lv/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lv/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lv/gherkin_lexer_lv.c +1425 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lv/gherkin_lexer_lv.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_lv/gherkin_lexer_lv.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_nl/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_nl/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_nl/gherkin_lexer_nl.c +1368 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_nl/gherkin_lexer_nl.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_nl/gherkin_lexer_nl.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_no/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_no/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_no/gherkin_lexer_no.c +1311 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_no/gherkin_lexer_no.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_no/gherkin_lexer_no.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_pl/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_pl/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_pl/gherkin_lexer_pl.c +1477 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_pl/gherkin_lexer_pl.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_pl/gherkin_lexer_pl.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_pt/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_pt/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_pt/gherkin_lexer_pt.c +1350 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_pt/gherkin_lexer_pt.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_pt/gherkin_lexer_pt.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ro/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ro/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ro/gherkin_lexer_ro.c +1427 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ro/gherkin_lexer_ro.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ro/gherkin_lexer_ro.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ru/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ru/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ru/gherkin_lexer_ru.c +2058 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ru/gherkin_lexer_ru.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_ru/gherkin_lexer_ru.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sk/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sk/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sk/gherkin_lexer_sk.c +1298 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sk/gherkin_lexer_sk.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sk/gherkin_lexer_sk.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sr_cyrl/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sr_cyrl/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sr_cyrl/gherkin_lexer_sr_cyrl.c +2112 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sr_cyrl/gherkin_lexer_sr_cyrl.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sr_cyrl/gherkin_lexer_sr_cyrl.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sr_latn/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sr_latn/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.c +1567 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sv/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sv/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sv/gherkin_lexer_sv.c +1324 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sv/gherkin_lexer_sv.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_sv/gherkin_lexer_sv.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_tr/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_tr/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_tr/gherkin_lexer_tr.c +1347 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_tr/gherkin_lexer_tr.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_tr/gherkin_lexer_tr.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_uk/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_uk/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_uk/gherkin_lexer_uk.c +1941 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_uk/gherkin_lexer_uk.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_uk/gherkin_lexer_uk.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_uz/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_uz/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_uz/gherkin_lexer_uz.c +1651 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_uz/gherkin_lexer_uz.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_uz/gherkin_lexer_uz.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_vi/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_vi/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_vi/gherkin_lexer_vi.c +1458 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_vi/gherkin_lexer_vi.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_vi/gherkin_lexer_vi.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_zh_cn/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_zh_cn/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_zh_cn/gherkin_lexer_zh_cn.c +1314 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_zh_cn/gherkin_lexer_zh_cn.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_zh_cn/gherkin_lexer_zh_cn.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_zh_tw/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_zh_tw/extconf.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_zh_tw/gherkin_lexer_zh_tw.c +1307 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_zh_tw/gherkin_lexer_zh_tw.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ext/gherkin_lexer_zh_tw/gherkin_lexer_zh_tw.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/escaped_pipes.feature +8 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/feature_parser.feature +237 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/json_formatter.feature +498 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/json_parser.feature +331 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/native_lexer.feature +19 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/parser_with_native_lexer.feature +205 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/pretty_formatter.feature +16 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/step_definitions/eyeball_steps.rb +3 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/step_definitions/gherkin_steps.rb +29 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/step_definitions/json_formatter_steps.rb +30 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/step_definitions/json_parser_steps.rb +20 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/step_definitions/pretty_formatter_steps.rb +85 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/steps_parser.feature +46 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/features/support/env.rb +42 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/gherkin.gemspec +77 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/c_lexer.rb +17 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/ansi_escapes.rb +97 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/argument.rb +16 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/escaping.rb +15 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/filter_formatter.rb +146 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/hashable.rb +19 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/json_formatter.rb +107 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/line_filter.rb +26 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/model.rb +281 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/pretty_formatter.rb +244 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/regexp_filter.rb +21 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/step_printer.rb +17 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/tag_count_formatter.rb +47 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/formatter/tag_filter.rb +19 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/i18n.rb +180 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/i18n.yml +600 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/js_lexer.rb +20 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/json_parser.rb +144 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/lexer/i18n_lexer.rb +46 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/listener/event.rb +45 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/listener/formatter_listener.rb +143 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/native/ikvm.rb +55 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/native/java.rb +76 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/native/null.rb +9 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/native.rb +7 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/parser/meta.txt +5 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/parser/parser.rb +164 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/parser/root.txt +11 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/parser/steps.txt +4 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/README.rdoc +8 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/ar.rb +1165 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/bg.rb +1377 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/ca.rb +1305 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/cs.rb +1157 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/cy_gb.rb +1027 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/da.rb +1043 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/de.rb +1151 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/en.rb +1011 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/en_au.rb +971 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/en_lol.rb +929 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/en_pirate.rb +1205 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/en_scouse.rb +1357 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/en_tx.rb +1011 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/eo.rb +990 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/es.rb +1135 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/et.rb +985 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/fi.rb +964 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/fr.rb +1223 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/he.rb +1113 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/hr.rb +1061 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/hu.rb +1113 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/id.rb +958 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/is.rb +1115 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/it.rb +1081 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/ja.rb +1413 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/ko.rb +1097 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/lt.rb +1040 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/lu.rb +1127 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/lv.rb +1161 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/nl.rb +1110 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/no.rb +1055 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/pl.rb +1209 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/pt.rb +1089 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/ro.rb +1159 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/ru.rb +1749 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/sk.rb +1041 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/sr_cyrl.rb +1798 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/sr_latn.rb +1289 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/sv.rb +1065 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/tr.rb +1087 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/uk.rb +1641 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/uz.rb +1371 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/vi.rb +1193 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/zh_cn.rb +1053 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer/zh_tw.rb +1047 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rb_lexer.rb +8 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/rubify.rb +24 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin/tag_expression.rb +62 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin.rb +2 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_ar.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_bg.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_ca.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_cs.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_cy_gb.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_da.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_de.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_en.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_en_au.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_en_lol.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_en_pirate.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_en_scouse.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_en_tx.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_eo.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_es.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_et.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_fi.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_fr.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_he.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_hr.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_hu.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_id.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_is.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_it.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_ja.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_ko.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_lt.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_lu.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_lv.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_nl.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_no.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_pl.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_pt.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_ro.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_ru.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_sk.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_sr_cyrl.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_sr_latn.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_sv.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_tr.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_uk.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_uz.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_vi.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_zh_cn.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/lib/gherkin_lexer_zh_tw.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ragel/lexer.c.rl.erb +454 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ragel/lexer.java.rl.erb +219 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ragel/lexer.js.rl.erb +227 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ragel/lexer.rb.rl.erb +174 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/ragel/lexer_common.rl.erb +50 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/c_lexer_spec.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/1.feature +8 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/comments_in_table.feature +9 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/complex.feature +45 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/complex.json +139 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/complex_for_filtering.feature +60 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/complex_with_tags.feature +61 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/dos_line_endings.feature +45 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/examples_with_only_header.feature +14 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/hantu_pisang.feature +35 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/i18n_fr.feature +14 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/i18n_fr2.feature +8 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/i18n_no.feature +7 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/i18n_zh-CN.feature +9 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/issue_145.feature +22 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/scenario_outline_with_tags.feature +13 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/scenario_without_steps.feature +5 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/simple_with_comments.feature +7 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/simple_with_tags.feature +11 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/fixtures/with_bom.feature +3 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/formatter/ansi_escapes_spec.rb +32 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/formatter/filter_formatter_spec.rb +196 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/formatter/json_formatter_spec.rb +80 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/formatter/model_spec.rb +28 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/formatter/pretty_formatter_spec.rb +158 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/formatter/spaces.feature +9 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/formatter/step_printer_spec.rb +55 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/formatter/tabs.feature +9 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/formatter/tag_count_formatter_spec.rb +30 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/i18n_spec.rb +168 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/java_lexer_spec.rb +20 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/js_lexer_spec.rb +23 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/json_parser_spec.rb +138 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/lexer/i18n_lexer_spec.rb +43 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/output_stream_string_io.rb +20 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/parser/parser_spec.rb +16 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/rb_lexer_spec.rb +20 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/sexp_recorder.rb +59 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/shared/bom_group.rb +20 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/shared/doc_string_group.rb +163 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/shared/lexer_group.rb +591 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/shared/row_group.rb +125 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/shared/tags_group.rb +54 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/tag_expression_spec.rb +142 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/spec_helper.rb +75 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/bench/feature_builder.rb +49 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/bench/null_listener.rb +4 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/bench.rake +184 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/compile.rake +120 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/cucumber.rake +22 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/gems.rake +31 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/ikvm.rake +124 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/ragel_task.rb +98 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/release.rake +49 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/rspec.rake +8 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/yard/default/layout/html/bubble_32x32.png +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/yard/default/layout/html/bubble_48x48.png +0 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/yard/default/layout/html/footer.erb +5 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/yard/default/layout/html/index.erb +1 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/yard/default/layout/html/layout.erb +25 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/yard/default/layout/html/logo.erb +1 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/yard/default/layout/html/setup.rb +4 -0
- data/vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/tasks/yard.rake +7 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/CHANGES +239 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/COPYING +58 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/COPYING-json-jruby +57 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/GPL +340 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/Gemfile +15 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/README-json-jruby.markdown +33 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/README.rdoc +358 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/Rakefile +398 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/TODO +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/VERSION +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/data/example.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/data/index.html +38 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/data/prototype.js +4184 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/fbuffer/fbuffer.h +156 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/generator/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/generator/extconf.rb +13 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/generator/generator.c +1393 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/generator/generator.h +162 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/generator/generator.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/generator/generator.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/json/ext/generator.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/json/ext/parser.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/parser/Makefile +157 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/parser/extconf.rb +13 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/parser/parser.c +2203 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/parser/parser.h +77 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/parser/parser.o +0 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/parser/parser.rl +926 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/ext/json/ext/parser/parser.so +0 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/install.rb +23 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/ByteListTranscoder.java +167 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/Generator.java +437 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/GeneratorMethods.java +232 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/GeneratorService.java +43 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/GeneratorState.java +522 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/OptionsReader.java +113 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/Parser.java +2640 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/Parser.rl +964 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/ParserService.java +35 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/RuntimeInfo.java +121 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/StringDecoder.java +167 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/StringEncoder.java +106 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/java/src/json/ext/Utils.java +89 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/json-java.gemspec +22 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/json.gemspec +37 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/json_pure.gemspec +39 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/bigdecimal.rb +21 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/complex.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/core.rb +11 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/date.rb +34 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/date_time.rb +50 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/exception.rb +31 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/ostruct.rb +31 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/range.rb +29 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/rational.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/regexp.rb +30 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/struct.rb +30 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/symbol.rb +25 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/add/time.rb +35 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/common.rb +470 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/ext.rb +21 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/pure/generator.rb +472 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/pure/parser.rb +359 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/pure.rb +21 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json/version.rb +8 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/lib/json.rb +62 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail1.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail10.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail11.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail12.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail13.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail14.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail18.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail19.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail2.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail20.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail21.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail22.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail23.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail24.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail25.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail27.json +2 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail28.json +2 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail3.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail4.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail5.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail6.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail7.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail8.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/fail9.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/pass1.json +56 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/pass15.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/pass16.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/pass17.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/pass2.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/pass26.json +1 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/fixtures/pass3.json +6 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/setup_variant.rb +11 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/test_json.rb +527 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/test_json_addition.rb +188 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/test_json_encoding.rb +65 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/test_json_fixtures.rb +35 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/test_json_generate.rb +251 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/test_json_string_matching.rb +40 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tests/test_json_unicode.rb +72 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tools/fuzz.rb +139 -0
- data/vendor/bundle/ruby/1.8/gems/json-1.6.6/tools/server.rb +62 -0
- data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/Gemfile +7 -0
- data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/LICENSE.md +20 -0
- data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/README.md +117 -0
- data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/Rakefile +25 -0
- data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/lib/multi_json/engines/json_common.rb +27 -0
- data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/lib/multi_json/engines/json_gem.rb +12 -0
- data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/lib/multi_json/engines/json_pure.rb +12 -0
- data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/lib/multi_json/engines/nsjsonserialization.rb +34 -0
- data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/lib/multi_json/engines/oj.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/lib/multi_json/engines/ok_json.rb +48 -0
- data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/lib/multi_json/engines/yajl.rb +18 -0
- data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/lib/multi_json/vendor/ok_json.rb +587 -0
- data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/lib/multi_json/version.rb +3 -0
- data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/lib/multi_json.rb +90 -0
- data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/multi_json.gemspec +22 -0
- data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/spec/engine_shared_example.rb +115 -0
- data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/spec/helper.rb +30 -0
- data/vendor/bundle/ruby/1.8/gems/multi_json-1.2.0/spec/multi_json_spec.rb +72 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-2.9.0/License.txt +24 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-2.9.0/README.markdown +47 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-2.9.0/lib/rspec/version.rb +5 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-2.9.0/lib/rspec.rb +4 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/Changelog.md +493 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/License.txt +24 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/README.md +228 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/exe/autospec +13 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/exe/rspec +25 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/Autotest.md +38 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/README.md +17 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/Upgrade.md +364 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/README.md +28 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/example_name_option.feature +86 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/exit_status.feature +83 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/format_option.feature +81 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/init.feature +18 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/line_number_appended_to_path.feature +140 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/line_number_option.feature +58 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/order.feature +29 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/pattern_option.feature +31 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/rake_task.feature +68 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/ruby.feature +22 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/command_line/tag.feature +91 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/configuration/alias_example_to.feature +48 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/configuration/custom_settings.feature +84 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/configuration/default_path.feature +38 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/configuration/fail_fast.feature +77 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/configuration/read_options_from_file.feature +87 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/example_groups/basic_structure.feature +55 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/example_groups/shared_context.feature +74 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/example_groups/shared_examples.feature +204 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/expectation_framework_integration/configure_expectation_framework.feature +73 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/filtering/exclusion_filters.feature +139 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/filtering/if_and_unless.feature +168 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/filtering/inclusion_filters.feature +105 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/filtering/run_all_when_everything_filtered.feature +46 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/formatters/custom_formatter.feature +36 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/formatters/text_formatter.feature +46 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/helper_methods/arbitrary_methods.feature +40 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/helper_methods/let.feature +50 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/helper_methods/modules.feature +149 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/hooks/around_hooks.feature +343 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/hooks/before_and_after_hooks.feature +423 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/hooks/filtering.feature +234 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/metadata/current_example.feature +17 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/metadata/described_class.feature +17 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/metadata/user_defined.feature +113 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/mock_framework_integration/use_any_framework.feature +106 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/mock_framework_integration/use_flexmock.feature +96 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/mock_framework_integration/use_mocha.feature +97 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/mock_framework_integration/use_rr.feature +98 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/mock_framework_integration/use_rspec.feature +97 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/pending/pending_examples.feature +229 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/spec_files/arbitrary_file_suffix.feature +13 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/step_definitions/additional_cli_steps.rb +30 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/subject/attribute_of_subject.feature +124 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/subject/explicit_subject.feature +82 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/subject/implicit_receiver.feature +29 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/subject/implicit_subject.feature +63 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/features/support/env.rb +12 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/autotest/discover.rb +1 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/autotest/rspec2.rb +73 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/autorun.rb +2 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/backward_compatibility.rb +65 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb +36 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/configuration.rb +909 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/configuration_options.rb +124 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/deprecation.rb +51 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/drb_command_line.rb +23 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/drb_options.rb +85 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/dsl.rb +24 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/example.rb +247 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb +443 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/extensions/instance_eval_with_args.rb +44 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/extensions/kernel.rb +9 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/extensions/module_eval_with_args.rb +38 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/extensions/ordered.rb +21 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/extensions.rb +4 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/filter_manager.rb +203 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/formatters/base_formatter.rb +174 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/formatters/base_text_formatter.rb +194 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/formatters/documentation_formatter.rb +67 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/formatters/helpers.rb +39 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/formatters/html_formatter.rb +464 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/formatters/progress_formatter.rb +32 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/formatters/snippet_extractor.rb +58 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/formatters/text_mate_formatter.rb +34 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb +417 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/let.rb +103 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/load_path.rb +3 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/metadata.rb +268 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/metadata_hash_builder.rb +97 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/mocking/with_absolutely_nothing.rb +11 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/mocking/with_flexmock.rb +27 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/mocking/with_mocha.rb +23 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/mocking/with_rr.rb +27 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/mocking/with_rspec.rb +23 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/option_parser.rb +180 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/pending.rb +101 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/project_initializer.rb +81 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/rake_task.rb +179 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb +102 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/ruby_project.rb +44 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb +76 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/shared_context.rb +49 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/shared_example_group.rb +72 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/subject.rb +183 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/version.rb +7 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/world.rb +132 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core.rb +107 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/autotest/discover_spec.rb +19 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/autotest/failed_results_re_spec.rb +45 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/autotest/rspec_spec.rb +123 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/command_line/order_spec.rb +137 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/command_line_spec.rb +166 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/command_line_spec_output.txt +0 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/configuration_options_spec.rb +355 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/configuration_spec.rb +1156 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/deprecations_spec.rb +66 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/drb_command_line_spec.rb +107 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/drb_options_spec.rb +179 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/example_group_spec.rb +1090 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/example_spec.rb +302 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/filter_manager_spec.rb +256 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/base_formatter_spec.rb +80 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/base_text_formatter_spec.rb +344 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/documentation_formatter_spec.rb +88 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/helpers_spec.rb +66 -0
- 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
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/html_formatted-1.8.7.html +409 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/html_formatted-1.9.2.html +416 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/html_formatted-1.9.3.html +416 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/html_formatter_spec.rb +82 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/progress_formatter_spec.rb +30 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/snippet_extractor_spec.rb +18 -0
- 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
- 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
- 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
- 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
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/formatters/text_mate_formatter_spec.rb +83 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/hooks_filtering_spec.rb +227 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/hooks_spec.rb +143 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/kernel_extensions_spec.rb +9 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/let_spec.rb +55 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/metadata_spec.rb +437 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/option_parser_spec.rb +165 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/pending_example_spec.rb +219 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/project_initializer_spec.rb +130 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/rake_task_spec.rb +138 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/reporter_spec.rb +103 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/resources/a_bar.rb +0 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/resources/a_foo.rb +0 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/resources/a_spec.rb +1 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/resources/custom_example_group_runner.rb +14 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/resources/formatter_specs.rb +60 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/resources/utf8_encoded.rb +8 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/rspec_matchers_spec.rb +45 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/ruby_project_spec.rb +24 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/runner_spec.rb +82 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/shared_context_spec.rb +67 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/shared_example_group_spec.rb +84 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/subject_spec.rb +228 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core/world_spec.rb +144 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/rspec/core_spec.rb +25 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/spec_helper.rb +98 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/support/config_options_helper.rb +27 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/support/matchers.rb +65 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/support/shared_example_groups.rb +41 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/support/spec_files.rb +44 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/Changelog.md +176 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/License.txt +23 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/README.md +147 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/README.markdown +49 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/Upgrade.md +53 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/README.md +90 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/be.feature +135 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/be_within.feature +43 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/cover.feature +45 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/equality.feature +145 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/exist.feature +43 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/expect_change.feature +59 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/expect_error.feature +138 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/have.feature +103 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/include.feature +121 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/match.feature +50 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/operators.feature +221 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/predicates.feature +128 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/respond_to.feature +78 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/satisfy.feature +31 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/throw_symbol.feature +85 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/built_in_matchers/types.feature +114 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/custom_matchers/access_running_example.feature +53 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/custom_matchers/define_diffable_matcher.feature +27 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/custom_matchers/define_matcher.feature +340 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/custom_matchers/define_matcher_outside_rspec.feature +38 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/custom_matchers/define_matcher_with_fluent_interface.feature +24 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/customized_message.feature +22 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/diffing.feature +85 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/implicit_docstrings.feature +52 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/step_definitions/additional_cli_steps.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/support/env.rb +5 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/test_frameworks/test_unit.feature +46 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations/deprecation.rb +38 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations/differ.rb +76 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations/errors.rb +9 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations/extensions/array.rb +9 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations/extensions/kernel.rb +26 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations/extensions/object.rb +39 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations/extensions.rb +3 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations/fail_with.rb +54 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations/handler.rb +48 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations/version.rb +8 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/expectations.rb +45 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/be_close.rb +9 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/block_aliases.rb +20 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/base_matcher.rb +58 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/be.rb +183 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/be_instance_of.rb +13 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/be_kind_of.rb +13 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/be_within.rb +39 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/change.rb +132 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/cover.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/eq.rb +26 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/eql.rb +25 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/equal.rb +48 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/exist.rb +28 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/has.rb +47 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/have.rb +107 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/include.rb +52 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/match.rb +13 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/match_array.rb +52 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/raise_error.rb +96 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/respond_to.rb +73 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/satisfy.rb +29 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/throw_symbol.rb +93 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in.rb +33 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/compatibility.rb +14 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/dsl.rb +23 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/extensions/instance_eval_with_args.rb +39 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/generated_descriptions.rb +36 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/matcher.rb +298 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/method_missing.rb +12 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/operator_matcher.rb +84 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers/pretty.rb +60 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec/matchers.rb +572 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/lib/rspec-expectations.rb +1 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/expectations/differ_spec.rb +144 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/expectations/extensions/kernel_spec.rb +45 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/expectations/fail_with_spec.rb +70 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/expectations/handler_spec.rb +206 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/base_matcher_spec.rb +52 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/be_close_spec.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/be_instance_of_spec.rb +36 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/be_kind_of_spec.rb +33 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/be_spec.rb +452 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/be_within_spec.rb +64 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/change_spec.rb +522 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/compatibility_spec.rb +28 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/cover_spec.rb +65 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/description_generation_spec.rb +176 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/dsl_spec.rb +41 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/eq_spec.rb +38 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/eql_spec.rb +37 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/equal_spec.rb +57 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/exist_spec.rb +104 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/has_spec.rb +113 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/have_spec.rb +458 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/include_spec.rb +351 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/match_array_spec.rb +108 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/match_spec.rb +57 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/matcher_spec.rb +434 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/matchers_spec.rb +31 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/method_missing_spec.rb +24 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/operator_matcher_spec.rb +221 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/raise_error_spec.rb +339 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/respond_to_spec.rb +292 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/satisfy_spec.rb +40 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/rspec/matchers/throw_symbol_spec.rb +111 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/spec_helper.rb +27 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/support/classes.rb +56 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/support/matchers.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/spec/support/ruby_version.rb +10 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/Changelog.md +187 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/License.txt +23 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/README.md +147 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/README.markdown +49 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/Upgrade.md +53 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/README.md +90 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/be.feature +135 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/be_within.feature +43 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/cover.feature +45 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/equality.feature +145 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/exist.feature +43 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/expect_change.feature +59 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/expect_error.feature +138 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/have.feature +103 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/include.feature +121 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/match.feature +50 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/operators.feature +221 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/predicates.feature +128 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/respond_to.feature +78 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/satisfy.feature +31 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/throw_symbol.feature +85 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/built_in_matchers/types.feature +114 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/custom_matchers/access_running_example.feature +53 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/custom_matchers/define_diffable_matcher.feature +27 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/custom_matchers/define_matcher.feature +340 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/custom_matchers/define_matcher_outside_rspec.feature +38 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/custom_matchers/define_matcher_with_fluent_interface.feature +24 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/customized_message.feature +22 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/diffing.feature +85 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/implicit_docstrings.feature +52 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/step_definitions/additional_cli_steps.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/support/env.rb +5 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/features/test_frameworks/test_unit.feature +46 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations/deprecation.rb +38 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations/differ.rb +81 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations/errors.rb +9 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations/extensions/array.rb +9 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations/extensions/kernel.rb +26 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations/extensions/object.rb +39 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations/extensions.rb +3 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations/fail_with.rb +55 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations/handler.rb +48 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations/version.rb +8 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/expectations.rb +45 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/be_close.rb +9 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/block_aliases.rb +21 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/base_matcher.rb +58 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/be.rb +183 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/be_instance_of.rb +13 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/be_kind_of.rb +13 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/be_within.rb +39 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/change.rb +132 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/cover.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/eq.rb +26 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/eql.rb +25 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/equal.rb +48 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/exist.rb +28 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/has.rb +47 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/have.rb +107 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/include.rb +52 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/match.rb +13 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/match_array.rb +52 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/raise_error.rb +96 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/respond_to.rb +73 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/satisfy.rb +29 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/throw_symbol.rb +93 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in.rb +33 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/compatibility.rb +14 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/dsl.rb +24 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/extensions/instance_eval_with_args.rb +39 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/generated_descriptions.rb +36 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/matcher.rb +299 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/method_missing.rb +12 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/operator_matcher.rb +84 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers/pretty.rb +60 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec/matchers.rb +572 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/lib/rspec-expectations.rb +1 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/expectations/differ_spec.rb +153 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/expectations/extensions/kernel_spec.rb +45 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/expectations/fail_with_spec.rb +70 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/expectations/handler_spec.rb +206 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/base_matcher_spec.rb +52 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/be_close_spec.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/be_instance_of_spec.rb +36 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/be_kind_of_spec.rb +33 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/be_spec.rb +452 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/be_within_spec.rb +64 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/change_spec.rb +522 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/compatibility_spec.rb +28 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/cover_spec.rb +65 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/description_generation_spec.rb +176 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/dsl_spec.rb +57 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/eq_spec.rb +38 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/eql_spec.rb +37 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/equal_spec.rb +57 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/exist_spec.rb +104 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/has_spec.rb +113 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/have_spec.rb +458 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/include_spec.rb +363 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/match_array_spec.rb +108 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/match_spec.rb +57 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/matcher_spec.rb +434 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/matchers_spec.rb +31 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/method_missing_spec.rb +24 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/operator_matcher_spec.rb +221 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/raise_error_spec.rb +339 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/respond_to_spec.rb +292 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/satisfy_spec.rb +40 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/rspec/matchers/throw_symbol_spec.rb +111 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/spec_helper.rb +27 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/support/classes.rb +56 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/support/matchers.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.1/spec/support/ruby_version.rb +10 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/Changelog.md +147 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/License.txt +23 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/README.md +257 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/README.markdown +67 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/Scope.md +17 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/Upgrade.md +22 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/argument_matchers/README.md +27 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/argument_matchers/explicit.feature +60 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/argument_matchers/general_matchers.feature +85 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/argument_matchers/type_matchers.feature +25 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/message_expectations/README.md +58 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/message_expectations/any_instance.feature +21 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/message_expectations/block_local_expectations.feature.pending +55 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/message_expectations/expect_message.feature +94 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/message_expectations/receive_counts.feature +209 -0
- 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
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/method_stubs/README.md +43 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/method_stubs/any_instance.feature +133 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/method_stubs/as_null_object.feature +35 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/method_stubs/simple_return_value.feature +64 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/method_stubs/stub_chain.feature +51 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/method_stubs/stub_implementation.feature +26 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/method_stubs/to_ary.feature +47 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/outside_rspec/configuration.feature +82 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/outside_rspec/standalone.feature +32 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/step_definitions/additional_cli_steps.rb +4 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/features/support/env.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/any_instance/chain.rb +158 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/any_instance/message_chains.rb +60 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/any_instance/recorder.rb +192 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/any_instance.rb +45 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/argument_expectation.rb +52 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/argument_matchers.rb +230 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/error_generator.rb +107 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/errors.rb +12 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/example_methods.rb +54 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/extensions/instance_exec.rb +34 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/extensions/marshal.rb +23 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/extensions/psych.rb +23 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/framework.rb +18 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/message_expectation.rb +506 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/method_double.rb +190 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/methods.rb +151 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/mock.rb +81 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/order_group.rb +40 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/proxy.rb +179 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/serialization.rb +34 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/space.rb +34 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/standalone.rb +3 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/version.rb +7 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks.rb +39 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/spec/mocks.rb +2 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/and_yield_spec.rb +114 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/any_instance/message_chains_spec.rb +40 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/any_instance_spec.rb +785 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/any_number_of_times_spec.rb +30 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/argument_expectation_spec.rb +34 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/at_least_spec.rb +103 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/at_most_spec.rb +99 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/block_return_value_spec.rb +45 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_10260_spec.rb +8 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_10263_spec.rb +25 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_11545_spec.rb +32 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_496_spec.rb +17 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_600_spec.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_7611_spec.rb +16 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_8165_spec.rb +31 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_830_spec.rb +21 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_957_spec.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/double_spec.rb +12 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/failing_argument_matchers_spec.rb +95 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/hash_excluding_matcher_spec.rb +67 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/hash_including_matcher_spec.rb +90 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/mock_ordering_spec.rb +103 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/mock_space_spec.rb +58 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/mock_spec.rb +715 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/multiple_return_value_spec.rb +188 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/nil_expectation_warning_spec.rb +62 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/null_object_mock_spec.rb +78 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/once_counts_spec.rb +53 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/options_hash_spec.rb +35 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/partial_mock_spec.rb +156 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb +95 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/passing_argument_matchers_spec.rb +142 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/precise_counts_spec.rb +58 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/record_messages_spec.rb +26 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/serialization_spec.rb +110 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/stash_spec.rb +27 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/stub_chain_spec.rb +149 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/stub_implementation_spec.rb +68 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/stub_spec.rb +238 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/stubbed_message_expectations_spec.rb +47 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/to_ary_spec.rb +40 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/twice_counts_spec.rb +67 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks_spec.rb +51 -0
- data/vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/spec_helper.rb +53 -0
- data/vendor/bundle/ruby/1.8/specifications/gherkin-2.9.3.gemspec +64 -0
- data/vendor/bundle/ruby/1.8/specifications/json-1.6.6.gemspec +36 -0
- data/vendor/bundle/ruby/1.8/specifications/multi_json-1.2.0.gemspec +40 -0
- data/vendor/bundle/ruby/1.8/specifications/rspec-2.9.0.gemspec +39 -0
- data/vendor/bundle/ruby/1.8/specifications/rspec-core-2.9.0.gemspec +58 -0
- data/vendor/bundle/ruby/1.8/specifications/rspec-expectations-2.9.0.gemspec +40 -0
- data/vendor/bundle/ruby/1.8/specifications/rspec-expectations-2.9.1.gemspec +40 -0
- data/vendor/bundle/ruby/1.8/specifications/rspec-mocks-2.9.0.gemspec +37 -0
- metadata +1077 -15
@@ -0,0 +1,1393 @@
|
|
1
|
+
#include "../fbuffer/fbuffer.h"
|
2
|
+
#include "generator.h"
|
3
|
+
|
4
|
+
#ifdef HAVE_RUBY_ENCODING_H
|
5
|
+
static VALUE CEncoding_UTF_8;
|
6
|
+
static ID i_encoding, i_encode;
|
7
|
+
#endif
|
8
|
+
|
9
|
+
static VALUE mJSON, mExt, mGenerator, cState, mGeneratorMethods, mObject,
|
10
|
+
mHash, mArray, mFixnum, mBignum, mFloat, mString, mString_Extend,
|
11
|
+
mTrueClass, mFalseClass, mNilClass, eGeneratorError,
|
12
|
+
eNestingError, CRegexp_MULTILINE, CJSON_SAFE_STATE_PROTOTYPE,
|
13
|
+
i_SAFE_STATE_PROTOTYPE;
|
14
|
+
|
15
|
+
static ID i_to_s, i_to_json, i_new, i_indent, i_space, i_space_before,
|
16
|
+
i_object_nl, i_array_nl, i_max_nesting, i_allow_nan, i_ascii_only,
|
17
|
+
i_quirks_mode, i_pack, i_unpack, i_create_id, i_extend, i_key_p,
|
18
|
+
i_aref, i_send, i_respond_to_p, i_match, i_keys, i_depth,
|
19
|
+
i_buffer_initial_length, i_dup;
|
20
|
+
|
21
|
+
/*
|
22
|
+
* Copyright 2001-2004 Unicode, Inc.
|
23
|
+
*
|
24
|
+
* Disclaimer
|
25
|
+
*
|
26
|
+
* This source code is provided as is by Unicode, Inc. No claims are
|
27
|
+
* made as to fitness for any particular purpose. No warranties of any
|
28
|
+
* kind are expressed or implied. The recipient agrees to determine
|
29
|
+
* applicability of information provided. If this file has been
|
30
|
+
* purchased on magnetic or optical media from Unicode, Inc., the
|
31
|
+
* sole remedy for any claim will be exchange of defective media
|
32
|
+
* within 90 days of receipt.
|
33
|
+
*
|
34
|
+
* Limitations on Rights to Redistribute This Code
|
35
|
+
*
|
36
|
+
* Unicode, Inc. hereby grants the right to freely use the information
|
37
|
+
* supplied in this file in the creation of products supporting the
|
38
|
+
* Unicode Standard, and to make copies of this file in any form
|
39
|
+
* for internal or external distribution as long as this notice
|
40
|
+
* remains attached.
|
41
|
+
*/
|
42
|
+
|
43
|
+
/*
|
44
|
+
* Index into the table below with the first byte of a UTF-8 sequence to
|
45
|
+
* get the number of trailing bytes that are supposed to follow it.
|
46
|
+
* Note that *legal* UTF-8 values can't have 4 or 5-bytes. The table is
|
47
|
+
* left as-is for anyone who may want to do such conversion, which was
|
48
|
+
* allowed in earlier algorithms.
|
49
|
+
*/
|
50
|
+
static const char trailingBytesForUTF8[256] = {
|
51
|
+
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
52
|
+
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
53
|
+
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
54
|
+
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
55
|
+
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
56
|
+
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
57
|
+
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
58
|
+
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5
|
59
|
+
};
|
60
|
+
|
61
|
+
/*
|
62
|
+
* Magic values subtracted from a buffer value during UTF8 conversion.
|
63
|
+
* This table contains as many values as there might be trailing bytes
|
64
|
+
* in a UTF-8 sequence.
|
65
|
+
*/
|
66
|
+
static const UTF32 offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080UL,
|
67
|
+
0x03C82080UL, 0xFA082080UL, 0x82082080UL };
|
68
|
+
|
69
|
+
/*
|
70
|
+
* Utility routine to tell whether a sequence of bytes is legal UTF-8.
|
71
|
+
* This must be called with the length pre-determined by the first byte.
|
72
|
+
* If not calling this from ConvertUTF8to*, then the length can be set by:
|
73
|
+
* length = trailingBytesForUTF8[*source]+1;
|
74
|
+
* and the sequence is illegal right away if there aren't that many bytes
|
75
|
+
* available.
|
76
|
+
* If presented with a length > 4, this returns 0. The Unicode
|
77
|
+
* definition of UTF-8 goes up to 4-byte sequences.
|
78
|
+
*/
|
79
|
+
static unsigned char isLegalUTF8(const UTF8 *source, unsigned long length)
|
80
|
+
{
|
81
|
+
UTF8 a;
|
82
|
+
const UTF8 *srcptr = source+length;
|
83
|
+
switch (length) {
|
84
|
+
default: return 0;
|
85
|
+
/* Everything else falls through when "1"... */
|
86
|
+
case 4: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
|
87
|
+
case 3: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
|
88
|
+
case 2: if ((a = (*--srcptr)) > 0xBF) return 0;
|
89
|
+
|
90
|
+
switch (*source) {
|
91
|
+
/* no fall-through in this inner switch */
|
92
|
+
case 0xE0: if (a < 0xA0) return 0; break;
|
93
|
+
case 0xED: if (a > 0x9F) return 0; break;
|
94
|
+
case 0xF0: if (a < 0x90) return 0; break;
|
95
|
+
case 0xF4: if (a > 0x8F) return 0; break;
|
96
|
+
default: if (a < 0x80) return 0;
|
97
|
+
}
|
98
|
+
|
99
|
+
case 1: if (*source >= 0x80 && *source < 0xC2) return 0;
|
100
|
+
}
|
101
|
+
if (*source > 0xF4) return 0;
|
102
|
+
return 1;
|
103
|
+
}
|
104
|
+
|
105
|
+
/* Escapes the UTF16 character and stores the result in the buffer buf. */
|
106
|
+
static void unicode_escape(char *buf, UTF16 character)
|
107
|
+
{
|
108
|
+
const char *digits = "0123456789abcdef";
|
109
|
+
|
110
|
+
buf[2] = digits[character >> 12];
|
111
|
+
buf[3] = digits[(character >> 8) & 0xf];
|
112
|
+
buf[4] = digits[(character >> 4) & 0xf];
|
113
|
+
buf[5] = digits[character & 0xf];
|
114
|
+
}
|
115
|
+
|
116
|
+
/* Escapes the UTF16 character and stores the result in the buffer buf, then
|
117
|
+
* the buffer buf is appended to the FBuffer buffer. */
|
118
|
+
static void unicode_escape_to_buffer(FBuffer *buffer, char buf[6], UTF16
|
119
|
+
character)
|
120
|
+
{
|
121
|
+
unicode_escape(buf, character);
|
122
|
+
fbuffer_append(buffer, buf, 6);
|
123
|
+
}
|
124
|
+
|
125
|
+
/* Converts string to a JSON string in FBuffer buffer, where all but the ASCII
|
126
|
+
* and control characters are JSON escaped. */
|
127
|
+
static void convert_UTF8_to_JSON_ASCII(FBuffer *buffer, VALUE string)
|
128
|
+
{
|
129
|
+
const UTF8 *source = (UTF8 *) RSTRING_PTR(string);
|
130
|
+
const UTF8 *sourceEnd = source + RSTRING_LEN(string);
|
131
|
+
char buf[6] = { '\\', 'u' };
|
132
|
+
|
133
|
+
while (source < sourceEnd) {
|
134
|
+
UTF32 ch = 0;
|
135
|
+
unsigned short extraBytesToRead = trailingBytesForUTF8[*source];
|
136
|
+
if (source + extraBytesToRead >= sourceEnd) {
|
137
|
+
rb_raise(rb_path2class("JSON::GeneratorError"),
|
138
|
+
"partial character in source, but hit end");
|
139
|
+
}
|
140
|
+
if (!isLegalUTF8(source, extraBytesToRead+1)) {
|
141
|
+
rb_raise(rb_path2class("JSON::GeneratorError"),
|
142
|
+
"source sequence is illegal/malformed utf-8");
|
143
|
+
}
|
144
|
+
/*
|
145
|
+
* The cases all fall through. See "Note A" below.
|
146
|
+
*/
|
147
|
+
switch (extraBytesToRead) {
|
148
|
+
case 5: ch += *source++; ch <<= 6; /* remember, illegal UTF-8 */
|
149
|
+
case 4: ch += *source++; ch <<= 6; /* remember, illegal UTF-8 */
|
150
|
+
case 3: ch += *source++; ch <<= 6;
|
151
|
+
case 2: ch += *source++; ch <<= 6;
|
152
|
+
case 1: ch += *source++; ch <<= 6;
|
153
|
+
case 0: ch += *source++;
|
154
|
+
}
|
155
|
+
ch -= offsetsFromUTF8[extraBytesToRead];
|
156
|
+
|
157
|
+
if (ch <= UNI_MAX_BMP) { /* Target is a character <= 0xFFFF */
|
158
|
+
/* UTF-16 surrogate values are illegal in UTF-32 */
|
159
|
+
if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_LOW_END) {
|
160
|
+
#if UNI_STRICT_CONVERSION
|
161
|
+
source -= (extraBytesToRead+1); /* return to the illegal value itself */
|
162
|
+
rb_raise(rb_path2class("JSON::GeneratorError"),
|
163
|
+
"source sequence is illegal/malformed utf-8");
|
164
|
+
#else
|
165
|
+
unicode_escape_to_buffer(buffer, buf, UNI_REPLACEMENT_CHAR);
|
166
|
+
#endif
|
167
|
+
} else {
|
168
|
+
/* normal case */
|
169
|
+
if (ch >= 0x20 && ch <= 0x7f) {
|
170
|
+
switch (ch) {
|
171
|
+
case '\\':
|
172
|
+
fbuffer_append(buffer, "\\\\", 2);
|
173
|
+
break;
|
174
|
+
case '"':
|
175
|
+
fbuffer_append(buffer, "\\\"", 2);
|
176
|
+
break;
|
177
|
+
default:
|
178
|
+
fbuffer_append_char(buffer, (char)ch);
|
179
|
+
break;
|
180
|
+
}
|
181
|
+
} else {
|
182
|
+
switch (ch) {
|
183
|
+
case '\n':
|
184
|
+
fbuffer_append(buffer, "\\n", 2);
|
185
|
+
break;
|
186
|
+
case '\r':
|
187
|
+
fbuffer_append(buffer, "\\r", 2);
|
188
|
+
break;
|
189
|
+
case '\t':
|
190
|
+
fbuffer_append(buffer, "\\t", 2);
|
191
|
+
break;
|
192
|
+
case '\f':
|
193
|
+
fbuffer_append(buffer, "\\f", 2);
|
194
|
+
break;
|
195
|
+
case '\b':
|
196
|
+
fbuffer_append(buffer, "\\b", 2);
|
197
|
+
break;
|
198
|
+
default:
|
199
|
+
unicode_escape_to_buffer(buffer, buf, (UTF16) ch);
|
200
|
+
break;
|
201
|
+
}
|
202
|
+
}
|
203
|
+
}
|
204
|
+
} else if (ch > UNI_MAX_UTF16) {
|
205
|
+
#if UNI_STRICT_CONVERSION
|
206
|
+
source -= (extraBytesToRead+1); /* return to the start */
|
207
|
+
rb_raise(rb_path2class("JSON::GeneratorError"),
|
208
|
+
"source sequence is illegal/malformed utf8");
|
209
|
+
#else
|
210
|
+
unicode_escape_to_buffer(buffer, buf, UNI_REPLACEMENT_CHAR);
|
211
|
+
#endif
|
212
|
+
} else {
|
213
|
+
/* target is a character in range 0xFFFF - 0x10FFFF. */
|
214
|
+
ch -= halfBase;
|
215
|
+
unicode_escape_to_buffer(buffer, buf, (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START));
|
216
|
+
unicode_escape_to_buffer(buffer, buf, (UTF16)((ch & halfMask) + UNI_SUR_LOW_START));
|
217
|
+
}
|
218
|
+
}
|
219
|
+
}
|
220
|
+
|
221
|
+
/* Converts string to a JSON string in FBuffer buffer, where only the
|
222
|
+
* characters required by the JSON standard are JSON escaped. The remaining
|
223
|
+
* characters (should be UTF8) are just passed through and appended to the
|
224
|
+
* result. */
|
225
|
+
static void convert_UTF8_to_JSON(FBuffer *buffer, VALUE string)
|
226
|
+
{
|
227
|
+
const char *ptr = RSTRING_PTR(string), *p;
|
228
|
+
unsigned long len = RSTRING_LEN(string), start = 0, end = 0;
|
229
|
+
const char *escape = NULL;
|
230
|
+
int escape_len;
|
231
|
+
unsigned char c;
|
232
|
+
char buf[6] = { '\\', 'u' };
|
233
|
+
|
234
|
+
for (start = 0, end = 0; end < len;) {
|
235
|
+
p = ptr + end;
|
236
|
+
c = (unsigned char) *p;
|
237
|
+
if (c < 0x20) {
|
238
|
+
switch (c) {
|
239
|
+
case '\n':
|
240
|
+
escape = "\\n";
|
241
|
+
escape_len = 2;
|
242
|
+
break;
|
243
|
+
case '\r':
|
244
|
+
escape = "\\r";
|
245
|
+
escape_len = 2;
|
246
|
+
break;
|
247
|
+
case '\t':
|
248
|
+
escape = "\\t";
|
249
|
+
escape_len = 2;
|
250
|
+
break;
|
251
|
+
case '\f':
|
252
|
+
escape = "\\f";
|
253
|
+
escape_len = 2;
|
254
|
+
break;
|
255
|
+
case '\b':
|
256
|
+
escape = "\\b";
|
257
|
+
escape_len = 2;
|
258
|
+
break;
|
259
|
+
default:
|
260
|
+
unicode_escape(buf, (UTF16) *p);
|
261
|
+
escape = buf;
|
262
|
+
escape_len = 6;
|
263
|
+
break;
|
264
|
+
}
|
265
|
+
} else {
|
266
|
+
switch (c) {
|
267
|
+
case '\\':
|
268
|
+
escape = "\\\\";
|
269
|
+
escape_len = 2;
|
270
|
+
break;
|
271
|
+
case '"':
|
272
|
+
escape = "\\\"";
|
273
|
+
escape_len = 2;
|
274
|
+
break;
|
275
|
+
default:
|
276
|
+
end++;
|
277
|
+
continue;
|
278
|
+
break;
|
279
|
+
}
|
280
|
+
}
|
281
|
+
fbuffer_append(buffer, ptr + start, end - start);
|
282
|
+
fbuffer_append(buffer, escape, escape_len);
|
283
|
+
start = ++end;
|
284
|
+
escape = NULL;
|
285
|
+
}
|
286
|
+
fbuffer_append(buffer, ptr + start, end - start);
|
287
|
+
}
|
288
|
+
|
289
|
+
static char *fstrndup(const char *ptr, unsigned long len) {
|
290
|
+
char *result;
|
291
|
+
if (len <= 0) return NULL;
|
292
|
+
result = ALLOC_N(char, len);
|
293
|
+
memccpy(result, ptr, 0, len);
|
294
|
+
return result;
|
295
|
+
}
|
296
|
+
|
297
|
+
/*
|
298
|
+
* Document-module: JSON::Ext::Generator
|
299
|
+
*
|
300
|
+
* This is the JSON generator implemented as a C extension. It can be
|
301
|
+
* configured to be used by setting
|
302
|
+
*
|
303
|
+
* JSON.generator = JSON::Ext::Generator
|
304
|
+
*
|
305
|
+
* with the method generator= in JSON.
|
306
|
+
*
|
307
|
+
*/
|
308
|
+
|
309
|
+
/*
|
310
|
+
* call-seq: to_json(state = nil)
|
311
|
+
*
|
312
|
+
* Returns a JSON string containing a JSON object, that is generated from
|
313
|
+
* this Hash instance.
|
314
|
+
* _state_ is a JSON::State object, that can also be used to configure the
|
315
|
+
* produced JSON string output further.
|
316
|
+
*/
|
317
|
+
static VALUE mHash_to_json(int argc, VALUE *argv, VALUE self)
|
318
|
+
{
|
319
|
+
GENERATE_JSON(object);
|
320
|
+
}
|
321
|
+
|
322
|
+
/*
|
323
|
+
* call-seq: to_json(state = nil)
|
324
|
+
*
|
325
|
+
* Returns a JSON string containing a JSON array, that is generated from
|
326
|
+
* this Array instance.
|
327
|
+
* _state_ is a JSON::State object, that can also be used to configure the
|
328
|
+
* produced JSON string output further.
|
329
|
+
*/
|
330
|
+
static VALUE mArray_to_json(int argc, VALUE *argv, VALUE self) {
|
331
|
+
GENERATE_JSON(array);
|
332
|
+
}
|
333
|
+
|
334
|
+
/*
|
335
|
+
* call-seq: to_json(*)
|
336
|
+
*
|
337
|
+
* Returns a JSON string representation for this Integer number.
|
338
|
+
*/
|
339
|
+
static VALUE mFixnum_to_json(int argc, VALUE *argv, VALUE self)
|
340
|
+
{
|
341
|
+
GENERATE_JSON(fixnum);
|
342
|
+
}
|
343
|
+
|
344
|
+
/*
|
345
|
+
* call-seq: to_json(*)
|
346
|
+
*
|
347
|
+
* Returns a JSON string representation for this Integer number.
|
348
|
+
*/
|
349
|
+
static VALUE mBignum_to_json(int argc, VALUE *argv, VALUE self)
|
350
|
+
{
|
351
|
+
GENERATE_JSON(bignum);
|
352
|
+
}
|
353
|
+
|
354
|
+
/*
|
355
|
+
* call-seq: to_json(*)
|
356
|
+
*
|
357
|
+
* Returns a JSON string representation for this Float number.
|
358
|
+
*/
|
359
|
+
static VALUE mFloat_to_json(int argc, VALUE *argv, VALUE self)
|
360
|
+
{
|
361
|
+
GENERATE_JSON(float);
|
362
|
+
}
|
363
|
+
|
364
|
+
/*
|
365
|
+
* call-seq: String.included(modul)
|
366
|
+
*
|
367
|
+
* Extends _modul_ with the String::Extend module.
|
368
|
+
*/
|
369
|
+
static VALUE mString_included_s(VALUE self, VALUE modul) {
|
370
|
+
VALUE result = rb_funcall(modul, i_extend, 1, mString_Extend);
|
371
|
+
return result;
|
372
|
+
}
|
373
|
+
|
374
|
+
/*
|
375
|
+
* call-seq: to_json(*)
|
376
|
+
*
|
377
|
+
* This string should be encoded with UTF-8 A call to this method
|
378
|
+
* returns a JSON string encoded with UTF16 big endian characters as
|
379
|
+
* \u????.
|
380
|
+
*/
|
381
|
+
static VALUE mString_to_json(int argc, VALUE *argv, VALUE self)
|
382
|
+
{
|
383
|
+
GENERATE_JSON(string);
|
384
|
+
}
|
385
|
+
|
386
|
+
/*
|
387
|
+
* call-seq: to_json_raw_object()
|
388
|
+
*
|
389
|
+
* This method creates a raw object hash, that can be nested into
|
390
|
+
* other data structures and will be generated as a raw string. This
|
391
|
+
* method should be used, if you want to convert raw strings to JSON
|
392
|
+
* instead of UTF-8 strings, e. g. binary data.
|
393
|
+
*/
|
394
|
+
static VALUE mString_to_json_raw_object(VALUE self)
|
395
|
+
{
|
396
|
+
VALUE ary;
|
397
|
+
VALUE result = rb_hash_new();
|
398
|
+
rb_hash_aset(result, rb_funcall(mJSON, i_create_id, 0), rb_class_name(rb_obj_class(self)));
|
399
|
+
ary = rb_funcall(self, i_unpack, 1, rb_str_new2("C*"));
|
400
|
+
rb_hash_aset(result, rb_str_new2("raw"), ary);
|
401
|
+
return result;
|
402
|
+
}
|
403
|
+
|
404
|
+
/*
|
405
|
+
* call-seq: to_json_raw(*args)
|
406
|
+
*
|
407
|
+
* This method creates a JSON text from the result of a call to
|
408
|
+
* to_json_raw_object of this String.
|
409
|
+
*/
|
410
|
+
static VALUE mString_to_json_raw(int argc, VALUE *argv, VALUE self)
|
411
|
+
{
|
412
|
+
VALUE obj = mString_to_json_raw_object(self);
|
413
|
+
Check_Type(obj, T_HASH);
|
414
|
+
return mHash_to_json(argc, argv, obj);
|
415
|
+
}
|
416
|
+
|
417
|
+
/*
|
418
|
+
* call-seq: json_create(o)
|
419
|
+
*
|
420
|
+
* Raw Strings are JSON Objects (the raw bytes are stored in an array for the
|
421
|
+
* key "raw"). The Ruby String can be created by this module method.
|
422
|
+
*/
|
423
|
+
static VALUE mString_Extend_json_create(VALUE self, VALUE o)
|
424
|
+
{
|
425
|
+
VALUE ary;
|
426
|
+
Check_Type(o, T_HASH);
|
427
|
+
ary = rb_hash_aref(o, rb_str_new2("raw"));
|
428
|
+
return rb_funcall(ary, i_pack, 1, rb_str_new2("C*"));
|
429
|
+
}
|
430
|
+
|
431
|
+
/*
|
432
|
+
* call-seq: to_json(*)
|
433
|
+
*
|
434
|
+
* Returns a JSON string for true: 'true'.
|
435
|
+
*/
|
436
|
+
static VALUE mTrueClass_to_json(int argc, VALUE *argv, VALUE self)
|
437
|
+
{
|
438
|
+
GENERATE_JSON(true);
|
439
|
+
}
|
440
|
+
|
441
|
+
/*
|
442
|
+
* call-seq: to_json(*)
|
443
|
+
*
|
444
|
+
* Returns a JSON string for false: 'false'.
|
445
|
+
*/
|
446
|
+
static VALUE mFalseClass_to_json(int argc, VALUE *argv, VALUE self)
|
447
|
+
{
|
448
|
+
GENERATE_JSON(false);
|
449
|
+
}
|
450
|
+
|
451
|
+
/*
|
452
|
+
* call-seq: to_json(*)
|
453
|
+
*
|
454
|
+
* Returns a JSON string for nil: 'null'.
|
455
|
+
*/
|
456
|
+
static VALUE mNilClass_to_json(int argc, VALUE *argv, VALUE self)
|
457
|
+
{
|
458
|
+
GENERATE_JSON(null);
|
459
|
+
}
|
460
|
+
|
461
|
+
/*
|
462
|
+
* call-seq: to_json(*)
|
463
|
+
*
|
464
|
+
* Converts this object to a string (calling #to_s), converts
|
465
|
+
* it to a JSON string, and returns the result. This is a fallback, if no
|
466
|
+
* special method #to_json was defined for some object.
|
467
|
+
*/
|
468
|
+
static VALUE mObject_to_json(int argc, VALUE *argv, VALUE self)
|
469
|
+
{
|
470
|
+
VALUE state;
|
471
|
+
VALUE string = rb_funcall(self, i_to_s, 0);
|
472
|
+
rb_scan_args(argc, argv, "01", &state);
|
473
|
+
Check_Type(string, T_STRING);
|
474
|
+
state = cState_from_state_s(cState, state);
|
475
|
+
return cState_partial_generate(state, string);
|
476
|
+
}
|
477
|
+
|
478
|
+
static void State_free(JSON_Generator_State *state)
|
479
|
+
{
|
480
|
+
if (state->indent) ruby_xfree(state->indent);
|
481
|
+
if (state->space) ruby_xfree(state->space);
|
482
|
+
if (state->space_before) ruby_xfree(state->space_before);
|
483
|
+
if (state->object_nl) ruby_xfree(state->object_nl);
|
484
|
+
if (state->array_nl) ruby_xfree(state->array_nl);
|
485
|
+
if (state->array_delim) fbuffer_free(state->array_delim);
|
486
|
+
if (state->object_delim) fbuffer_free(state->object_delim);
|
487
|
+
if (state->object_delim2) fbuffer_free(state->object_delim2);
|
488
|
+
ruby_xfree(state);
|
489
|
+
}
|
490
|
+
|
491
|
+
static JSON_Generator_State *State_allocate()
|
492
|
+
{
|
493
|
+
JSON_Generator_State *state = ALLOC(JSON_Generator_State);
|
494
|
+
MEMZERO(state, JSON_Generator_State, 1);
|
495
|
+
return state;
|
496
|
+
}
|
497
|
+
|
498
|
+
static VALUE cState_s_allocate(VALUE klass)
|
499
|
+
{
|
500
|
+
JSON_Generator_State *state = State_allocate();
|
501
|
+
return Data_Wrap_Struct(klass, NULL, State_free, state);
|
502
|
+
}
|
503
|
+
|
504
|
+
/*
|
505
|
+
* call-seq: configure(opts)
|
506
|
+
*
|
507
|
+
* Configure this State instance with the Hash _opts_, and return
|
508
|
+
* itself.
|
509
|
+
*/
|
510
|
+
static VALUE cState_configure(VALUE self, VALUE opts)
|
511
|
+
{
|
512
|
+
VALUE tmp;
|
513
|
+
GET_STATE(self);
|
514
|
+
tmp = rb_convert_type(opts, T_HASH, "Hash", "to_hash");
|
515
|
+
if (NIL_P(tmp)) tmp = rb_convert_type(opts, T_HASH, "Hash", "to_h");
|
516
|
+
if (NIL_P(tmp)) {
|
517
|
+
rb_raise(rb_eArgError, "opts has to be hash like or convertable into a hash");
|
518
|
+
}
|
519
|
+
opts = tmp;
|
520
|
+
tmp = rb_hash_aref(opts, ID2SYM(i_indent));
|
521
|
+
if (RTEST(tmp)) {
|
522
|
+
unsigned long len;
|
523
|
+
Check_Type(tmp, T_STRING);
|
524
|
+
len = RSTRING_LEN(tmp);
|
525
|
+
state->indent = fstrndup(RSTRING_PTR(tmp), len);
|
526
|
+
state->indent_len = len;
|
527
|
+
}
|
528
|
+
tmp = rb_hash_aref(opts, ID2SYM(i_space));
|
529
|
+
if (RTEST(tmp)) {
|
530
|
+
unsigned long len;
|
531
|
+
Check_Type(tmp, T_STRING);
|
532
|
+
len = RSTRING_LEN(tmp);
|
533
|
+
state->space = fstrndup(RSTRING_PTR(tmp), len);
|
534
|
+
state->space_len = len;
|
535
|
+
}
|
536
|
+
tmp = rb_hash_aref(opts, ID2SYM(i_space_before));
|
537
|
+
if (RTEST(tmp)) {
|
538
|
+
unsigned long len;
|
539
|
+
Check_Type(tmp, T_STRING);
|
540
|
+
len = RSTRING_LEN(tmp);
|
541
|
+
state->space_before = fstrndup(RSTRING_PTR(tmp), len);
|
542
|
+
state->space_before_len = len;
|
543
|
+
}
|
544
|
+
tmp = rb_hash_aref(opts, ID2SYM(i_array_nl));
|
545
|
+
if (RTEST(tmp)) {
|
546
|
+
unsigned long len;
|
547
|
+
Check_Type(tmp, T_STRING);
|
548
|
+
len = RSTRING_LEN(tmp);
|
549
|
+
state->array_nl = fstrndup(RSTRING_PTR(tmp), len);
|
550
|
+
state->array_nl_len = len;
|
551
|
+
}
|
552
|
+
tmp = rb_hash_aref(opts, ID2SYM(i_object_nl));
|
553
|
+
if (RTEST(tmp)) {
|
554
|
+
unsigned long len;
|
555
|
+
Check_Type(tmp, T_STRING);
|
556
|
+
len = RSTRING_LEN(tmp);
|
557
|
+
state->object_nl = fstrndup(RSTRING_PTR(tmp), len);
|
558
|
+
state->object_nl_len = len;
|
559
|
+
}
|
560
|
+
tmp = ID2SYM(i_max_nesting);
|
561
|
+
state->max_nesting = 19;
|
562
|
+
if (option_given_p(opts, tmp)) {
|
563
|
+
VALUE max_nesting = rb_hash_aref(opts, tmp);
|
564
|
+
if (RTEST(max_nesting)) {
|
565
|
+
Check_Type(max_nesting, T_FIXNUM);
|
566
|
+
state->max_nesting = FIX2LONG(max_nesting);
|
567
|
+
} else {
|
568
|
+
state->max_nesting = 0;
|
569
|
+
}
|
570
|
+
}
|
571
|
+
tmp = ID2SYM(i_depth);
|
572
|
+
state->depth = 0;
|
573
|
+
if (option_given_p(opts, tmp)) {
|
574
|
+
VALUE depth = rb_hash_aref(opts, tmp);
|
575
|
+
if (RTEST(depth)) {
|
576
|
+
Check_Type(depth, T_FIXNUM);
|
577
|
+
state->depth = FIX2LONG(depth);
|
578
|
+
} else {
|
579
|
+
state->depth = 0;
|
580
|
+
}
|
581
|
+
}
|
582
|
+
tmp = ID2SYM(i_buffer_initial_length);
|
583
|
+
if (option_given_p(opts, tmp)) {
|
584
|
+
VALUE buffer_initial_length = rb_hash_aref(opts, tmp);
|
585
|
+
if (RTEST(buffer_initial_length)) {
|
586
|
+
long initial_length;
|
587
|
+
Check_Type(buffer_initial_length, T_FIXNUM);
|
588
|
+
initial_length = FIX2LONG(buffer_initial_length);
|
589
|
+
if (initial_length > 0) state->buffer_initial_length = initial_length;
|
590
|
+
}
|
591
|
+
}
|
592
|
+
tmp = rb_hash_aref(opts, ID2SYM(i_allow_nan));
|
593
|
+
state->allow_nan = RTEST(tmp);
|
594
|
+
tmp = rb_hash_aref(opts, ID2SYM(i_ascii_only));
|
595
|
+
state->ascii_only = RTEST(tmp);
|
596
|
+
tmp = rb_hash_aref(opts, ID2SYM(i_quirks_mode));
|
597
|
+
state->quirks_mode = RTEST(tmp);
|
598
|
+
return self;
|
599
|
+
}
|
600
|
+
|
601
|
+
/*
|
602
|
+
* call-seq: to_h
|
603
|
+
*
|
604
|
+
* Returns the configuration instance variables as a hash, that can be
|
605
|
+
* passed to the configure method.
|
606
|
+
*/
|
607
|
+
static VALUE cState_to_h(VALUE self)
|
608
|
+
{
|
609
|
+
VALUE result = rb_hash_new();
|
610
|
+
GET_STATE(self);
|
611
|
+
rb_hash_aset(result, ID2SYM(i_indent), rb_str_new(state->indent, state->indent_len));
|
612
|
+
rb_hash_aset(result, ID2SYM(i_space), rb_str_new(state->space, state->space_len));
|
613
|
+
rb_hash_aset(result, ID2SYM(i_space_before), rb_str_new(state->space_before, state->space_before_len));
|
614
|
+
rb_hash_aset(result, ID2SYM(i_object_nl), rb_str_new(state->object_nl, state->object_nl_len));
|
615
|
+
rb_hash_aset(result, ID2SYM(i_array_nl), rb_str_new(state->array_nl, state->array_nl_len));
|
616
|
+
rb_hash_aset(result, ID2SYM(i_allow_nan), state->allow_nan ? Qtrue : Qfalse);
|
617
|
+
rb_hash_aset(result, ID2SYM(i_ascii_only), state->ascii_only ? Qtrue : Qfalse);
|
618
|
+
rb_hash_aset(result, ID2SYM(i_quirks_mode), state->quirks_mode ? Qtrue : Qfalse);
|
619
|
+
rb_hash_aset(result, ID2SYM(i_max_nesting), LONG2FIX(state->max_nesting));
|
620
|
+
rb_hash_aset(result, ID2SYM(i_depth), LONG2FIX(state->depth));
|
621
|
+
rb_hash_aset(result, ID2SYM(i_buffer_initial_length), LONG2FIX(state->buffer_initial_length));
|
622
|
+
return result;
|
623
|
+
}
|
624
|
+
|
625
|
+
/*
|
626
|
+
* call-seq: [](name)
|
627
|
+
*
|
628
|
+
* Return the value returned by method +name+.
|
629
|
+
*/
|
630
|
+
static VALUE cState_aref(VALUE self, VALUE name)
|
631
|
+
{
|
632
|
+
GET_STATE(self);
|
633
|
+
if (RTEST(rb_funcall(self, i_respond_to_p, 1, name))) {
|
634
|
+
return rb_funcall(self, i_send, 1, name);
|
635
|
+
} else {
|
636
|
+
return Qnil;
|
637
|
+
}
|
638
|
+
}
|
639
|
+
|
640
|
+
static void generate_json_object(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
|
641
|
+
{
|
642
|
+
char *object_nl = state->object_nl;
|
643
|
+
long object_nl_len = state->object_nl_len;
|
644
|
+
char *indent = state->indent;
|
645
|
+
long indent_len = state->indent_len;
|
646
|
+
long max_nesting = state->max_nesting;
|
647
|
+
char *delim = FBUFFER_PTR(state->object_delim);
|
648
|
+
long delim_len = FBUFFER_LEN(state->object_delim);
|
649
|
+
char *delim2 = FBUFFER_PTR(state->object_delim2);
|
650
|
+
long delim2_len = FBUFFER_LEN(state->object_delim2);
|
651
|
+
long depth = ++state->depth;
|
652
|
+
int i, j;
|
653
|
+
VALUE key, key_to_s, keys;
|
654
|
+
if (max_nesting != 0 && depth > max_nesting) {
|
655
|
+
fbuffer_free(buffer);
|
656
|
+
rb_raise(eNestingError, "nesting of %ld is too deep", --state->depth);
|
657
|
+
}
|
658
|
+
fbuffer_append_char(buffer, '{');
|
659
|
+
keys = rb_funcall(obj, i_keys, 0);
|
660
|
+
for(i = 0; i < RARRAY_LEN(keys); i++) {
|
661
|
+
if (i > 0) fbuffer_append(buffer, delim, delim_len);
|
662
|
+
if (object_nl) {
|
663
|
+
fbuffer_append(buffer, object_nl, object_nl_len);
|
664
|
+
}
|
665
|
+
if (indent) {
|
666
|
+
for (j = 0; j < depth; j++) {
|
667
|
+
fbuffer_append(buffer, indent, indent_len);
|
668
|
+
}
|
669
|
+
}
|
670
|
+
key = rb_ary_entry(keys, i);
|
671
|
+
key_to_s = rb_funcall(key, i_to_s, 0);
|
672
|
+
Check_Type(key_to_s, T_STRING);
|
673
|
+
generate_json(buffer, Vstate, state, key_to_s);
|
674
|
+
fbuffer_append(buffer, delim2, delim2_len);
|
675
|
+
generate_json(buffer, Vstate, state, rb_hash_aref(obj, key));
|
676
|
+
}
|
677
|
+
depth = --state->depth;
|
678
|
+
if (object_nl) {
|
679
|
+
fbuffer_append(buffer, object_nl, object_nl_len);
|
680
|
+
if (indent) {
|
681
|
+
for (j = 0; j < depth; j++) {
|
682
|
+
fbuffer_append(buffer, indent, indent_len);
|
683
|
+
}
|
684
|
+
}
|
685
|
+
}
|
686
|
+
fbuffer_append_char(buffer, '}');
|
687
|
+
}
|
688
|
+
|
689
|
+
static void generate_json_array(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
|
690
|
+
{
|
691
|
+
char *array_nl = state->array_nl;
|
692
|
+
long array_nl_len = state->array_nl_len;
|
693
|
+
char *indent = state->indent;
|
694
|
+
long indent_len = state->indent_len;
|
695
|
+
long max_nesting = state->max_nesting;
|
696
|
+
char *delim = FBUFFER_PTR(state->array_delim);
|
697
|
+
long delim_len = FBUFFER_LEN(state->array_delim);
|
698
|
+
long depth = ++state->depth;
|
699
|
+
int i, j;
|
700
|
+
if (max_nesting != 0 && depth > max_nesting) {
|
701
|
+
fbuffer_free(buffer);
|
702
|
+
rb_raise(eNestingError, "nesting of %ld is too deep", --state->depth);
|
703
|
+
}
|
704
|
+
fbuffer_append_char(buffer, '[');
|
705
|
+
if (array_nl) fbuffer_append(buffer, array_nl, array_nl_len);
|
706
|
+
for(i = 0; i < RARRAY_LEN(obj); i++) {
|
707
|
+
if (i > 0) fbuffer_append(buffer, delim, delim_len);
|
708
|
+
if (indent) {
|
709
|
+
for (j = 0; j < depth; j++) {
|
710
|
+
fbuffer_append(buffer, indent, indent_len);
|
711
|
+
}
|
712
|
+
}
|
713
|
+
generate_json(buffer, Vstate, state, rb_ary_entry(obj, i));
|
714
|
+
}
|
715
|
+
state->depth = --depth;
|
716
|
+
if (array_nl) {
|
717
|
+
fbuffer_append(buffer, array_nl, array_nl_len);
|
718
|
+
if (indent) {
|
719
|
+
for (j = 0; j < depth; j++) {
|
720
|
+
fbuffer_append(buffer, indent, indent_len);
|
721
|
+
}
|
722
|
+
}
|
723
|
+
}
|
724
|
+
fbuffer_append_char(buffer, ']');
|
725
|
+
}
|
726
|
+
|
727
|
+
static void generate_json_string(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
|
728
|
+
{
|
729
|
+
fbuffer_append_char(buffer, '"');
|
730
|
+
#ifdef HAVE_RUBY_ENCODING_H
|
731
|
+
obj = rb_funcall(obj, i_encode, 1, CEncoding_UTF_8);
|
732
|
+
#endif
|
733
|
+
if (state->ascii_only) {
|
734
|
+
convert_UTF8_to_JSON_ASCII(buffer, obj);
|
735
|
+
} else {
|
736
|
+
convert_UTF8_to_JSON(buffer, obj);
|
737
|
+
}
|
738
|
+
fbuffer_append_char(buffer, '"');
|
739
|
+
}
|
740
|
+
|
741
|
+
static void generate_json_null(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
|
742
|
+
{
|
743
|
+
fbuffer_append(buffer, "null", 4);
|
744
|
+
}
|
745
|
+
|
746
|
+
static void generate_json_false(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
|
747
|
+
{
|
748
|
+
fbuffer_append(buffer, "false", 5);
|
749
|
+
}
|
750
|
+
|
751
|
+
static void generate_json_true(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
|
752
|
+
{
|
753
|
+
fbuffer_append(buffer, "true", 4);
|
754
|
+
}
|
755
|
+
|
756
|
+
static void generate_json_fixnum(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
|
757
|
+
{
|
758
|
+
fbuffer_append_long(buffer, FIX2LONG(obj));
|
759
|
+
}
|
760
|
+
|
761
|
+
static void generate_json_bignum(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
|
762
|
+
{
|
763
|
+
VALUE tmp = rb_funcall(obj, i_to_s, 0);
|
764
|
+
fbuffer_append_str(buffer, tmp);
|
765
|
+
}
|
766
|
+
|
767
|
+
static void generate_json_float(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
|
768
|
+
{
|
769
|
+
double value = RFLOAT_VALUE(obj);
|
770
|
+
char allow_nan = state->allow_nan;
|
771
|
+
VALUE tmp = rb_funcall(obj, i_to_s, 0);
|
772
|
+
if (!allow_nan) {
|
773
|
+
if (isinf(value)) {
|
774
|
+
fbuffer_free(buffer);
|
775
|
+
rb_raise(eGeneratorError, "%u: %s not allowed in JSON", __LINE__, StringValueCStr(tmp));
|
776
|
+
} else if (isnan(value)) {
|
777
|
+
fbuffer_free(buffer);
|
778
|
+
rb_raise(eGeneratorError, "%u: %s not allowed in JSON", __LINE__, StringValueCStr(tmp));
|
779
|
+
}
|
780
|
+
}
|
781
|
+
fbuffer_append_str(buffer, tmp);
|
782
|
+
}
|
783
|
+
|
784
|
+
static void generate_json(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
|
785
|
+
{
|
786
|
+
VALUE tmp;
|
787
|
+
VALUE klass = CLASS_OF(obj);
|
788
|
+
if (klass == rb_cHash) {
|
789
|
+
generate_json_object(buffer, Vstate, state, obj);
|
790
|
+
} else if (klass == rb_cArray) {
|
791
|
+
generate_json_array(buffer, Vstate, state, obj);
|
792
|
+
} else if (klass == rb_cString) {
|
793
|
+
generate_json_string(buffer, Vstate, state, obj);
|
794
|
+
} else if (obj == Qnil) {
|
795
|
+
generate_json_null(buffer, Vstate, state, obj);
|
796
|
+
} else if (obj == Qfalse) {
|
797
|
+
generate_json_false(buffer, Vstate, state, obj);
|
798
|
+
} else if (obj == Qtrue) {
|
799
|
+
generate_json_true(buffer, Vstate, state, obj);
|
800
|
+
} else if (klass == rb_cFixnum) {
|
801
|
+
generate_json_fixnum(buffer, Vstate, state, obj);
|
802
|
+
} else if (klass == rb_cBignum) {
|
803
|
+
generate_json_bignum(buffer, Vstate, state, obj);
|
804
|
+
} else if (klass == rb_cFloat) {
|
805
|
+
generate_json_float(buffer, Vstate, state, obj);
|
806
|
+
} else if (rb_respond_to(obj, i_to_json)) {
|
807
|
+
tmp = rb_funcall(obj, i_to_json, 1, Vstate);
|
808
|
+
Check_Type(tmp, T_STRING);
|
809
|
+
fbuffer_append_str(buffer, tmp);
|
810
|
+
} else {
|
811
|
+
tmp = rb_funcall(obj, i_to_s, 0);
|
812
|
+
Check_Type(tmp, T_STRING);
|
813
|
+
generate_json(buffer, Vstate, state, tmp);
|
814
|
+
}
|
815
|
+
}
|
816
|
+
|
817
|
+
static FBuffer *cState_prepare_buffer(VALUE self)
|
818
|
+
{
|
819
|
+
FBuffer *buffer;
|
820
|
+
GET_STATE(self);
|
821
|
+
buffer = fbuffer_alloc(state->buffer_initial_length);
|
822
|
+
|
823
|
+
if (state->object_delim) {
|
824
|
+
fbuffer_clear(state->object_delim);
|
825
|
+
} else {
|
826
|
+
state->object_delim = fbuffer_alloc(16);
|
827
|
+
}
|
828
|
+
fbuffer_append_char(state->object_delim, ',');
|
829
|
+
if (state->object_delim2) {
|
830
|
+
fbuffer_clear(state->object_delim2);
|
831
|
+
} else {
|
832
|
+
state->object_delim2 = fbuffer_alloc(16);
|
833
|
+
}
|
834
|
+
fbuffer_append_char(state->object_delim2, ':');
|
835
|
+
if (state->space) fbuffer_append(state->object_delim2, state->space, state->space_len);
|
836
|
+
|
837
|
+
if (state->array_delim) {
|
838
|
+
fbuffer_clear(state->array_delim);
|
839
|
+
} else {
|
840
|
+
state->array_delim = fbuffer_alloc(16);
|
841
|
+
}
|
842
|
+
fbuffer_append_char(state->array_delim, ',');
|
843
|
+
if (state->array_nl) fbuffer_append(state->array_delim, state->array_nl, state->array_nl_len);
|
844
|
+
return buffer;
|
845
|
+
}
|
846
|
+
|
847
|
+
static VALUE cState_partial_generate(VALUE self, VALUE obj)
|
848
|
+
{
|
849
|
+
FBuffer *buffer = cState_prepare_buffer(self);
|
850
|
+
GET_STATE(self);
|
851
|
+
generate_json(buffer, self, state, obj);
|
852
|
+
return fbuffer_to_s(buffer);
|
853
|
+
}
|
854
|
+
|
855
|
+
/*
|
856
|
+
* This function returns true if string is either a JSON array or JSON object.
|
857
|
+
* It might suffer from false positives, e. g. syntactically incorrect JSON in
|
858
|
+
* the string or certain UTF-8 characters on the right hand side.
|
859
|
+
*/
|
860
|
+
static int isArrayOrObject(VALUE string)
|
861
|
+
{
|
862
|
+
long string_len = RSTRING_LEN(string);
|
863
|
+
char c, *p = RSTRING_PTR(string), *q = p + string_len - 1;
|
864
|
+
if (string_len < 2) return 0;
|
865
|
+
for (; p < q && isspace(*p); p++);
|
866
|
+
for (; q > p && isspace(*q); q--);
|
867
|
+
return *p == '[' && *q == ']' || *p == '{' && *q == '}';
|
868
|
+
}
|
869
|
+
|
870
|
+
/*
|
871
|
+
* call-seq: generate(obj)
|
872
|
+
*
|
873
|
+
* Generates a valid JSON document from object +obj+ and returns the
|
874
|
+
* result. If no valid JSON document can be created this method raises a
|
875
|
+
* GeneratorError exception.
|
876
|
+
*/
|
877
|
+
static VALUE cState_generate(VALUE self, VALUE obj)
|
878
|
+
{
|
879
|
+
VALUE result = cState_partial_generate(self, obj);
|
880
|
+
GET_STATE(self);
|
881
|
+
if (!state->quirks_mode && !isArrayOrObject(result)) {
|
882
|
+
rb_raise(eGeneratorError, "only generation of JSON objects or arrays allowed");
|
883
|
+
}
|
884
|
+
return result;
|
885
|
+
}
|
886
|
+
|
887
|
+
/*
|
888
|
+
* call-seq: new(opts = {})
|
889
|
+
*
|
890
|
+
* Instantiates a new State object, configured by _opts_.
|
891
|
+
*
|
892
|
+
* _opts_ can have the following keys:
|
893
|
+
*
|
894
|
+
* * *indent*: a string used to indent levels (default: ''),
|
895
|
+
* * *space*: a string that is put after, a : or , delimiter (default: ''),
|
896
|
+
* * *space_before*: a string that is put before a : pair delimiter (default: ''),
|
897
|
+
* * *object_nl*: a string that is put at the end of a JSON object (default: ''),
|
898
|
+
* * *array_nl*: a string that is put at the end of a JSON array (default: ''),
|
899
|
+
* * *allow_nan*: true if NaN, Infinity, and -Infinity should be
|
900
|
+
* generated, otherwise an exception is thrown, if these values are
|
901
|
+
* encountered. This options defaults to false.
|
902
|
+
* * *quirks_mode*: Enables quirks_mode for parser, that is for example
|
903
|
+
* generating single JSON values instead of documents is possible.
|
904
|
+
* * *buffer_initial_length*: sets the initial length of the generator's
|
905
|
+
* internal buffer.
|
906
|
+
*/
|
907
|
+
static VALUE cState_initialize(int argc, VALUE *argv, VALUE self)
|
908
|
+
{
|
909
|
+
VALUE opts;
|
910
|
+
GET_STATE(self);
|
911
|
+
state->max_nesting = 19;
|
912
|
+
state->buffer_initial_length = FBUFFER_INITIAL_LENGTH_DEFAULT;
|
913
|
+
rb_scan_args(argc, argv, "01", &opts);
|
914
|
+
if (!NIL_P(opts)) cState_configure(self, opts);
|
915
|
+
return self;
|
916
|
+
}
|
917
|
+
|
918
|
+
/*
|
919
|
+
* call-seq: initialize_copy(orig)
|
920
|
+
*
|
921
|
+
* Initializes this object from orig if it to be duplicated/cloned and returns
|
922
|
+
* it.
|
923
|
+
*/
|
924
|
+
static VALUE cState_init_copy(VALUE obj, VALUE orig)
|
925
|
+
{
|
926
|
+
JSON_Generator_State *objState, *origState;
|
927
|
+
|
928
|
+
Data_Get_Struct(obj, JSON_Generator_State, objState);
|
929
|
+
Data_Get_Struct(orig, JSON_Generator_State, origState);
|
930
|
+
if (!objState) rb_raise(rb_eArgError, "unallocated JSON::State");
|
931
|
+
|
932
|
+
MEMCPY(objState, origState, JSON_Generator_State, 1);
|
933
|
+
objState->indent = fstrndup(origState->indent, origState->indent_len);
|
934
|
+
objState->space = fstrndup(origState->space, origState->space_len);
|
935
|
+
objState->space_before = fstrndup(origState->space_before, origState->space_before_len);
|
936
|
+
objState->object_nl = fstrndup(origState->object_nl, origState->object_nl_len);
|
937
|
+
objState->array_nl = fstrndup(origState->array_nl, origState->array_nl_len);
|
938
|
+
if (origState->array_delim) objState->array_delim = fbuffer_dup(origState->array_delim);
|
939
|
+
if (origState->object_delim) objState->object_delim = fbuffer_dup(origState->object_delim);
|
940
|
+
if (origState->object_delim2) objState->object_delim2 = fbuffer_dup(origState->object_delim2);
|
941
|
+
return obj;
|
942
|
+
}
|
943
|
+
|
944
|
+
/*
|
945
|
+
* call-seq: from_state(opts)
|
946
|
+
*
|
947
|
+
* Creates a State object from _opts_, which ought to be Hash to create a
|
948
|
+
* new State instance configured by _opts_, something else to create an
|
949
|
+
* unconfigured instance. If _opts_ is a State object, it is just returned.
|
950
|
+
*/
|
951
|
+
static VALUE cState_from_state_s(VALUE self, VALUE opts)
|
952
|
+
{
|
953
|
+
if (rb_obj_is_kind_of(opts, self)) {
|
954
|
+
return opts;
|
955
|
+
} else if (rb_obj_is_kind_of(opts, rb_cHash)) {
|
956
|
+
return rb_funcall(self, i_new, 1, opts);
|
957
|
+
} else {
|
958
|
+
if (NIL_P(CJSON_SAFE_STATE_PROTOTYPE)) {
|
959
|
+
CJSON_SAFE_STATE_PROTOTYPE = rb_const_get(mJSON, i_SAFE_STATE_PROTOTYPE);
|
960
|
+
}
|
961
|
+
return rb_funcall(CJSON_SAFE_STATE_PROTOTYPE, i_dup, 0);
|
962
|
+
}
|
963
|
+
}
|
964
|
+
|
965
|
+
/*
|
966
|
+
* call-seq: indent()
|
967
|
+
*
|
968
|
+
* This string is used to indent levels in the JSON text.
|
969
|
+
*/
|
970
|
+
static VALUE cState_indent(VALUE self)
|
971
|
+
{
|
972
|
+
GET_STATE(self);
|
973
|
+
return state->indent ? rb_str_new2(state->indent) : rb_str_new2("");
|
974
|
+
}
|
975
|
+
|
976
|
+
/*
|
977
|
+
* call-seq: indent=(indent)
|
978
|
+
*
|
979
|
+
* This string is used to indent levels in the JSON text.
|
980
|
+
*/
|
981
|
+
static VALUE cState_indent_set(VALUE self, VALUE indent)
|
982
|
+
{
|
983
|
+
unsigned long len;
|
984
|
+
GET_STATE(self);
|
985
|
+
Check_Type(indent, T_STRING);
|
986
|
+
len = RSTRING_LEN(indent);
|
987
|
+
if (len == 0) {
|
988
|
+
if (state->indent) {
|
989
|
+
ruby_xfree(state->indent);
|
990
|
+
state->indent = NULL;
|
991
|
+
state->indent_len = 0;
|
992
|
+
}
|
993
|
+
} else {
|
994
|
+
if (state->indent) ruby_xfree(state->indent);
|
995
|
+
state->indent = strdup(RSTRING_PTR(indent));
|
996
|
+
state->indent_len = len;
|
997
|
+
}
|
998
|
+
return Qnil;
|
999
|
+
}
|
1000
|
+
|
1001
|
+
/*
|
1002
|
+
* call-seq: space()
|
1003
|
+
*
|
1004
|
+
* This string is used to insert a space between the tokens in a JSON
|
1005
|
+
* string.
|
1006
|
+
*/
|
1007
|
+
static VALUE cState_space(VALUE self)
|
1008
|
+
{
|
1009
|
+
GET_STATE(self);
|
1010
|
+
return state->space ? rb_str_new2(state->space) : rb_str_new2("");
|
1011
|
+
}
|
1012
|
+
|
1013
|
+
/*
|
1014
|
+
* call-seq: space=(space)
|
1015
|
+
*
|
1016
|
+
* This string is used to insert a space between the tokens in a JSON
|
1017
|
+
* string.
|
1018
|
+
*/
|
1019
|
+
static VALUE cState_space_set(VALUE self, VALUE space)
|
1020
|
+
{
|
1021
|
+
unsigned long len;
|
1022
|
+
GET_STATE(self);
|
1023
|
+
Check_Type(space, T_STRING);
|
1024
|
+
len = RSTRING_LEN(space);
|
1025
|
+
if (len == 0) {
|
1026
|
+
if (state->space) {
|
1027
|
+
ruby_xfree(state->space);
|
1028
|
+
state->space = NULL;
|
1029
|
+
state->space_len = 0;
|
1030
|
+
}
|
1031
|
+
} else {
|
1032
|
+
if (state->space) ruby_xfree(state->space);
|
1033
|
+
state->space = strdup(RSTRING_PTR(space));
|
1034
|
+
state->space_len = len;
|
1035
|
+
}
|
1036
|
+
return Qnil;
|
1037
|
+
}
|
1038
|
+
|
1039
|
+
/*
|
1040
|
+
* call-seq: space_before()
|
1041
|
+
*
|
1042
|
+
* This string is used to insert a space before the ':' in JSON objects.
|
1043
|
+
*/
|
1044
|
+
static VALUE cState_space_before(VALUE self)
|
1045
|
+
{
|
1046
|
+
GET_STATE(self);
|
1047
|
+
return state->space_before ? rb_str_new2(state->space_before) : rb_str_new2("");
|
1048
|
+
}
|
1049
|
+
|
1050
|
+
/*
|
1051
|
+
* call-seq: space_before=(space_before)
|
1052
|
+
*
|
1053
|
+
* This string is used to insert a space before the ':' in JSON objects.
|
1054
|
+
*/
|
1055
|
+
static VALUE cState_space_before_set(VALUE self, VALUE space_before)
|
1056
|
+
{
|
1057
|
+
unsigned long len;
|
1058
|
+
GET_STATE(self);
|
1059
|
+
Check_Type(space_before, T_STRING);
|
1060
|
+
len = RSTRING_LEN(space_before);
|
1061
|
+
if (len == 0) {
|
1062
|
+
if (state->space_before) {
|
1063
|
+
ruby_xfree(state->space_before);
|
1064
|
+
state->space_before = NULL;
|
1065
|
+
state->space_before_len = 0;
|
1066
|
+
}
|
1067
|
+
} else {
|
1068
|
+
if (state->space_before) ruby_xfree(state->space_before);
|
1069
|
+
state->space_before = strdup(RSTRING_PTR(space_before));
|
1070
|
+
state->space_before_len = len;
|
1071
|
+
}
|
1072
|
+
return Qnil;
|
1073
|
+
}
|
1074
|
+
|
1075
|
+
/*
|
1076
|
+
* call-seq: object_nl()
|
1077
|
+
*
|
1078
|
+
* This string is put at the end of a line that holds a JSON object (or
|
1079
|
+
* Hash).
|
1080
|
+
*/
|
1081
|
+
static VALUE cState_object_nl(VALUE self)
|
1082
|
+
{
|
1083
|
+
GET_STATE(self);
|
1084
|
+
return state->object_nl ? rb_str_new2(state->object_nl) : rb_str_new2("");
|
1085
|
+
}
|
1086
|
+
|
1087
|
+
/*
|
1088
|
+
* call-seq: object_nl=(object_nl)
|
1089
|
+
*
|
1090
|
+
* This string is put at the end of a line that holds a JSON object (or
|
1091
|
+
* Hash).
|
1092
|
+
*/
|
1093
|
+
static VALUE cState_object_nl_set(VALUE self, VALUE object_nl)
|
1094
|
+
{
|
1095
|
+
unsigned long len;
|
1096
|
+
GET_STATE(self);
|
1097
|
+
Check_Type(object_nl, T_STRING);
|
1098
|
+
len = RSTRING_LEN(object_nl);
|
1099
|
+
if (len == 0) {
|
1100
|
+
if (state->object_nl) {
|
1101
|
+
ruby_xfree(state->object_nl);
|
1102
|
+
state->object_nl = NULL;
|
1103
|
+
}
|
1104
|
+
} else {
|
1105
|
+
if (state->object_nl) ruby_xfree(state->object_nl);
|
1106
|
+
state->object_nl = strdup(RSTRING_PTR(object_nl));
|
1107
|
+
state->object_nl_len = len;
|
1108
|
+
}
|
1109
|
+
return Qnil;
|
1110
|
+
}
|
1111
|
+
|
1112
|
+
/*
|
1113
|
+
* call-seq: array_nl()
|
1114
|
+
*
|
1115
|
+
* This string is put at the end of a line that holds a JSON array.
|
1116
|
+
*/
|
1117
|
+
static VALUE cState_array_nl(VALUE self)
|
1118
|
+
{
|
1119
|
+
GET_STATE(self);
|
1120
|
+
return state->array_nl ? rb_str_new2(state->array_nl) : rb_str_new2("");
|
1121
|
+
}
|
1122
|
+
|
1123
|
+
/*
|
1124
|
+
* call-seq: array_nl=(array_nl)
|
1125
|
+
*
|
1126
|
+
* This string is put at the end of a line that holds a JSON array.
|
1127
|
+
*/
|
1128
|
+
static VALUE cState_array_nl_set(VALUE self, VALUE array_nl)
|
1129
|
+
{
|
1130
|
+
unsigned long len;
|
1131
|
+
GET_STATE(self);
|
1132
|
+
Check_Type(array_nl, T_STRING);
|
1133
|
+
len = RSTRING_LEN(array_nl);
|
1134
|
+
if (len == 0) {
|
1135
|
+
if (state->array_nl) {
|
1136
|
+
ruby_xfree(state->array_nl);
|
1137
|
+
state->array_nl = NULL;
|
1138
|
+
}
|
1139
|
+
} else {
|
1140
|
+
if (state->array_nl) ruby_xfree(state->array_nl);
|
1141
|
+
state->array_nl = strdup(RSTRING_PTR(array_nl));
|
1142
|
+
state->array_nl_len = len;
|
1143
|
+
}
|
1144
|
+
return Qnil;
|
1145
|
+
}
|
1146
|
+
|
1147
|
+
|
1148
|
+
/*
|
1149
|
+
* call-seq: check_circular?
|
1150
|
+
*
|
1151
|
+
* Returns true, if circular data structures should be checked,
|
1152
|
+
* otherwise returns false.
|
1153
|
+
*/
|
1154
|
+
static VALUE cState_check_circular_p(VALUE self)
|
1155
|
+
{
|
1156
|
+
GET_STATE(self);
|
1157
|
+
return state->max_nesting ? Qtrue : Qfalse;
|
1158
|
+
}
|
1159
|
+
|
1160
|
+
/*
|
1161
|
+
* call-seq: max_nesting
|
1162
|
+
*
|
1163
|
+
* This integer returns the maximum level of data structure nesting in
|
1164
|
+
* the generated JSON, max_nesting = 0 if no maximum is checked.
|
1165
|
+
*/
|
1166
|
+
static VALUE cState_max_nesting(VALUE self)
|
1167
|
+
{
|
1168
|
+
GET_STATE(self);
|
1169
|
+
return LONG2FIX(state->max_nesting);
|
1170
|
+
}
|
1171
|
+
|
1172
|
+
/*
|
1173
|
+
* call-seq: max_nesting=(depth)
|
1174
|
+
*
|
1175
|
+
* This sets the maximum level of data structure nesting in the generated JSON
|
1176
|
+
* to the integer depth, max_nesting = 0 if no maximum should be checked.
|
1177
|
+
*/
|
1178
|
+
static VALUE cState_max_nesting_set(VALUE self, VALUE depth)
|
1179
|
+
{
|
1180
|
+
GET_STATE(self);
|
1181
|
+
Check_Type(depth, T_FIXNUM);
|
1182
|
+
return state->max_nesting = FIX2LONG(depth);
|
1183
|
+
}
|
1184
|
+
|
1185
|
+
/*
|
1186
|
+
* call-seq: allow_nan?
|
1187
|
+
*
|
1188
|
+
* Returns true, if NaN, Infinity, and -Infinity should be generated, otherwise
|
1189
|
+
* returns false.
|
1190
|
+
*/
|
1191
|
+
static VALUE cState_allow_nan_p(VALUE self)
|
1192
|
+
{
|
1193
|
+
GET_STATE(self);
|
1194
|
+
return state->allow_nan ? Qtrue : Qfalse;
|
1195
|
+
}
|
1196
|
+
|
1197
|
+
/*
|
1198
|
+
* call-seq: ascii_only?
|
1199
|
+
*
|
1200
|
+
* Returns true, if NaN, Infinity, and -Infinity should be generated, otherwise
|
1201
|
+
* returns false.
|
1202
|
+
*/
|
1203
|
+
static VALUE cState_ascii_only_p(VALUE self)
|
1204
|
+
{
|
1205
|
+
GET_STATE(self);
|
1206
|
+
return state->ascii_only ? Qtrue : Qfalse;
|
1207
|
+
}
|
1208
|
+
|
1209
|
+
/*
|
1210
|
+
* call-seq: quirks_mode?
|
1211
|
+
*
|
1212
|
+
* Returns true, if quirks mode is enabled. Otherwise returns false.
|
1213
|
+
*/
|
1214
|
+
static VALUE cState_quirks_mode_p(VALUE self)
|
1215
|
+
{
|
1216
|
+
GET_STATE(self);
|
1217
|
+
return state->quirks_mode ? Qtrue : Qfalse;
|
1218
|
+
}
|
1219
|
+
|
1220
|
+
/*
|
1221
|
+
* call-seq: quirks_mode=(enable)
|
1222
|
+
*
|
1223
|
+
* If set to true, enables the quirks_mode mode.
|
1224
|
+
*/
|
1225
|
+
static VALUE cState_quirks_mode_set(VALUE self, VALUE enable)
|
1226
|
+
{
|
1227
|
+
GET_STATE(self);
|
1228
|
+
state->quirks_mode = RTEST(enable);
|
1229
|
+
return Qnil;
|
1230
|
+
}
|
1231
|
+
|
1232
|
+
/*
|
1233
|
+
* call-seq: depth
|
1234
|
+
*
|
1235
|
+
* This integer returns the current depth of data structure nesting.
|
1236
|
+
*/
|
1237
|
+
static VALUE cState_depth(VALUE self)
|
1238
|
+
{
|
1239
|
+
GET_STATE(self);
|
1240
|
+
return LONG2FIX(state->depth);
|
1241
|
+
}
|
1242
|
+
|
1243
|
+
/*
|
1244
|
+
* call-seq: depth=(depth)
|
1245
|
+
*
|
1246
|
+
* This sets the maximum level of data structure nesting in the generated JSON
|
1247
|
+
* to the integer depth, max_nesting = 0 if no maximum should be checked.
|
1248
|
+
*/
|
1249
|
+
static VALUE cState_depth_set(VALUE self, VALUE depth)
|
1250
|
+
{
|
1251
|
+
GET_STATE(self);
|
1252
|
+
Check_Type(depth, T_FIXNUM);
|
1253
|
+
state->depth = FIX2LONG(depth);
|
1254
|
+
return Qnil;
|
1255
|
+
}
|
1256
|
+
|
1257
|
+
/*
|
1258
|
+
* call-seq: buffer_initial_length
|
1259
|
+
*
|
1260
|
+
* This integer returns the current inital length of the buffer.
|
1261
|
+
*/
|
1262
|
+
static VALUE cState_buffer_initial_length(VALUE self)
|
1263
|
+
{
|
1264
|
+
GET_STATE(self);
|
1265
|
+
return LONG2FIX(state->buffer_initial_length);
|
1266
|
+
}
|
1267
|
+
|
1268
|
+
/*
|
1269
|
+
* call-seq: buffer_initial_length=(length)
|
1270
|
+
*
|
1271
|
+
* This sets the initial length of the buffer to +length+, if +length+ > 0,
|
1272
|
+
* otherwise its value isn't changed.
|
1273
|
+
*/
|
1274
|
+
static VALUE cState_buffer_initial_length_set(VALUE self, VALUE buffer_initial_length)
|
1275
|
+
{
|
1276
|
+
long initial_length;
|
1277
|
+
GET_STATE(self);
|
1278
|
+
Check_Type(buffer_initial_length, T_FIXNUM);
|
1279
|
+
initial_length = FIX2LONG(buffer_initial_length);
|
1280
|
+
if (initial_length > 0) {
|
1281
|
+
state->buffer_initial_length = initial_length;
|
1282
|
+
}
|
1283
|
+
return Qnil;
|
1284
|
+
}
|
1285
|
+
|
1286
|
+
/*
|
1287
|
+
*
|
1288
|
+
*/
|
1289
|
+
void Init_generator()
|
1290
|
+
{
|
1291
|
+
rb_require("json/common");
|
1292
|
+
|
1293
|
+
mJSON = rb_define_module("JSON");
|
1294
|
+
mExt = rb_define_module_under(mJSON, "Ext");
|
1295
|
+
mGenerator = rb_define_module_under(mExt, "Generator");
|
1296
|
+
|
1297
|
+
eGeneratorError = rb_path2class("JSON::GeneratorError");
|
1298
|
+
eNestingError = rb_path2class("JSON::NestingError");
|
1299
|
+
|
1300
|
+
cState = rb_define_class_under(mGenerator, "State", rb_cObject);
|
1301
|
+
rb_define_alloc_func(cState, cState_s_allocate);
|
1302
|
+
rb_define_singleton_method(cState, "from_state", cState_from_state_s, 1);
|
1303
|
+
rb_define_method(cState, "initialize", cState_initialize, -1);
|
1304
|
+
rb_define_method(cState, "initialize_copy", cState_init_copy, 1);
|
1305
|
+
rb_define_method(cState, "indent", cState_indent, 0);
|
1306
|
+
rb_define_method(cState, "indent=", cState_indent_set, 1);
|
1307
|
+
rb_define_method(cState, "space", cState_space, 0);
|
1308
|
+
rb_define_method(cState, "space=", cState_space_set, 1);
|
1309
|
+
rb_define_method(cState, "space_before", cState_space_before, 0);
|
1310
|
+
rb_define_method(cState, "space_before=", cState_space_before_set, 1);
|
1311
|
+
rb_define_method(cState, "object_nl", cState_object_nl, 0);
|
1312
|
+
rb_define_method(cState, "object_nl=", cState_object_nl_set, 1);
|
1313
|
+
rb_define_method(cState, "array_nl", cState_array_nl, 0);
|
1314
|
+
rb_define_method(cState, "array_nl=", cState_array_nl_set, 1);
|
1315
|
+
rb_define_method(cState, "max_nesting", cState_max_nesting, 0);
|
1316
|
+
rb_define_method(cState, "max_nesting=", cState_max_nesting_set, 1);
|
1317
|
+
rb_define_method(cState, "check_circular?", cState_check_circular_p, 0);
|
1318
|
+
rb_define_method(cState, "allow_nan?", cState_allow_nan_p, 0);
|
1319
|
+
rb_define_method(cState, "ascii_only?", cState_ascii_only_p, 0);
|
1320
|
+
rb_define_method(cState, "quirks_mode?", cState_quirks_mode_p, 0);
|
1321
|
+
rb_define_method(cState, "quirks_mode", cState_quirks_mode_p, 0);
|
1322
|
+
rb_define_method(cState, "quirks_mode=", cState_quirks_mode_set, 1);
|
1323
|
+
rb_define_method(cState, "depth", cState_depth, 0);
|
1324
|
+
rb_define_method(cState, "depth=", cState_depth_set, 1);
|
1325
|
+
rb_define_method(cState, "buffer_initial_length", cState_buffer_initial_length, 0);
|
1326
|
+
rb_define_method(cState, "buffer_initial_length=", cState_buffer_initial_length_set, 1);
|
1327
|
+
rb_define_method(cState, "configure", cState_configure, 1);
|
1328
|
+
rb_define_alias(cState, "merge", "configure");
|
1329
|
+
rb_define_method(cState, "to_h", cState_to_h, 0);
|
1330
|
+
rb_define_method(cState, "[]", cState_aref, 1);
|
1331
|
+
rb_define_method(cState, "generate", cState_generate, 1);
|
1332
|
+
|
1333
|
+
mGeneratorMethods = rb_define_module_under(mGenerator, "GeneratorMethods");
|
1334
|
+
mObject = rb_define_module_under(mGeneratorMethods, "Object");
|
1335
|
+
rb_define_method(mObject, "to_json", mObject_to_json, -1);
|
1336
|
+
mHash = rb_define_module_under(mGeneratorMethods, "Hash");
|
1337
|
+
rb_define_method(mHash, "to_json", mHash_to_json, -1);
|
1338
|
+
mArray = rb_define_module_under(mGeneratorMethods, "Array");
|
1339
|
+
rb_define_method(mArray, "to_json", mArray_to_json, -1);
|
1340
|
+
mFixnum = rb_define_module_under(mGeneratorMethods, "Fixnum");
|
1341
|
+
rb_define_method(mFixnum, "to_json", mFixnum_to_json, -1);
|
1342
|
+
mBignum = rb_define_module_under(mGeneratorMethods, "Bignum");
|
1343
|
+
rb_define_method(mBignum, "to_json", mBignum_to_json, -1);
|
1344
|
+
mFloat = rb_define_module_under(mGeneratorMethods, "Float");
|
1345
|
+
rb_define_method(mFloat, "to_json", mFloat_to_json, -1);
|
1346
|
+
mString = rb_define_module_under(mGeneratorMethods, "String");
|
1347
|
+
rb_define_singleton_method(mString, "included", mString_included_s, 1);
|
1348
|
+
rb_define_method(mString, "to_json", mString_to_json, -1);
|
1349
|
+
rb_define_method(mString, "to_json_raw", mString_to_json_raw, -1);
|
1350
|
+
rb_define_method(mString, "to_json_raw_object", mString_to_json_raw_object, 0);
|
1351
|
+
mString_Extend = rb_define_module_under(mString, "Extend");
|
1352
|
+
rb_define_method(mString_Extend, "json_create", mString_Extend_json_create, 1);
|
1353
|
+
mTrueClass = rb_define_module_under(mGeneratorMethods, "TrueClass");
|
1354
|
+
rb_define_method(mTrueClass, "to_json", mTrueClass_to_json, -1);
|
1355
|
+
mFalseClass = rb_define_module_under(mGeneratorMethods, "FalseClass");
|
1356
|
+
rb_define_method(mFalseClass, "to_json", mFalseClass_to_json, -1);
|
1357
|
+
mNilClass = rb_define_module_under(mGeneratorMethods, "NilClass");
|
1358
|
+
rb_define_method(mNilClass, "to_json", mNilClass_to_json, -1);
|
1359
|
+
|
1360
|
+
CRegexp_MULTILINE = rb_const_get(rb_cRegexp, rb_intern("MULTILINE"));
|
1361
|
+
i_to_s = rb_intern("to_s");
|
1362
|
+
i_to_json = rb_intern("to_json");
|
1363
|
+
i_new = rb_intern("new");
|
1364
|
+
i_indent = rb_intern("indent");
|
1365
|
+
i_space = rb_intern("space");
|
1366
|
+
i_space_before = rb_intern("space_before");
|
1367
|
+
i_object_nl = rb_intern("object_nl");
|
1368
|
+
i_array_nl = rb_intern("array_nl");
|
1369
|
+
i_max_nesting = rb_intern("max_nesting");
|
1370
|
+
i_allow_nan = rb_intern("allow_nan");
|
1371
|
+
i_ascii_only = rb_intern("ascii_only");
|
1372
|
+
i_quirks_mode = rb_intern("quirks_mode");
|
1373
|
+
i_depth = rb_intern("depth");
|
1374
|
+
i_buffer_initial_length = rb_intern("buffer_initial_length");
|
1375
|
+
i_pack = rb_intern("pack");
|
1376
|
+
i_unpack = rb_intern("unpack");
|
1377
|
+
i_create_id = rb_intern("create_id");
|
1378
|
+
i_extend = rb_intern("extend");
|
1379
|
+
i_key_p = rb_intern("key?");
|
1380
|
+
i_aref = rb_intern("[]");
|
1381
|
+
i_send = rb_intern("__send__");
|
1382
|
+
i_respond_to_p = rb_intern("respond_to?");
|
1383
|
+
i_match = rb_intern("match");
|
1384
|
+
i_keys = rb_intern("keys");
|
1385
|
+
i_dup = rb_intern("dup");
|
1386
|
+
#ifdef HAVE_RUBY_ENCODING_H
|
1387
|
+
CEncoding_UTF_8 = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-8"));
|
1388
|
+
i_encoding = rb_intern("encoding");
|
1389
|
+
i_encode = rb_intern("encode");
|
1390
|
+
#endif
|
1391
|
+
i_SAFE_STATE_PROTOTYPE = rb_intern("SAFE_STATE_PROTOTYPE");
|
1392
|
+
CJSON_SAFE_STATE_PROTOTYPE = Qnil;
|
1393
|
+
}
|