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,813 @@
|
|
1
|
+
##
|
2
|
+
# RDoc::Markup parses plain text documents and attempts to decompose them into
|
3
|
+
# their constituent parts. Some of these parts are high-level: paragraphs,
|
4
|
+
# chunks of verbatim text, list entries and the like. Other parts happen at
|
5
|
+
# the character level: a piece of bold text, a word in code font. This markup
|
6
|
+
# is similar in spirit to that used on WikiWiki webs, where folks create web
|
7
|
+
# pages using a simple set of formatting rules.
|
8
|
+
#
|
9
|
+
# RDoc::Markup itself does no output formatting: this is left to a different
|
10
|
+
# set of classes.
|
11
|
+
#
|
12
|
+
# RDoc::Markup is extendable at runtime: you can add \new markup elements to
|
13
|
+
# be recognised in the documents that RDoc::Markup parses.
|
14
|
+
#
|
15
|
+
# RDoc::Markup is intended to be the basis for a family of tools which share
|
16
|
+
# the common requirement that simple, plain-text should be rendered in a
|
17
|
+
# variety of different output formats and media. It is envisaged that
|
18
|
+
# RDoc::Markup could be the basis for formatting RDoc style comment blocks,
|
19
|
+
# Wiki entries, and online FAQs.
|
20
|
+
#
|
21
|
+
# == Synopsis
|
22
|
+
#
|
23
|
+
# This code converts +input_string+ to HTML. The conversion takes place in
|
24
|
+
# the +convert+ method, so you can use the same RDoc::Markup converter to
|
25
|
+
# convert multiple input strings.
|
26
|
+
#
|
27
|
+
# require 'rdoc'
|
28
|
+
#
|
29
|
+
# h = RDoc::Markup::ToHtml.new
|
30
|
+
#
|
31
|
+
# puts h.convert(input_string)
|
32
|
+
#
|
33
|
+
# You can extend the RDoc::Markup parser to recognise new markup
|
34
|
+
# sequences, and to add special processing for text that matches a
|
35
|
+
# regular expression. Here we make WikiWords significant to the parser,
|
36
|
+
# and also make the sequences {word} and \<no>text...</no> signify
|
37
|
+
# strike-through text. We then subclass the HTML output class to deal
|
38
|
+
# with these:
|
39
|
+
#
|
40
|
+
# require 'rdoc'
|
41
|
+
#
|
42
|
+
# class WikiHtml < RDoc::Markup::ToHtml
|
43
|
+
# def handle_special_WIKIWORD(special)
|
44
|
+
# "<font color=red>" + special.text + "</font>"
|
45
|
+
# end
|
46
|
+
# end
|
47
|
+
#
|
48
|
+
# markup = RDoc::Markup.new
|
49
|
+
# markup.add_word_pair("{", "}", :STRIKE)
|
50
|
+
# markup.add_html("no", :STRIKE)
|
51
|
+
#
|
52
|
+
# markup.add_special(/\b([A-Z][a-z]+[A-Z]\w+)/, :WIKIWORD)
|
53
|
+
#
|
54
|
+
# wh = WikiHtml.new markup
|
55
|
+
# wh.add_tag(:STRIKE, "<strike>", "</strike>")
|
56
|
+
#
|
57
|
+
# puts "<body>#{wh.convert ARGF.read}</body>"
|
58
|
+
#
|
59
|
+
# == Encoding
|
60
|
+
#
|
61
|
+
# Where Encoding support is available, RDoc will automatically convert all
|
62
|
+
# documents to the same output encoding. The output encoding can be set via
|
63
|
+
# RDoc::Options#encoding and defaults to Encoding.default_external.
|
64
|
+
#
|
65
|
+
# = \RDoc Markup Reference
|
66
|
+
#
|
67
|
+
# == Block Markup
|
68
|
+
#
|
69
|
+
# === Paragraphs and Verbatim
|
70
|
+
#
|
71
|
+
# The markup engine looks for a document's natural left margin. This is
|
72
|
+
# used as the initial margin for the document.
|
73
|
+
#
|
74
|
+
# Consecutive lines starting at this margin are considered to be a
|
75
|
+
# paragraph. Empty lines separate paragraphs.
|
76
|
+
#
|
77
|
+
# Any line that starts to the right of the current margin is treated
|
78
|
+
# as verbatim text. This is useful for code listings:
|
79
|
+
#
|
80
|
+
# 3.times { puts "Ruby" }
|
81
|
+
#
|
82
|
+
# In verbatim text, two or more blank lines are collapsed into one,
|
83
|
+
# and trailing blank lines are removed:
|
84
|
+
#
|
85
|
+
# This is the first line
|
86
|
+
#
|
87
|
+
#
|
88
|
+
# This is the second non-blank line,
|
89
|
+
# after 2 blank lines in the source markup.
|
90
|
+
#
|
91
|
+
#
|
92
|
+
# There were two trailing blank lines right above this paragraph, that
|
93
|
+
# have been removed. In addition, the verbatim text has been shifted
|
94
|
+
# left, so the amount of indentation of verbatim text is unimportant.
|
95
|
+
#
|
96
|
+
# For HTML output RDoc makes a small effort to determine if a verbatim section
|
97
|
+
# contains ruby source code. If so, the verbatim block will be marked up as
|
98
|
+
# HTML. Triggers include "def", "class", "module", "require", the "hash
|
99
|
+
# rocket"# (=>) or a block call with a parameter.
|
100
|
+
#
|
101
|
+
# === Headers
|
102
|
+
#
|
103
|
+
# A line starting with an equal sign (=) is treated as a
|
104
|
+
# heading. Level one headings have one equals sign, level two headings
|
105
|
+
# have two, and so on until level six, which is the maximum
|
106
|
+
# (seven hyphens or more result in a level six heading).
|
107
|
+
#
|
108
|
+
# For example, the above header was obtained with:
|
109
|
+
#
|
110
|
+
# === Headers
|
111
|
+
#
|
112
|
+
# In HTML output headers have an id matching their name. The above example's
|
113
|
+
# HTML is:
|
114
|
+
#
|
115
|
+
# <h3 id="label-Headers">Headers</h3>
|
116
|
+
#
|
117
|
+
# If a heading is inside a method body the id will be prefixed with the
|
118
|
+
# method's id. If the above header where in the documentation for a method
|
119
|
+
# such as:
|
120
|
+
#
|
121
|
+
# ##
|
122
|
+
# # This method does fun things
|
123
|
+
# #
|
124
|
+
# # = Example
|
125
|
+
# #
|
126
|
+
# # Example of fun things goes here ...
|
127
|
+
#
|
128
|
+
# def do_fun_things
|
129
|
+
# end
|
130
|
+
#
|
131
|
+
# The header's id would be:
|
132
|
+
#
|
133
|
+
# <h1 id="method-i-do_fun_things-label-Example">Example</h3>
|
134
|
+
#
|
135
|
+
# The label can be linked-to using <tt>SomeClass@Headers</tt>. See
|
136
|
+
# {Links}[RDoc::Markup@Links] for further details.
|
137
|
+
#
|
138
|
+
# === Rules
|
139
|
+
#
|
140
|
+
# A line starting with three or more hyphens (at the current indent)
|
141
|
+
# generates a horizontal rule. The more hyphens, the thicker the rule
|
142
|
+
# (within reason, and if supported by the output device).
|
143
|
+
#
|
144
|
+
# In the case of HTML output, three dashes generate a 1-pixel high rule,
|
145
|
+
# four dashes result in 2 pixels, and so on. The actual height is limited
|
146
|
+
# to 10 pixels:
|
147
|
+
#
|
148
|
+
# ---
|
149
|
+
# -----
|
150
|
+
# -----------------------------------------------------
|
151
|
+
#
|
152
|
+
# produces:
|
153
|
+
#
|
154
|
+
# ---
|
155
|
+
# -----
|
156
|
+
# -----------------------------------------------------
|
157
|
+
#
|
158
|
+
# === Simple Lists
|
159
|
+
#
|
160
|
+
# If a paragraph starts with a "*", "-", "<digit>." or "<letter>.",
|
161
|
+
# then it is taken to be the start of a list. The margin is increased to be
|
162
|
+
# the first non-space following the list start flag. Subsequent lines
|
163
|
+
# should be indented to this new margin until the list ends. For example:
|
164
|
+
#
|
165
|
+
# * this is a list with three paragraphs in
|
166
|
+
# the first item. This is the first paragraph.
|
167
|
+
#
|
168
|
+
# And this is the second paragraph.
|
169
|
+
#
|
170
|
+
# 1. This is an indented, numbered list.
|
171
|
+
# 2. This is the second item in that list
|
172
|
+
#
|
173
|
+
# This is the third conventional paragraph in the
|
174
|
+
# first list item.
|
175
|
+
#
|
176
|
+
# * This is the second item in the original list
|
177
|
+
#
|
178
|
+
# produces:
|
179
|
+
#
|
180
|
+
# * this is a list with three paragraphs in
|
181
|
+
# the first item. This is the first paragraph.
|
182
|
+
#
|
183
|
+
# And this is the second paragraph.
|
184
|
+
#
|
185
|
+
# 1. This is an indented, numbered list.
|
186
|
+
# 2. This is the second item in that list
|
187
|
+
#
|
188
|
+
# This is the third conventional paragraph in the
|
189
|
+
# first list item.
|
190
|
+
#
|
191
|
+
# * This is the second item in the original list
|
192
|
+
#
|
193
|
+
# === Labeled Lists
|
194
|
+
#
|
195
|
+
# You can also construct labeled lists, sometimes called description
|
196
|
+
# or definition lists. Do this by putting the label in square brackets
|
197
|
+
# and indenting the list body:
|
198
|
+
#
|
199
|
+
# [cat] a small furry mammal
|
200
|
+
# that seems to sleep a lot
|
201
|
+
#
|
202
|
+
# [ant] a little insect that is known
|
203
|
+
# to enjoy picnics
|
204
|
+
#
|
205
|
+
# produces:
|
206
|
+
#
|
207
|
+
# [cat] a small furry mammal
|
208
|
+
# that seems to sleep a lot
|
209
|
+
#
|
210
|
+
# [ant] a little insect that is known
|
211
|
+
# to enjoy picnics
|
212
|
+
#
|
213
|
+
# If you want the list bodies to line up to the left of the labels,
|
214
|
+
# use two colons:
|
215
|
+
#
|
216
|
+
# cat:: a small furry mammal
|
217
|
+
# that seems to sleep a lot
|
218
|
+
#
|
219
|
+
# ant:: a little insect that is known
|
220
|
+
# to enjoy picnics
|
221
|
+
#
|
222
|
+
# produces:
|
223
|
+
#
|
224
|
+
# cat:: a small furry mammal
|
225
|
+
# that seems to sleep a lot
|
226
|
+
#
|
227
|
+
# ant:: a little insect that is known
|
228
|
+
# to enjoy picnics
|
229
|
+
#
|
230
|
+
# Notice that blank lines right after the label are ignored in labeled lists:
|
231
|
+
#
|
232
|
+
# [one]
|
233
|
+
#
|
234
|
+
# definition 1
|
235
|
+
#
|
236
|
+
# [two]
|
237
|
+
#
|
238
|
+
# definition 2
|
239
|
+
#
|
240
|
+
# produces the same output as
|
241
|
+
#
|
242
|
+
# [one] definition 1
|
243
|
+
# [two] definition 2
|
244
|
+
#
|
245
|
+
#
|
246
|
+
# === Lists and Verbatim
|
247
|
+
#
|
248
|
+
# If you want to introduce a verbatim section right after a list, it has to be
|
249
|
+
# less indented than the list item bodies, but more indented than the list
|
250
|
+
# label, letter, digit or bullet. For instance:
|
251
|
+
#
|
252
|
+
# * point 1
|
253
|
+
#
|
254
|
+
# * point 2, first paragraph
|
255
|
+
#
|
256
|
+
# point 2, second paragraph
|
257
|
+
# verbatim text inside point 2
|
258
|
+
# point 2, third paragraph
|
259
|
+
# verbatim text outside of the list (the list is therefore closed)
|
260
|
+
# regular paragraph after the list
|
261
|
+
#
|
262
|
+
# produces:
|
263
|
+
#
|
264
|
+
# * point 1
|
265
|
+
#
|
266
|
+
# * point 2, first paragraph
|
267
|
+
#
|
268
|
+
# point 2, second paragraph
|
269
|
+
# verbatim text inside point 2
|
270
|
+
# point 2, third paragraph
|
271
|
+
# verbatim text outside of the list (the list is therefore closed)
|
272
|
+
# regular paragraph after the list
|
273
|
+
#
|
274
|
+
# == Text Markup
|
275
|
+
#
|
276
|
+
# === Bold, Italic, Typewriter Text
|
277
|
+
#
|
278
|
+
# You can use markup within text (except verbatim) to change the
|
279
|
+
# appearance of parts of that text. Out of the box, RDoc::Markup
|
280
|
+
# supports word-based and general markup.
|
281
|
+
#
|
282
|
+
# Word-based markup uses flag characters around individual words:
|
283
|
+
#
|
284
|
+
# <tt>\*_word_\*</tt>:: displays _word_ in a *bold* font
|
285
|
+
# <tt>\__word_\_</tt>:: displays _word_ in an _emphasized_ font
|
286
|
+
# <tt>\+_word_\+</tt>:: displays _word_ in a +code+ font
|
287
|
+
#
|
288
|
+
# General markup affects text between a start delimiter and an end
|
289
|
+
# delimiter. Not surprisingly, these delimiters look like HTML markup.
|
290
|
+
#
|
291
|
+
# <tt>\<b>_text_</b></tt>:: displays _text_ in a *bold* font
|
292
|
+
# <tt>\<em>_text_</em></tt>:: displays _text_ in an _emphasized_ font
|
293
|
+
# (alternate tag: <tt>\<i></tt>)
|
294
|
+
# <tt>\<tt>_text_\</tt></tt>:: displays _text_ in a +code+ font
|
295
|
+
# (alternate tag: <tt>\<code></tt>)
|
296
|
+
#
|
297
|
+
# Unlike conventional Wiki markup, general markup can cross line
|
298
|
+
# boundaries. You can turn off the interpretation of markup by
|
299
|
+
# preceding the first character with a backslash (see <i>Escaping
|
300
|
+
# Text Markup</i>, below).
|
301
|
+
#
|
302
|
+
# === Links
|
303
|
+
#
|
304
|
+
# Links to starting with +http:+, +https:+, +mailto:+, +ftp:+ or +www.+
|
305
|
+
# are recognized. An HTTP url that references an external image is converted
|
306
|
+
# into an inline image element.
|
307
|
+
#
|
308
|
+
# Classes and methods will be automatically linked to their definition. For
|
309
|
+
# example, <tt>RDoc::Markup</tt> will link to this documentation. By default
|
310
|
+
# methods will only be automatically linked if they contain an <tt>_</tt> (all
|
311
|
+
# methods can be automatically linked through the <tt>--hyperlink-all</tt>
|
312
|
+
# command line option).
|
313
|
+
#
|
314
|
+
# Single-word methods can be linked by using the <tt>#</tt> character for
|
315
|
+
# instance methods or <tt>::</tt> for class methods. For example,
|
316
|
+
# <tt>#convert</tt> links to #convert. A class or method may be combined like
|
317
|
+
# <tt>RDoc::Markup#convert</tt>.
|
318
|
+
#
|
319
|
+
# A heading inside the documentation can be linked by following the class
|
320
|
+
# or method by an <tt>@</tt> then the heading name.
|
321
|
+
# <tt>RDoc::Markup@Links</tt> will link to this section like this:
|
322
|
+
# RDoc::Markup@Links. Spaces in headings with multiple words must be escaped
|
323
|
+
# with <tt>+</tt> like <tt>RDoc::Markup@Escaping+Text+Markup</tt>.
|
324
|
+
# Punctuation and other special characters must be escaped like CGI.escape.
|
325
|
+
#
|
326
|
+
# Links can also be of the form <tt>label[url]</tt>, in which case +label+ is
|
327
|
+
# used in the displayed text, and +url+ is used as the target. If +label+
|
328
|
+
# contains multiple words, put it in braces: <tt>{multi word label}[url]</tt>.
|
329
|
+
# The +url+ may be an +http:+-type link or a cross-reference to a class,
|
330
|
+
# module or method with a label.
|
331
|
+
#
|
332
|
+
# Links with the <tt>rdoc-ref:</tt> scheme will link to the referenced class,
|
333
|
+
# module, method, file, etc. If the referenced item is does not exist
|
334
|
+
# no link will be generated and <tt>rdoc-ref:</tt> will be removed from the
|
335
|
+
# resulting text.
|
336
|
+
#
|
337
|
+
# Links starting with <tt>rdoc-label:label_name</tt> will link to the
|
338
|
+
# +label_name+. You can create a label for the current link (for
|
339
|
+
# bidirectional links) by supplying a name for the current link like
|
340
|
+
# <tt>rdoc-label:label-other:label-mine</tt>.
|
341
|
+
#
|
342
|
+
# Links starting with +link:+ refer to local files whose path is relative to
|
343
|
+
# the <tt>--op</tt> directory. Use <tt>rdoc-ref:</tt> instead of
|
344
|
+
# <tt>link:</tt> to link to files generated by RDoc as the link target may
|
345
|
+
# be different across RDoc generators.
|
346
|
+
#
|
347
|
+
# Example links:
|
348
|
+
#
|
349
|
+
# https://github.com/rdoc/rdoc
|
350
|
+
# mailto:user@example.com
|
351
|
+
# {RDoc Documentation}[http://rdoc.rubyforge.org]
|
352
|
+
# {RDoc Markup}[rdoc-ref:RDoc::Markup]
|
353
|
+
#
|
354
|
+
# === Escaping Text Markup
|
355
|
+
#
|
356
|
+
# Text markup can be escaped with a backslash, as in \<tt>, which was obtained
|
357
|
+
# with <tt>\\<tt></tt>. Except in verbatim sections and between \<tt> tags,
|
358
|
+
# to produce a backslash you have to double it unless it is followed by a
|
359
|
+
# space, tab or newline. Otherwise, the HTML formatter will discard it, as it
|
360
|
+
# is used to escape potential links:
|
361
|
+
#
|
362
|
+
# * The \ must be doubled if not followed by white space: \\.
|
363
|
+
# * But not in \<tt> tags: in a Regexp, <tt>\S</tt> matches non-space.
|
364
|
+
# * This is a link to {ruby-lang}[www.ruby-lang.org].
|
365
|
+
# * This is not a link, however: \{ruby-lang.org}[www.ruby-lang.org].
|
366
|
+
# * This will not be linked to \RDoc::RDoc#document
|
367
|
+
#
|
368
|
+
# generates:
|
369
|
+
#
|
370
|
+
# * The \ must be doubled if not followed by white space: \\.
|
371
|
+
# * But not in \<tt> tags: in a Regexp, <tt>\S</tt> matches non-space.
|
372
|
+
# * This is a link to {ruby-lang}[www.ruby-lang.org]
|
373
|
+
# * This is not a link, however: \{ruby-lang.org}[www.ruby-lang.org]
|
374
|
+
# * This will not be linked to \RDoc::RDoc#document
|
375
|
+
#
|
376
|
+
# Inside \<tt> tags, more precisely, leading backslashes are removed only if
|
377
|
+
# followed by a markup character (<tt><*_+</tt>), a backslash, or a known link
|
378
|
+
# reference (a known class or method). So in the example above, the backslash
|
379
|
+
# of <tt>\S</tt> would be removed if there was a class or module named +S+ in
|
380
|
+
# the current context.
|
381
|
+
#
|
382
|
+
# This behavior is inherited from RDoc version 1, and has been kept for
|
383
|
+
# compatibility with existing RDoc documentation.
|
384
|
+
#
|
385
|
+
# === Conversion of characters
|
386
|
+
#
|
387
|
+
# HTML will convert two/three dashes to an em-dash. Other common characters are
|
388
|
+
# converted as well:
|
389
|
+
#
|
390
|
+
# em-dash:: -- or ---
|
391
|
+
# ellipsis:: ...
|
392
|
+
#
|
393
|
+
# single quotes:: 'text' or `text'
|
394
|
+
# double quotes:: "text" or ``text''
|
395
|
+
#
|
396
|
+
# copyright:: (c)
|
397
|
+
# registered trademark:: (r)
|
398
|
+
#
|
399
|
+
# produces:
|
400
|
+
#
|
401
|
+
# em-dash:: -- or ---
|
402
|
+
# ellipsis:: ...
|
403
|
+
#
|
404
|
+
# single quotes:: 'text' or `text'
|
405
|
+
# double quotes:: "text" or ``text''
|
406
|
+
#
|
407
|
+
# copyright:: (c)
|
408
|
+
# registered trademark:: (r)
|
409
|
+
#
|
410
|
+
#
|
411
|
+
# == Documenting Source Code
|
412
|
+
#
|
413
|
+
# Comment blocks can be written fairly naturally, either using <tt>#</tt> on
|
414
|
+
# successive lines of the comment, or by including the comment in
|
415
|
+
# a <tt>=begin</tt>/<tt>=end</tt> block. If you use the latter form,
|
416
|
+
# the <tt>=begin</tt> line _must_ be flagged with an +rdoc+ tag:
|
417
|
+
#
|
418
|
+
# =begin rdoc
|
419
|
+
# Documentation to be processed by RDoc.
|
420
|
+
#
|
421
|
+
# ...
|
422
|
+
# =end
|
423
|
+
#
|
424
|
+
# RDoc stops processing comments if it finds a comment line starting
|
425
|
+
# with <tt>--</tt> right after the <tt>#</tt> character (otherwise,
|
426
|
+
# it will be treated as a rule if it has three dashes or more).
|
427
|
+
# This can be used to separate external from internal comments,
|
428
|
+
# or to stop a comment being associated with a method, class, or module.
|
429
|
+
# Commenting can be turned back on with a line that starts with <tt>++</tt>.
|
430
|
+
#
|
431
|
+
# ##
|
432
|
+
# # Extract the age and calculate the date-of-birth.
|
433
|
+
# #--
|
434
|
+
# # FIXME: fails if the birthday falls on February 29th
|
435
|
+
# #++
|
436
|
+
# # The DOB is returned as a Time object.
|
437
|
+
#
|
438
|
+
# def get_dob(person)
|
439
|
+
# # ...
|
440
|
+
# end
|
441
|
+
#
|
442
|
+
# Names of classes, files, and any method names containing an underscore or
|
443
|
+
# preceded by a hash character are automatically linked from comment text to
|
444
|
+
# their description. This linking works inside the current class or module,
|
445
|
+
# and with ancestor methods (in included modules or in the superclass).
|
446
|
+
#
|
447
|
+
# Method parameter lists are extracted and displayed with the method
|
448
|
+
# description. If a method calls +yield+, then the parameters passed to yield
|
449
|
+
# will also be displayed:
|
450
|
+
#
|
451
|
+
# def fred
|
452
|
+
# ...
|
453
|
+
# yield line, address
|
454
|
+
#
|
455
|
+
# This will get documented as:
|
456
|
+
#
|
457
|
+
# fred() { |line, address| ... }
|
458
|
+
#
|
459
|
+
# You can override this using a comment containing ':yields: ...' immediately
|
460
|
+
# after the method definition
|
461
|
+
#
|
462
|
+
# def fred # :yields: index, position
|
463
|
+
# # ...
|
464
|
+
#
|
465
|
+
# yield line, address
|
466
|
+
#
|
467
|
+
# which will get documented as
|
468
|
+
#
|
469
|
+
# fred() { |index, position| ... }
|
470
|
+
#
|
471
|
+
# +:yields:+ is an example of a documentation directive. These appear
|
472
|
+
# immediately after the start of the document element they are modifying.
|
473
|
+
#
|
474
|
+
# RDoc automatically cross-references words with underscores or camel-case.
|
475
|
+
# To suppress cross-references, prefix the word with a \ character. To
|
476
|
+
# include special characters like "<tt>\n</tt>", you'll need to use
|
477
|
+
# two \ characters in normal text, but only one in \<tt> text:
|
478
|
+
#
|
479
|
+
# "\\n" or "<tt>\n</tt>"
|
480
|
+
#
|
481
|
+
# produces:
|
482
|
+
#
|
483
|
+
# "\\n" or "<tt>\n</tt>"
|
484
|
+
#
|
485
|
+
# == Directives
|
486
|
+
#
|
487
|
+
# Directives are keywords surrounded by ":" characters.
|
488
|
+
#
|
489
|
+
# === Controlling what is documented
|
490
|
+
#
|
491
|
+
# [+:nodoc:+ / <tt>:nodoc: all</tt>]
|
492
|
+
# This directive prevents documentation for the element from
|
493
|
+
# being generated. For classes and modules, methods, aliases,
|
494
|
+
# constants, and attributes directly within the affected class or
|
495
|
+
# module also will be omitted. By default, though, modules and
|
496
|
+
# classes within that class or module _will_ be documented. This is
|
497
|
+
# turned off by adding the +all+ modifier.
|
498
|
+
#
|
499
|
+
# module MyModule # :nodoc:
|
500
|
+
# class Input
|
501
|
+
# end
|
502
|
+
# end
|
503
|
+
#
|
504
|
+
# module OtherModule # :nodoc: all
|
505
|
+
# class Output
|
506
|
+
# end
|
507
|
+
# end
|
508
|
+
#
|
509
|
+
# In the above code, only class <tt>MyModule::Input</tt> will be documented.
|
510
|
+
#
|
511
|
+
# The +:nodoc:+ directive, like +:enddoc:+, +:stopdoc:+ and +:startdoc:+
|
512
|
+
# presented below, is local to the current file: if you do not want to
|
513
|
+
# document a module that appears in several files, specify +:nodoc:+ on each
|
514
|
+
# appearance, at least once per file.
|
515
|
+
#
|
516
|
+
# [+:stopdoc:+ / +:startdoc:+]
|
517
|
+
# Stop and start adding new documentation elements to the current container.
|
518
|
+
# For example, if a class has a number of constants that you don't want to
|
519
|
+
# document, put a +:stopdoc:+ before the first, and a +:startdoc:+ after the
|
520
|
+
# last. If you don't specify a +:startdoc:+ by the end of the container,
|
521
|
+
# disables documentation for the rest of the current file.
|
522
|
+
#
|
523
|
+
# [+:doc:+]
|
524
|
+
# Forces a method or attribute to be documented even if it wouldn't be
|
525
|
+
# otherwise. Useful if, for example, you want to include documentation of a
|
526
|
+
# particular private method.
|
527
|
+
#
|
528
|
+
# [+:enddoc:+]
|
529
|
+
# Document nothing further at the current level: directives +:startdoc:+ and
|
530
|
+
# +:doc:+ that appear after this will not be honored for the current container
|
531
|
+
# (file, class or module), in the current file.
|
532
|
+
#
|
533
|
+
# [+:notnew:+ / +:not_new:+ / +:not-new:+ ]
|
534
|
+
# Only applicable to the +initialize+ instance method. Normally RDoc
|
535
|
+
# assumes that the documentation and parameters for +initialize+ are
|
536
|
+
# actually for the +new+ method, and so fakes out a +new+ for the class.
|
537
|
+
# The +:notnew:+ directive stops this. Remember that +initialize+ is private,
|
538
|
+
# so you won't see the documentation unless you use the +-a+ command line
|
539
|
+
# option.
|
540
|
+
#
|
541
|
+
# === Method arguments
|
542
|
+
#
|
543
|
+
# [+:arg:+ or +:args:+ _parameters_]
|
544
|
+
# Overrides the default argument handling with exactly these parameters.
|
545
|
+
#
|
546
|
+
# ##
|
547
|
+
# # :args: a, b
|
548
|
+
#
|
549
|
+
# def some_method(*a)
|
550
|
+
# end
|
551
|
+
#
|
552
|
+
# [+:yield:+ or +:yields:+ _parameters_]
|
553
|
+
# Overrides the default yield discovery with these parameters.
|
554
|
+
#
|
555
|
+
# ##
|
556
|
+
# # :yields: key, value
|
557
|
+
#
|
558
|
+
# def each_thing &block
|
559
|
+
# @things.each(&block)
|
560
|
+
# end
|
561
|
+
#
|
562
|
+
# [+:call-seq:+]
|
563
|
+
# Lines up to the next blank line or lines with a common prefix in the
|
564
|
+
# comment are treated as the method's calling sequence, overriding the
|
565
|
+
# default parsing of method parameters and yield arguments.
|
566
|
+
#
|
567
|
+
# Multiple lines may be used.
|
568
|
+
#
|
569
|
+
# # :call-seq:
|
570
|
+
# # ARGF.readlines(sep=$/) -> array
|
571
|
+
# # ARGF.readlines(limit) -> array
|
572
|
+
# # ARGF.readlines(sep, limit) -> array
|
573
|
+
# #
|
574
|
+
# # ARGF.to_a(sep=$/) -> array
|
575
|
+
# # ARGF.to_a(limit) -> array
|
576
|
+
# # ARGF.to_a(sep, limit) -> array
|
577
|
+
# #
|
578
|
+
# # The remaining lines are documentation ...
|
579
|
+
#
|
580
|
+
# === Sections
|
581
|
+
#
|
582
|
+
# Sections allow you to group methods in a class into sensible containers. If
|
583
|
+
# you use the sections 'Public', 'Internal' and 'Deprecated' (the three
|
584
|
+
# allowed method statuses from TomDoc) the sections will be displayed in that
|
585
|
+
# order placing the most useful methods at the top. Otherwise, sections will
|
586
|
+
# be displayed in alphabetical order.
|
587
|
+
#
|
588
|
+
# [+:category:+ _section_]
|
589
|
+
# Adds this item to the named +section+ overriding the current section. Use
|
590
|
+
# this to group methods by section in RDoc output while maintaining a
|
591
|
+
# sensible ordering (like alphabetical).
|
592
|
+
#
|
593
|
+
# # :category: Utility Methods
|
594
|
+
# #
|
595
|
+
# # CGI escapes +text+
|
596
|
+
#
|
597
|
+
# def convert_string text
|
598
|
+
# CGI.escapeHTML text
|
599
|
+
# end
|
600
|
+
#
|
601
|
+
# An empty category will place the item in the default category:
|
602
|
+
#
|
603
|
+
# # :category:
|
604
|
+
# #
|
605
|
+
# # This method is in the default category
|
606
|
+
#
|
607
|
+
# def some_method
|
608
|
+
# # ...
|
609
|
+
# end
|
610
|
+
#
|
611
|
+
# Unlike the :section: directive, :category: is not sticky. The category
|
612
|
+
# only applies to the item immediately following the comment.
|
613
|
+
#
|
614
|
+
# Use the :section: directive to provide introductory text for a section of
|
615
|
+
# documentation.
|
616
|
+
#
|
617
|
+
# [+:section:+ _title_]
|
618
|
+
# Provides section introductory text in RDoc output. The title following
|
619
|
+
# +:section:+ is used as the section name and the remainder of the comment
|
620
|
+
# containing the section is used as introductory text. A section's comment
|
621
|
+
# block must be separated from following comment blocks. Use an empty title
|
622
|
+
# to switch to the default section.
|
623
|
+
#
|
624
|
+
# The :section: directive is sticky, so subsequent methods, aliases,
|
625
|
+
# attributes, and classes will be contained in this section until the
|
626
|
+
# section is changed. The :category: directive will override the :section:
|
627
|
+
# directive.
|
628
|
+
#
|
629
|
+
# A :section: comment block may have one or more lines before the :section:
|
630
|
+
# directive. These will be removed, and any identical lines at the end of
|
631
|
+
# the block are also removed. This allows you to add visual cues to the
|
632
|
+
# section.
|
633
|
+
#
|
634
|
+
# Example:
|
635
|
+
#
|
636
|
+
# # ----------------------------------------
|
637
|
+
# # :section: My Section
|
638
|
+
# # This is the section that I wrote.
|
639
|
+
# # See it glisten in the noon-day sun.
|
640
|
+
# # ----------------------------------------
|
641
|
+
#
|
642
|
+
# ##
|
643
|
+
# # Comment for some_method
|
644
|
+
#
|
645
|
+
# def some_method
|
646
|
+
# # ...
|
647
|
+
# end
|
648
|
+
#
|
649
|
+
# === Other directives
|
650
|
+
#
|
651
|
+
# [+:markup:+ _type_]
|
652
|
+
# Overrides the default markup type for this comment with the specified
|
653
|
+
# markup type. For ruby files, if the first comment contains this directive
|
654
|
+
# it is applied automatically to all comments in the file.
|
655
|
+
#
|
656
|
+
# To add additional markup types to RDoc, add the type's name and parsing
|
657
|
+
# class to RDoc::Text::MARKUP_FORMAT. The parsing class must respond to
|
658
|
+
# \::parse and accept a String argument.
|
659
|
+
#
|
660
|
+
# The parsing class must return an RDoc::Document.
|
661
|
+
#
|
662
|
+
# [+:include:+ _filename_]
|
663
|
+
# Include the contents of the named file at this point. This directive
|
664
|
+
# must appear alone on one line, possibly preceded by spaces. In this
|
665
|
+
# position, it can be escaped with a \ in front of the first colon.
|
666
|
+
#
|
667
|
+
# The file will be searched for in the directories listed by the +--include+
|
668
|
+
# option, or in the current directory by default. The contents of the file
|
669
|
+
# will be shifted to have the same indentation as the ':' at the start of
|
670
|
+
# the +:include:+ directive.
|
671
|
+
#
|
672
|
+
# [+:title:+ _text_]
|
673
|
+
# Sets the title for the document. Equivalent to the <tt>--title</tt>
|
674
|
+
# command line parameter. (The command line parameter overrides any :title:
|
675
|
+
# directive in the source).
|
676
|
+
#
|
677
|
+
# [+:main:+ _name_]
|
678
|
+
# Equivalent to the <tt>--main</tt> command line parameter.
|
679
|
+
#
|
680
|
+
#--
|
681
|
+
# Original Author:: Dave Thomas, dave@pragmaticprogrammer.com
|
682
|
+
# License:: Ruby license
|
683
|
+
|
684
|
+
class RDoc::Markup
|
685
|
+
|
686
|
+
##
|
687
|
+
# An AttributeManager which handles inline markup.
|
688
|
+
|
689
|
+
attr_reader :attribute_manager
|
690
|
+
|
691
|
+
##
|
692
|
+
# Parses +str+ into an RDoc::Markup::Document.
|
693
|
+
|
694
|
+
def self.parse str
|
695
|
+
RDoc::Markup::Parser.parse str
|
696
|
+
rescue RDoc::Markup::Parser::Error => e
|
697
|
+
$stderr.puts <<-EOF
|
698
|
+
While parsing markup, RDoc encountered a #{e.class}:
|
699
|
+
|
700
|
+
#{e}
|
701
|
+
\tfrom #{e.backtrace.join "\n\tfrom "}
|
702
|
+
|
703
|
+
---8<---
|
704
|
+
#{text}
|
705
|
+
---8<---
|
706
|
+
|
707
|
+
RDoc #{RDoc::VERSION}
|
708
|
+
|
709
|
+
Ruby #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL} #{RUBY_RELEASE_DATE}
|
710
|
+
|
711
|
+
Please file a bug report with the above information at:
|
712
|
+
|
713
|
+
https://github.com/rdoc/rdoc/issues
|
714
|
+
|
715
|
+
EOF
|
716
|
+
raise
|
717
|
+
end
|
718
|
+
|
719
|
+
##
|
720
|
+
# Take a block of text and use various heuristics to determine its
|
721
|
+
# structure (paragraphs, lists, and so on). Invoke an event handler as we
|
722
|
+
# identify significant chunks.
|
723
|
+
|
724
|
+
def initialize attribute_manager = nil
|
725
|
+
@attribute_manager = attribute_manager || RDoc::Markup::AttributeManager.new
|
726
|
+
@output = nil
|
727
|
+
end
|
728
|
+
|
729
|
+
##
|
730
|
+
# Add to the sequences used to add formatting to an individual word (such
|
731
|
+
# as *bold*). Matching entries will generate attributes that the output
|
732
|
+
# formatters can recognize by their +name+.
|
733
|
+
|
734
|
+
def add_word_pair(start, stop, name)
|
735
|
+
@attribute_manager.add_word_pair(start, stop, name)
|
736
|
+
end
|
737
|
+
|
738
|
+
##
|
739
|
+
# Add to the sequences recognized as general markup.
|
740
|
+
|
741
|
+
def add_html(tag, name)
|
742
|
+
@attribute_manager.add_html(tag, name)
|
743
|
+
end
|
744
|
+
|
745
|
+
##
|
746
|
+
# Add to other inline sequences. For example, we could add WikiWords using
|
747
|
+
# something like:
|
748
|
+
#
|
749
|
+
# parser.add_special(/\b([A-Z][a-z]+[A-Z]\w+)/, :WIKIWORD)
|
750
|
+
#
|
751
|
+
# Each wiki word will be presented to the output formatter via the
|
752
|
+
# accept_special method.
|
753
|
+
|
754
|
+
def add_special(pattern, name)
|
755
|
+
@attribute_manager.add_special(pattern, name)
|
756
|
+
end
|
757
|
+
|
758
|
+
##
|
759
|
+
# We take +input+, parse it if necessary, then invoke the output +formatter+
|
760
|
+
# using a Visitor to render the result.
|
761
|
+
|
762
|
+
def convert input, formatter
|
763
|
+
document = case input
|
764
|
+
when RDoc::Markup::Document then
|
765
|
+
input
|
766
|
+
else
|
767
|
+
RDoc::Markup::Parser.parse input
|
768
|
+
end
|
769
|
+
|
770
|
+
document.accept formatter
|
771
|
+
end
|
772
|
+
|
773
|
+
autoload :Parser, 'rdoc/markup/parser'
|
774
|
+
autoload :PreProcess, 'rdoc/markup/pre_process'
|
775
|
+
|
776
|
+
# Inline markup classes
|
777
|
+
autoload :AttrChanger, 'rdoc/markup/attr_changer'
|
778
|
+
autoload :AttrSpan, 'rdoc/markup/attr_span'
|
779
|
+
autoload :Attribute, 'rdoc/markup/attribute'
|
780
|
+
autoload :AttributeManager, 'rdoc/markup/attribute_manager'
|
781
|
+
autoload :Special, 'rdoc/markup/special'
|
782
|
+
|
783
|
+
# RDoc::Markup AST
|
784
|
+
autoload :BlankLine, 'rdoc/markup/blank_line'
|
785
|
+
autoload :Document, 'rdoc/markup/document'
|
786
|
+
autoload :Heading, 'rdoc/markup/heading'
|
787
|
+
autoload :Include, 'rdoc/markup/include'
|
788
|
+
autoload :IndentedParagraph, 'rdoc/markup/indented_paragraph'
|
789
|
+
autoload :List, 'rdoc/markup/list'
|
790
|
+
autoload :ListItem, 'rdoc/markup/list_item'
|
791
|
+
autoload :Paragraph, 'rdoc/markup/paragraph'
|
792
|
+
autoload :Raw, 'rdoc/markup/raw'
|
793
|
+
autoload :Rule, 'rdoc/markup/rule'
|
794
|
+
autoload :Verbatim, 'rdoc/markup/verbatim'
|
795
|
+
|
796
|
+
# Formatters
|
797
|
+
autoload :Formatter, 'rdoc/markup/formatter'
|
798
|
+
autoload :FormatterTestCase, 'rdoc/markup/formatter_test_case'
|
799
|
+
autoload :TextFormatterTestCase, 'rdoc/markup/text_formatter_test_case'
|
800
|
+
|
801
|
+
autoload :ToAnsi, 'rdoc/markup/to_ansi'
|
802
|
+
autoload :ToBs, 'rdoc/markup/to_bs'
|
803
|
+
autoload :ToHtml, 'rdoc/markup/to_html'
|
804
|
+
autoload :ToHtmlCrossref, 'rdoc/markup/to_html_crossref'
|
805
|
+
autoload :ToHtmlSnippet, 'rdoc/markup/to_html_snippet'
|
806
|
+
autoload :ToLabel, 'rdoc/markup/to_label'
|
807
|
+
autoload :ToRdoc, 'rdoc/markup/to_rdoc'
|
808
|
+
autoload :ToTableOfContents, 'rdoc/markup/to_table_of_contents'
|
809
|
+
autoload :ToTest, 'rdoc/markup/to_test'
|
810
|
+
autoload :ToTtOnly, 'rdoc/markup/to_tt_only'
|
811
|
+
|
812
|
+
end
|
813
|
+
|