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,1136 @@
|
|
1
|
+
require 'cgi'
|
2
|
+
|
3
|
+
##
|
4
|
+
# A Context is something that can hold modules, classes, methods, attributes,
|
5
|
+
# aliases, requires, and includes. Classes, modules, and files are all
|
6
|
+
# Contexts.
|
7
|
+
|
8
|
+
class RDoc::Context < RDoc::CodeObject
|
9
|
+
|
10
|
+
include Comparable
|
11
|
+
|
12
|
+
##
|
13
|
+
# Types of methods
|
14
|
+
|
15
|
+
TYPES = %w[class instance]
|
16
|
+
|
17
|
+
##
|
18
|
+
# If a context has these titles it will be sorted in this order.
|
19
|
+
|
20
|
+
TOMDOC_TITLES = [nil, 'Public', 'Internal', 'Deprecated'] # :nodoc:
|
21
|
+
TOMDOC_TITLES_SORT = TOMDOC_TITLES.sort_by { |title| title.to_s } # :nodoc:
|
22
|
+
|
23
|
+
##
|
24
|
+
# Class/module aliases
|
25
|
+
|
26
|
+
attr_reader :aliases
|
27
|
+
|
28
|
+
##
|
29
|
+
# All attr* methods
|
30
|
+
|
31
|
+
attr_reader :attributes
|
32
|
+
|
33
|
+
##
|
34
|
+
# Constants defined
|
35
|
+
|
36
|
+
attr_reader :constants
|
37
|
+
|
38
|
+
##
|
39
|
+
# Sets the current documentation section of documentation
|
40
|
+
|
41
|
+
attr_writer :current_section
|
42
|
+
|
43
|
+
##
|
44
|
+
# Files this context is found in
|
45
|
+
|
46
|
+
attr_reader :in_files
|
47
|
+
|
48
|
+
##
|
49
|
+
# Modules this context includes
|
50
|
+
|
51
|
+
attr_reader :includes
|
52
|
+
|
53
|
+
##
|
54
|
+
# Methods defined in this context
|
55
|
+
|
56
|
+
attr_reader :method_list
|
57
|
+
|
58
|
+
##
|
59
|
+
# Name of this class excluding namespace. See also full_name
|
60
|
+
|
61
|
+
attr_reader :name
|
62
|
+
|
63
|
+
##
|
64
|
+
# Files this context requires
|
65
|
+
|
66
|
+
attr_reader :requires
|
67
|
+
|
68
|
+
##
|
69
|
+
# Use this section for the next method, attribute or constant added.
|
70
|
+
|
71
|
+
attr_accessor :temporary_section
|
72
|
+
|
73
|
+
##
|
74
|
+
# Hash <tt>old_name => [aliases]</tt>, for aliases
|
75
|
+
# that haven't (yet) been resolved to a method/attribute.
|
76
|
+
# (Not to be confused with the aliases of the context.)
|
77
|
+
|
78
|
+
attr_accessor :unmatched_alias_lists
|
79
|
+
|
80
|
+
##
|
81
|
+
# Aliases that could not eventually be resolved.
|
82
|
+
|
83
|
+
attr_reader :external_aliases
|
84
|
+
|
85
|
+
##
|
86
|
+
# Current visibility of this context
|
87
|
+
|
88
|
+
attr_accessor :visibility
|
89
|
+
|
90
|
+
##
|
91
|
+
# Hash of registered methods. Attributes are also registered here,
|
92
|
+
# twice if they are RW.
|
93
|
+
|
94
|
+
attr_reader :methods_hash
|
95
|
+
|
96
|
+
##
|
97
|
+
# Hash of registered constants.
|
98
|
+
|
99
|
+
attr_reader :constants_hash
|
100
|
+
|
101
|
+
##
|
102
|
+
# Creates an unnamed empty context with public current visibility
|
103
|
+
|
104
|
+
def initialize
|
105
|
+
super
|
106
|
+
|
107
|
+
@in_files = []
|
108
|
+
|
109
|
+
@name ||= "unknown"
|
110
|
+
@parent = nil
|
111
|
+
@visibility = :public
|
112
|
+
|
113
|
+
@current_section = Section.new self, nil, nil
|
114
|
+
@sections = { nil => @current_section }
|
115
|
+
@temporary_section = nil
|
116
|
+
|
117
|
+
@classes = {}
|
118
|
+
@modules = {}
|
119
|
+
|
120
|
+
initialize_methods_etc
|
121
|
+
end
|
122
|
+
|
123
|
+
##
|
124
|
+
# Sets the defaults for methods and so-forth
|
125
|
+
|
126
|
+
def initialize_methods_etc
|
127
|
+
@method_list = []
|
128
|
+
@attributes = []
|
129
|
+
@aliases = []
|
130
|
+
@requires = []
|
131
|
+
@includes = []
|
132
|
+
@constants = []
|
133
|
+
@external_aliases = []
|
134
|
+
|
135
|
+
# This Hash maps a method name to a list of unmatched aliases (aliases of
|
136
|
+
# a method not yet encountered).
|
137
|
+
@unmatched_alias_lists = {}
|
138
|
+
|
139
|
+
@methods_hash = {}
|
140
|
+
@constants_hash = {}
|
141
|
+
end
|
142
|
+
|
143
|
+
##
|
144
|
+
# Contexts are sorted by full_name
|
145
|
+
|
146
|
+
def <=>(other)
|
147
|
+
full_name <=> other.full_name
|
148
|
+
end
|
149
|
+
|
150
|
+
##
|
151
|
+
# Adds +an_alias+ that is automatically resolved
|
152
|
+
|
153
|
+
def add_alias an_alias
|
154
|
+
return an_alias unless @document_self
|
155
|
+
|
156
|
+
method_attr = find_method(an_alias.old_name, an_alias.singleton) ||
|
157
|
+
find_attribute(an_alias.old_name, an_alias.singleton)
|
158
|
+
|
159
|
+
if method_attr then
|
160
|
+
method_attr.add_alias an_alias, self
|
161
|
+
else
|
162
|
+
add_to @external_aliases, an_alias
|
163
|
+
unmatched_alias_list =
|
164
|
+
@unmatched_alias_lists[an_alias.pretty_old_name] ||= []
|
165
|
+
unmatched_alias_list.push an_alias
|
166
|
+
end
|
167
|
+
|
168
|
+
an_alias
|
169
|
+
end
|
170
|
+
|
171
|
+
##
|
172
|
+
# Adds +attribute+ if not already there. If it is (as method(s) or attribute),
|
173
|
+
# updates the comment if it was empty.
|
174
|
+
#
|
175
|
+
# The attribute is registered only if it defines a new method.
|
176
|
+
# For instance, <tt>attr_reader :foo</tt> will not be registered
|
177
|
+
# if method +foo+ exists, but <tt>attr_accessor :foo</tt> will be registered
|
178
|
+
# if method +foo+ exists, but <tt>foo=</tt> does not.
|
179
|
+
|
180
|
+
def add_attribute attribute
|
181
|
+
return attribute unless @document_self
|
182
|
+
|
183
|
+
# mainly to check for redefinition of an attribute as a method
|
184
|
+
# TODO find a policy for 'attr_reader :foo' + 'def foo=()'
|
185
|
+
register = false
|
186
|
+
|
187
|
+
key = nil
|
188
|
+
|
189
|
+
if attribute.rw.index 'R' then
|
190
|
+
key = attribute.pretty_name
|
191
|
+
known = @methods_hash[key]
|
192
|
+
|
193
|
+
if known then
|
194
|
+
known.comment = attribute.comment if known.comment.empty?
|
195
|
+
elsif registered = @methods_hash[attribute.pretty_name << '='] and
|
196
|
+
RDoc::Attr === registered then
|
197
|
+
registered.rw = 'RW'
|
198
|
+
else
|
199
|
+
@methods_hash[key] = attribute
|
200
|
+
register = true
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
if attribute.rw.index 'W' then
|
205
|
+
key = attribute.pretty_name << '='
|
206
|
+
known = @methods_hash[key]
|
207
|
+
|
208
|
+
if known then
|
209
|
+
known.comment = attribute.comment if known.comment.empty?
|
210
|
+
elsif registered = @methods_hash[attribute.pretty_name] and
|
211
|
+
RDoc::Attr === registered then
|
212
|
+
registered.rw = 'RW'
|
213
|
+
else
|
214
|
+
@methods_hash[key] = attribute
|
215
|
+
register = true
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
if register then
|
220
|
+
attribute.visibility = @visibility
|
221
|
+
add_to @attributes, attribute
|
222
|
+
resolve_aliases attribute
|
223
|
+
end
|
224
|
+
|
225
|
+
attribute
|
226
|
+
end
|
227
|
+
|
228
|
+
##
|
229
|
+
# Adds a class named +given_name+ with +superclass+.
|
230
|
+
#
|
231
|
+
# Both +given_name+ and +superclass+ may contain '::', and are
|
232
|
+
# interpreted relative to the +self+ context. This allows handling correctly
|
233
|
+
# examples like these:
|
234
|
+
# class RDoc::Gauntlet < Gauntlet
|
235
|
+
# module Mod
|
236
|
+
# class Object # implies < ::Object
|
237
|
+
# class SubObject < Object # this is _not_ ::Object
|
238
|
+
#
|
239
|
+
# Given <tt>class Container::Item</tt> RDoc assumes +Container+ is a module
|
240
|
+
# unless it later sees <tt>class Container</tt>. +add_class+ automatically
|
241
|
+
# upgrades +given_name+ to a class in this case.
|
242
|
+
|
243
|
+
def add_class class_type, given_name, superclass = '::Object'
|
244
|
+
# superclass +nil+ is passed by the C parser in the following cases:
|
245
|
+
# - registering Object in 1.8 (correct)
|
246
|
+
# - registering BasicObject in 1.9 (correct)
|
247
|
+
# - registering RubyVM in 1.9 in iseq.c (incorrect: < Object in vm.c)
|
248
|
+
#
|
249
|
+
# If we later find a superclass for a registered class with a nil
|
250
|
+
# superclass, we must honor it.
|
251
|
+
|
252
|
+
# find the name & enclosing context
|
253
|
+
if given_name =~ /^:+(\w+)$/ then
|
254
|
+
full_name = $1
|
255
|
+
enclosing = top_level
|
256
|
+
name = full_name.split(/:+/).last
|
257
|
+
else
|
258
|
+
full_name = child_name given_name
|
259
|
+
|
260
|
+
if full_name =~ /^(.+)::(\w+)$/ then
|
261
|
+
name = $2
|
262
|
+
ename = $1
|
263
|
+
enclosing = RDoc::TopLevel.classes_hash[ename] ||
|
264
|
+
RDoc::TopLevel.modules_hash[ename]
|
265
|
+
# HACK: crashes in actionpack/lib/action_view/helpers/form_helper.rb (metaprogramming)
|
266
|
+
unless enclosing then
|
267
|
+
# try the given name at top level (will work for the above example)
|
268
|
+
enclosing = RDoc::TopLevel.classes_hash[given_name] || RDoc::TopLevel.modules_hash[given_name]
|
269
|
+
return enclosing if enclosing
|
270
|
+
# not found: create the parent(s)
|
271
|
+
names = ename.split('::')
|
272
|
+
enclosing = self
|
273
|
+
names.each do |n|
|
274
|
+
enclosing = enclosing.classes_hash[n] ||
|
275
|
+
enclosing.modules_hash[n] ||
|
276
|
+
enclosing.add_module(RDoc::NormalModule, n)
|
277
|
+
end
|
278
|
+
end
|
279
|
+
else
|
280
|
+
name = full_name
|
281
|
+
enclosing = self
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
# fix up superclass
|
286
|
+
superclass = nil if full_name == 'BasicObject'
|
287
|
+
superclass = nil if full_name == 'Object' and defined?(::BasicObject)
|
288
|
+
superclass = '::BasicObject' if
|
289
|
+
defined?(::BasicObject) and full_name == 'Object'
|
290
|
+
|
291
|
+
# find the superclass full name
|
292
|
+
if superclass then
|
293
|
+
if superclass =~ /^:+/ then
|
294
|
+
superclass = $' #'
|
295
|
+
else
|
296
|
+
if superclass =~ /^(\w+):+(.+)$/ then
|
297
|
+
suffix = $2
|
298
|
+
mod = find_module_named($1)
|
299
|
+
superclass = mod.full_name + '::' + suffix if mod
|
300
|
+
else
|
301
|
+
mod = find_module_named(superclass)
|
302
|
+
superclass = mod.full_name if mod
|
303
|
+
end
|
304
|
+
end
|
305
|
+
|
306
|
+
# did we believe it was a module?
|
307
|
+
mod = RDoc::TopLevel.modules_hash.delete superclass
|
308
|
+
|
309
|
+
upgrade_to_class mod, RDoc::NormalClass, mod.parent if mod
|
310
|
+
|
311
|
+
# e.g., Object < Object
|
312
|
+
superclass = nil if superclass == full_name
|
313
|
+
end
|
314
|
+
|
315
|
+
klass = RDoc::TopLevel.classes_hash[full_name]
|
316
|
+
|
317
|
+
if klass then
|
318
|
+
# if TopLevel, it may not be registered in the classes:
|
319
|
+
enclosing.classes_hash[name] = klass
|
320
|
+
|
321
|
+
# update the superclass if needed
|
322
|
+
if superclass then
|
323
|
+
existing = klass.superclass
|
324
|
+
existing = existing.full_name unless existing.is_a?(String) if existing
|
325
|
+
if existing.nil? ||
|
326
|
+
(existing == 'Object' && superclass != 'Object') then
|
327
|
+
klass.superclass = superclass
|
328
|
+
end
|
329
|
+
end
|
330
|
+
else
|
331
|
+
# this is a new class
|
332
|
+
mod = RDoc::TopLevel.modules_hash.delete full_name
|
333
|
+
|
334
|
+
if mod then
|
335
|
+
klass = upgrade_to_class mod, RDoc::NormalClass, enclosing
|
336
|
+
|
337
|
+
klass.superclass = superclass unless superclass.nil?
|
338
|
+
else
|
339
|
+
klass = class_type.new name, superclass
|
340
|
+
|
341
|
+
enclosing.add_class_or_module(klass, enclosing.classes_hash,
|
342
|
+
RDoc::TopLevel.classes_hash)
|
343
|
+
end
|
344
|
+
end
|
345
|
+
|
346
|
+
klass
|
347
|
+
end
|
348
|
+
|
349
|
+
##
|
350
|
+
# Adds the class or module +mod+ to the modules or
|
351
|
+
# classes Hash +self_hash+, and to +all_hash+ (either
|
352
|
+
# <tt>TopLevel::modules_hash</tt> or <tt>TopLevel::classes_hash</tt>),
|
353
|
+
# unless #done_documenting is +true+. Sets the #parent of +mod+
|
354
|
+
# to +self+, and its #section to #current_section. Returns +mod+.
|
355
|
+
|
356
|
+
def add_class_or_module mod, self_hash, all_hash
|
357
|
+
mod.section = current_section # TODO declaring context? something is
|
358
|
+
# wrong here...
|
359
|
+
mod.parent = self
|
360
|
+
|
361
|
+
unless @done_documenting then
|
362
|
+
self_hash[mod.name] = mod
|
363
|
+
# this must be done AFTER adding mod to its parent, so that the full
|
364
|
+
# name is correct:
|
365
|
+
all_hash[mod.full_name] = mod
|
366
|
+
end
|
367
|
+
|
368
|
+
mod
|
369
|
+
end
|
370
|
+
|
371
|
+
##
|
372
|
+
# Adds +constant+ if not already there. If it is, updates the comment,
|
373
|
+
# value and/or is_alias_for of the known constant if they were empty/nil.
|
374
|
+
|
375
|
+
def add_constant constant
|
376
|
+
return constant unless @document_self
|
377
|
+
|
378
|
+
# HACK: avoid duplicate 'PI' & 'E' in math.c (1.8.7 source code)
|
379
|
+
# (this is a #ifdef: should be handled by the C parser)
|
380
|
+
known = @constants_hash[constant.name]
|
381
|
+
|
382
|
+
if known then
|
383
|
+
known.comment = constant.comment if known.comment.empty?
|
384
|
+
|
385
|
+
known.value = constant.value if
|
386
|
+
known.value.nil? or known.value.strip.empty?
|
387
|
+
|
388
|
+
known.is_alias_for ||= constant.is_alias_for
|
389
|
+
else
|
390
|
+
@constants_hash[constant.name] = constant
|
391
|
+
add_to @constants, constant
|
392
|
+
end
|
393
|
+
|
394
|
+
constant
|
395
|
+
end
|
396
|
+
|
397
|
+
##
|
398
|
+
# Adds included module +include+ which should be an RDoc::Include
|
399
|
+
|
400
|
+
def add_include include
|
401
|
+
add_to @includes, include
|
402
|
+
|
403
|
+
include
|
404
|
+
end
|
405
|
+
|
406
|
+
##
|
407
|
+
# Adds +method+ if not already there. If it is (as method or attribute),
|
408
|
+
# updates the comment if it was empty.
|
409
|
+
|
410
|
+
def add_method method
|
411
|
+
return method unless @document_self
|
412
|
+
|
413
|
+
# HACK: avoid duplicate 'new' in io.c & struct.c (1.8.7 source code)
|
414
|
+
key = method.pretty_name
|
415
|
+
known = @methods_hash[key]
|
416
|
+
|
417
|
+
if known then
|
418
|
+
known.comment = method.comment if known.comment.empty?
|
419
|
+
else
|
420
|
+
@methods_hash[key] = method
|
421
|
+
method.visibility = @visibility
|
422
|
+
add_to @method_list, method
|
423
|
+
resolve_aliases method
|
424
|
+
end
|
425
|
+
|
426
|
+
method
|
427
|
+
end
|
428
|
+
|
429
|
+
##
|
430
|
+
# Adds a module named +name+. If RDoc already knows +name+ is a class then
|
431
|
+
# that class is returned instead. See also #add_class.
|
432
|
+
|
433
|
+
def add_module(class_type, name)
|
434
|
+
mod = @classes[name] || @modules[name]
|
435
|
+
return mod if mod
|
436
|
+
|
437
|
+
full_name = child_name name
|
438
|
+
mod = RDoc::TopLevel.modules_hash[full_name] || class_type.new(name)
|
439
|
+
|
440
|
+
add_class_or_module(mod, @modules, RDoc::TopLevel.modules_hash)
|
441
|
+
end
|
442
|
+
|
443
|
+
##
|
444
|
+
# Adds an alias from +from+ (a class or module) to +name+ which was defined
|
445
|
+
# in +file+.
|
446
|
+
|
447
|
+
def add_module_alias from, name, file
|
448
|
+
return from if @done_documenting
|
449
|
+
|
450
|
+
to_name = child_name(name)
|
451
|
+
|
452
|
+
# if we already know this name, don't register an alias:
|
453
|
+
# see the metaprogramming in lib/active_support/basic_object.rb,
|
454
|
+
# where we already know BasicObject as a class when we find
|
455
|
+
# BasicObject = BlankSlate
|
456
|
+
return from if RDoc::TopLevel.find_class_or_module(to_name)
|
457
|
+
|
458
|
+
if from.module? then
|
459
|
+
RDoc::TopLevel.modules_hash[to_name] = from
|
460
|
+
@modules[name] = from
|
461
|
+
else
|
462
|
+
RDoc::TopLevel.classes_hash[to_name] = from
|
463
|
+
@classes[name] = from
|
464
|
+
end
|
465
|
+
|
466
|
+
# HACK: register a constant for this alias:
|
467
|
+
# constant value and comment will be updated after,
|
468
|
+
# when the Ruby parser adds the constant
|
469
|
+
const = RDoc::Constant.new name, nil, ''
|
470
|
+
const.record_location file
|
471
|
+
const.is_alias_for = from
|
472
|
+
add_constant const
|
473
|
+
|
474
|
+
from
|
475
|
+
end
|
476
|
+
|
477
|
+
##
|
478
|
+
# Adds +require+ to this context's top level
|
479
|
+
|
480
|
+
def add_require(require)
|
481
|
+
return require unless @document_self
|
482
|
+
|
483
|
+
if RDoc::TopLevel === self then
|
484
|
+
add_to @requires, require
|
485
|
+
else
|
486
|
+
parent.add_require require
|
487
|
+
end
|
488
|
+
end
|
489
|
+
|
490
|
+
##
|
491
|
+
# Returns a section with +title+, creating it if it doesn't already exist.
|
492
|
+
# +comment+ will be appended to the section's comment.
|
493
|
+
#
|
494
|
+
# A section with a +title+ of +nil+ will return the default section.
|
495
|
+
#
|
496
|
+
# See also RDoc::Context::Section
|
497
|
+
|
498
|
+
def add_section title, comment = nil
|
499
|
+
if section = @sections[title] then
|
500
|
+
section.comment = comment if comment
|
501
|
+
else
|
502
|
+
section = Section.new self, title, comment
|
503
|
+
@sections[title] = section
|
504
|
+
end
|
505
|
+
|
506
|
+
section
|
507
|
+
end
|
508
|
+
|
509
|
+
##
|
510
|
+
# Adds +thing+ to the collection +array+
|
511
|
+
|
512
|
+
def add_to(array, thing)
|
513
|
+
array << thing if @document_self
|
514
|
+
thing.parent = self
|
515
|
+
thing.section = current_section
|
516
|
+
end
|
517
|
+
|
518
|
+
##
|
519
|
+
# Is there any content?
|
520
|
+
#
|
521
|
+
# This means any of: comment, aliases, methods, attributes, external
|
522
|
+
# aliases, require, constant.
|
523
|
+
#
|
524
|
+
# Includes are also checked unless <tt>includes == false</tt>.
|
525
|
+
|
526
|
+
def any_content(includes = true)
|
527
|
+
@any_content ||= !(
|
528
|
+
@comment.empty? &&
|
529
|
+
@method_list.empty? &&
|
530
|
+
@attributes.empty? &&
|
531
|
+
@aliases.empty? &&
|
532
|
+
@external_aliases.empty? &&
|
533
|
+
@requires.empty? &&
|
534
|
+
@constants.empty?
|
535
|
+
)
|
536
|
+
@any_content || (includes && !@includes.empty?)
|
537
|
+
end
|
538
|
+
|
539
|
+
##
|
540
|
+
# Creates the full name for a child with +name+
|
541
|
+
|
542
|
+
def child_name name
|
543
|
+
if name =~ /^:+/
|
544
|
+
$' #'
|
545
|
+
elsif RDoc::TopLevel === self then
|
546
|
+
name
|
547
|
+
else
|
548
|
+
"#{self.full_name}::#{name}"
|
549
|
+
end
|
550
|
+
end
|
551
|
+
|
552
|
+
##
|
553
|
+
# Class attributes
|
554
|
+
|
555
|
+
def class_attributes
|
556
|
+
@class_attributes ||= attributes.select { |a| a.singleton }
|
557
|
+
end
|
558
|
+
|
559
|
+
##
|
560
|
+
# Class methods
|
561
|
+
|
562
|
+
def class_method_list
|
563
|
+
@class_method_list ||= method_list.select { |a| a.singleton }
|
564
|
+
end
|
565
|
+
|
566
|
+
##
|
567
|
+
# Array of classes in this context
|
568
|
+
|
569
|
+
def classes
|
570
|
+
@classes.values
|
571
|
+
end
|
572
|
+
|
573
|
+
##
|
574
|
+
# All classes and modules in this namespace
|
575
|
+
|
576
|
+
def classes_and_modules
|
577
|
+
classes + modules
|
578
|
+
end
|
579
|
+
|
580
|
+
##
|
581
|
+
# Hash of classes keyed by class name
|
582
|
+
|
583
|
+
def classes_hash
|
584
|
+
@classes
|
585
|
+
end
|
586
|
+
|
587
|
+
##
|
588
|
+
# The current documentation section that new items will be added to. If
|
589
|
+
# temporary_section is available it will be used.
|
590
|
+
|
591
|
+
def current_section
|
592
|
+
if section = @temporary_section then
|
593
|
+
@temporary_section = nil
|
594
|
+
else
|
595
|
+
section = @current_section
|
596
|
+
end
|
597
|
+
|
598
|
+
section
|
599
|
+
end
|
600
|
+
|
601
|
+
##
|
602
|
+
# Is part of this thing was defined in +file+?
|
603
|
+
|
604
|
+
def defined_in?(file)
|
605
|
+
@in_files.include?(file)
|
606
|
+
end
|
607
|
+
|
608
|
+
def display(method_attr) # :nodoc:
|
609
|
+
if method_attr.is_a? RDoc::Attr
|
610
|
+
"#{method_attr.definition} #{method_attr.pretty_name}"
|
611
|
+
else
|
612
|
+
"method #{method_attr.pretty_name}"
|
613
|
+
end
|
614
|
+
end
|
615
|
+
|
616
|
+
##
|
617
|
+
# Iterator for ancestors for duck-typing. Does nothing. See
|
618
|
+
# RDoc::ClassModule#each_ancestor.
|
619
|
+
|
620
|
+
def each_ancestor # :nodoc:
|
621
|
+
end
|
622
|
+
|
623
|
+
##
|
624
|
+
# Iterator for attributes
|
625
|
+
|
626
|
+
def each_attribute # :yields: attribute
|
627
|
+
@attributes.each { |a| yield a }
|
628
|
+
end
|
629
|
+
|
630
|
+
##
|
631
|
+
# Iterator for classes and modules
|
632
|
+
|
633
|
+
def each_classmodule(&block) # :yields: module
|
634
|
+
classes_and_modules.sort.each(&block)
|
635
|
+
end
|
636
|
+
|
637
|
+
##
|
638
|
+
# Iterator for constants
|
639
|
+
|
640
|
+
def each_constant # :yields: constant
|
641
|
+
@constants.each {|c| yield c}
|
642
|
+
end
|
643
|
+
|
644
|
+
##
|
645
|
+
# Iterator for included modules
|
646
|
+
|
647
|
+
def each_include # :yields: include
|
648
|
+
@includes.each do |i| yield i end
|
649
|
+
end
|
650
|
+
|
651
|
+
##
|
652
|
+
# Iterator for methods
|
653
|
+
|
654
|
+
def each_method # :yields: method
|
655
|
+
return enum_for __method__ unless block_given?
|
656
|
+
|
657
|
+
@method_list.sort.each { |m| yield m }
|
658
|
+
end
|
659
|
+
|
660
|
+
##
|
661
|
+
# Iterator for each section's contents sorted by title. The +section+, the
|
662
|
+
# section's +constants+ and the sections +attributes+ are yielded. The
|
663
|
+
# +constants+ and +attributes+ collections are sorted.
|
664
|
+
#
|
665
|
+
# To retrieve methods in a section use #methods_by_type with the optional
|
666
|
+
# +section+ parameter.
|
667
|
+
#
|
668
|
+
# NOTE: Do not edit collections yielded by this method
|
669
|
+
|
670
|
+
def each_section # :yields: section, constants, attributes
|
671
|
+
return enum_for __method__ unless block_given?
|
672
|
+
|
673
|
+
constants = @constants.group_by do |constant| constant.section end
|
674
|
+
constants.default = []
|
675
|
+
|
676
|
+
attributes = @attributes.group_by do |attribute| attribute.section end
|
677
|
+
attributes.default = []
|
678
|
+
|
679
|
+
sort_sections.each do |section|
|
680
|
+
yield section, constants[section].sort, attributes[section].sort
|
681
|
+
end
|
682
|
+
end
|
683
|
+
|
684
|
+
##
|
685
|
+
# Finds an attribute +name+ with singleton value +singleton+.
|
686
|
+
|
687
|
+
def find_attribute(name, singleton)
|
688
|
+
name = $1 if name =~ /^(.*)=$/
|
689
|
+
@attributes.find { |a| a.name == name && a.singleton == singleton }
|
690
|
+
end
|
691
|
+
|
692
|
+
##
|
693
|
+
# Finds an attribute with +name+ in this context
|
694
|
+
|
695
|
+
def find_attribute_named(name)
|
696
|
+
case name
|
697
|
+
when /\A#/ then
|
698
|
+
find_attribute name[1..-1], false
|
699
|
+
when /\A::/ then
|
700
|
+
find_attribute name[2..-1], true
|
701
|
+
else
|
702
|
+
@attributes.find { |a| a.name == name }
|
703
|
+
end
|
704
|
+
end
|
705
|
+
|
706
|
+
##
|
707
|
+
# Finds a class method with +name+ in this context
|
708
|
+
|
709
|
+
def find_class_method_named(name)
|
710
|
+
@method_list.find { |meth| meth.singleton && meth.name == name }
|
711
|
+
end
|
712
|
+
|
713
|
+
##
|
714
|
+
# Finds a constant with +name+ in this context
|
715
|
+
|
716
|
+
def find_constant_named(name)
|
717
|
+
@constants.find {|m| m.name == name}
|
718
|
+
end
|
719
|
+
|
720
|
+
##
|
721
|
+
# Find a module at a higher scope
|
722
|
+
|
723
|
+
def find_enclosing_module_named(name)
|
724
|
+
parent && parent.find_module_named(name)
|
725
|
+
end
|
726
|
+
|
727
|
+
##
|
728
|
+
# Finds an external alias +name+ with singleton value +singleton+.
|
729
|
+
|
730
|
+
def find_external_alias(name, singleton)
|
731
|
+
@external_aliases.find { |m| m.name == name && m.singleton == singleton }
|
732
|
+
end
|
733
|
+
|
734
|
+
##
|
735
|
+
# Finds an external alias with +name+ in this context
|
736
|
+
|
737
|
+
def find_external_alias_named(name)
|
738
|
+
case name
|
739
|
+
when /\A#/ then
|
740
|
+
find_external_alias name[1..-1], false
|
741
|
+
when /\A::/ then
|
742
|
+
find_external_alias name[2..-1], true
|
743
|
+
else
|
744
|
+
@external_aliases.find { |a| a.name == name }
|
745
|
+
end
|
746
|
+
end
|
747
|
+
|
748
|
+
##
|
749
|
+
# Finds a file with +name+ in this context
|
750
|
+
|
751
|
+
def find_file_named(name)
|
752
|
+
top_level.class.find_file_named(name)
|
753
|
+
end
|
754
|
+
|
755
|
+
##
|
756
|
+
# Finds an instance method with +name+ in this context
|
757
|
+
|
758
|
+
def find_instance_method_named(name)
|
759
|
+
@method_list.find { |meth| !meth.singleton && meth.name == name }
|
760
|
+
end
|
761
|
+
|
762
|
+
##
|
763
|
+
# Finds a method, constant, attribute, external alias, module or file
|
764
|
+
# named +symbol+ in this context.
|
765
|
+
|
766
|
+
def find_local_symbol(symbol)
|
767
|
+
find_method_named(symbol) or
|
768
|
+
find_constant_named(symbol) or
|
769
|
+
find_attribute_named(symbol) or
|
770
|
+
find_external_alias_named(symbol) or
|
771
|
+
find_module_named(symbol) or
|
772
|
+
find_file_named(symbol)
|
773
|
+
end
|
774
|
+
|
775
|
+
##
|
776
|
+
# Finds a method named +name+ with singleton value +singleton+.
|
777
|
+
|
778
|
+
def find_method(name, singleton)
|
779
|
+
@method_list.find { |m| m.name == name && m.singleton == singleton }
|
780
|
+
end
|
781
|
+
|
782
|
+
##
|
783
|
+
# Finds a instance or module method with +name+ in this context
|
784
|
+
|
785
|
+
def find_method_named(name)
|
786
|
+
case name
|
787
|
+
when /\A#/ then
|
788
|
+
find_method name[1..-1], false
|
789
|
+
when /\A::/ then
|
790
|
+
find_method name[2..-1], true
|
791
|
+
else
|
792
|
+
@method_list.find { |meth| meth.name == name }
|
793
|
+
end
|
794
|
+
end
|
795
|
+
|
796
|
+
##
|
797
|
+
# Find a module with +name+ using ruby's scoping rules
|
798
|
+
|
799
|
+
def find_module_named(name)
|
800
|
+
res = @modules[name] || @classes[name]
|
801
|
+
return res if res
|
802
|
+
return self if self.name == name
|
803
|
+
find_enclosing_module_named name
|
804
|
+
end
|
805
|
+
|
806
|
+
##
|
807
|
+
# Look up +symbol+, first as a module, then as a local symbol.
|
808
|
+
|
809
|
+
def find_symbol(symbol)
|
810
|
+
find_symbol_module(symbol) || find_local_symbol(symbol)
|
811
|
+
end
|
812
|
+
|
813
|
+
##
|
814
|
+
# Look up a module named +symbol+.
|
815
|
+
|
816
|
+
def find_symbol_module(symbol)
|
817
|
+
result = nil
|
818
|
+
|
819
|
+
# look for a class or module 'symbol'
|
820
|
+
case symbol
|
821
|
+
when /^::/ then
|
822
|
+
result = RDoc::TopLevel.find_class_or_module(symbol)
|
823
|
+
when /^(\w+):+(.+)$/
|
824
|
+
suffix = $2
|
825
|
+
top = $1
|
826
|
+
searched = self
|
827
|
+
loop do
|
828
|
+
mod = searched.find_module_named(top)
|
829
|
+
break unless mod
|
830
|
+
result = RDoc::TopLevel.find_class_or_module(mod.full_name + '::' + suffix)
|
831
|
+
break if result || searched.is_a?(RDoc::TopLevel)
|
832
|
+
searched = searched.parent
|
833
|
+
end
|
834
|
+
else
|
835
|
+
searched = self
|
836
|
+
loop do
|
837
|
+
result = searched.find_module_named(symbol)
|
838
|
+
break if result || searched.is_a?(RDoc::TopLevel)
|
839
|
+
searched = searched.parent
|
840
|
+
end
|
841
|
+
end
|
842
|
+
|
843
|
+
result
|
844
|
+
end
|
845
|
+
|
846
|
+
##
|
847
|
+
# The full name for this context. This method is overridden by subclasses.
|
848
|
+
|
849
|
+
def full_name
|
850
|
+
'(unknown)'
|
851
|
+
end
|
852
|
+
|
853
|
+
##
|
854
|
+
# Does this context and its methods and constants all have documentation?
|
855
|
+
#
|
856
|
+
# (Yes, fully documented doesn't mean everything.)
|
857
|
+
|
858
|
+
def fully_documented?
|
859
|
+
documented? and
|
860
|
+
attributes.all? { |a| a.documented? } and
|
861
|
+
method_list.all? { |m| m.documented? } and
|
862
|
+
constants.all? { |c| c.documented? }
|
863
|
+
end
|
864
|
+
|
865
|
+
##
|
866
|
+
# URL for this with a +prefix+
|
867
|
+
|
868
|
+
def http_url(prefix)
|
869
|
+
path = name_for_path
|
870
|
+
path = path.gsub(/<<\s*(\w*)/, 'from-\1') if path =~ /<</
|
871
|
+
path = [prefix] + path.split('::')
|
872
|
+
|
873
|
+
File.join(*path.compact) + '.html'
|
874
|
+
end
|
875
|
+
|
876
|
+
##
|
877
|
+
# Instance attributes
|
878
|
+
|
879
|
+
def instance_attributes
|
880
|
+
@instance_attributes ||= attributes.reject { |a| a.singleton }
|
881
|
+
end
|
882
|
+
|
883
|
+
##
|
884
|
+
# Instance methods
|
885
|
+
#--
|
886
|
+
# TODO rename to instance_methods
|
887
|
+
|
888
|
+
def instance_method_list
|
889
|
+
@instance_method_list ||= method_list.reject { |a| a.singleton }
|
890
|
+
end
|
891
|
+
|
892
|
+
##
|
893
|
+
# Breaks method_list into a nested hash by type (<tt>'class'</tt> or
|
894
|
+
# <tt>'instance'</tt>) and visibility (+:public+, +:protected+, +:private+).
|
895
|
+
#
|
896
|
+
# If +section+ is provided only methods in that RDoc::Context::Section will
|
897
|
+
# be returned.
|
898
|
+
|
899
|
+
def methods_by_type section = nil
|
900
|
+
methods = {}
|
901
|
+
|
902
|
+
TYPES.each do |type|
|
903
|
+
visibilities = {}
|
904
|
+
RDoc::VISIBILITIES.each do |vis|
|
905
|
+
visibilities[vis] = []
|
906
|
+
end
|
907
|
+
|
908
|
+
methods[type] = visibilities
|
909
|
+
end
|
910
|
+
|
911
|
+
each_method do |method|
|
912
|
+
next if section and not method.section == section
|
913
|
+
methods[method.type][method.visibility] << method
|
914
|
+
end
|
915
|
+
|
916
|
+
methods
|
917
|
+
end
|
918
|
+
|
919
|
+
##
|
920
|
+
# Yields AnyMethod and Attr entries matching the list of names in +methods+.
|
921
|
+
|
922
|
+
def methods_matching(methods, singleton = false, &block)
|
923
|
+
(@method_list + @attributes).each do |m|
|
924
|
+
yield m if methods.include?(m.name) and m.singleton == singleton
|
925
|
+
end
|
926
|
+
|
927
|
+
each_ancestor do |parent|
|
928
|
+
parent.methods_matching(methods, singleton, &block)
|
929
|
+
end
|
930
|
+
end
|
931
|
+
|
932
|
+
##
|
933
|
+
# Array of modules in this context
|
934
|
+
|
935
|
+
def modules
|
936
|
+
@modules.values
|
937
|
+
end
|
938
|
+
|
939
|
+
##
|
940
|
+
# Hash of modules keyed by module name
|
941
|
+
|
942
|
+
def modules_hash
|
943
|
+
@modules
|
944
|
+
end
|
945
|
+
|
946
|
+
##
|
947
|
+
# Name to use to generate the url.
|
948
|
+
# <tt>#full_name</tt> by default.
|
949
|
+
|
950
|
+
def name_for_path
|
951
|
+
full_name
|
952
|
+
end
|
953
|
+
|
954
|
+
##
|
955
|
+
# Changes the visibility for new methods to +visibility+
|
956
|
+
|
957
|
+
def ongoing_visibility=(visibility)
|
958
|
+
@visibility = visibility
|
959
|
+
end
|
960
|
+
|
961
|
+
##
|
962
|
+
# Record +top_level+ as a file +self+ is in.
|
963
|
+
|
964
|
+
def record_location(top_level)
|
965
|
+
@in_files << top_level unless @in_files.include?(top_level)
|
966
|
+
end
|
967
|
+
|
968
|
+
##
|
969
|
+
# Should we remove this context from the documentation?
|
970
|
+
#
|
971
|
+
# The answer is yes if:
|
972
|
+
# * #received_nodoc is +true+
|
973
|
+
# * #any_content is +false+ (not counting includes)
|
974
|
+
# * All #includes are modules (not a string), and their module has
|
975
|
+
# <tt>#remove_from_documentation? == true</tt>
|
976
|
+
# * All classes and modules have <tt>#remove_from_documentation? == true</tt>
|
977
|
+
|
978
|
+
def remove_from_documentation?
|
979
|
+
@remove_from_documentation ||=
|
980
|
+
@received_nodoc &&
|
981
|
+
!any_content(false) &&
|
982
|
+
@includes.all? { |i| !i.module.is_a?(String) && i.module.remove_from_documentation? } &&
|
983
|
+
classes_and_modules.all? { |cm| cm.remove_from_documentation? }
|
984
|
+
end
|
985
|
+
|
986
|
+
##
|
987
|
+
# Removes methods and attributes with a visibility less than +min_visibility+.
|
988
|
+
#--
|
989
|
+
# TODO mark the visibility of attributes in the template (if not public?)
|
990
|
+
|
991
|
+
def remove_invisible(min_visibility)
|
992
|
+
return if min_visibility == :private
|
993
|
+
remove_invisible_in @method_list, min_visibility
|
994
|
+
remove_invisible_in @attributes, min_visibility
|
995
|
+
end
|
996
|
+
|
997
|
+
##
|
998
|
+
# Only called when min_visibility == :public or :private
|
999
|
+
|
1000
|
+
def remove_invisible_in array, min_visibility # :nodoc:
|
1001
|
+
if min_visibility == :public then
|
1002
|
+
array.reject! { |e|
|
1003
|
+
e.visibility != :public and not e.force_documentation
|
1004
|
+
}
|
1005
|
+
else
|
1006
|
+
array.reject! { |e|
|
1007
|
+
e.visibility == :private and not e.force_documentation
|
1008
|
+
}
|
1009
|
+
end
|
1010
|
+
end
|
1011
|
+
|
1012
|
+
##
|
1013
|
+
# Tries to resolve unmatched aliases when a method or attribute has just
|
1014
|
+
# been added.
|
1015
|
+
|
1016
|
+
def resolve_aliases added
|
1017
|
+
# resolve any pending unmatched aliases
|
1018
|
+
key = added.pretty_name
|
1019
|
+
unmatched_alias_list = @unmatched_alias_lists[key]
|
1020
|
+
return unless unmatched_alias_list
|
1021
|
+
unmatched_alias_list.each do |unmatched_alias|
|
1022
|
+
added.add_alias unmatched_alias, self
|
1023
|
+
@external_aliases.delete unmatched_alias
|
1024
|
+
end
|
1025
|
+
@unmatched_alias_lists.delete key
|
1026
|
+
end
|
1027
|
+
|
1028
|
+
##
|
1029
|
+
# Returns RDoc::Context::Section objects referenced in this context for use
|
1030
|
+
# in a table of contents.
|
1031
|
+
|
1032
|
+
def section_contents
|
1033
|
+
used_sections = {}
|
1034
|
+
|
1035
|
+
each_method do |method|
|
1036
|
+
next unless method.display?
|
1037
|
+
|
1038
|
+
used_sections[method.section] = true
|
1039
|
+
end
|
1040
|
+
|
1041
|
+
# order found sections
|
1042
|
+
sections = sort_sections.select do |section|
|
1043
|
+
used_sections[section]
|
1044
|
+
end
|
1045
|
+
|
1046
|
+
# only the default section is used
|
1047
|
+
return [] if
|
1048
|
+
sections.length == 1 and not sections.first.title
|
1049
|
+
|
1050
|
+
sections
|
1051
|
+
end
|
1052
|
+
|
1053
|
+
##
|
1054
|
+
# Sections in this context
|
1055
|
+
|
1056
|
+
def sections
|
1057
|
+
@sections.values
|
1058
|
+
end
|
1059
|
+
|
1060
|
+
def sections_hash # :nodoc:
|
1061
|
+
@sections
|
1062
|
+
end
|
1063
|
+
|
1064
|
+
##
|
1065
|
+
# Sets the current section to a section with +title+. See also #add_section
|
1066
|
+
|
1067
|
+
def set_current_section title, comment
|
1068
|
+
@current_section = add_section title, comment
|
1069
|
+
end
|
1070
|
+
|
1071
|
+
##
|
1072
|
+
# Given an array +methods+ of method names, set the visibility of each to
|
1073
|
+
# +visibility+
|
1074
|
+
|
1075
|
+
def set_visibility_for(methods, visibility, singleton = false)
|
1076
|
+
methods_matching methods, singleton do |m|
|
1077
|
+
m.visibility = visibility
|
1078
|
+
end
|
1079
|
+
end
|
1080
|
+
|
1081
|
+
##
|
1082
|
+
# Sorts sections alphabetically (default) or in TomDoc fasion (none, Public,
|
1083
|
+
# Internal, Deprecated)
|
1084
|
+
|
1085
|
+
def sort_sections
|
1086
|
+
titles = @sections.map { |title, _| title }
|
1087
|
+
|
1088
|
+
if titles.length > 1 and
|
1089
|
+
TOMDOC_TITLES_SORT ==
|
1090
|
+
(titles | TOMDOC_TITLES).sort_by { |title| title.to_s } then
|
1091
|
+
@sections.values_at(*TOMDOC_TITLES).compact
|
1092
|
+
else
|
1093
|
+
@sections.sort_by { |title, _|
|
1094
|
+
title.to_s
|
1095
|
+
}.map { |_, section|
|
1096
|
+
section
|
1097
|
+
}
|
1098
|
+
end
|
1099
|
+
end
|
1100
|
+
|
1101
|
+
def to_s # :nodoc:
|
1102
|
+
"#{self.class.name} #{self.full_name}"
|
1103
|
+
end
|
1104
|
+
|
1105
|
+
##
|
1106
|
+
# Return the TopLevel that owns us
|
1107
|
+
#--
|
1108
|
+
# FIXME we can be 'owned' by several TopLevel (see #record_location &
|
1109
|
+
# #in_files)
|
1110
|
+
|
1111
|
+
def top_level
|
1112
|
+
return @top_level if defined? @top_level
|
1113
|
+
@top_level = self
|
1114
|
+
@top_level = @top_level.parent until RDoc::TopLevel === @top_level
|
1115
|
+
@top_level
|
1116
|
+
end
|
1117
|
+
|
1118
|
+
##
|
1119
|
+
# Upgrades NormalModule +mod+ in +enclosing+ to a +class_type+
|
1120
|
+
|
1121
|
+
def upgrade_to_class mod, class_type, enclosing
|
1122
|
+
enclosing.modules_hash.delete mod.name
|
1123
|
+
|
1124
|
+
klass = RDoc::ClassModule.from_module class_type, mod
|
1125
|
+
|
1126
|
+
# if it was there, then we keep it even if done_documenting
|
1127
|
+
RDoc::TopLevel.classes_hash[mod.full_name] = klass
|
1128
|
+
enclosing.classes_hash[mod.name] = klass
|
1129
|
+
|
1130
|
+
klass
|
1131
|
+
end
|
1132
|
+
|
1133
|
+
autoload :Section, 'rdoc/context/section'
|
1134
|
+
|
1135
|
+
end
|
1136
|
+
|