vim-jar 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/Gemfile.lock +21 -1
- data/README.md +35 -1
- data/autotest/discover.rb +2 -0
- data/bundler/ruby/1.8/bin/autotest +4 -6
- data/bundler/ruby/1.8/bin/cdiff +19 -0
- data/bundler/ruby/1.8/bin/cucumber +19 -0
- data/bundler/ruby/1.8/bin/decolor +19 -0
- data/bundler/ruby/1.8/bin/edit_json.rb +19 -0
- data/bundler/ruby/1.8/bin/prettify_json.rb +19 -0
- data/bundler/ruby/1.8/bin/unit_diff +4 -6
- data/bundler/ruby/1.8/gems/aruba-0.2.6/.document +5 -0
- data/bundler/ruby/1.8/gems/aruba-0.2.6/.gitignore +23 -0
- data/bundler/ruby/1.8/gems/aruba-0.2.6/.rvmrc +1 -0
- data/bundler/ruby/1.8/gems/aruba-0.2.6/Gemfile +10 -0
- data/bundler/ruby/1.8/gems/aruba-0.2.6/History.txt +123 -0
- data/bundler/ruby/1.8/gems/aruba-0.2.6/LICENSE +20 -0
- data/bundler/ruby/1.8/gems/aruba-0.2.6/README.rdoc +41 -0
- data/bundler/ruby/1.8/gems/aruba-0.2.6/Rakefile +13 -0
- data/bundler/ruby/1.8/gems/aruba-0.2.6/aruba.gemspec +24 -0
- data/bundler/ruby/1.8/gems/aruba-0.2.6/config/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/aruba-0.2.6/cucumber.yml +2 -0
- data/bundler/ruby/1.8/gems/aruba-0.2.6/features/exit_statuses.feature +29 -0
- data/bundler/ruby/1.8/gems/aruba-0.2.6/features/file_system_commands.feature +128 -0
- data/bundler/ruby/1.8/gems/aruba-0.2.6/features/flushing.feature +23 -0
- data/bundler/ruby/1.8/gems/aruba-0.2.6/features/interactive.feature +38 -0
- data/bundler/ruby/1.8/gems/aruba-0.2.6/features/output.feature +171 -0
- data/bundler/ruby/1.8/gems/aruba-0.2.6/features/step_definitions/aruba_dev_steps.rb +24 -0
- data/bundler/ruby/1.8/gems/aruba-0.2.6/features/support/env.rb +15 -0
- data/bundler/ruby/1.8/gems/aruba-0.2.6/lib/aruba/api.rb +297 -0
- data/bundler/ruby/1.8/gems/aruba-0.2.6/lib/aruba/cucumber.rb +273 -0
- data/bundler/ruby/1.8/gems/aruba-0.2.6/lib/aruba/process.rb +46 -0
- data/bundler/ruby/1.8/gems/aruba-0.2.6/lib/aruba.rb +1 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/.autotest +18 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/Gemfile +7 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/Gemfile.lock +38 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/History.txt +709 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/Rakefile +67 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/Readme.md +95 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/VERSION +1 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/articles/getting_started_with_autotest.html +533 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/autotest.gemspec +62 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/bin/autotest +67 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/bin/unit_diff +44 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/example_dot_autotest.rb +12 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/lib/autotest/autoupdate.rb +26 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/lib/autotest/once.rb +9 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/lib/autotest/rcov.rb +27 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/lib/autotest/restart.rb +12 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/lib/autotest/timestamp.rb +9 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/lib/autotest.rb +724 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/lib/unit_diff.rb +274 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/test/helper.rb +6 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/test/test_autotest.rb +515 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/test/test_autotest_integration.rb +95 -0
- data/bundler/ruby/1.8/gems/autotest-4.4.5/test/test_unit_diff.rb +335 -0
- data/bundler/ruby/1.8/gems/background_process-1.2/MIT-LICENSE +20 -0
- data/bundler/ruby/1.8/gems/background_process-1.2/README.textile +82 -0
- data/bundler/ruby/1.8/gems/background_process-1.2/lib/background_process/background_process.rb +114 -0
- data/bundler/ruby/1.8/gems/background_process-1.2/lib/background_process/io_helpers.rb +24 -0
- data/bundler/ruby/1.8/gems/background_process-1.2/lib/background_process/pty_background_process.rb +64 -0
- data/bundler/ruby/1.8/gems/background_process-1.2/lib/background_process.rb +3 -0
- data/bundler/ruby/1.8/gems/background_process-1.2/spec/background_process/background_process_spec.rb +129 -0
- data/bundler/ruby/1.8/gems/background_process-1.2/spec/background_process/io_helpers_spec.rb +30 -0
- data/bundler/ruby/1.8/gems/background_process-1.2/spec/background_process/pty_background_process_spec.rb +49 -0
- data/bundler/ruby/1.8/gems/background_process-1.2/spec/spec_helper.rb +1 -0
- data/bundler/ruby/1.8/gems/builder-2.1.2/CHANGES +85 -0
- data/bundler/ruby/1.8/gems/builder-2.1.2/README +210 -0
- data/bundler/ruby/1.8/gems/builder-2.1.2/Rakefile +263 -0
- data/bundler/ruby/1.8/gems/builder-2.1.2/doc/releases/builder-1.2.4.rdoc +31 -0
- data/bundler/ruby/1.8/gems/builder-2.1.2/doc/releases/builder-2.0.0.rdoc +46 -0
- data/bundler/ruby/1.8/gems/builder-2.1.2/doc/releases/builder-2.1.1.rdoc +58 -0
- data/bundler/ruby/1.8/gems/builder-2.1.2/lib/blankslate.rb +113 -0
- data/bundler/ruby/1.8/gems/builder-2.1.2/lib/builder/blankslate.rb +20 -0
- data/bundler/ruby/1.8/gems/builder-2.1.2/lib/builder/xchar.rb +115 -0
- data/bundler/ruby/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb +139 -0
- data/bundler/ruby/1.8/gems/builder-2.1.2/lib/builder/xmlevents.rb +63 -0
- data/bundler/ruby/1.8/gems/builder-2.1.2/lib/builder/xmlmarkup.rb +328 -0
- data/bundler/ruby/1.8/gems/builder-2.1.2/lib/builder.rb +13 -0
- data/bundler/ruby/1.8/gems/builder-2.1.2/scripts/publish.rb +17 -0
- data/bundler/ruby/1.8/gems/builder-2.1.2/test/performance.rb +30 -0
- data/bundler/ruby/1.8/gems/builder-2.1.2/test/preload.rb +29 -0
- data/bundler/ruby/1.8/gems/builder-2.1.2/test/test_xchar.rb +37 -0
- data/bundler/ruby/1.8/gems/builder-2.1.2/test/testblankslate.rb +183 -0
- data/bundler/ruby/1.8/gems/builder-2.1.2/test/testeventbuilder.rb +133 -0
- data/bundler/ruby/1.8/gems/builder-2.1.2/test/testmarkupbuilder.rb +449 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/.gitattributes +1 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/.gitignore +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/.rspec +1 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/Gemfile +7 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/History.txt +1597 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/LICENSE +22 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/README.rdoc +26 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/Rakefile +12 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/bin/cucumber +16 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/cucumber.gemspec +49 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/cucumber.yml +20 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/README.textile +18 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/Rakefile +33 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ar/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ar/features/addition.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ar/features/step_definitons/calculator_steps.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ar/lib/calculator.rb +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/bg/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/bg/features/addition.feature +12 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/bg/features/consecutive_calculations.feature +19 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/bg/features/division.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/bg/features/step_definitons/calculator_steps.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/bg/features/support/env.rb +5 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/bg/features/support/world.rb +8 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/bg/lib/calculator.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ca/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ca/features/step_definitons/calculator_steps.rb +21 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ca/features/suma.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ca/lib/calculadora.rb +16 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/da/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/da/features/sammenlaegning.feature +18 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/da/features/step_definitons/lommeregner_steps.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/da/lib/lommeregner.rb +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/de/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/de/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/de/features/addition.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/de/features/division.feature +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/de/features/step_definitons/calculator_steps.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/de/lib/calculator.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en/features/addition.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en/features/division.feature +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en/features/step_definitons/calculator_steps.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en/lib/calculator.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en-lol/Rakefile +4 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en-lol/features/step_definitions/cucumbrz_steps.rb +16 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en-lol/features/stuffing.feature +8 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en-lol/features/support/env.rb +7 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en-lol/lib/basket.rb +12 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/en-lol/lib/belly.rb +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/eo/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/eo/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/eo/features/adicio.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/eo/features/divido.feature +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/eo/features/step_definitons/calculator_steps.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/eo/lib/calculator.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/es/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/es/features/adicion.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/es/features/step_definitons/calculador_steps.rb +21 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/es/lib/calculador.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/et/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/et/features/jagamine.feature +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/et/features/liitmine.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/et/features/step_definitions/kalkulaator_steps.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/et/lib/kalkulaator.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fi/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fi/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fi/features/jakolasku.feature +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fi/features/step_definitons/laskin_steps.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fi/features/yhteenlasku.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fi/lib/laskin.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fr/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fr/features/addition.feature +18 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fr/features/addition2.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fr/features/step_definitions/calculatrice_steps.rb +32 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fr/features/support/env.rb +5 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/fr/lib/calculatrice.rb +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/he/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/he/features/addition.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/he/features/division.feature +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/he/features/step_definitons/calculator_steps.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/he/lib/calculator.rb +15 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/hu/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/hu/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/hu/features/osszeadas.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/hu/features/osztas.feature +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/hu/features/step_definitons/calculator_steps.rb +25 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/hu/lib/calculator.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/id/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/id/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/id/features/addition.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/id/features/division.feature +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/id/features/step_definitons/calculator_steps.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/id/lib/calculator.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/it/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/it/features/somma.feature +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/it/features/step_definitons/calcolatrice_steps.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/it/lib/calcolatrice.rb +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ja/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ja/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ja/features/addition.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ja/features/division.feature +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ja/features/step_definitons/calculator_steps.rb +19 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ja/features/support/env.rb +5 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ja/lib/calculator.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ko/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ko/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ko/features/addition.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ko/features/division.feature +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ko/features/step_definitons/calculator_steps.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ko/lib/calculator.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lt/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lt/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lt/features/addition.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lt/features/division.feature +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lt/features/step_definitons/calculator_steps.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lt/lib/calculator.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lv/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lv/features/addition.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lv/features/division.feature +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lv/features/step_definitons/calculator_steps.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/lv/lib/calculator.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/no/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/no/features/step_definitons/kalkulator_steps.rb +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/no/features/summering.feature +19 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/no/features/support/env.rb +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/no/lib/kalkulator.rb +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pl/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pl/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pl/features/addition.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pl/features/division.feature +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pl/features/step_definitons/calculator_steps.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pl/features/support/env.rb +5 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pl/lib/calculator.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pt/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pt/features/adicao.feature +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pt/features/step_definitions/calculadora_steps.rb +20 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pt/features/support/env.rb +5 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/pt/lib/calculadora.rb +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ro/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ro/features/step_definitons/calculator_steps.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ro/features/suma.feature +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ro/lib/calculator.rb +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ru/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ru/features/addition.feature +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ru/features/consecutive_calculations.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ru/features/division.feature +16 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ru/features/step_definitons/calculator_steps.rb +19 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ru/features/support/env.rb +5 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ru/features/support/world.rb +8 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/ru/lib/calculator.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sk/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sk/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sk/features/addition.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sk/features/division.feature +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sk/features/step_definitons/calculator_steps.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sk/lib/calculator.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sr-Cyrl/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sr-Cyrl/features/sabiranje.feature +18 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sr-Cyrl/features/step_definitons/calculator_steps.rb +20 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sr-Cyrl/features/support/env.rb +5 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sr-Cyrl/lib/calculator.rb +12 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sr-Latn/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sr-Latn/features/sabiranje.feature +18 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sr-Latn/features/step_definitons/calculator_steps.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sr-Latn/lib/calculator.rb +12 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sv/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sv/features/step_definitons/kalkulator_steps.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sv/features/summering.feature +18 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/sv/lib/kalkulator.rb +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/tr/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/tr/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/tr/features/bolme.feature +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/tr/features/step_definitons/hesap_makinesi_adimlari.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/tr/features/toplama.feature +18 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/tr/lib/hesap_makinesi.rb +15 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uk/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uk/features/addition.feature +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uk/features/consecutive_calculations.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uk/features/division.feature +16 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uk/features/step_definitons/calculator_steps.rb +19 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uk/features/support/env.rb +5 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uk/features/support/world.rb +8 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uk/lib/calculator.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uz/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uz/features/addition.feature +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uz/features/consecutive_calculations.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uz/features/division.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uz/features/step_definitons/calculator_steps.rb +19 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uz/features/support/env.rb +5 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uz/features/support/world.rb +8 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/uz/lib/calculator.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/zh-CN/Rakefile +4 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/zh-CN/features/addition.feature +18 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/zh-CN/features/step_definitons/calculator_steps.rb +26 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/zh-CN/lib/calculator.rb +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/zh-TW/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/zh-TW/Rakefile +4 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/zh-TW/features/addition.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/zh-TW/features/division.feature +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/zh-TW/features/step_definitons/calculator_steps.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/i18n/zh-TW/lib/calculator.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/python/README.textile +7 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/python/Rakefile +4 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/python/features/fibonacci.feature +19 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/python/features/step_definitions/fib_steps.py +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/python/lib/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/python/lib/fib.py +7 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ramaze/README.textile +7 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ramaze/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ramaze/app.rb +21 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ramaze/features/add.feature +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ramaze/features/step_definitions/add_steps.rb +15 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ramaze/features/support/env.rb +32 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ramaze/layout/default.html.erb +8 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ramaze/view/index.html.erb +5 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/rspec_doubles/Rakefile +4 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/rspec_doubles/features/mocking.feature +9 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/rspec_doubles/features/step_definitions/calvin_steps.rb +19 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/rspec_doubles/features/support/env.rb +12 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ruby2python/README.textile +7 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ruby2python/Rakefile +4 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ruby2python/features/fibonacci.feature +19 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ruby2python/features/step_definitions/fib_steps.rb +7 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ruby2python/features/support/env.rb +21 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ruby2python/lib/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/ruby2python/lib/fib.py +7 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/sinatra/README.textile +13 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/sinatra/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/sinatra/app.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/sinatra/features/add.feature +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/sinatra/features/step_definitions/add_steps.rb +15 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/sinatra/features/support/env.rb +13 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/sinatra/views/add.erb +7 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/sinatra/views/layout.erb +8 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/tcl/README.textile +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/tcl/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/tcl/features/fibonnacci.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/tcl/features/step_definitions/fib_steps.rb +7 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/tcl/features/support/env.rb +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/tcl/src/fib.tcl +3 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/test_unit/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/test_unit/features/step_definitions/test_unit_steps.rb +23 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/test_unit/features/test_unit.feature +9 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/v8/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/v8/features/fibonacci.feature +43 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/v8/features/step_definitions/fib_steps.js +49 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/v8/features/support/env.js +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/v8/lib/fibonacci.js +19 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/watir/.gitignore +2 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/watir/README.textile +16 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/watir/Rakefile +12 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/watir/cucumber.yml +1 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/watir/features/search.feature +12 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/watir/features/step_definitions/search_steps.rb +26 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/watir/features/support/env.rb +32 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/examples/watir/features/support/screenshots.rb +47 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/announce.feature +164 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/api/list_step_defs_as_json.feature +50 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/api/run_cli_main_with_existing_runtime.feature +34 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/around_hooks.feature +232 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/background.feature +309 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/bug_371.feature +32 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/bug_464.feature +16 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/bug_475.feature +42 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/bug_585_tab_indentation.feature +22 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/bug_600.feature +67 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/call_steps_from_stepdefs.feature +154 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/cucumber_cli.feature +591 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/cucumber_cli_outlines.feature +117 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/custom_formatter.feature +111 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/default_snippets.feature +42 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/diffing.feature +25 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/drb_server_integration.feature +174 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/exception_in_after_block.feature +127 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/exception_in_after_step_block.feature +104 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/exception_in_before_block.feature +98 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/exclude_files.feature +20 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/expand.feature +60 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/html_formatter/a.html +582 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/html_formatter.feature +8 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/json_formatter.feature +333 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/junit_formatter.feature +92 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/language_from_header.feature +30 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/language_help.feature +78 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/listener_debugger_formatter.feature +42 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/multiline_names.feature +44 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/negative_tagged_hooks.feature +60 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/post_configuration_hook.feature +50 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/profiles.feature +126 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/rake_task.feature +152 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/report_called_undefined_steps.feature +34 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/rerun_formatter.feature +45 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/simplest.feature +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/snippet.feature +23 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/snippets_when_using_star_keyword.feature +36 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/step_definitions/cucumber_steps.rb +166 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/step_definitions/extra_steps.rb +2 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/step_definitions/simplest_steps.rb +3 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/step_definitions/wire_steps.rb +33 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/support/env.rb +157 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/support/env.rb.simplest +7 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/support/fake_wire_server.rb +77 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/table_diffing.feature +45 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/table_mapping.feature +34 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/tag_logic.feature +258 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/transform.feature +245 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/unicode_table.feature +35 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/usage_and_stepdefs_formatter.feature +169 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/wire_protocol.feature +332 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/wire_protocol_table_diffing.feature +119 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/wire_protocol_tags.feature +87 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/wire_protocol_timeouts.feature +63 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/features/work_in_progress.feature +156 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/json/features/background.feature +7 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/json/features/embed.feature +4 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/json/features/one_passing_one_failing.feature +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/json/features/pystring.feature +8 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/json/features/step_definitions/steps.rb +32 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/json/features/tables.feature +13 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/junit/features/one_passing_one_failing.feature +8 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/junit/features/pending.feature +5 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/junit/features/step_definitions/steps.rb +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/README.textile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/Rakefile +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/background/background_tagged_before_on_outline.feature +12 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/background/background_with_name.feature +7 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/background/failing_background.feature +12 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/background/failing_background_after_success.feature +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/background/multiline_args_background.feature +32 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/background/passing_background.feature +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/background/pending_background.feature +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/background/scenario_outline_failing_background.feature +16 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/background/scenario_outline_passing_background.feature +16 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/call_undefined_step_from_step_def.feature +7 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/failing_expectation.feature +4 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/lots_of_undefined.feature +8 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/multiline_name.feature +27 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/outline_sample.feature +15 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/sample.feature +21 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/search_sample.feature +32 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/step_definitions/sample_steps.rb +84 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/support/env.rb +18 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/tags_sample.feature +17 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/tons_of_cukes.feature +52 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/features/undefined_multiline_args.feature +12 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/self_test/list-of-features.txt +1 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/steps_library/features/step_definitions/steps_lib1.rb +8 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/steps_library/features/step_definitions/steps_lib2.rb +8 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/Rakefile +20 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/172.feature +28 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/177/1.feature +28 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/177/2.feature +20 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/177/3.feature +18 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/180.feature +7 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/229/tagged_hooks.feature +8 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/229/tagged_hooks.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/236.feature +13 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/241.feature +12 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/246.feature +4 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/248.feature +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/270/back.feature +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/270/back.steps.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/272/hooks.feature +26 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/272/hooks_steps.rb +53 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/279/py_string_indent.feature +25 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/279/py_string_indent.steps.rb +12 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/279/wrong.feature_ +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/301/filter_background_tagged_hooks.feature +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/301/filter_background_tagged_hooks_steps.rb +12 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/306/only_background.feature +4 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/around_timeout.feature +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/gherkin_67.feature +12 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/gherkin_68.feature +4 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/half_manual.feature +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/lib/eatting_machine.rb +18 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/lib/pantry.rb +20 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/scenario_outline.feature +95 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/step_definitons/246_steps.rb +3 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/step_definitons/248_steps.rb +15 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/step_definitons/around_timeout_steps.rb +9 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/step_definitons/half_manual_steps.rb +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/step_definitons/scenario_outline_steps.rb +42 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/step_definitons/tickets_steps.rb +88 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/table_diffing.feature +13 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features/tickets.feature +28 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/fixtures/tickets/features.html +138 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/gem_tasks/contributors.rake +15 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/gem_tasks/environment.rake +7 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/gem_tasks/examples.rake +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/gem_tasks/features.rake +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/gem_tasks/fix_cr_lf.rake +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/gem_tasks/flog.rake +4 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/gem_tasks/rspec.rake +8 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/gem_tasks/sass.rake +4 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/gem_tasks/sdoc.rake +12 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/README.rdoc +12 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/autotest/cucumber.rb +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/autotest/cucumber_mixin.rb +135 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/autotest/cucumber_rails.rb +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/autotest/cucumber_rails_rspec.rb +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/autotest/cucumber_rails_rspec2.rb +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/autotest/cucumber_rspec.rb +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/autotest/cucumber_rspec2.rb +6 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/autotest/discover.rb +9 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/background.rb +99 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/comment.rb +31 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/examples.rb +38 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/feature.rb +98 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/feature_element.rb +73 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/features.rb +35 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/outline_table.rb +187 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/py_string.rb +80 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/scenario.rb +117 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/scenario_outline.rb +117 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/step.rb +121 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/step_collection.rb +76 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/step_invocation.rb +195 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/table.rb +688 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/tags.rb +28 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/tree_walker.rb +222 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast/visitor.rb +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/ast.rb +30 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/broadcaster.rb +13 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/cli/configuration.rb +209 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/cli/drb_client.rb +43 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/cli/main.rb +83 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/cli/options.rb +407 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/cli/profile_loader.rb +91 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/configuration.rb +49 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/constantize.rb +34 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/core_ext/disable_mini_unit_autorun.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/core_ext/instance_exec.rb +98 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/core_ext/proc.rb +34 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/core_ext/string.rb +9 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/errors.rb +40 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/feature_file.rb +62 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/ansicolor.rb +162 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/color_io.rb +23 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/console.rb +177 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/cucumber.css +275 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/cucumber.sass +271 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/debug.rb +33 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/duration.rb +13 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/html.rb +644 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/io.rb +33 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/jquery-min.js +154 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/json.rb +166 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/json_pretty.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/junit.rb +150 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/ordered_xml_markup.rb +24 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/pdf.rb +244 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/pretty.rb +237 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/progress.rb +92 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/rerun.rb +55 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/stepdefs.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/steps.rb +49 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/summary.rb +35 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/tag_cloud.rb +35 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/unicode.rb +58 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/formatter/usage.rb +127 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/js_support/js_dsl.js +57 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/js_support/js_language.rb +185 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/js_support/js_snippets.rb +27 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/language_support/language_methods.rb +129 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/language_support.rb +30 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/parser/gherkin_builder.rb +124 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/parser.rb +2 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/platform.rb +29 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/py_support/py_dsl.py +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/py_support/py_language.py +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/py_support/py_language.rb +84 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/rake/task.rb +170 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/rb_support/rb_dsl.rb +112 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/rb_support/rb_hook.rb +18 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/rb_support/rb_language.rb +195 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/rb_support/rb_step_definition.rb +82 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/rb_support/rb_transform.rb +37 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/rb_support/rb_world.rb +95 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/rb_support/regexp_argument_matcher.rb +21 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/rspec/disable_option_parser.rb +23 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/rspec/doubles.rb +16 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/runtime/features_loader.rb +62 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/runtime/for_programming_languages.rb +65 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/runtime/results.rb +64 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/runtime/support_code.rb +203 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/runtime/user_interface.rb +80 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/runtime.rb +145 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/step_argument.rb +9 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/step_definition_light.rb +20 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/step_definitions.rb +14 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/step_match.rb +111 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/step_mother.rb +10 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/wire_support/configuration.rb +30 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/wire_support/connection.rb +55 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/wire_support/request_handler.rb +32 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/wire_support/wire_exception.rb +32 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/wire_support/wire_language.rb +54 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/wire_support/wire_packet.rb +32 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/wire_support/wire_protocol/requests.rb +123 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/wire_support/wire_protocol.rb +44 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber/wire_support/wire_step_definition.rb +26 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/lib/cucumber.rb +27 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/ast/background_spec.rb +110 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/ast/feature_factory.rb +60 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/ast/feature_spec.rb +63 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/ast/outline_table_spec.rb +21 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/ast/py_string_spec.rb +40 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/ast/scenario_outline_spec.rb +65 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/ast/scenario_spec.rb +43 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/ast/step_spec.rb +66 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/ast/table_spec.rb +465 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/ast/tree_walker_spec.rb +11 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/broadcaster_spec.rb +15 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/cli/configuration_spec.rb +431 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/cli/drb_client_spec.rb +77 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/cli/main_spec.rb +134 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/cli/options_spec.rb +351 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/cli/profile_loader_spec.rb +35 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/configuration_spec.rb +23 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/core_ext/proc_spec.rb +68 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/formatter/ansicolor_spec.rb +31 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/formatter/color_io_spec.rb +29 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/formatter/duration_spec.rb +22 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/formatter/html_spec.rb +258 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/formatter/junit_spec.rb +111 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/formatter/progress_spec.rb +38 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/formatter/spec_helper.rb +51 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/rb_support/rb_language_spec.rb +283 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/rb_support/rb_step_definition_spec.rb +99 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/rb_support/regexp_argument_matcher_spec.rb +18 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/runtime/support_code_spec.rb +112 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/runtime_spec.rb +41 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/sell_cucumbers.feature +19 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/step_match_spec.rb +69 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/wire_support/configuration_spec.rb +51 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/wire_support/connection_spec.rb +46 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/wire_support/wire_exception_spec.rb +44 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/wire_support/wire_language_spec.rb +47 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/wire_support/wire_packet_spec.rb +40 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/wire_support/wire_step_definition_spec.rb +20 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/cucumber/world/pending_spec.rb +46 -0
- data/bundler/ruby/1.8/gems/cucumber-0.9.4/spec/spec_helper.rb +10 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/.gitattributes +2 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/.gitignore +11 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/.mailmap +2 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/.rspec +1 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/.rvmrc +1 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/Gemfile +5 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/History.txt +327 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/LICENSE +20 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/README.rdoc +59 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/Rakefile +16 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/VERSION +1 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/build_native_gems.sh +8 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/cucumber.yml +3 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/escaped_pipes.feature +8 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/feature_parser.feature +237 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/json_formatter.feature +278 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/json_parser.feature +318 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/native_lexer.feature +19 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/parser_with_native_lexer.feature +205 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/pretty_formatter.feature +15 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/step_definitions/eyeball_steps.rb +3 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/step_definitions/gherkin_steps.rb +29 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/step_definitions/json_formatter_steps.rb +28 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/step_definitions/json_parser_steps.rb +22 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/step_definitions/pretty_formatter_steps.rb +84 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/steps_parser.feature +46 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/features/support/env.rb +39 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/gherkin.gemspec +58 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/ikvm/.gitignore +3 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/java/.gitignore +5 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/java/src/main/java/gherkin/lexer/i18n/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/java/src/main/resources/gherkin/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/.gitignore +4 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/c_lexer.rb +17 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/argument.rb +15 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/colors.rb +116 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/escaping.rb +15 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/filter_formatter.rb +136 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/json_formatter.rb +72 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/line_filter.rb +26 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/model.rb +239 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/pretty_formatter.rb +217 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/regexp_filter.rb +21 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/step_printer.rb +17 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/tag_count_formatter.rb +47 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/tag_filter.rb +19 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/i18n.rb +180 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/i18n.yml +601 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/json_parser.rb +88 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/lexer/i18n_lexer.rb +47 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/listener/event.rb +45 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/listener/formatter_listener.rb +113 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/native/ikvm.rb +55 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/native/java.rb +55 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/native/null.rb +9 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/native.rb +7 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/parser/meta.txt +5 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/parser/parser.rb +164 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/parser/root.txt +11 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/parser/steps.txt +4 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/rb_lexer/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/rb_lexer/README.rdoc +8 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/rb_lexer.rb +8 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/rubify.rb +24 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/tag_expression.rb +62 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/version.rb +3 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin.rb +2 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/ragel/i18n/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/ragel/lexer.c.rl.erb +459 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/ragel/lexer.java.rl.erb +224 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/ragel/lexer.rb.rl.erb +179 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/ragel/lexer_common.rl.erb +50 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/c_lexer_spec.rb +21 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/1.feature +8 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/comments_in_table.feature +9 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/complex.feature +45 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/complex.json +143 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/complex_for_filtering.feature +60 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/complex_with_tags.feature +61 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/dos_line_endings.feature +45 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/hantu_pisang.feature +35 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/i18n_fr.feature +14 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/i18n_no.feature +7 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/i18n_zh-CN.feature +9 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/scenario_outline_with_tags.feature +13 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/scenario_without_steps.feature +5 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/simple_with_comments.feature +7 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/simple_with_tags.feature +11 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/fixtures/with_bom.feature +3 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/formatter/colors_spec.rb +18 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/formatter/filter_formatter_spec.rb +167 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/formatter/model_spec.rb +15 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/formatter/pretty_formatter_spec.rb +147 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/formatter/spaces.feature +9 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/formatter/step_printer_spec.rb +55 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/formatter/tabs.feature +9 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/formatter/tag_count_formatter_spec.rb +30 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/i18n_spec.rb +153 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/java_lexer_spec.rb +20 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/java_libs.rb +13 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/json.rb +5 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/json_parser_spec.rb +67 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/lexer/i18n_lexer_spec.rb +43 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/output_stream_string_io.rb +20 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/parser/parser_spec.rb +16 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/rb_lexer_spec.rb +19 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/sexp_recorder.rb +56 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/shared/lexer_group.rb +592 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/shared/py_string_group.rb +153 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/shared/row_group.rb +120 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/shared/tags_group.rb +54 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/gherkin/tag_expression_spec.rb +137 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/spec/spec_helper.rb +69 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/bench/feature_builder.rb +49 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/bench/generated/.gitignore +1 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/bench/null_listener.rb +4 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/bench.rake +184 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/compile.rake +102 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/cucumber.rake +18 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/gems.rake +42 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/ikvm.rake +54 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/ragel_task.rb +70 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/rdoc.rake +9 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/release.rake +30 -0
- data/bundler/ruby/1.8/gems/gherkin-2.2.9/tasks/rspec.rake +8 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/.require_paths +4 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/CHANGES +179 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/COPYING +58 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/GPL +340 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/README +356 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/Rakefile +292 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/TODO +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/VERSION +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkComparison.log +52 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast-autocorrelation.dat +1000 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat +1001 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty-autocorrelation.dat +900 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty.dat +901 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe-autocorrelation.dat +1000 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat +1001 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt.log +261 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast-autocorrelation.dat +1000 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast.dat +1001 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat +1000 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat +1001 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat +1000 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat +1001 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure.log +262 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat +1000 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat +1001 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails.log +82 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkComparison.log +34 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat +900 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser.dat +901 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt.log +81 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat +1000 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat +1001 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure.log +82 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat +1000 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat +1001 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails.log +82 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser-autocorrelation.dat +1000 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat +1001 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML.log +82 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/generator2_benchmark.rb +222 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/generator_benchmark.rb +224 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/ohai.json +1216 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/ohai.ruby +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/parser2_benchmark.rb +251 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/benchmarks/parser_benchmark.rb +259 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/bin/edit_json.rb +9 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/bin/prettify_json.rb +75 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/data/example.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/data/index.html +38 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/data/prototype.js +4184 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/generator/Makefile +157 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/generator/extconf.rb +20 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/generator/generator.bundle +0 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/generator/generator.c +1417 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/generator/generator.h +197 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/generator/generator.o +0 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/generator/mkmf.log +10 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/json/ext/generator.bundle +0 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/json/ext/parser.bundle +0 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/parser/Makefile +157 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/parser/extconf.rb +15 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/parser/mkmf.log +10 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/parser/parser.bundle +0 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/parser/parser.c +1935 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/parser/parser.h +71 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/parser/parser.o +0 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/ext/json/ext/parser/parser.rl +792 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/install.rb +26 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/Array.xpm +21 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/FalseClass.xpm +21 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/Hash.xpm +21 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/Key.xpm +73 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/NilClass.xpm +21 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/Numeric.xpm +28 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/String.xpm +96 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/TrueClass.xpm +21 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/add/core.rb +148 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/add/rails.rb +58 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/common.rb +391 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/editor.rb +1371 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/ext.rb +15 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/json.xpm +1499 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/pure/generator.rb +439 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/pure/parser.rb +309 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/pure.rb +77 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/lib/json/version.rb +8 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/lib/json.rb +10 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail1.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail10.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail11.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail12.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail13.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail14.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail18.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail19.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail2.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail20.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail21.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail22.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail23.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail24.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail25.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail27.json +2 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail28.json +2 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail3.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail4.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail5.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail6.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail7.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail8.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/fail9.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/pass1.json +56 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/pass15.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/pass16.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/pass17.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/pass2.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/pass26.json +1 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/fixtures/pass3.json +6 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/test_json.rb +394 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/test_json_addition.rb +162 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/test_json_encoding.rb +68 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/test_json_fixtures.rb +34 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/test_json_generate.rb +181 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/test_json_rails.rb +144 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tests/test_json_unicode.rb +76 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tools/fuzz.rb +139 -0
- data/bundler/ruby/1.8/gems/json-1.4.6/tools/server.rb +61 -0
- data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/CHANGES +28 -0
- data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/COPYING +340 -0
- data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/README +137 -0
- data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/Rakefile +88 -0
- data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/VERSION +1 -0
- data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/bin/cdiff +19 -0
- data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/bin/decolor +12 -0
- data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/examples/example.rb +90 -0
- data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/install.rb +15 -0
- data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/lib/term/ansicolor/version.rb +10 -0
- data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/lib/term/ansicolor.rb +102 -0
- data/bundler/ruby/1.8/gems/term-ansicolor-1.0.5/tests/ansicolor_test.rb +66 -0
- data/bundler/ruby/1.8/specifications/aruba-0.2.6.gemspec +39 -0
- data/bundler/ruby/1.8/specifications/autotest-4.4.5.gemspec +28 -0
- data/bundler/ruby/1.8/specifications/background_process-1.2.gemspec +31 -0
- data/bundler/ruby/1.8/specifications/builder-2.1.2.gemspec +33 -0
- data/bundler/ruby/1.8/specifications/cucumber-0.9.4.gemspec +78 -0
- data/bundler/ruby/1.8/specifications/gherkin-2.2.9.gemspec +53 -0
- data/bundler/ruby/1.8/specifications/json-1.4.6.gemspec +34 -0
- data/bundler/ruby/1.8/specifications/term-ansicolor-1.0.5.gemspec +32 -0
- data/cucumber.yml +6 -0
- data/features/init.feature +31 -0
- data/features/install.feature +25 -0
- data/features/list.feature +6 -0
- data/features/step_definitions/command_steps.rb +9 -0
- data/features/step_definitions/environment_steps.rb +31 -0
- data/features/step_definitions/file_check_steps.rb +16 -0
- data/features/step_definitions/message_steps.rb +28 -0
- data/features/step_definitions/plugin_steps.rb +4 -0
- data/features/support/env.rb +20 -0
- data/features/support/hook.rb +8 -0
- data/features/support/stubs.rb +0 -0
- data/features/uninstall.feature +13 -0
- data/lib/vim-jar/cli.rb +1 -25
- data/lib/vim-jar/config.rb +65 -11
- data/lib/vim-jar/pathogen/pathogen_v1.2.vim +139 -0
- data/lib/vim-jar/plugin.rb +2 -0
- data/lib/vim-jar/plugins.yml +5 -0
- data/lib/vim-jar/version.rb +1 -1
- data/spec/vim-jar/config_spec.rb +33 -4
- data/vim-jar.gemspec +4 -0
- metadata +972 -5
@@ -0,0 +1,792 @@
|
|
1
|
+
#include "parser.h"
|
2
|
+
|
3
|
+
/* unicode */
|
4
|
+
|
5
|
+
static const char digit_values[256] = {
|
6
|
+
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
7
|
+
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
8
|
+
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -1,
|
9
|
+
-1, -1, -1, -1, -1, -1, 10, 11, 12, 13, 14, 15, -1, -1, -1, -1, -1, -1, -1,
|
10
|
+
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
11
|
+
10, 11, 12, 13, 14, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
12
|
+
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
13
|
+
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
14
|
+
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
15
|
+
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
16
|
+
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
17
|
+
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
18
|
+
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
19
|
+
-1, -1, -1, -1, -1, -1, -1
|
20
|
+
};
|
21
|
+
|
22
|
+
static UTF32 unescape_unicode(const unsigned char *p)
|
23
|
+
{
|
24
|
+
char b;
|
25
|
+
UTF32 result = 0;
|
26
|
+
b = digit_values[p[0]];
|
27
|
+
if (b < 0) return UNI_REPLACEMENT_CHAR;
|
28
|
+
result = (result << 4) | b;
|
29
|
+
b = digit_values[p[1]];
|
30
|
+
result = (result << 4) | b;
|
31
|
+
if (b < 0) return UNI_REPLACEMENT_CHAR;
|
32
|
+
b = digit_values[p[2]];
|
33
|
+
result = (result << 4) | b;
|
34
|
+
if (b < 0) return UNI_REPLACEMENT_CHAR;
|
35
|
+
b = digit_values[p[3]];
|
36
|
+
result = (result << 4) | b;
|
37
|
+
if (b < 0) return UNI_REPLACEMENT_CHAR;
|
38
|
+
return result;
|
39
|
+
}
|
40
|
+
|
41
|
+
static int convert_UTF32_to_UTF8(char *buf, UTF32 ch)
|
42
|
+
{
|
43
|
+
int len = 1;
|
44
|
+
if (ch <= 0x7F) {
|
45
|
+
buf[0] = (char) ch;
|
46
|
+
} else if (ch <= 0x07FF) {
|
47
|
+
buf[0] = (char) ((ch >> 6) | 0xC0);
|
48
|
+
buf[1] = (char) ((ch & 0x3F) | 0x80);
|
49
|
+
len++;
|
50
|
+
} else if (ch <= 0xFFFF) {
|
51
|
+
buf[0] = (char) ((ch >> 12) | 0xE0);
|
52
|
+
buf[1] = (char) (((ch >> 6) & 0x3F) | 0x80);
|
53
|
+
buf[2] = (char) ((ch & 0x3F) | 0x80);
|
54
|
+
len += 2;
|
55
|
+
} else if (ch <= 0x1fffff) {
|
56
|
+
buf[0] =(char) ((ch >> 18) | 0xF0);
|
57
|
+
buf[1] =(char) (((ch >> 12) & 0x3F) | 0x80);
|
58
|
+
buf[2] =(char) (((ch >> 6) & 0x3F) | 0x80);
|
59
|
+
buf[3] =(char) ((ch & 0x3F) | 0x80);
|
60
|
+
len += 3;
|
61
|
+
} else {
|
62
|
+
buf[0] = '?';
|
63
|
+
}
|
64
|
+
return len;
|
65
|
+
}
|
66
|
+
|
67
|
+
#ifdef HAVE_RUBY_ENCODING_H
|
68
|
+
static VALUE CEncoding_ASCII_8BIT, CEncoding_UTF_8, CEncoding_UTF_16BE,
|
69
|
+
CEncoding_UTF_16LE, CEncoding_UTF_32BE, CEncoding_UTF_32LE;
|
70
|
+
static ID i_encoding, i_encode, i_encode_bang, i_force_encoding;
|
71
|
+
#else
|
72
|
+
static ID i_iconv;
|
73
|
+
#endif
|
74
|
+
|
75
|
+
static VALUE mJSON, mExt, cParser, eParserError, eNestingError;
|
76
|
+
static VALUE CNaN, CInfinity, CMinusInfinity;
|
77
|
+
|
78
|
+
static ID i_json_creatable_p, i_json_create, i_create_id, i_create_additions,
|
79
|
+
i_chr, i_max_nesting, i_allow_nan, i_symbolize_names, i_object_class,
|
80
|
+
i_array_class, i_key_p, i_deep_const_get;
|
81
|
+
|
82
|
+
%%{
|
83
|
+
machine JSON_common;
|
84
|
+
|
85
|
+
cr = '\n';
|
86
|
+
cr_neg = [^\n];
|
87
|
+
ws = [ \t\r\n];
|
88
|
+
c_comment = '/*' ( any* - (any* '*/' any* ) ) '*/';
|
89
|
+
cpp_comment = '//' cr_neg* cr;
|
90
|
+
comment = c_comment | cpp_comment;
|
91
|
+
ignore = ws | comment;
|
92
|
+
name_separator = ':';
|
93
|
+
value_separator = ',';
|
94
|
+
Vnull = 'null';
|
95
|
+
Vfalse = 'false';
|
96
|
+
Vtrue = 'true';
|
97
|
+
VNaN = 'NaN';
|
98
|
+
VInfinity = 'Infinity';
|
99
|
+
VMinusInfinity = '-Infinity';
|
100
|
+
begin_value = [nft"\-[{NI] | digit;
|
101
|
+
begin_object = '{';
|
102
|
+
end_object = '}';
|
103
|
+
begin_array = '[';
|
104
|
+
end_array = ']';
|
105
|
+
begin_string = '"';
|
106
|
+
begin_name = begin_string;
|
107
|
+
begin_number = digit | '-';
|
108
|
+
}%%
|
109
|
+
|
110
|
+
%%{
|
111
|
+
machine JSON_object;
|
112
|
+
include JSON_common;
|
113
|
+
|
114
|
+
write data;
|
115
|
+
|
116
|
+
action parse_value {
|
117
|
+
VALUE v = Qnil;
|
118
|
+
char *np = JSON_parse_value(json, fpc, pe, &v);
|
119
|
+
if (np == NULL) {
|
120
|
+
fhold; fbreak;
|
121
|
+
} else {
|
122
|
+
rb_hash_aset(*result, last_name, v);
|
123
|
+
fexec np;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
action parse_name {
|
128
|
+
char *np;
|
129
|
+
json->parsing_name = 1;
|
130
|
+
np = JSON_parse_string(json, fpc, pe, &last_name);
|
131
|
+
json->parsing_name = 0;
|
132
|
+
if (np == NULL) { fhold; fbreak; } else fexec np;
|
133
|
+
}
|
134
|
+
|
135
|
+
action exit { fhold; fbreak; }
|
136
|
+
|
137
|
+
a_pair = ignore* begin_name >parse_name
|
138
|
+
ignore* name_separator ignore*
|
139
|
+
begin_value >parse_value;
|
140
|
+
|
141
|
+
main := begin_object
|
142
|
+
(a_pair (ignore* value_separator a_pair)*)?
|
143
|
+
ignore* end_object @exit;
|
144
|
+
}%%
|
145
|
+
|
146
|
+
static char *JSON_parse_object(JSON_Parser *json, char *p, char *pe, VALUE *result)
|
147
|
+
{
|
148
|
+
int cs = EVIL;
|
149
|
+
VALUE last_name = Qnil;
|
150
|
+
VALUE object_class = json->object_class;
|
151
|
+
|
152
|
+
if (json->max_nesting && json->current_nesting > json->max_nesting) {
|
153
|
+
rb_raise(eNestingError, "nesting of %d is too deep", json->current_nesting);
|
154
|
+
}
|
155
|
+
|
156
|
+
*result = NIL_P(object_class) ? rb_hash_new() : rb_class_new_instance(0, 0, object_class);
|
157
|
+
|
158
|
+
%% write init;
|
159
|
+
%% write exec;
|
160
|
+
|
161
|
+
if (cs >= JSON_object_first_final) {
|
162
|
+
if (RTEST(json->create_id)) {
|
163
|
+
VALUE klassname = rb_hash_aref(*result, json->create_id);
|
164
|
+
if (!NIL_P(klassname)) {
|
165
|
+
VALUE klass = rb_funcall(mJSON, i_deep_const_get, 1, klassname);
|
166
|
+
if RTEST(rb_funcall(klass, i_json_creatable_p, 0)) {
|
167
|
+
*result = rb_funcall(klass, i_json_create, 1, *result);
|
168
|
+
}
|
169
|
+
}
|
170
|
+
}
|
171
|
+
return p + 1;
|
172
|
+
} else {
|
173
|
+
return NULL;
|
174
|
+
}
|
175
|
+
}
|
176
|
+
|
177
|
+
%%{
|
178
|
+
machine JSON_value;
|
179
|
+
include JSON_common;
|
180
|
+
|
181
|
+
write data;
|
182
|
+
|
183
|
+
action parse_null {
|
184
|
+
*result = Qnil;
|
185
|
+
}
|
186
|
+
action parse_false {
|
187
|
+
*result = Qfalse;
|
188
|
+
}
|
189
|
+
action parse_true {
|
190
|
+
*result = Qtrue;
|
191
|
+
}
|
192
|
+
action parse_nan {
|
193
|
+
if (json->allow_nan) {
|
194
|
+
*result = CNaN;
|
195
|
+
} else {
|
196
|
+
rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p - 2);
|
197
|
+
}
|
198
|
+
}
|
199
|
+
action parse_infinity {
|
200
|
+
if (json->allow_nan) {
|
201
|
+
*result = CInfinity;
|
202
|
+
} else {
|
203
|
+
rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p - 8);
|
204
|
+
}
|
205
|
+
}
|
206
|
+
action parse_string {
|
207
|
+
char *np = JSON_parse_string(json, fpc, pe, result);
|
208
|
+
if (np == NULL) { fhold; fbreak; } else fexec np;
|
209
|
+
}
|
210
|
+
|
211
|
+
action parse_number {
|
212
|
+
char *np;
|
213
|
+
if(pe > fpc + 9 && !strncmp(MinusInfinity, fpc, 9)) {
|
214
|
+
if (json->allow_nan) {
|
215
|
+
*result = CMinusInfinity;
|
216
|
+
fexec p + 10;
|
217
|
+
fhold; fbreak;
|
218
|
+
} else {
|
219
|
+
rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p);
|
220
|
+
}
|
221
|
+
}
|
222
|
+
np = JSON_parse_float(json, fpc, pe, result);
|
223
|
+
if (np != NULL) fexec np;
|
224
|
+
np = JSON_parse_integer(json, fpc, pe, result);
|
225
|
+
if (np != NULL) fexec np;
|
226
|
+
fhold; fbreak;
|
227
|
+
}
|
228
|
+
|
229
|
+
action parse_array {
|
230
|
+
char *np;
|
231
|
+
json->current_nesting++;
|
232
|
+
np = JSON_parse_array(json, fpc, pe, result);
|
233
|
+
json->current_nesting--;
|
234
|
+
if (np == NULL) { fhold; fbreak; } else fexec np;
|
235
|
+
}
|
236
|
+
|
237
|
+
action parse_object {
|
238
|
+
char *np;
|
239
|
+
json->current_nesting++;
|
240
|
+
np = JSON_parse_object(json, fpc, pe, result);
|
241
|
+
json->current_nesting--;
|
242
|
+
if (np == NULL) { fhold; fbreak; } else fexec np;
|
243
|
+
}
|
244
|
+
|
245
|
+
action exit { fhold; fbreak; }
|
246
|
+
|
247
|
+
main := (
|
248
|
+
Vnull @parse_null |
|
249
|
+
Vfalse @parse_false |
|
250
|
+
Vtrue @parse_true |
|
251
|
+
VNaN @parse_nan |
|
252
|
+
VInfinity @parse_infinity |
|
253
|
+
begin_number >parse_number |
|
254
|
+
begin_string >parse_string |
|
255
|
+
begin_array >parse_array |
|
256
|
+
begin_object >parse_object
|
257
|
+
) %*exit;
|
258
|
+
}%%
|
259
|
+
|
260
|
+
static char *JSON_parse_value(JSON_Parser *json, char *p, char *pe, VALUE *result)
|
261
|
+
{
|
262
|
+
int cs = EVIL;
|
263
|
+
|
264
|
+
%% write init;
|
265
|
+
%% write exec;
|
266
|
+
|
267
|
+
if (cs >= JSON_value_first_final) {
|
268
|
+
return p;
|
269
|
+
} else {
|
270
|
+
return NULL;
|
271
|
+
}
|
272
|
+
}
|
273
|
+
|
274
|
+
%%{
|
275
|
+
machine JSON_integer;
|
276
|
+
|
277
|
+
write data;
|
278
|
+
|
279
|
+
action exit { fhold; fbreak; }
|
280
|
+
|
281
|
+
main := '-'? ('0' | [1-9][0-9]*) (^[0-9] @exit);
|
282
|
+
}%%
|
283
|
+
|
284
|
+
static char *JSON_parse_integer(JSON_Parser *json, char *p, char *pe, VALUE *result)
|
285
|
+
{
|
286
|
+
int cs = EVIL;
|
287
|
+
|
288
|
+
%% write init;
|
289
|
+
json->memo = p;
|
290
|
+
%% write exec;
|
291
|
+
|
292
|
+
if (cs >= JSON_integer_first_final) {
|
293
|
+
long len = p - json->memo;
|
294
|
+
*result = rb_Integer(rb_str_new(json->memo, len));
|
295
|
+
return p + 1;
|
296
|
+
} else {
|
297
|
+
return NULL;
|
298
|
+
}
|
299
|
+
}
|
300
|
+
|
301
|
+
%%{
|
302
|
+
machine JSON_float;
|
303
|
+
include JSON_common;
|
304
|
+
|
305
|
+
write data;
|
306
|
+
|
307
|
+
action exit { fhold; fbreak; }
|
308
|
+
|
309
|
+
main := '-'? (
|
310
|
+
(('0' | [1-9][0-9]*) '.' [0-9]+ ([Ee] [+\-]?[0-9]+)?)
|
311
|
+
| (('0' | [1-9][0-9]*) ([Ee] [+\-]?[0-9]+))
|
312
|
+
) (^[0-9Ee.\-] @exit );
|
313
|
+
}%%
|
314
|
+
|
315
|
+
static char *JSON_parse_float(JSON_Parser *json, char *p, char *pe, VALUE *result)
|
316
|
+
{
|
317
|
+
int cs = EVIL;
|
318
|
+
|
319
|
+
%% write init;
|
320
|
+
json->memo = p;
|
321
|
+
%% write exec;
|
322
|
+
|
323
|
+
if (cs >= JSON_float_first_final) {
|
324
|
+
long len = p - json->memo;
|
325
|
+
*result = rb_Float(rb_str_new(json->memo, len));
|
326
|
+
return p + 1;
|
327
|
+
} else {
|
328
|
+
return NULL;
|
329
|
+
}
|
330
|
+
}
|
331
|
+
|
332
|
+
|
333
|
+
%%{
|
334
|
+
machine JSON_array;
|
335
|
+
include JSON_common;
|
336
|
+
|
337
|
+
write data;
|
338
|
+
|
339
|
+
action parse_value {
|
340
|
+
VALUE v = Qnil;
|
341
|
+
char *np = JSON_parse_value(json, fpc, pe, &v);
|
342
|
+
if (np == NULL) {
|
343
|
+
fhold; fbreak;
|
344
|
+
} else {
|
345
|
+
rb_ary_push(*result, v);
|
346
|
+
fexec np;
|
347
|
+
}
|
348
|
+
}
|
349
|
+
|
350
|
+
action exit { fhold; fbreak; }
|
351
|
+
|
352
|
+
next_element = value_separator ignore* begin_value >parse_value;
|
353
|
+
|
354
|
+
main := begin_array ignore*
|
355
|
+
((begin_value >parse_value ignore*)
|
356
|
+
(ignore* next_element ignore*)*)?
|
357
|
+
end_array @exit;
|
358
|
+
}%%
|
359
|
+
|
360
|
+
static char *JSON_parse_array(JSON_Parser *json, char *p, char *pe, VALUE *result)
|
361
|
+
{
|
362
|
+
int cs = EVIL;
|
363
|
+
VALUE array_class = json->array_class;
|
364
|
+
|
365
|
+
if (json->max_nesting && json->current_nesting > json->max_nesting) {
|
366
|
+
rb_raise(eNestingError, "nesting of %d is too deep", json->current_nesting);
|
367
|
+
}
|
368
|
+
*result = NIL_P(array_class) ? rb_ary_new() : rb_class_new_instance(0, 0, array_class);
|
369
|
+
|
370
|
+
%% write init;
|
371
|
+
%% write exec;
|
372
|
+
|
373
|
+
if(cs >= JSON_array_first_final) {
|
374
|
+
return p + 1;
|
375
|
+
} else {
|
376
|
+
rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p);
|
377
|
+
return NULL;
|
378
|
+
}
|
379
|
+
}
|
380
|
+
|
381
|
+
static VALUE json_string_unescape(VALUE result, char *string, char *stringEnd)
|
382
|
+
{
|
383
|
+
char *p = string, *pe = string, *unescape;
|
384
|
+
int unescape_len;
|
385
|
+
|
386
|
+
while (pe < stringEnd) {
|
387
|
+
if (*pe == '\\') {
|
388
|
+
unescape = (char *) "?";
|
389
|
+
unescape_len = 1;
|
390
|
+
if (pe > p) rb_str_buf_cat(result, p, pe - p);
|
391
|
+
switch (*++pe) {
|
392
|
+
case 'n':
|
393
|
+
unescape = (char *) "\n";
|
394
|
+
break;
|
395
|
+
case 'r':
|
396
|
+
unescape = (char *) "\r";
|
397
|
+
break;
|
398
|
+
case 't':
|
399
|
+
unescape = (char *) "\t";
|
400
|
+
break;
|
401
|
+
case '"':
|
402
|
+
unescape = (char *) "\"";
|
403
|
+
break;
|
404
|
+
case '\\':
|
405
|
+
unescape = (char *) "\\";
|
406
|
+
break;
|
407
|
+
case 'b':
|
408
|
+
unescape = (char *) "\b";
|
409
|
+
break;
|
410
|
+
case 'f':
|
411
|
+
unescape = (char *) "\f";
|
412
|
+
break;
|
413
|
+
case 'u':
|
414
|
+
if (pe > stringEnd - 4) {
|
415
|
+
return Qnil;
|
416
|
+
} else {
|
417
|
+
char buf[4];
|
418
|
+
UTF32 ch = unescape_unicode((unsigned char *) ++pe);
|
419
|
+
pe += 3;
|
420
|
+
if (UNI_SUR_HIGH_START == (ch & 0xFC00)) {
|
421
|
+
pe++;
|
422
|
+
if (pe > stringEnd - 6) return Qnil;
|
423
|
+
if (pe[0] == '\\' && pe[1] == 'u') {
|
424
|
+
UTF32 sur = unescape_unicode((unsigned char *) pe + 2);
|
425
|
+
ch = (((ch & 0x3F) << 10) | ((((ch >> 6) & 0xF) + 1) << 16)
|
426
|
+
| (sur & 0x3FF));
|
427
|
+
pe += 5;
|
428
|
+
} else {
|
429
|
+
unescape = (char *) "?";
|
430
|
+
break;
|
431
|
+
}
|
432
|
+
}
|
433
|
+
unescape_len = convert_UTF32_to_UTF8(buf, ch);
|
434
|
+
unescape = buf;
|
435
|
+
}
|
436
|
+
break;
|
437
|
+
default:
|
438
|
+
p = pe;
|
439
|
+
continue;
|
440
|
+
}
|
441
|
+
rb_str_buf_cat(result, unescape, unescape_len);
|
442
|
+
p = ++pe;
|
443
|
+
} else {
|
444
|
+
pe++;
|
445
|
+
}
|
446
|
+
}
|
447
|
+
rb_str_buf_cat(result, p, pe - p);
|
448
|
+
return result;
|
449
|
+
}
|
450
|
+
|
451
|
+
%%{
|
452
|
+
machine JSON_string;
|
453
|
+
include JSON_common;
|
454
|
+
|
455
|
+
write data;
|
456
|
+
|
457
|
+
action parse_string {
|
458
|
+
*result = json_string_unescape(*result, json->memo + 1, p);
|
459
|
+
if (NIL_P(*result)) {
|
460
|
+
fhold;
|
461
|
+
fbreak;
|
462
|
+
} else {
|
463
|
+
FORCE_UTF8(*result);
|
464
|
+
fexec p + 1;
|
465
|
+
}
|
466
|
+
}
|
467
|
+
|
468
|
+
action exit { fhold; fbreak; }
|
469
|
+
|
470
|
+
main := '"' ((^(["\\] | 0..0x1f) | '\\'["\\/bfnrt] | '\\u'[0-9a-fA-F]{4} | '\\'^(["\\/bfnrtu]|0..0x1f))* %parse_string) '"' @exit;
|
471
|
+
}%%
|
472
|
+
|
473
|
+
static char *JSON_parse_string(JSON_Parser *json, char *p, char *pe, VALUE *result)
|
474
|
+
{
|
475
|
+
int cs = EVIL;
|
476
|
+
|
477
|
+
*result = rb_str_buf_new(0);
|
478
|
+
%% write init;
|
479
|
+
json->memo = p;
|
480
|
+
%% write exec;
|
481
|
+
|
482
|
+
if (json->symbolize_names && json->parsing_name) {
|
483
|
+
*result = rb_str_intern(*result);
|
484
|
+
}
|
485
|
+
if (cs >= JSON_string_first_final) {
|
486
|
+
return p + 1;
|
487
|
+
} else {
|
488
|
+
return NULL;
|
489
|
+
}
|
490
|
+
}
|
491
|
+
|
492
|
+
|
493
|
+
%%{
|
494
|
+
machine JSON;
|
495
|
+
|
496
|
+
write data;
|
497
|
+
|
498
|
+
include JSON_common;
|
499
|
+
|
500
|
+
action parse_object {
|
501
|
+
char *np;
|
502
|
+
json->current_nesting = 1;
|
503
|
+
np = JSON_parse_object(json, fpc, pe, &result);
|
504
|
+
if (np == NULL) { fhold; fbreak; } else fexec np;
|
505
|
+
}
|
506
|
+
|
507
|
+
action parse_array {
|
508
|
+
char *np;
|
509
|
+
json->current_nesting = 1;
|
510
|
+
np = JSON_parse_array(json, fpc, pe, &result);
|
511
|
+
if (np == NULL) { fhold; fbreak; } else fexec np;
|
512
|
+
}
|
513
|
+
|
514
|
+
main := ignore* (
|
515
|
+
begin_object >parse_object |
|
516
|
+
begin_array >parse_array
|
517
|
+
) ignore*;
|
518
|
+
}%%
|
519
|
+
|
520
|
+
/*
|
521
|
+
* Document-class: JSON::Ext::Parser
|
522
|
+
*
|
523
|
+
* This is the JSON parser implemented as a C extension. It can be configured
|
524
|
+
* to be used by setting
|
525
|
+
*
|
526
|
+
* JSON.parser = JSON::Ext::Parser
|
527
|
+
*
|
528
|
+
* with the method parser= in JSON.
|
529
|
+
*
|
530
|
+
*/
|
531
|
+
|
532
|
+
static VALUE convert_encoding(VALUE source)
|
533
|
+
{
|
534
|
+
char *ptr = RSTRING_PTR(source);
|
535
|
+
long len = RSTRING_LEN(source);
|
536
|
+
if (len < 2) {
|
537
|
+
rb_raise(eParserError, "A JSON text must at least contain two octets!");
|
538
|
+
}
|
539
|
+
#ifdef HAVE_RUBY_ENCODING_H
|
540
|
+
{
|
541
|
+
VALUE encoding = rb_funcall(source, i_encoding, 0);
|
542
|
+
if (encoding == CEncoding_ASCII_8BIT) {
|
543
|
+
if (len >= 4 && ptr[0] == 0 && ptr[1] == 0 && ptr[2] == 0) {
|
544
|
+
source = rb_str_dup(source);
|
545
|
+
rb_funcall(source, i_force_encoding, 1, CEncoding_UTF_32BE);
|
546
|
+
source = rb_funcall(source, i_encode_bang, 1, CEncoding_UTF_8);
|
547
|
+
} else if (len >= 4 && ptr[0] == 0 && ptr[2] == 0) {
|
548
|
+
source = rb_str_dup(source);
|
549
|
+
rb_funcall(source, i_force_encoding, 1, CEncoding_UTF_16BE);
|
550
|
+
source = rb_funcall(source, i_encode_bang, 1, CEncoding_UTF_8);
|
551
|
+
} else if (len >= 4 && ptr[1] == 0 && ptr[2] == 0 && ptr[3] == 0) {
|
552
|
+
source = rb_str_dup(source);
|
553
|
+
rb_funcall(source, i_force_encoding, 1, CEncoding_UTF_32LE);
|
554
|
+
source = rb_funcall(source, i_encode_bang, 1, CEncoding_UTF_8);
|
555
|
+
} else if (len >= 4 && ptr[1] == 0 && ptr[3] == 0) {
|
556
|
+
source = rb_str_dup(source);
|
557
|
+
rb_funcall(source, i_force_encoding, 1, CEncoding_UTF_16LE);
|
558
|
+
source = rb_funcall(source, i_encode_bang, 1, CEncoding_UTF_8);
|
559
|
+
} else {
|
560
|
+
FORCE_UTF8(source);
|
561
|
+
}
|
562
|
+
} else {
|
563
|
+
source = rb_funcall(source, i_encode, 1, CEncoding_UTF_8);
|
564
|
+
}
|
565
|
+
}
|
566
|
+
#else
|
567
|
+
if (len >= 4 && ptr[0] == 0 && ptr[1] == 0 && ptr[2] == 0) {
|
568
|
+
source = rb_funcall(mJSON, i_iconv, 3, rb_str_new2("utf-8"), rb_str_new2("utf-32be"), source);
|
569
|
+
} else if (len >= 4 && ptr[0] == 0 && ptr[2] == 0) {
|
570
|
+
source = rb_funcall(mJSON, i_iconv, 3, rb_str_new2("utf-8"), rb_str_new2("utf-16be"), source);
|
571
|
+
} else if (len >= 4 && ptr[1] == 0 && ptr[2] == 0 && ptr[3] == 0) {
|
572
|
+
source = rb_funcall(mJSON, i_iconv, 3, rb_str_new2("utf-8"), rb_str_new2("utf-32le"), source);
|
573
|
+
} else if (len >= 4 && ptr[1] == 0 && ptr[3] == 0) {
|
574
|
+
source = rb_funcall(mJSON, i_iconv, 3, rb_str_new2("utf-8"), rb_str_new2("utf-16le"), source);
|
575
|
+
}
|
576
|
+
#endif
|
577
|
+
return source;
|
578
|
+
}
|
579
|
+
|
580
|
+
/*
|
581
|
+
* call-seq: new(source, opts => {})
|
582
|
+
*
|
583
|
+
* Creates a new JSON::Ext::Parser instance for the string _source_.
|
584
|
+
*
|
585
|
+
* Creates a new JSON::Ext::Parser instance for the string _source_.
|
586
|
+
*
|
587
|
+
* It will be configured by the _opts_ hash. _opts_ can have the following
|
588
|
+
* keys:
|
589
|
+
*
|
590
|
+
* _opts_ can have the following keys:
|
591
|
+
* * *max_nesting*: The maximum depth of nesting allowed in the parsed data
|
592
|
+
* structures. Disable depth checking with :max_nesting => false|nil|0, it
|
593
|
+
* defaults to 19.
|
594
|
+
* * *allow_nan*: If set to true, allow NaN, Infinity and -Infinity in
|
595
|
+
* defiance of RFC 4627 to be parsed by the Parser. This option defaults to
|
596
|
+
* false.
|
597
|
+
* * *symbolize_names*: If set to true, returns symbols for the names
|
598
|
+
* (keys) in a JSON object. Otherwise strings are returned, which is also
|
599
|
+
* the default.
|
600
|
+
* * *create_additions*: If set to false, the Parser doesn't create
|
601
|
+
* additions even if a matchin class and create_id was found. This option
|
602
|
+
* defaults to true.
|
603
|
+
* * *object_class*: Defaults to Hash
|
604
|
+
* * *array_class*: Defaults to Array
|
605
|
+
*/
|
606
|
+
static VALUE cParser_initialize(int argc, VALUE *argv, VALUE self)
|
607
|
+
{
|
608
|
+
char *ptr;
|
609
|
+
long len;
|
610
|
+
VALUE source, opts;
|
611
|
+
GET_PARSER;
|
612
|
+
rb_scan_args(argc, argv, "11", &source, &opts);
|
613
|
+
source = convert_encoding(StringValue(source));
|
614
|
+
ptr = RSTRING_PTR(source);
|
615
|
+
len = RSTRING_LEN(source);
|
616
|
+
if (!NIL_P(opts)) {
|
617
|
+
opts = rb_convert_type(opts, T_HASH, "Hash", "to_hash");
|
618
|
+
if (NIL_P(opts)) {
|
619
|
+
rb_raise(rb_eArgError, "opts needs to be like a hash");
|
620
|
+
} else {
|
621
|
+
VALUE tmp = ID2SYM(i_max_nesting);
|
622
|
+
if (option_given_p(opts, tmp)) {
|
623
|
+
VALUE max_nesting = rb_hash_aref(opts, tmp);
|
624
|
+
if (RTEST(max_nesting)) {
|
625
|
+
Check_Type(max_nesting, T_FIXNUM);
|
626
|
+
json->max_nesting = FIX2INT(max_nesting);
|
627
|
+
} else {
|
628
|
+
json->max_nesting = 0;
|
629
|
+
}
|
630
|
+
} else {
|
631
|
+
json->max_nesting = 19;
|
632
|
+
}
|
633
|
+
tmp = ID2SYM(i_allow_nan);
|
634
|
+
if (option_given_p(opts, tmp)) {
|
635
|
+
VALUE allow_nan = rb_hash_aref(opts, tmp);
|
636
|
+
json->allow_nan = RTEST(allow_nan) ? 1 : 0;
|
637
|
+
} else {
|
638
|
+
json->allow_nan = 0;
|
639
|
+
}
|
640
|
+
tmp = ID2SYM(i_symbolize_names);
|
641
|
+
if (option_given_p(opts, tmp)) {
|
642
|
+
VALUE symbolize_names = rb_hash_aref(opts, tmp);
|
643
|
+
json->symbolize_names = RTEST(symbolize_names) ? 1 : 0;
|
644
|
+
} else {
|
645
|
+
json->symbolize_names = 0;
|
646
|
+
}
|
647
|
+
tmp = ID2SYM(i_create_additions);
|
648
|
+
if (option_given_p(opts, tmp)) {
|
649
|
+
VALUE create_additions = rb_hash_aref(opts, tmp);
|
650
|
+
if (RTEST(create_additions)) {
|
651
|
+
json->create_id = rb_funcall(mJSON, i_create_id, 0);
|
652
|
+
} else {
|
653
|
+
json->create_id = Qnil;
|
654
|
+
}
|
655
|
+
} else {
|
656
|
+
json->create_id = rb_funcall(mJSON, i_create_id, 0);
|
657
|
+
}
|
658
|
+
tmp = ID2SYM(i_object_class);
|
659
|
+
if (option_given_p(opts, tmp)) {
|
660
|
+
json->object_class = rb_hash_aref(opts, tmp);
|
661
|
+
} else {
|
662
|
+
json->object_class = Qnil;
|
663
|
+
}
|
664
|
+
tmp = ID2SYM(i_array_class);
|
665
|
+
if (option_given_p(opts, tmp)) {
|
666
|
+
json->array_class = rb_hash_aref(opts, tmp);
|
667
|
+
} else {
|
668
|
+
json->array_class = Qnil;
|
669
|
+
}
|
670
|
+
}
|
671
|
+
} else {
|
672
|
+
json->max_nesting = 19;
|
673
|
+
json->allow_nan = 0;
|
674
|
+
json->create_id = rb_funcall(mJSON, i_create_id, 0);
|
675
|
+
json->object_class = Qnil;
|
676
|
+
json->array_class = Qnil;
|
677
|
+
}
|
678
|
+
json->current_nesting = 0;
|
679
|
+
json->len = len;
|
680
|
+
json->source = ptr;
|
681
|
+
json->Vsource = source;
|
682
|
+
return self;
|
683
|
+
}
|
684
|
+
|
685
|
+
/*
|
686
|
+
* call-seq: parse()
|
687
|
+
*
|
688
|
+
* Parses the current JSON text _source_ and returns the complete data
|
689
|
+
* structure as a result.
|
690
|
+
*/
|
691
|
+
static VALUE cParser_parse(VALUE self)
|
692
|
+
{
|
693
|
+
char *p, *pe;
|
694
|
+
int cs = EVIL;
|
695
|
+
VALUE result = Qnil;
|
696
|
+
GET_PARSER;
|
697
|
+
|
698
|
+
%% write init;
|
699
|
+
p = json->source;
|
700
|
+
pe = p + json->len;
|
701
|
+
%% write exec;
|
702
|
+
|
703
|
+
if (cs >= JSON_first_final && p == pe) {
|
704
|
+
return result;
|
705
|
+
} else {
|
706
|
+
rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p);
|
707
|
+
return Qnil;
|
708
|
+
}
|
709
|
+
}
|
710
|
+
|
711
|
+
static JSON_Parser *JSON_allocate()
|
712
|
+
{
|
713
|
+
JSON_Parser *json = ALLOC(JSON_Parser);
|
714
|
+
MEMZERO(json, JSON_Parser, 1);
|
715
|
+
return json;
|
716
|
+
}
|
717
|
+
|
718
|
+
static void JSON_mark(JSON_Parser *json)
|
719
|
+
{
|
720
|
+
rb_gc_mark_maybe(json->Vsource);
|
721
|
+
rb_gc_mark_maybe(json->create_id);
|
722
|
+
rb_gc_mark_maybe(json->object_class);
|
723
|
+
rb_gc_mark_maybe(json->array_class);
|
724
|
+
}
|
725
|
+
|
726
|
+
static void JSON_free(JSON_Parser *json)
|
727
|
+
{
|
728
|
+
ruby_xfree(json);
|
729
|
+
}
|
730
|
+
|
731
|
+
static VALUE cJSON_parser_s_allocate(VALUE klass)
|
732
|
+
{
|
733
|
+
JSON_Parser *json = JSON_allocate();
|
734
|
+
return Data_Wrap_Struct(klass, JSON_mark, JSON_free, json);
|
735
|
+
}
|
736
|
+
|
737
|
+
/*
|
738
|
+
* call-seq: source()
|
739
|
+
*
|
740
|
+
* Returns a copy of the current _source_ string, that was used to construct
|
741
|
+
* this Parser.
|
742
|
+
*/
|
743
|
+
static VALUE cParser_source(VALUE self)
|
744
|
+
{
|
745
|
+
GET_PARSER;
|
746
|
+
return rb_str_dup(json->Vsource);
|
747
|
+
}
|
748
|
+
|
749
|
+
void Init_parser()
|
750
|
+
{
|
751
|
+
rb_require("json/common");
|
752
|
+
mJSON = rb_define_module("JSON");
|
753
|
+
mExt = rb_define_module_under(mJSON, "Ext");
|
754
|
+
cParser = rb_define_class_under(mExt, "Parser", rb_cObject);
|
755
|
+
eParserError = rb_path2class("JSON::ParserError");
|
756
|
+
eNestingError = rb_path2class("JSON::NestingError");
|
757
|
+
rb_define_alloc_func(cParser, cJSON_parser_s_allocate);
|
758
|
+
rb_define_method(cParser, "initialize", cParser_initialize, -1);
|
759
|
+
rb_define_method(cParser, "parse", cParser_parse, 0);
|
760
|
+
rb_define_method(cParser, "source", cParser_source, 0);
|
761
|
+
|
762
|
+
CNaN = rb_const_get(mJSON, rb_intern("NaN"));
|
763
|
+
CInfinity = rb_const_get(mJSON, rb_intern("Infinity"));
|
764
|
+
CMinusInfinity = rb_const_get(mJSON, rb_intern("MinusInfinity"));
|
765
|
+
|
766
|
+
i_json_creatable_p = rb_intern("json_creatable?");
|
767
|
+
i_json_create = rb_intern("json_create");
|
768
|
+
i_create_id = rb_intern("create_id");
|
769
|
+
i_create_additions = rb_intern("create_additions");
|
770
|
+
i_chr = rb_intern("chr");
|
771
|
+
i_max_nesting = rb_intern("max_nesting");
|
772
|
+
i_allow_nan = rb_intern("allow_nan");
|
773
|
+
i_symbolize_names = rb_intern("symbolize_names");
|
774
|
+
i_object_class = rb_intern("object_class");
|
775
|
+
i_array_class = rb_intern("array_class");
|
776
|
+
i_key_p = rb_intern("key?");
|
777
|
+
i_deep_const_get = rb_intern("deep_const_get");
|
778
|
+
#ifdef HAVE_RUBY_ENCODING_H
|
779
|
+
CEncoding_UTF_8 = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-8"));
|
780
|
+
CEncoding_UTF_16BE = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-16be"));
|
781
|
+
CEncoding_UTF_16LE = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-16le"));
|
782
|
+
CEncoding_UTF_32BE = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-32be"));
|
783
|
+
CEncoding_UTF_32LE = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-32le"));
|
784
|
+
CEncoding_ASCII_8BIT = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("ascii-8bit"));
|
785
|
+
i_encoding = rb_intern("encoding");
|
786
|
+
i_encode = rb_intern("encode");
|
787
|
+
i_encode_bang = rb_intern("encode!");
|
788
|
+
i_force_encoding = rb_intern("force_encoding");
|
789
|
+
#else
|
790
|
+
i_iconv = rb_intern("iconv");
|
791
|
+
#endif
|
792
|
+
}
|