horseman 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +12 -12
- data/Manifest +894 -0
- data/Rakefile +1 -1
- data/horseman.gemspec +4 -4
- data/lib/horseman/action.rb +20 -0
- data/lib/horseman/browser.rb +71 -20
- data/lib/horseman/connection.rb +3 -1
- data/lib/horseman/response.rb +14 -10
- data/lib/horseman/version.rb +1 -1
- data/lib/horseman.rb +1 -0
- data/spec/horseman/action_spec.rb +29 -0
- data/spec/horseman/browser_spec.rb +138 -14
- data/spec/horseman/response_spec.rb +25 -2
- data/spec/mocks.rb +21 -7
- data/vendor/ruby/1.9.1/cache/gemcutter-0.7.1.gem +0 -0
- data/vendor/ruby/1.9.1/cache/json-1.6.4.gem +0 -0
- data/vendor/ruby/1.9.1/cache/json_pure-1.6.4.gem +0 -0
- data/vendor/ruby/1.9.1/cache/rdoc-3.12.gem +0 -0
- data/vendor/ruby/1.9.1/cache/rspec-2.8.0.gem +0 -0
- data/vendor/ruby/1.9.1/cache/rspec-core-2.8.0.gem +0 -0
- data/vendor/ruby/1.9.1/cache/rspec-expectations-2.8.0.gem +0 -0
- data/vendor/ruby/1.9.1/cache/rspec-mocks-2.8.0.gem +0 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/Gemfile +7 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/MIT-LICENSE +22 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/README.md +99 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/Rakefile +13 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/lib/gemcutter/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/lib/rubygems/commands/migrate_command.rb +14 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/lib/rubygems/commands/tumble_command.rb +13 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/lib/rubygems/commands/webhook_command.rb +117 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/lib/rubygems/commands/yank_command.rb +86 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/lib/rubygems_plugin.rb +7 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/test/helper.rb +41 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/test/webhook_command_test.rb +240 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/test/yank_command_test.rb +157 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/CHANGES +227 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/COPYING +58 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/COPYING-json-jruby +57 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/GPL +340 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/Gemfile +11 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/README-json-jruby.markdown +33 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/README.rdoc +358 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/Rakefile +408 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/TODO +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/VERSION +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty-autocorrelation.dat +900 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty.dat +901 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat +900 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser.dat +901 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/generator2_benchmark.rb +222 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/generator_benchmark.rb +224 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/ohai.json +1216 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/ohai.ruby +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/parser2_benchmark.rb +251 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/parser_benchmark.rb +259 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/data/example.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/data/index.html +38 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/data/prototype.js +4184 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/fbuffer/fbuffer.h +156 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/generator/Makefile +213 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/generator/extconf.rb +13 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/generator/generator.bundle +0 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/generator/generator.c +1384 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/generator/generator.h +161 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/json/ext/generator.bundle +0 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/json/ext/parser.bundle +0 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/parser/Makefile +213 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/parser/extconf.rb +13 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/parser/parser.bundle +0 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/parser/parser.c +2203 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/parser/parser.h +77 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/parser/parser.rl +926 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/install.rb +19 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/ByteListTranscoder.java +167 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/Generator.java +437 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/GeneratorMethods.java +232 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/GeneratorService.java +43 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/GeneratorState.java +522 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/OptionsReader.java +113 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/Parser.java +2640 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/Parser.rl +964 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/ParserService.java +35 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/RuntimeInfo.java +121 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/StringDecoder.java +166 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/StringEncoder.java +106 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/Utils.java +89 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/json-java.gemspec +22 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/json.gemspec +40 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/json_pure.gemspec +42 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/bigdecimal.rb +21 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/complex.rb +22 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/core.rb +11 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/date.rb +34 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/date_time.rb +50 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/exception.rb +31 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/ostruct.rb +31 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/range.rb +29 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/rational.rb +22 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/regexp.rb +30 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/struct.rb +30 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/symbol.rb +25 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/time.rb +35 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/common.rb +470 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/ext.rb +21 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/pure/generator.rb +468 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/pure/parser.rb +359 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/pure.rb +21 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/version.rb +8 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json.rb +62 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail1.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail10.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail11.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail12.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail13.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail14.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail18.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail19.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail2.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail20.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail21.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail22.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail23.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail24.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail25.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail27.json +2 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail28.json +2 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail3.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail4.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail5.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail6.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail7.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail8.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail9.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/pass1.json +56 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/pass15.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/pass16.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/pass17.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/pass2.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/pass26.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/pass3.json +6 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/setup_variant.rb +11 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/test_json.rb +527 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/test_json_addition.rb +188 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/test_json_encoding.rb +65 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/test_json_fixtures.rb +35 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/test_json_generate.rb +249 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/test_json_string_matching.rb +40 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/test_json_unicode.rb +72 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tools/fuzz.rb +139 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tools/server.rb +62 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/CHANGES +227 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/COPYING +58 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/COPYING-json-jruby +57 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/GPL +340 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/Gemfile +11 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/README-json-jruby.markdown +33 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/README.rdoc +358 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/Rakefile +408 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/TODO +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/VERSION +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty-autocorrelation.dat +900 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty.dat +901 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat +900 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser.dat +901 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/generator2_benchmark.rb +222 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/generator_benchmark.rb +224 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/ohai.json +1216 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/ohai.ruby +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/parser2_benchmark.rb +251 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/parser_benchmark.rb +259 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/data/example.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/data/index.html +38 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/data/prototype.js +4184 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/ext/json/ext/fbuffer/fbuffer.h +156 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/ext/json/ext/generator/extconf.rb +13 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/ext/json/ext/generator/generator.c +1384 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/ext/json/ext/generator/generator.h +161 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/ext/json/ext/parser/extconf.rb +13 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/ext/json/ext/parser/parser.c +2203 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/ext/json/ext/parser/parser.h +77 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/ext/json/ext/parser/parser.rl +926 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/install.rb +19 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/ByteListTranscoder.java +167 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/Generator.java +437 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/GeneratorMethods.java +232 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/GeneratorService.java +43 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/GeneratorState.java +522 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/OptionsReader.java +113 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/Parser.java +2640 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/Parser.rl +964 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/ParserService.java +35 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/RuntimeInfo.java +121 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/StringDecoder.java +166 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/StringEncoder.java +106 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/Utils.java +89 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/json-java.gemspec +22 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/json.gemspec +40 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/json_pure.gemspec +42 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/bigdecimal.rb +21 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/complex.rb +22 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/core.rb +11 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/date.rb +34 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/date_time.rb +50 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/exception.rb +31 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/ostruct.rb +31 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/range.rb +29 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/rational.rb +22 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/regexp.rb +30 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/struct.rb +30 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/symbol.rb +25 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/time.rb +35 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/common.rb +470 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/ext.rb +21 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/pure/generator.rb +468 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/pure/parser.rb +359 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/pure.rb +21 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/version.rb +8 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json.rb +62 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail1.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail10.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail11.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail12.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail13.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail14.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail18.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail19.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail2.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail20.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail21.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail22.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail23.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail24.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail25.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail27.json +2 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail28.json +2 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail3.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail4.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail5.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail6.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail7.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail8.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail9.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/pass1.json +56 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/pass15.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/pass16.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/pass17.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/pass2.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/pass26.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/pass3.json +6 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/setup_variant.rb +11 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/test_json.rb +527 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/test_json_addition.rb +188 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/test_json_encoding.rb +65 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/test_json_fixtures.rb +35 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/test_json_generate.rb +249 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/test_json_string_matching.rb +40 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/test_json_unicode.rb +72 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tools/fuzz.rb +139 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tools/server.rb +62 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/DEVELOPERS.rdoc +141 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/History.rdoc +962 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/LEGAL.rdoc +27 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/LICENSE.rdoc +57 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/Manifest.txt +228 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/README.rdoc +61 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/RI.rdoc +57 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/Rakefile +135 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/TODO.rdoc +40 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/bin/rdoc +40 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/bin/ri +12 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/gauntlet_rdoc.rb +84 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/alias.rb +111 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/anon_class.rb +10 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/any_method.rb +208 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/attr.rb +134 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/class_module.rb +619 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/code_object.rb +305 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/code_objects.rb +5 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/comment.rb +225 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/constant.rb +84 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/context/section.rb +123 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/context.rb +1136 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/cross_reference.rb +175 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/encoding.rb +90 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/erbio.rb +37 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/darkfish.rb +532 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/json_index.rb +240 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/markup.rb +171 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/ri.rb +83 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_footer.rhtml +5 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_head.rhtml +16 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml +18 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +9 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml +8 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +16 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +12 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml +7 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +12 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +10 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml +10 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +10 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/class.rhtml +165 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/add.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/brick.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/brick_link.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/bug.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/bullet_black.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/date.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/delete.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/find.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/loadingAnimation.gif +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/macFFBgHack.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/package.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/page_green.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/page_white_text.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/page_white_width.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/plugin.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/ruby.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/tag_blue.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/tag_green.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/transparent.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/wrench.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/wrench_orange.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/zoom.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/index.rhtml +19 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/js/darkfish.js +153 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/js/jquery.js +18 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/js/search.js +94 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/page.rhtml +16 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/rdoc.css +543 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +55 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/json_index/js/navigation.js +142 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/json_index/js/searcher.js +228 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/ghost_method.rb +6 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/include.rb +110 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/known_classes.rb +72 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/attr_changer.rb +25 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/attr_span.rb +29 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/attribute.rb +51 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/attribute_manager.rb +335 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/blank_line.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/document.rb +148 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/formatter.rb +173 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/formatter_test_case.rb +698 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/heading.rb +64 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/include.rb +42 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/indented_paragraph.rb +33 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/inline.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/list.rb +82 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/list_item.rb +86 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/paragraph.rb +14 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/parser.rb +504 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/pre_process.rb +293 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/raw.rb +69 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/rule.rb +20 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/special.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/text_formatter_test_case.rb +114 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/to_ansi.rb +87 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/to_bs.rb +78 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/to_html.rb +394 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/to_html_crossref.rb +156 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/to_html_snippet.rb +268 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/to_label.rb +55 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/to_rdoc.rb +302 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/to_table_of_contents.rb +56 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/to_test.rb +69 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/to_tt_only.rb +111 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/verbatim.rb +64 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup.rb +813 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/meta_method.rb +6 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/method_attr.rb +384 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/normal_class.rb +69 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/normal_module.rb +64 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/options.rb +1040 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/parser/c.rb +1024 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/parser/rd.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/parser/ruby.rb +1816 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/parser/ruby_tools.rb +162 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/parser/simple.rb +61 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/parser/text.rb +11 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/parser.rb +242 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/rd/block_parser.ry +638 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/rd/inline.rb +71 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/rd/inline_parser.ry +593 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/rd.rb +95 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/rdoc.rb +532 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/require.rb +51 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/ri/driver.rb +1174 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/ri/formatter.rb +5 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/ri/paths.rb +128 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/ri/store.rb +357 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/ri.rb +20 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/ruby_lex.rb +1334 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/ruby_token.rb +458 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/rubygems_hook.rb +220 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/single_class.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/stats/normal.rb +48 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/stats/quiet.rb +59 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/stats/verbose.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/stats.rb +436 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/task.rb +329 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/test_case.rb +76 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/text.rb +314 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/token_stream.rb +95 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/tom_doc.rb +232 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/top_level.rb +523 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc.rb +221 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/README +1 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/binary.dat +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/hidden.zip.txt +1 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test.ja.large.rdoc +3 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test.ja.rdoc +10 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test.ja.txt +8 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test.txt +1 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_attribute_manager.rb +117 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_alias.rb +13 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_any_method.rb +248 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_attr.rb +136 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_class_module.rb +814 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_code_object.rb +297 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_comment.rb +504 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_constant.rb +15 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_context.rb +791 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_context_section.rb +53 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_cross_reference.rb +176 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_encoding.rb +188 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_generator_darkfish.rb +151 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_generator_json_index.rb +255 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_generator_markup.rb +56 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_generator_ri.rb +84 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_include.rb +96 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup.rb +95 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_attribute_manager.rb +237 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_document.rb +180 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_formatter.rb +55 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_heading.rb +20 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_include.rb +19 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_indented_paragraph.rb +39 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_paragraph.rb +18 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_parser.rb +1624 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_pre_process.rb +461 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_raw.rb +29 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_to_ansi.rb +348 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_to_bs.rb +342 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_to_html.rb +515 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_to_html_crossref.rb +200 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_to_html_snippet.rb +668 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_to_label.rb +50 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_to_rdoc.rb +357 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_to_table_of_contents.rb +90 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_to_tt_only.rb +226 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_verbatim.rb +16 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_method_attr.rb +150 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_normal_class.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_normal_module.rb +37 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_options.rb +579 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_parser.rb +162 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_parser_c.rb +1438 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_parser_rd.rb +52 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_parser_ruby.rb +2490 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_parser_simple.rb +115 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_rd.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_rd_block_parser.rb +527 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_rd_inline.rb +63 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_rd_inline_parser.rb +173 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_rdoc.rb +280 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_require.rb +25 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_ri_driver.rb +1059 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_ri_paths.rb +46 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_ri_store.rb +466 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_ruby_lex.rb +137 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_rubygems_hook.rb +202 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_single_class.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_stats.rb +588 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_task.rb +120 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_text.rb +542 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_token_stream.rb +42 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_tom_doc.rb +458 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_top_level.rb +313 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/xref_data.rb +76 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/xref_test_case.rb +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-2.8.0/License.txt +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-2.8.0/README.markdown +47 -0
- data/vendor/ruby/1.9.1/gems/rspec-2.8.0/lib/rspec/version.rb +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-2.8.0/lib/rspec.rb +4 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/License.txt +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/README.md +228 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/exe/autospec +13 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/exe/rspec +25 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/Autotest.md +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/README.md +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/Upgrade.md +364 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/README.md +28 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/example_name_option.feature +86 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/exit_status.feature +83 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/format_option.feature +81 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/init.feature +18 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/line_number_appended_to_path.feature +140 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/line_number_option.feature +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/order.feature +29 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/pattern_option.feature +31 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/rake_task.feature +68 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/ruby.feature +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/tag.feature +91 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/configuration/alias_example_to.feature +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/configuration/custom_settings.feature +84 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/configuration/default_path.feature +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/configuration/fail_fast.feature +77 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/configuration/read_options_from_file.feature +87 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/example_groups/basic_structure.feature +55 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/example_groups/shared_context.feature +74 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/example_groups/shared_examples.feature +204 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/expectation_framework_integration/configure_expectation_framework.feature +73 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/filtering/exclusion_filters.feature +139 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/filtering/if_and_unless.feature +168 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/filtering/inclusion_filters.feature +105 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/filtering/run_all_when_everything_filtered.feature +46 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/formatters/custom_formatter.feature +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/formatters/text_formatter.feature +46 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/helper_methods/arbitrary_methods.feature +40 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/helper_methods/let.feature +50 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/helper_methods/modules.feature +149 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/hooks/around_hooks.feature +343 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/hooks/before_and_after_hooks.feature +423 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/hooks/filtering.feature +234 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/metadata/current_example.feature +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/metadata/described_class.feature +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/metadata/user_defined.feature +113 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/mock_framework_integration/use_any_framework.feature +106 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/mock_framework_integration/use_flexmock.feature +96 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/mock_framework_integration/use_mocha.feature +97 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/mock_framework_integration/use_rr.feature +98 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/mock_framework_integration/use_rspec.feature +97 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/pending/pending_examples.feature +229 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/spec_files/arbitrary_file_suffix.feature +13 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/step_definitions/additional_cli_steps.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/subject/attribute_of_subject.feature +122 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/subject/explicit_subject.feature +78 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/subject/implicit_receiver.feature +29 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/subject/implicit_subject.feature +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/support/env.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/autotest/discover.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/autotest/rspec2.rb +73 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/autorun.rb +2 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/backward_compatibility.rb +65 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/command_line.rb +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb +861 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/configuration_options.rb +121 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/deprecation.rb +51 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/drb_command_line.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/drb_options.rb +83 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/dsl.rb +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/example.rb +247 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb +443 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/extensions/instance_eval_with_args.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/extensions/kernel.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/extensions/module_eval_with_args.rb +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/extensions/ordered.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/extensions.rb +4 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/filter_manager.rb +203 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/formatters/base_formatter.rb +174 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/formatters/base_text_formatter.rb +198 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/formatters/documentation_formatter.rb +71 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/formatters/helpers.rb +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/formatters/html_formatter.rb +464 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/formatters/progress_formatter.rb +32 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/formatters/snippet_extractor.rb +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/formatters/text_mate_formatter.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/hooks.rb +415 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/let.rb +103 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/load_path.rb +3 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/metadata.rb +273 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/metadata_hash_builder.rb +97 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/mocking/with_absolutely_nothing.rb +11 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/mocking/with_flexmock.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/mocking/with_mocha.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/mocking/with_rr.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/mocking/with_rspec.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/option_parser.rb +180 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/pending.rb +101 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/project_initializer.rb +81 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/rake_task.rb +179 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/reporter.rb +102 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/ruby_project.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/runner.rb +86 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/shared_context.rb +49 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/shared_example_group.rb +72 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/subject.rb +175 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/version.rb +7 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/world.rb +132 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core.rb +107 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/monkey/spork/test_framework/rspec.rb +10 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/monkey.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/autotest/discover_spec.rb +19 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/autotest/failed_results_re_spec.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/autotest/rspec_spec.rb +123 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/command_line/order_spec.rb +137 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/command_line_spec.rb +166 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/command_line_spec_output.txt +0 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/configuration_options_spec.rb +352 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/configuration_spec.rb +1128 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/deprecations_spec.rb +66 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/drb_command_line_spec.rb +107 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/drb_options_spec.rb +179 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/example_group_spec.rb +1074 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/example_spec.rb +302 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/filter_manager_spec.rb +256 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/base_formatter_spec.rb +80 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/base_text_formatter_spec.rb +344 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/documentation_formatter_spec.rb +66 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/helpers_spec.rb +46 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +410 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/html_formatted-1.8.7.html +409 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/html_formatted-1.9.2.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/html_formatted-1.9.3.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/html_formatter_spec.rb +82 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/progress_formatter_spec.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/snippet_extractor_spec.rb +18 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html +410 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +409 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/text_mate_formatted-1.9.3.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/text_mate_formatter_spec.rb +83 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/hooks_filtering_spec.rb +227 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/hooks_spec.rb +143 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/kernel_extensions_spec.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/let_spec.rb +55 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/metadata_spec.rb +438 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/option_parser_spec.rb +165 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/pending_example_spec.rb +219 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/project_initializer_spec.rb +130 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/rake_task_spec.rb +138 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/reporter_spec.rb +103 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/resources/a_bar.rb +0 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/resources/a_foo.rb +0 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/resources/a_spec.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/resources/custom_example_group_runner.rb +14 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/resources/formatter_specs.rb +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/resources/utf8_encoded.rb +8 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/rspec_matchers_spec.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/ruby_project_spec.rb +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/runner_spec.rb +82 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/shared_context_spec.rb +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/shared_example_group_spec.rb +84 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/subject_spec.rb +199 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/world_spec.rb +134 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core_spec.rb +25 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/spec_helper.rb +98 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/support/config_options_helper.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/support/matchers.rb +65 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/support/shared_example_groups.rb +41 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/support/spec_files.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/License.txt +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/README.md +158 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/README.markdown +49 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/Upgrade.md +53 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/README.md +90 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/be.feature +135 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/be_within.feature +43 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/cover.feature +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/equality.feature +145 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/exist.feature +43 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/expect_change.feature +59 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/expect_error.feature +138 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/have.feature +103 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/include.feature +121 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/match.feature +50 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/operators.feature +221 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/predicates.feature +128 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/respond_to.feature +78 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/satisfy.feature +31 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/throw_symbol.feature +85 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/types.feature +114 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/custom_matchers/access_running_example.feature +53 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/custom_matchers/define_diffable_matcher.feature +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/custom_matchers/define_matcher.feature +340 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/custom_matchers/define_matcher_outside_rspec.feature +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/custom_matchers/define_matcher_with_fluent_interface.feature +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/customized_message.feature +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/diffing.feature +85 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/implicit_docstrings.feature +52 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/step_definitions/additional_cli_steps.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/support/env.rb +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/test_frameworks/test_unit.feature +46 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations/deprecation.rb +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations/differ.rb +76 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations/errors.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations/extensions/array.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations/extensions/kernel.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations/extensions/object.rb +39 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations/extensions.rb +3 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations/fail_with.rb +54 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations/handler.rb +50 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations/version.rb +8 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/base_matcher.rb +56 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/be.rb +232 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/be_close.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/be_instance_of.rb +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/be_kind_of.rb +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/be_within.rb +47 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/block_aliases.rb +20 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/change.rb +197 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/compatibility.rb +14 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/cover.rb +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/dsl.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/eq.rb +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/eql.rb +35 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/equal.rb +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/errors.rb +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/exist.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/extensions/instance_eval_with_args.rb +39 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/generated_descriptions.rb +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/has.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/have.rb +162 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/include.rb +66 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/match.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/match_array.rb +65 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/matcher.rb +268 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/method_missing.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/operator_matcher.rb +85 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/pretty.rb +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/raise_error.rb +116 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/respond_to.rb +80 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/satisfy.rb +46 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/throw_symbol.rb +112 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers.rb +206 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec-expectations.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/expectations/differ_spec.rb +144 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/expectations/extensions/kernel_spec.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/expectations/fail_with_spec.rb +70 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/expectations/handler_spec.rb +206 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/base_matcher_spec.rb +53 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/be_close_spec.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/be_instance_of_spec.rb +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/be_kind_of_spec.rb +33 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/be_spec.rb +452 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/be_within_spec.rb +64 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/change_spec.rb +522 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/compatibility_spec.rb +28 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/cover_spec.rb +65 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/description_generation_spec.rb +176 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/dsl_spec.rb +8 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/eq_spec.rb +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/eql_spec.rb +37 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/equal_spec.rb +57 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/exist_spec.rb +104 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/has_spec.rb +113 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/have_spec.rb +458 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/include_spec.rb +351 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/match_array_spec.rb +108 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/match_spec.rb +57 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/matcher_spec.rb +420 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/matchers_spec.rb +31 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/method_missing_spec.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/operator_matcher_spec.rb +221 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/raise_error_spec.rb +339 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/respond_to_spec.rb +292 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/satisfy_spec.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/throw_symbol_spec.rb +113 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/spec_helper.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/support/classes.rb +56 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/support/matchers.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/support/ruby_version.rb +10 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/License.txt +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/README.md +257 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/README.markdown +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/Scope.md +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/Upgrade.md +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/argument_matchers/README.md +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/argument_matchers/explicit.feature +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/argument_matchers/general_matchers.feature +85 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/argument_matchers/type_matchers.feature +25 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/message_expectations/README.md +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/message_expectations/any_instance.feature +21 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/message_expectations/block_local_expectations.feature.pending +55 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/message_expectations/expect_message.feature +94 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/message_expectations/receive_counts.feature +209 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/message_expectations/warn_when_expectation_is_set_on_nil.feature +50 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/method_stubs/README.md +43 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/method_stubs/any_instance.feature +133 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/method_stubs/as_null_object.feature +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/method_stubs/simple_return_value.feature +64 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/method_stubs/stub_chain.feature +51 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/method_stubs/stub_implementation.feature +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/method_stubs/to_ary.feature +47 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/outside_rspec/configuration.feature +82 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/outside_rspec/standalone.feature +32 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/step_definitions/additional_cli_steps.rb +4 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/support/env.rb +6 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/any_instance/chain.rb +158 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/any_instance/message_chains.rb +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/any_instance/recorder.rb +192 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/any_instance.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/argument_expectation.rb +55 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/argument_matchers.rb +230 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/error_generator.rb +107 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/errors.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/example_methods.rb +54 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/extensions/instance_exec.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/extensions/marshal.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/extensions/psych.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/framework.rb +18 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/message_expectation.rb +501 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/method_double.rb +190 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/methods.rb +150 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/mock.rb +81 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/order_group.rb +33 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/proxy.rb +179 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/serialization.rb +32 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/space.rb +29 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/standalone.rb +3 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/version.rb +7 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks.rb +39 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/spec/mocks.rb +2 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/and_yield_spec.rb +114 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/any_instance/message_chains_spec.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/any_instance_spec.rb +785 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/any_number_of_times_spec.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/argument_expectation_spec.rb +37 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/at_least_spec.rb +103 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/at_most_spec.rb +99 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/block_return_value_spec.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/bug_report_10260_spec.rb +8 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/bug_report_10263_spec.rb +25 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/bug_report_11545_spec.rb +32 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/bug_report_496_spec.rb +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/bug_report_600_spec.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/bug_report_7611_spec.rb +16 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/bug_report_8165_spec.rb +31 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/bug_report_830_spec.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/bug_report_957_spec.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/double_spec.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/failing_argument_matchers_spec.rb +95 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/hash_excluding_matcher_spec.rb +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/hash_including_matcher_spec.rb +90 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/mock_ordering_spec.rb +94 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/mock_space_spec.rb +54 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/mock_spec.rb +702 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/multiple_return_value_spec.rb +188 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/nil_expectation_warning_spec.rb +62 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/null_object_mock_spec.rb +78 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/once_counts_spec.rb +53 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/options_hash_spec.rb +35 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/partial_mock_spec.rb +156 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb +95 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/passing_argument_matchers_spec.rb +142 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/precise_counts_spec.rb +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/record_messages_spec.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/serialization_spec.rb +111 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/stash_spec.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/stub_chain_spec.rb +149 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/stub_implementation_spec.rb +68 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/stub_spec.rb +238 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/stubbed_message_expectations_spec.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/to_ary_spec.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/twice_counts_spec.rb +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks_spec.rb +51 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/spec_helper.rb +53 -0
- data/vendor/ruby/1.9.1/specifications/gemcutter-0.7.1.gemspec +44 -0
- data/vendor/ruby/1.9.1/specifications/json-1.6.4.gemspec +39 -0
- data/vendor/ruby/1.9.1/specifications/json_pure-1.6.4.gemspec +41 -0
- data/vendor/ruby/1.9.1/specifications/rdoc-3.12.gemspec +51 -0
- data/vendor/ruby/1.9.1/specifications/rspec-2.8.0.gemspec +39 -0
- data/vendor/ruby/1.9.1/specifications/rspec-core-2.8.0.gemspec +32 -0
- data/vendor/ruby/1.9.1/specifications/rspec-expectations-2.8.0.gemspec +33 -0
- data/vendor/ruby/1.9.1/specifications/rspec-mocks-2.8.0.gemspec +30 -0
- metadata +899 -4
@@ -0,0 +1,54 @@
|
|
1
|
+
module RSpec
|
2
|
+
module Mocks
|
3
|
+
module ExampleMethods
|
4
|
+
include RSpec::Mocks::ArgumentMatchers
|
5
|
+
|
6
|
+
# Creates an instance of RSpec::Mocks::Mock.
|
7
|
+
#
|
8
|
+
# `name` is used for failure reporting, so you should use the role that
|
9
|
+
# the mock is playing in the example.
|
10
|
+
#
|
11
|
+
# Use `stubs` to declare one or more method stubs in one statement.
|
12
|
+
#
|
13
|
+
# @example
|
14
|
+
#
|
15
|
+
# book = double("book", :title => "The RSpec Book")
|
16
|
+
# book.title #=> "The RSpec Book"
|
17
|
+
#
|
18
|
+
# card = double("card", :suit => "Spades", :rank => "A")
|
19
|
+
# card.suit #=> "Spades"
|
20
|
+
# card.rank #=> "A"
|
21
|
+
def double(*args)
|
22
|
+
declare_double('Double', *args)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Just like double
|
26
|
+
def mock(*args)
|
27
|
+
declare_double('Mock', *args)
|
28
|
+
end
|
29
|
+
|
30
|
+
# Just like double
|
31
|
+
def stub(*args)
|
32
|
+
declare_double('Stub', *args)
|
33
|
+
end
|
34
|
+
|
35
|
+
# Disables warning messages about expectations being set on nil.
|
36
|
+
#
|
37
|
+
# By default warning messages are issued when expectations are set on
|
38
|
+
# nil. This is to prevent false-positives and to catch potential bugs
|
39
|
+
# early on.
|
40
|
+
def allow_message_expectations_on_nil
|
41
|
+
Proxy.allow_message_expectations_on_nil
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def declare_double(declared_as, *args)
|
47
|
+
args << {} unless Hash === args.last
|
48
|
+
args.last[:__declared_as] = declared_as
|
49
|
+
RSpec::Mocks::Mock.new(*args)
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module RSpec
|
2
|
+
module Mocks
|
3
|
+
# @private
|
4
|
+
module InstanceExec
|
5
|
+
unless respond_to?(:instance_exec)
|
6
|
+
# @private
|
7
|
+
#
|
8
|
+
# based on Bounded Spec InstanceExec (Mauricio Fernandez)
|
9
|
+
# http://eigenclass.org/hiki/bounded+space+instance_exec
|
10
|
+
# - uses singleton_class of matcher instead of global
|
11
|
+
# InstanceExecHelper module
|
12
|
+
# - this keeps it scoped to this class only, which is the
|
13
|
+
# only place we need it
|
14
|
+
# - only necessary for ruby 1.8.6
|
15
|
+
def instance_exec(*args, &block)
|
16
|
+
singleton_class = (class << self; self; end)
|
17
|
+
begin
|
18
|
+
orig_critical, Thread.critical = Thread.critical, true
|
19
|
+
n = 0
|
20
|
+
n += 1 while respond_to?(method_name="__instance_exec#{n}")
|
21
|
+
singleton_class.module_eval{ define_method(method_name, &block) }
|
22
|
+
ensure
|
23
|
+
Thread.critical = orig_critical
|
24
|
+
end
|
25
|
+
begin
|
26
|
+
return send(method_name, *args)
|
27
|
+
ensure
|
28
|
+
singleton_class.module_eval{ remove_method(method_name) } rescue nil
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Marshal
|
2
|
+
class << self
|
3
|
+
def dump_with_mocks(*args)
|
4
|
+
object = args.shift
|
5
|
+
return dump_without_mocks(*args.unshift(object)) unless object.instance_variable_defined?(:@mock_proxy)
|
6
|
+
|
7
|
+
mp = object.instance_variable_get(:@mock_proxy)
|
8
|
+
return dump_without_mocks(*args.unshift(object)) unless mp.is_a?(::RSpec::Mocks::Proxy)
|
9
|
+
|
10
|
+
object.__send__(:remove_instance_variable, :@mock_proxy)
|
11
|
+
|
12
|
+
begin
|
13
|
+
dump_without_mocks(*args.unshift(object.dup))
|
14
|
+
ensure
|
15
|
+
object.instance_variable_set(:@mock_proxy,mp)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
alias_method :dump_without_mocks, :dump
|
20
|
+
undef_method :dump
|
21
|
+
alias_method :dump, :dump_with_mocks
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
if defined?(Psych) && Psych.respond_to?(:dump)
|
2
|
+
module Psych
|
3
|
+
class << self
|
4
|
+
def dump_with_mocks(object, *args)
|
5
|
+
return dump_without_mocks(object, *args) unless object.instance_variable_defined?(:@mock_proxy)
|
6
|
+
|
7
|
+
mp = object.instance_variable_get(:@mock_proxy)
|
8
|
+
return dump_without_mocks(object, *args) unless mp.is_a?(::RSpec::Mocks::Proxy)
|
9
|
+
|
10
|
+
object.__send__(:remove_instance_variable, :@mock_proxy)
|
11
|
+
|
12
|
+
begin
|
13
|
+
dump_without_mocks(object, *args)
|
14
|
+
ensure
|
15
|
+
object.instance_variable_set(:@mock_proxy,mp)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
alias_method :dump_without_mocks, :dump
|
20
|
+
alias_method :dump, :dump_with_mocks
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Require everything except the global extensions of class and object. This
|
2
|
+
# supports wrapping rspec's mocking functionality without invading every
|
3
|
+
# object in the system.
|
4
|
+
|
5
|
+
require 'rspec/mocks/extensions/instance_exec'
|
6
|
+
require 'rspec/mocks/method_double'
|
7
|
+
require 'rspec/mocks/methods'
|
8
|
+
require 'rspec/mocks/argument_matchers'
|
9
|
+
require 'rspec/mocks/proxy'
|
10
|
+
require 'rspec/mocks/mock'
|
11
|
+
require 'rspec/mocks/argument_expectation'
|
12
|
+
require 'rspec/mocks/message_expectation'
|
13
|
+
require 'rspec/mocks/order_group'
|
14
|
+
require 'rspec/mocks/errors'
|
15
|
+
require 'rspec/mocks/error_generator'
|
16
|
+
require 'rspec/mocks/space'
|
17
|
+
require 'rspec/mocks/serialization'
|
18
|
+
require 'rspec/mocks/any_instance'
|
@@ -0,0 +1,501 @@
|
|
1
|
+
module RSpec
|
2
|
+
module Mocks
|
3
|
+
|
4
|
+
class MessageExpectation
|
5
|
+
# @private
|
6
|
+
attr_reader :sym
|
7
|
+
attr_writer :expected_received_count, :method_block, :expected_from
|
8
|
+
protected :expected_received_count=, :method_block=, :expected_from=
|
9
|
+
attr_accessor :error_generator
|
10
|
+
protected :error_generator, :error_generator=
|
11
|
+
|
12
|
+
# @private
|
13
|
+
def initialize(error_generator, expectation_ordering, expected_from, sym, method_block, expected_received_count=1, opts={}, &implementation)
|
14
|
+
@error_generator = error_generator
|
15
|
+
@error_generator.opts = opts
|
16
|
+
@expected_from = expected_from
|
17
|
+
@sym = sym
|
18
|
+
@method_block = method_block
|
19
|
+
@return_block = nil
|
20
|
+
@actual_received_count = 0
|
21
|
+
@expected_received_count = expected_received_count
|
22
|
+
@args_expectation = ArgumentExpectation.new(ArgumentMatchers::AnyArgsMatcher.new)
|
23
|
+
@consecutive = false
|
24
|
+
@exception_to_raise = nil
|
25
|
+
@args_to_throw = []
|
26
|
+
@order_group = expectation_ordering
|
27
|
+
@at_least = nil
|
28
|
+
@at_most = nil
|
29
|
+
@exactly = nil
|
30
|
+
@args_to_yield = []
|
31
|
+
@failed_fast = nil
|
32
|
+
@args_to_yield_were_cloned = false
|
33
|
+
@return_block = implementation
|
34
|
+
@eval_context = nil
|
35
|
+
end
|
36
|
+
|
37
|
+
# @private
|
38
|
+
def build_child(expected_from, method_block, expected_received_count, opts={})
|
39
|
+
child = clone
|
40
|
+
child.expected_from = expected_from
|
41
|
+
child.method_block = method_block
|
42
|
+
child.expected_received_count = expected_received_count
|
43
|
+
child.clear_actual_received_count!
|
44
|
+
new_gen = error_generator.clone
|
45
|
+
new_gen.opts = opts
|
46
|
+
child.error_generator = new_gen
|
47
|
+
child.clone_args_to_yield(*@args_to_yield)
|
48
|
+
child
|
49
|
+
end
|
50
|
+
|
51
|
+
# @private
|
52
|
+
def expected_args
|
53
|
+
@args_expectation.args
|
54
|
+
end
|
55
|
+
|
56
|
+
# @overload and_return(value)
|
57
|
+
# @overload and_return(first_value, second_value)
|
58
|
+
# @overload and_return(&block)
|
59
|
+
#
|
60
|
+
# Tells the object to return a value when it receives the message. Given
|
61
|
+
# more than one value, the first value is returned the first time the
|
62
|
+
# message is received, the second value is returned the next time, etc,
|
63
|
+
# etc.
|
64
|
+
#
|
65
|
+
# If the message is received more times than there are values, the last
|
66
|
+
# value is received for every subsequent call.
|
67
|
+
#
|
68
|
+
# The block format is still supported, but is unofficially deprecated in
|
69
|
+
# favor of just passing a block to the stub method.
|
70
|
+
#
|
71
|
+
# @example
|
72
|
+
#
|
73
|
+
# counter.stub(:count).and_return(1)
|
74
|
+
# counter.count # => 1
|
75
|
+
# counter.count # => 1
|
76
|
+
#
|
77
|
+
# counter.stub(:count).and_return(1,2,3)
|
78
|
+
# counter.count # => 1
|
79
|
+
# counter.count # => 2
|
80
|
+
# counter.count # => 3
|
81
|
+
# counter.count # => 3
|
82
|
+
# counter.count # => 3
|
83
|
+
# # etc
|
84
|
+
#
|
85
|
+
# # Supported, but ...
|
86
|
+
# counter.stub(:count).and_return { 1 }
|
87
|
+
# counter.count # => 1
|
88
|
+
#
|
89
|
+
# # ... this is prefered
|
90
|
+
# counter.stub(:count) { 1 }
|
91
|
+
# counter.count # => 1
|
92
|
+
def and_return(*values, &return_block)
|
93
|
+
Kernel::raise AmbiguousReturnError unless @method_block.nil?
|
94
|
+
case values.size
|
95
|
+
when 0 then value = nil
|
96
|
+
when 1 then value = values[0]
|
97
|
+
else
|
98
|
+
value = values
|
99
|
+
@consecutive = true
|
100
|
+
@expected_received_count = values.size if !ignoring_args? &&
|
101
|
+
@expected_received_count < values.size
|
102
|
+
end
|
103
|
+
@return_block = block_given? ? return_block : lambda { value }
|
104
|
+
end
|
105
|
+
|
106
|
+
# @overload and_raise
|
107
|
+
# @overload and_raise(ExceptionClass)
|
108
|
+
# @overload and_raise(exception_instance)
|
109
|
+
#
|
110
|
+
# Tells the object to raise an exception when the message is received.
|
111
|
+
#
|
112
|
+
# @note
|
113
|
+
#
|
114
|
+
# When you pass an exception class, the MessageExpectation will raise
|
115
|
+
# an instance of it, creating it with `new`. If the exception class
|
116
|
+
# initializer requires any parameters, you must pass in an instance and
|
117
|
+
# not the class.
|
118
|
+
#
|
119
|
+
# @example
|
120
|
+
#
|
121
|
+
# car.stub(:go).and_raise
|
122
|
+
# car.stub(:go).and_raise(OutOfGas)
|
123
|
+
# car.stub(:go).and_raise(OutOfGas.new(2, :oz))
|
124
|
+
def and_raise(exception=Exception)
|
125
|
+
@exception_to_raise = exception
|
126
|
+
end
|
127
|
+
|
128
|
+
# @overload and_throw(symbol)
|
129
|
+
# @overload and_throw(symbol, object)
|
130
|
+
#
|
131
|
+
# Tells the object to throw a symbol (with the object if that form is
|
132
|
+
# used) when the message is received.
|
133
|
+
#
|
134
|
+
# @example
|
135
|
+
#
|
136
|
+
# car.stub(:go).and_throw(:out_of_gas)
|
137
|
+
# car.stub(:go).and_throw(:out_of_gas, :level => 0.1)
|
138
|
+
def and_throw(symbol, object = nil)
|
139
|
+
@args_to_throw << symbol
|
140
|
+
@args_to_throw << object if object
|
141
|
+
end
|
142
|
+
|
143
|
+
# Tells the object to yield one or more args to a block when the message
|
144
|
+
# is received.
|
145
|
+
#
|
146
|
+
# @example
|
147
|
+
#
|
148
|
+
# stream.stub(:open).and_yield(StringIO.new)
|
149
|
+
def and_yield(*args, &block)
|
150
|
+
if @args_to_yield_were_cloned
|
151
|
+
@args_to_yield.clear
|
152
|
+
@args_to_yield_were_cloned = false
|
153
|
+
end
|
154
|
+
|
155
|
+
if block
|
156
|
+
@eval_context = Object.new
|
157
|
+
@eval_context.extend RSpec::Mocks::InstanceExec
|
158
|
+
yield @eval_context
|
159
|
+
end
|
160
|
+
|
161
|
+
@args_to_yield << args
|
162
|
+
self
|
163
|
+
end
|
164
|
+
|
165
|
+
# @private
|
166
|
+
def matches?(sym, *args)
|
167
|
+
@sym == sym and @args_expectation.args_match?(*args)
|
168
|
+
end
|
169
|
+
|
170
|
+
# @private
|
171
|
+
def invoke(*args, &block)
|
172
|
+
if @expected_received_count == 0
|
173
|
+
@failed_fast = true
|
174
|
+
@actual_received_count += 1
|
175
|
+
@error_generator.raise_expectation_error(@sym, @expected_received_count, @actual_received_count, *args)
|
176
|
+
end
|
177
|
+
|
178
|
+
@order_group.handle_order_constraint self
|
179
|
+
|
180
|
+
begin
|
181
|
+
Kernel::raise(@exception_to_raise) unless @exception_to_raise.nil?
|
182
|
+
Kernel::throw(*@args_to_throw) unless @args_to_throw.empty?
|
183
|
+
|
184
|
+
default_return_val = if !@method_block.nil?
|
185
|
+
invoke_method_block(*args, &block)
|
186
|
+
elsif !@args_to_yield.empty? || @eval_context
|
187
|
+
invoke_with_yield(&block)
|
188
|
+
else
|
189
|
+
nil
|
190
|
+
end
|
191
|
+
|
192
|
+
if @consecutive
|
193
|
+
invoke_consecutive_return_block(*args, &block)
|
194
|
+
elsif @return_block
|
195
|
+
invoke_return_block(*args, &block)
|
196
|
+
else
|
197
|
+
default_return_val
|
198
|
+
end
|
199
|
+
ensure
|
200
|
+
@actual_received_count += 1
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
# @private
|
205
|
+
def called_max_times?
|
206
|
+
@expected_received_count != :any && @expected_received_count > 0 &&
|
207
|
+
@actual_received_count >= @expected_received_count
|
208
|
+
end
|
209
|
+
|
210
|
+
# @private
|
211
|
+
def matches_name_but_not_args(sym, *args)
|
212
|
+
@sym == sym and not @args_expectation.args_match?(*args)
|
213
|
+
end
|
214
|
+
|
215
|
+
# @private
|
216
|
+
def verify_messages_received
|
217
|
+
generate_error unless expected_messages_received? || failed_fast?
|
218
|
+
rescue RSpec::Mocks::MockExpectationError => error
|
219
|
+
error.backtrace.insert(0, @expected_from)
|
220
|
+
Kernel::raise error
|
221
|
+
end
|
222
|
+
|
223
|
+
# @private
|
224
|
+
def expected_messages_received?
|
225
|
+
ignoring_args? || matches_exact_count? || matches_at_least_count? || matches_at_most_count?
|
226
|
+
end
|
227
|
+
|
228
|
+
# @private
|
229
|
+
def ignoring_args?
|
230
|
+
@expected_received_count == :any
|
231
|
+
end
|
232
|
+
|
233
|
+
# @private
|
234
|
+
def matches_at_least_count?
|
235
|
+
@at_least && @actual_received_count >= @expected_received_count
|
236
|
+
end
|
237
|
+
|
238
|
+
# @private
|
239
|
+
def matches_at_most_count?
|
240
|
+
@at_most && @actual_received_count <= @expected_received_count
|
241
|
+
end
|
242
|
+
|
243
|
+
# @private
|
244
|
+
def matches_exact_count?
|
245
|
+
@expected_received_count == @actual_received_count
|
246
|
+
end
|
247
|
+
|
248
|
+
# @private
|
249
|
+
def similar_messages
|
250
|
+
@similar_messages ||= []
|
251
|
+
end
|
252
|
+
|
253
|
+
# @private
|
254
|
+
def advise(*args)
|
255
|
+
similar_messages << args
|
256
|
+
end
|
257
|
+
|
258
|
+
# @private
|
259
|
+
def generate_error
|
260
|
+
if similar_messages.empty?
|
261
|
+
@error_generator.raise_expectation_error(@sym, @expected_received_count, @actual_received_count, *@args_expectation.args)
|
262
|
+
else
|
263
|
+
@error_generator.raise_similar_message_args_error(self, *@similar_messages)
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
267
|
+
# Constrains a stub or message expectation to invocations with specific
|
268
|
+
# arguments.
|
269
|
+
#
|
270
|
+
# With a stub, if the message might be received with other args as well,
|
271
|
+
# you should stub a default value first, and then stub or mock the same
|
272
|
+
# message using `with` to constrain to specific arguments.
|
273
|
+
#
|
274
|
+
# A message expectation will fail if the message is received with different
|
275
|
+
# arguments.
|
276
|
+
#
|
277
|
+
# @example
|
278
|
+
#
|
279
|
+
# cart.stub(:add) { :failure }
|
280
|
+
# cart.stub(:add).with(Book.new(:isbn => 1934356379)) { :success }
|
281
|
+
# cart.add(Book.new(:isbn => 1234567890))
|
282
|
+
# # => :failure
|
283
|
+
# cart.add(Book.new(:isbn => 1934356379))
|
284
|
+
# # => :success
|
285
|
+
#
|
286
|
+
# cart.should_receive(:add).with(Book.new(:isbn => 1934356379)) { :success }
|
287
|
+
# cart.add(Book.new(:isbn => 1234567890))
|
288
|
+
# # => failed expectation
|
289
|
+
# cart.add(Book.new(:isbn => 1934356379))
|
290
|
+
# # => passes
|
291
|
+
def with(*args, &block)
|
292
|
+
@return_block = block if block_given? unless args.empty?
|
293
|
+
@args_expectation = ArgumentExpectation.new(*args, &block)
|
294
|
+
self
|
295
|
+
end
|
296
|
+
|
297
|
+
# Constrain a message expectation to be received a specific number of
|
298
|
+
# times.
|
299
|
+
#
|
300
|
+
# @example
|
301
|
+
#
|
302
|
+
# dealer.should_recieve(:deal_card).exactly(10).times
|
303
|
+
def exactly(n, &block)
|
304
|
+
@method_block = block if block
|
305
|
+
set_expected_received_count :exactly, n
|
306
|
+
self
|
307
|
+
end
|
308
|
+
|
309
|
+
# Constrain a message expectation to be received at least a specific
|
310
|
+
# number of times.
|
311
|
+
#
|
312
|
+
# @example
|
313
|
+
#
|
314
|
+
# dealer.should_recieve(:deal_card).at_least(9).times
|
315
|
+
def at_least(n, &block)
|
316
|
+
@method_block = block if block
|
317
|
+
set_expected_received_count :at_least, n
|
318
|
+
self
|
319
|
+
end
|
320
|
+
|
321
|
+
# Constrain a message expectation to be received at most a specific
|
322
|
+
# number of times.
|
323
|
+
#
|
324
|
+
# @example
|
325
|
+
#
|
326
|
+
# dealer.should_recieve(:deal_card).at_most(10).times
|
327
|
+
def at_most(n, &block)
|
328
|
+
@method_block = block if block
|
329
|
+
set_expected_received_count :at_most, n
|
330
|
+
self
|
331
|
+
end
|
332
|
+
|
333
|
+
# Syntactic sugar for `exactly`, `at_least` and `at_most`
|
334
|
+
#
|
335
|
+
# @example
|
336
|
+
#
|
337
|
+
# dealer.should_recieve(:deal_card).exactly(10).times
|
338
|
+
# dealer.should_recieve(:deal_card).at_least(10).times
|
339
|
+
# dealer.should_recieve(:deal_card).at_most(10).times
|
340
|
+
def times(&block)
|
341
|
+
@method_block = block if block
|
342
|
+
self
|
343
|
+
end
|
344
|
+
|
345
|
+
|
346
|
+
# Allows an expected message to be received any number of times.
|
347
|
+
def any_number_of_times(&block)
|
348
|
+
@method_block = block if block
|
349
|
+
@expected_received_count = :any
|
350
|
+
self
|
351
|
+
end
|
352
|
+
|
353
|
+
# Expect a message not to be received at all.
|
354
|
+
#
|
355
|
+
# @example
|
356
|
+
#
|
357
|
+
# car.should_receive(:stop).never
|
358
|
+
def never
|
359
|
+
@expected_received_count = 0
|
360
|
+
self
|
361
|
+
end
|
362
|
+
|
363
|
+
# Expect a message to be received exactly one time.
|
364
|
+
#
|
365
|
+
# @example
|
366
|
+
#
|
367
|
+
# car.should_receive(:go).once
|
368
|
+
def once(&block)
|
369
|
+
@method_block = block if block
|
370
|
+
set_expected_received_count :exactly, 1
|
371
|
+
self
|
372
|
+
end
|
373
|
+
|
374
|
+
# Expect a message to be received exactly two times.
|
375
|
+
#
|
376
|
+
# @example
|
377
|
+
#
|
378
|
+
# car.should_receive(:go).twice
|
379
|
+
def twice(&block)
|
380
|
+
@method_block = block if block
|
381
|
+
set_expected_received_count :exactly, 2
|
382
|
+
self
|
383
|
+
end
|
384
|
+
|
385
|
+
# Expect messages to be received in a specific order.
|
386
|
+
#
|
387
|
+
# @example
|
388
|
+
#
|
389
|
+
# api.should_receive(:prepare).ordered
|
390
|
+
# api.should_receive(:run).ordered
|
391
|
+
# api.should_receive(:finish).ordered
|
392
|
+
def ordered(&block)
|
393
|
+
@method_block = block if block
|
394
|
+
@order_group.register(self)
|
395
|
+
@ordered = true
|
396
|
+
self
|
397
|
+
end
|
398
|
+
|
399
|
+
# @private
|
400
|
+
def negative_expectation_for?(sym)
|
401
|
+
return false
|
402
|
+
end
|
403
|
+
|
404
|
+
# @private
|
405
|
+
def actual_received_count_matters?
|
406
|
+
@at_least || @at_most || @exactly
|
407
|
+
end
|
408
|
+
|
409
|
+
# @private
|
410
|
+
def increase_actual_received_count!
|
411
|
+
@actual_received_count += 1
|
412
|
+
end
|
413
|
+
|
414
|
+
protected
|
415
|
+
|
416
|
+
def invoke_method_block(*args, &block)
|
417
|
+
begin
|
418
|
+
@method_block.call(*args, &block)
|
419
|
+
rescue => detail
|
420
|
+
@error_generator.raise_block_failed_error(@sym, detail.message)
|
421
|
+
end
|
422
|
+
end
|
423
|
+
|
424
|
+
def invoke_with_yield(&block)
|
425
|
+
if block.nil?
|
426
|
+
@error_generator.raise_missing_block_error @args_to_yield
|
427
|
+
end
|
428
|
+
value = nil
|
429
|
+
@args_to_yield.each do |args_to_yield_this_time|
|
430
|
+
if block.arity > -1 && args_to_yield_this_time.length != block.arity
|
431
|
+
@error_generator.raise_wrong_arity_error args_to_yield_this_time, block.arity
|
432
|
+
end
|
433
|
+
value = eval_block(*args_to_yield_this_time, &block)
|
434
|
+
end
|
435
|
+
value
|
436
|
+
end
|
437
|
+
|
438
|
+
def eval_block(*args, &block)
|
439
|
+
if @eval_context
|
440
|
+
@eval_context.instance_exec(*args, &block)
|
441
|
+
else
|
442
|
+
block.call(*args)
|
443
|
+
end
|
444
|
+
end
|
445
|
+
|
446
|
+
def invoke_consecutive_return_block(*args, &block)
|
447
|
+
value = invoke_return_block(*args, &block)
|
448
|
+
index = [@actual_received_count, value.size-1].min
|
449
|
+
value[index]
|
450
|
+
end
|
451
|
+
|
452
|
+
def invoke_return_block(*args, &block)
|
453
|
+
args << block unless block.nil?
|
454
|
+
# Ruby 1.9 - when we set @return_block to return values
|
455
|
+
# regardless of arguments, any arguments will result in
|
456
|
+
# a "wrong number of arguments" error
|
457
|
+
@return_block.arity == 0 ? @return_block.call : @return_block.call(*args)
|
458
|
+
end
|
459
|
+
|
460
|
+
def clone_args_to_yield(*args)
|
461
|
+
@args_to_yield = args.clone
|
462
|
+
@args_to_yield_were_cloned = true
|
463
|
+
end
|
464
|
+
|
465
|
+
def failed_fast?
|
466
|
+
@failed_fast
|
467
|
+
end
|
468
|
+
|
469
|
+
def set_expected_received_count(relativity, n)
|
470
|
+
@at_least = (relativity == :at_least)
|
471
|
+
@at_most = (relativity == :at_most)
|
472
|
+
@exactly = (relativity == :exactly)
|
473
|
+
@expected_received_count = case n
|
474
|
+
when Numeric
|
475
|
+
n
|
476
|
+
when :once
|
477
|
+
1
|
478
|
+
when :twice
|
479
|
+
2
|
480
|
+
end
|
481
|
+
end
|
482
|
+
|
483
|
+
def clear_actual_received_count!
|
484
|
+
@actual_received_count = 0
|
485
|
+
end
|
486
|
+
end
|
487
|
+
|
488
|
+
# @private
|
489
|
+
class NegativeMessageExpectation < MessageExpectation
|
490
|
+
# @private
|
491
|
+
def initialize(message, expectation_ordering, expected_from, sym, method_block)
|
492
|
+
super(message, expectation_ordering, expected_from, sym, method_block, 0)
|
493
|
+
end
|
494
|
+
|
495
|
+
# @private
|
496
|
+
def negative_expectation_for?(sym)
|
497
|
+
return @sym == sym
|
498
|
+
end
|
499
|
+
end
|
500
|
+
end
|
501
|
+
end
|