gemrage 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +21 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +35 -0
- data/LICENSE +20 -0
- data/README.rdoc +17 -0
- data/Rakefile +55 -0
- data/VERSION +1 -0
- data/gemrage.gemspec +923 -0
- data/lib/gemrage.rb +0 -0
- data/lib/rubygems/commands/scan_command.rb +25 -0
- data/lib/rubygems_plugin.rb +4 -0
- data/spec/gemrage_spec.rb +7 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +9 -0
- data/vendor/ruby/1.8/bin/bundle +19 -0
- data/vendor/ruby/1.8/bin/edit_json.rb +19 -0
- data/vendor/ruby/1.8/bin/htmldiff +19 -0
- data/vendor/ruby/1.8/bin/jeweler +19 -0
- data/vendor/ruby/1.8/bin/ldiff +19 -0
- data/vendor/ruby/1.8/bin/prettify_json.rb +19 -0
- data/vendor/ruby/1.8/bin/restclient +19 -0
- data/vendor/ruby/1.8/bin/rspec +19 -0
- data/vendor/ruby/1.8/bin/rubyforge +19 -0
- data/vendor/ruby/1.8/cache/bundler-1.0.3.gem +0 -0
- data/vendor/ruby/1.8/cache/diff-lcs-1.1.2.gem +0 -0
- data/vendor/ruby/1.8/cache/gemcutter-0.6.1.gem +0 -0
- data/vendor/ruby/1.8/cache/git-1.2.5.gem +0 -0
- data/vendor/ruby/1.8/cache/jeweler-1.4.0.gem +0 -0
- data/vendor/ruby/1.8/cache/json_pure-1.4.6.gem +0 -0
- data/vendor/ruby/1.8/cache/mime-types-1.16.gem +0 -0
- data/vendor/ruby/1.8/cache/rest-client-1.6.1.gem +0 -0
- data/vendor/ruby/1.8/cache/rspec-2.0.0.gem +0 -0
- data/vendor/ruby/1.8/cache/rspec-core-2.0.0.gem +0 -0
- data/vendor/ruby/1.8/cache/rspec-expectations-2.0.0.gem +0 -0
- data/vendor/ruby/1.8/cache/rspec-mocks-2.0.0.gem +0 -0
- data/vendor/ruby/1.8/cache/rubyforge-2.0.4.gem +0 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/.gitignore +12 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/CHANGELOG.md +547 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/ISSUES.md +32 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/LICENSE +20 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/README.md +29 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/Rakefile +139 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/UPGRADING.md +103 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/bin/bundle +21 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/bundler.gemspec +30 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/capistrano.rb +11 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/cli.rb +515 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/definition.rb +421 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/dependency.rb +114 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/deployment.rb +37 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/dsl.rb +245 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/environment.rb +47 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/gem_helper.rb +148 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/graph.rb +130 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/index.rb +114 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/installer.rb +84 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/lazy_specification.rb +71 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/lockfile_parser.rb +108 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/remote_specification.rb +59 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/resolver.rb +455 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/rubygems_ext.rb +203 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/runtime.rb +148 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/settings.rb +117 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/setup.rb +15 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/shared_helpers.rb +151 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/source.rb +662 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/spec_set.rb +134 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/templates/Executable +16 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/templates/Gemfile +4 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/templates/newgem/Gemfile.tt +4 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/templates/newgem/Rakefile.tt +2 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/templates/newgem/bin/newgem.tt +3 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/templates/newgem/gitignore.tt +3 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +7 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/templates/newgem/lib/newgem.rb.tt +7 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/templates/newgem/newgem.gemspec.tt +21 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/ui.rb +60 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/actions/create_file.rb +105 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/actions/directory.rb +93 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/actions/empty_directory.rb +134 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/actions/file_manipulation.rb +229 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/actions/inject_into_file.rb +104 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/actions.rb +297 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/base.rb +556 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/core_ext/file_binary_read.rb +9 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/core_ext/hash_with_indifferent_access.rb +75 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/core_ext/ordered_hash.rb +100 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/error.rb +30 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/invocation.rb +168 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/parser/argument.rb +67 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/parser/arguments.rb +161 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/parser/option.rb +120 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/parser/options.rb +174 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/parser.rb +4 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/shell/basic.rb +275 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/shell/color.rb +108 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/shell/html.rb +121 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/shell.rb +88 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/task.rb +114 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/util.rb +229 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/version.rb +3 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor.rb +319 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/version.rb +6 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler/vlad.rb +9 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/lib/bundler.rb +284 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/man/bundle-config.ronn +90 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/man/bundle-exec.ronn +98 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/man/bundle-install.ronn +310 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/man/bundle-package.ronn +59 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/man/bundle-update.ronn +176 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/man/bundle.ronn +77 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/man/gemfile.5.ronn +273 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/man/index.txt +6 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/cache/gems_spec.rb +205 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/cache/git_spec.rb +9 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/cache/path_spec.rb +27 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/cache/platform_spec.rb +57 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/deploy_spec.rb +178 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/deprecated_spec.rb +43 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/gems/c_ext_spec.rb +48 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/gems/env_spec.rb +107 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/gems/flex_spec.rb +272 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/gems/groups_spec.rb +228 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/gems/packed_spec.rb +72 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/gems/platform_spec.rb +195 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/gems/resolving_spec.rb +72 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/gems/simple_case_spec.rb +742 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/gems/sudo_spec.rb +77 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/gems/win32_spec.rb +26 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/gemspec_spec.rb +96 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/git_spec.rb +553 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/invalid_spec.rb +17 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/path_spec.rb +329 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/upgrade_spec.rb +26 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/lock/flex_spec.rb +650 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/lock/git_spec.rb +35 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/check_spec.rb +221 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/config_spec.rb +40 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/console_spec.rb +54 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/exec_spec.rb +241 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/ext_spec.rb +16 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/gem_helper_spec.rb +116 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/help_spec.rb +36 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/init_spec.rb +40 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/newgem_spec.rb +24 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/open_spec.rb +35 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/other/show_spec.rb +82 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/pack/gems_spec.rb +22 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/quality_spec.rb +55 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/resolver/basic_spec.rb +20 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/resolver/platform_spec.rb +57 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/runtime/environment_rb_spec.rb +162 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/runtime/executable_spec.rb +110 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/runtime/load_spec.rb +102 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/runtime/platform_spec.rb +90 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/runtime/require_spec.rb +231 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/runtime/setup_spec.rb +412 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/runtime/with_clean_env_spec.rb +15 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/spec_helper.rb +82 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/support/builders.rb +566 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/support/helpers.rb +243 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/support/indexes.rb +113 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/support/matchers.rb +89 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/support/path.rb +71 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/support/platforms.rb +49 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/support/ruby_ext.rb +19 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/support/rubygems_ext.rb +30 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/support/rubygems_hax/rubygems_plugin.rb +9 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/support/sudo.rb +21 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/update/gems_spec.rb +86 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/update/git_spec.rb +159 -0
- data/vendor/ruby/1.8/gems/bundler-1.0.3/spec/update/source_spec.rb +50 -0
- data/vendor/ruby/1.8/gems/diff-lcs-1.1.2/ChangeLog +46 -0
- data/vendor/ruby/1.8/gems/diff-lcs-1.1.2/Install +6 -0
- data/vendor/ruby/1.8/gems/diff-lcs-1.1.2/README +76 -0
- data/vendor/ruby/1.8/gems/diff-lcs-1.1.2/Rakefile +116 -0
- data/vendor/ruby/1.8/gems/diff-lcs-1.1.2/bin/htmldiff +112 -0
- data/vendor/ruby/1.8/gems/diff-lcs-1.1.2/bin/ldiff +45 -0
- data/vendor/ruby/1.8/gems/diff-lcs-1.1.2/lib/diff/lcs/array.rb +21 -0
- data/vendor/ruby/1.8/gems/diff-lcs-1.1.2/lib/diff/lcs/block.rb +51 -0
- data/vendor/ruby/1.8/gems/diff-lcs-1.1.2/lib/diff/lcs/callbacks.rb +322 -0
- data/vendor/ruby/1.8/gems/diff-lcs-1.1.2/lib/diff/lcs/change.rb +169 -0
- data/vendor/ruby/1.8/gems/diff-lcs-1.1.2/lib/diff/lcs/hunk.rb +257 -0
- data/vendor/ruby/1.8/gems/diff-lcs-1.1.2/lib/diff/lcs/ldiff.rb +226 -0
- data/vendor/ruby/1.8/gems/diff-lcs-1.1.2/lib/diff/lcs/string.rb +19 -0
- data/vendor/ruby/1.8/gems/diff-lcs-1.1.2/lib/diff/lcs.rb +1105 -0
- data/vendor/ruby/1.8/gems/diff-lcs-1.1.2/tests/00test.rb +626 -0
- data/vendor/ruby/1.8/gems/gemcutter-0.6.1/MIT-LICENSE +22 -0
- data/vendor/ruby/1.8/gems/gemcutter-0.6.1/Rakefile +51 -0
- data/vendor/ruby/1.8/gems/gemcutter-0.6.1/lib/rubygems/commands/migrate_command.rb +14 -0
- data/vendor/ruby/1.8/gems/gemcutter-0.6.1/lib/rubygems/commands/tumble_command.rb +13 -0
- data/vendor/ruby/1.8/gems/gemcutter-0.6.1/lib/rubygems/commands/webhook_command.rb +117 -0
- data/vendor/ruby/1.8/gems/gemcutter-0.6.1/lib/rubygems/commands/yank_command.rb +72 -0
- data/vendor/ruby/1.8/gems/gemcutter-0.6.1/lib/rubygems_plugin.rb +7 -0
- data/vendor/ruby/1.8/gems/gemcutter-0.6.1/test/helper.rb +42 -0
- data/vendor/ruby/1.8/gems/gemcutter-0.6.1/test/webhook_command_test.rb +241 -0
- data/vendor/ruby/1.8/gems/gemcutter-0.6.1/test/yank_command_test.rb +85 -0
- data/vendor/ruby/1.8/gems/git-1.2.5/README +240 -0
- data/vendor/ruby/1.8/gems/git-1.2.5/lib/git/author.rb +14 -0
- data/vendor/ruby/1.8/gems/git-1.2.5/lib/git/base.rb +479 -0
- data/vendor/ruby/1.8/gems/git-1.2.5/lib/git/branch.rb +104 -0
- data/vendor/ruby/1.8/gems/git-1.2.5/lib/git/branches.rb +48 -0
- data/vendor/ruby/1.8/gems/git-1.2.5/lib/git/diff.rb +146 -0
- data/vendor/ruby/1.8/gems/git-1.2.5/lib/git/index.rb +5 -0
- data/vendor/ruby/1.8/gems/git-1.2.5/lib/git/lib.rb +719 -0
- data/vendor/ruby/1.8/gems/git-1.2.5/lib/git/log.rb +117 -0
- data/vendor/ruby/1.8/gems/git-1.2.5/lib/git/object.rb +273 -0
- data/vendor/ruby/1.8/gems/git-1.2.5/lib/git/path.rb +27 -0
- data/vendor/ruby/1.8/gems/git-1.2.5/lib/git/remote.rb +40 -0
- data/vendor/ruby/1.8/gems/git-1.2.5/lib/git/repository.rb +4 -0
- data/vendor/ruby/1.8/gems/git-1.2.5/lib/git/stash.rb +27 -0
- data/vendor/ruby/1.8/gems/git-1.2.5/lib/git/stashes.rb +44 -0
- data/vendor/ruby/1.8/gems/git-1.2.5/lib/git/status.rb +110 -0
- data/vendor/ruby/1.8/gems/git-1.2.5/lib/git/working_directory.rb +4 -0
- data/vendor/ruby/1.8/gems/git-1.2.5/lib/git.rb +156 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/.gitignore +10 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/ChangeLog.markdown +141 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/LICENSE +20 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/README.markdown +208 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/Rakefile +93 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/VERSION.yml +5 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/bin/jeweler +5 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/features/generator/cucumber.feature +83 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/features/generator/directory_layout.feature +76 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/features/generator/dotdocument.feature +14 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/features/generator/env_options.feature +9 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/features/generator/git.feature +94 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/features/generator/license.feature +11 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/features/generator/rakefile.feature +151 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/features/generator/readme.feature +12 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/features/generator/test.feature +48 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/features/generator/test_helper.feature +56 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/features/placeholder.feature +5 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/features/step_definitions/debug_steps.rb +6 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/features/step_definitions/filesystem_steps.rb +68 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/features/step_definitions/generator_steps.rb +291 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/features/step_definitions/task_steps.rb +6 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/features/support/env.rb +29 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/features/tasks/build_gem.feature +9 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/features/tasks/version.feature +31 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/features/tasks/version_bumping.feature +49 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/jeweler.gemspec +264 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/build_gem.rb +36 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/check_dependencies.rb +52 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/install_gem.rb +30 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/release_to_gemcutter.rb +27 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/release_to_git.rb +57 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/release_to_github.rb +66 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/release_to_rubyforge.rb +52 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/setup_rubyforge.rb +63 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/validate_gemspec.rb +30 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/version/base.rb +41 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/version/bump_major.rb +13 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/version/bump_minor.rb +12 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/version/bump_patch.rb +14 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/version/write.rb +12 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/write_gemspec.rb +41 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands.rb +22 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/errors.rb +20 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/gemcutter_tasks.rb +36 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/gemspec_helper.rb +92 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/generator/application.rb +52 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/generator/bacon_mixin.rb +43 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/generator/github_mixin.rb +29 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/generator/micronaut_mixin.rb +41 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/generator/minitest_mixin.rb +42 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/generator/options.rb +159 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/generator/rdoc_mixin.rb +9 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/generator/riot_mixin.rb +42 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/generator/rspec_mixin.rb +42 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/generator/shoulda_mixin.rb +42 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/generator/testspec_mixin.rb +42 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/generator/testunit_mixin.rb +39 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/generator/yard_mixin.rb +14 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/generator.rb +270 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/rubyforge_tasks.rb +118 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/specification.rb +94 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/tasks.rb +178 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/.document +5 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/.gitignore +21 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/LICENSE +20 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/README.rdoc +17 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/Rakefile +6 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/bacon/flunking.rb +7 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/bacon/helper.rb +8 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/features/default.feature +9 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/features/support/env.rb +8 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/jeweler_tasks.erb +29 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/micronaut/flunking.rb +7 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/micronaut/helper.rb +17 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/minitest/flunking.rb +7 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/minitest/helper.rb +11 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/other_tasks.erb +117 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/riot/flunking.rb +11 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/riot/helper.rb +3 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/rspec/flunking.rb +7 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/rspec/helper.rb +10 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/rspec/spec.opts +1 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/shoulda/flunking.rb +7 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/shoulda/helper.rb +10 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/testspec/flunking.rb +7 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/testspec/helper.rb +7 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/testunit/flunking.rb +7 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/templates/testunit/helper.rb +9 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/version_helper.rb +137 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler.rb +175 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/bar/VERSION.yml +4 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/bar/bin/foo_the_ultimate_bin +1 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/bar/hey_include_me_in_gemspec +0 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/bar/lib/foo_the_ultimate_lib.rb +1 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-constant/.document +5 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-constant/.gitignore +5 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-constant/LICENSE +20 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-constant/README.rdoc +7 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-constant/Rakefile +83 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-constant/existing-project-with-version.gemspec +29 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-constant/lib/existing_project_with_version.rb +0 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-constant/test/existing_project_with_version_test.rb +7 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-constant/test/test_helper.rb +10 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-plaintext/.document +5 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-plaintext/.gitignore +5 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-plaintext/LICENSE +20 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-plaintext/README.rdoc +7 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-plaintext/Rakefile +82 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-plaintext/VERSION +1 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-plaintext/existing-project-with-version.gemspec +29 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-plaintext/lib/existing_project_with_version.rb +0 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-plaintext/test/existing_project_with_version_test.rb +7 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-plaintext/test/test_helper.rb +10 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-yaml/.document +5 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-yaml/.gitignore +5 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-yaml/LICENSE +20 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-yaml/README.rdoc +7 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-yaml/Rakefile +82 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-yaml/VERSION.yml +4 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-yaml/bin/foo_the_ultimate_bin +0 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-yaml/existing-project-with-version.gemspec +29 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-yaml/lib/existing_project_with_version.rb +0 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-yaml/test/existing_project_with_version_test.rb +7 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/fixtures/existing-project-with-version-yaml/test/test_helper.rb +10 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/geminstaller.yml +12 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/test_build_gem.rb +103 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/test_install_gem.rb +35 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/test_release_to_gemcutter.rb +39 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/test_release_to_git.rb +201 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/test_release_to_github.rb +323 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/test_release_to_rubyforge.rb +153 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/test_setup_rubyforge.rb +178 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/test_validate_gemspec.rb +27 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/test_write_gemspec.rb +101 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/version/test_base.rb +32 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/version/test_bump_major.rb +22 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/version/test_bump_minor.rb +19 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/version/test_bump_patch.rb +20 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/commands/version/test_write.rb +22 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/generator/test_application.rb +112 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/generator/test_options.rb +231 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/test_gemspec_helper.rb +44 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/test_generator.rb +122 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/test_generator_initialization.rb +164 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/test_generator_mixins.rb +23 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/test_specification.rb +231 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/test_tasks.rb +50 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/jeweler/test_version_helper.rb +214 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/shoulda_macros/jeweler_macros.rb +35 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/test_helper.rb +180 -0
- data/vendor/ruby/1.8/gems/jeweler-1.4.0/test/test_jeweler.rb +187 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/CHANGES +179 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/COPYING +58 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/GPL +340 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/README +356 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/Rakefile +292 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/TODO +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/VERSION +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkComparison.log +52 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat +1001 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty-autocorrelation.dat +900 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty.dat +901 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat +1001 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt.log +261 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast.dat +1001 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat +1001 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat +1001 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure.log +262 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat +1001 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails.log +82 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkComparison.log +34 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat +900 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser.dat +901 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt.log +81 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat +1001 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure.log +82 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat +1001 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails.log +82 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat +1001 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML.log +82 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/generator2_benchmark.rb +222 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/generator_benchmark.rb +224 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/ohai.json +1216 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/ohai.ruby +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/parser2_benchmark.rb +251 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/benchmarks/parser_benchmark.rb +259 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/bin/edit_json.rb +9 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/bin/prettify_json.rb +75 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/data/example.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/data/index.html +38 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/data/prototype.js +4184 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/ext/json/ext/generator/extconf.rb +20 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/ext/json/ext/generator/generator.c +1417 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/ext/json/ext/generator/generator.h +197 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/ext/json/ext/parser/extconf.rb +15 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/ext/json/ext/parser/parser.c +1935 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/ext/json/ext/parser/parser.h +71 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/ext/json/ext/parser/parser.rl +792 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/install.rb +26 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/lib/json/Array.xpm +21 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/lib/json/FalseClass.xpm +21 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/lib/json/Hash.xpm +21 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/lib/json/Key.xpm +73 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/lib/json/NilClass.xpm +21 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/lib/json/Numeric.xpm +28 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/lib/json/String.xpm +96 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/lib/json/TrueClass.xpm +21 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/lib/json/add/core.rb +148 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/lib/json/add/rails.rb +58 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/lib/json/common.rb +391 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/lib/json/editor.rb +1371 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/lib/json/ext.rb +15 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/lib/json/json.xpm +1499 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/lib/json/pure/generator.rb +439 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/lib/json/pure/parser.rb +309 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/lib/json/pure.rb +77 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/lib/json/version.rb +8 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/lib/json.rb +10 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail1.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail10.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail11.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail12.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail13.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail14.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail18.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail19.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail2.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail20.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail21.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail22.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail23.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail24.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail25.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail27.json +2 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail28.json +2 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail3.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail4.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail5.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail6.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail7.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail8.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/fail9.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/pass1.json +56 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/pass15.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/pass16.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/pass17.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/pass2.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/pass26.json +1 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/fixtures/pass3.json +6 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/test_json.rb +394 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/test_json_addition.rb +162 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/test_json_encoding.rb +68 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/test_json_fixtures.rb +34 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/test_json_generate.rb +181 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/test_json_rails.rb +144 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tests/test_json_unicode.rb +76 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tools/fuzz.rb +139 -0
- data/vendor/ruby/1.8/gems/json_pure-1.4.6/tools/server.rb +61 -0
- data/vendor/ruby/1.8/gems/mime-types-1.16/History.txt +107 -0
- data/vendor/ruby/1.8/gems/mime-types-1.16/Install.txt +17 -0
- data/vendor/ruby/1.8/gems/mime-types-1.16/Licence.txt +15 -0
- data/vendor/ruby/1.8/gems/mime-types-1.16/Manifest.txt +12 -0
- data/vendor/ruby/1.8/gems/mime-types-1.16/README.txt +28 -0
- data/vendor/ruby/1.8/gems/mime-types-1.16/Rakefile +316 -0
- data/vendor/ruby/1.8/gems/mime-types-1.16/lib/mime/types.rb +751 -0
- data/vendor/ruby/1.8/gems/mime-types-1.16/lib/mime/types.rb.data +1324 -0
- data/vendor/ruby/1.8/gems/mime-types-1.16/mime-types.gemspec +43 -0
- data/vendor/ruby/1.8/gems/mime-types-1.16/setup.rb +1585 -0
- data/vendor/ruby/1.8/gems/mime-types-1.16/test/test_mime_type.rb +356 -0
- data/vendor/ruby/1.8/gems/mime-types-1.16/test/test_mime_types.rb +122 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/README.rdoc +269 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/Rakefile +69 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/VERSION +1 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/bin/restclient +87 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/history.md +94 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/lib/rest-client.rb +2 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/lib/rest_client.rb +2 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/lib/restclient/abstract_response.rb +102 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/lib/restclient/exceptions.rb +181 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/lib/restclient/net_http_ext.rb +21 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/lib/restclient/payload.rb +220 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/lib/restclient/raw_response.rb +34 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb +300 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/lib/restclient/resource.rb +152 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/lib/restclient/response.rb +24 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/lib/restclient.rb +165 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/spec/abstract_response_spec.rb +67 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/spec/base.rb +16 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/spec/exceptions_spec.rb +79 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/spec/integration/certs/equifax.crt +19 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/spec/integration/certs/verisign.crt +14 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/spec/integration/request_spec.rb +25 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/spec/integration_spec.rb +38 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/spec/master_shake.jpg +0 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/spec/payload_spec.rb +219 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/spec/raw_response_spec.rb +17 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/spec/request2_spec.rb +17 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/spec/request_spec.rb +529 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/spec/resource_spec.rb +124 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/spec/response_spec.rb +157 -0
- data/vendor/ruby/1.8/gems/rest-client-1.6.1/spec/restclient_spec.rb +68 -0
- data/vendor/ruby/1.8/gems/rspec-2.0.0/.document +2 -0
- data/vendor/ruby/1.8/gems/rspec-2.0.0/.gitignore +7 -0
- data/vendor/ruby/1.8/gems/rspec-2.0.0/Gemfile +6 -0
- data/vendor/ruby/1.8/gems/rspec-2.0.0/License.txt +22 -0
- data/vendor/ruby/1.8/gems/rspec-2.0.0/README.markdown +30 -0
- data/vendor/ruby/1.8/gems/rspec-2.0.0/Rakefile +16 -0
- data/vendor/ruby/1.8/gems/rspec-2.0.0/lib/rspec/version.rb +5 -0
- data/vendor/ruby/1.8/gems/rspec-2.0.0/lib/rspec.rb +4 -0
- data/vendor/ruby/1.8/gems/rspec-2.0.0/rspec.gemspec +29 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/.document +5 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/.gitignore +11 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/.treasure_map.rb +23 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/Gemfile +26 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/History.markdown +63 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/License.txt +22 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/README.markdown +88 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/Rakefile +72 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/Upgrade.markdown +235 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/autotest/discover.rb +2 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/bin/rspec +2 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/cucumber.yml +2 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/README.markdown +19 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/command_line/configure.feature +20 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/command_line/example_name_option.feature +86 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/command_line/exit_status.feature +52 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/command_line/line_number_appended_to_path.feature +104 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/command_line/line_number_option.feature +43 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/command_line/rake_task.feature +68 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/configuration/custom_settings.feature +84 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/configuration/fail_fast.feature +77 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/configuration/read_options_from_file.feature +74 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/example_groups/basic_structure.feature +54 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/example_groups/shared_example_group.feature +177 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/filtering/exclusion_filters.feature +115 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/filtering/inclusion_filters.feature +83 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/filtering/run_all_when_everything_filtered.feature +46 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/formatters/custom_formatter.feature +32 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/hooks/around_hooks.feature +313 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/hooks/before_and_after_hooks.feature +432 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/hooks/halt.feature +26 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/metadata/described_class.feature +14 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/mock_framework_integration/use_flexmock.feature +23 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/mock_framework_integration/use_mocha.feature +23 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/mock_framework_integration/use_rr.feature +23 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/mock_framework_integration/use_rspec.feature +23 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/pending/pending_examples.feature +97 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/spec_files/arbitrary_file_suffix.feature +13 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/subject/attribute_of_subject.feature +44 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/subject/explicit_subject.feature +67 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/subject/implicit_subject.feature +31 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/features/support/env.rb +1 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/autotest/rspec2.rb +66 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/autorun.rb +2 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/backward_compatibility.rb +29 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/command_line.rb +34 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/command_line_configuration.rb +62 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/configuration.rb +373 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/configuration_options.rb +99 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/deprecation.rb +45 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/drb_command_line.rb +29 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/errors.rb +14 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/example.rb +144 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/example_group.rb +312 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/extensions/instance_eval_with_args.rb +39 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/extensions/kernel.rb +5 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/extensions/module_eval_with_args.rb +34 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/extensions/object.rb +15 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/extensions.rb +4 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/formatters/base_formatter.rb +167 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/formatters/base_text_formatter.rb +151 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/formatters/documentation_formatter.rb +71 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/formatters/helpers.rb +28 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/formatters/html_formatter.rb +351 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/formatters/progress_formatter.rb +32 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/formatters/snippet_extractor.rb +52 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/formatters/text_mate_formatter.rb +18 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/hooks.rb +134 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/let.rb +101 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/load_path.rb +3 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/metadata.rb +183 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/mocking/with_absolutely_nothing.rb +11 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/mocking/with_flexmock.rb +25 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/mocking/with_mocha.rb +21 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/mocking/with_rr.rb +25 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/mocking/with_rspec.rb +21 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/option_parser.rb +105 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/pending.rb +19 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/rake_task.rb +174 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/reporter.rb +78 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/ruby_project.rb +44 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/runner.rb +61 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/shared_example_group.rb +52 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/subject.rb +171 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/version.rb +7 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/world.rb +97 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core.rb +80 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/monkey/spork/test_framework/rspec.rb +7 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/monkey.rb +1 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/rspec-core.gemspec +45 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/script/console +8 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/autotest/failed_results_re_spec.rb +20 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/autotest/rspec_spec.rb +123 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/command_line_configuration_spec.rb +26 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/command_line_spec.rb +123 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/command_line_spec_output.txt +0 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/configuration_options_spec.rb +305 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/configuration_spec.rb +579 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/deprecations_spec.rb +29 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/drb_command_line_spec.rb +159 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/example_group_spec.rb +778 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/example_spec.rb +167 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/formatters/base_formatter_spec.rb +36 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/formatters/base_text_formatter_spec.rb +160 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/formatters/documentation_formatter_spec.rb +66 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/formatters/helpers_spec.rb +46 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/formatters/html_formatted-1.8.6.html +280 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +285 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/formatters/html_formatted-1.8.7.html +283 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/formatters/html_formatted-1.9.1.html +283 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/formatters/html_formatted-1.9.2.html +283 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/formatters/html_formatter_spec.rb +81 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/formatters/progress_formatter_spec.rb +31 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/formatters/snippet_extractor_spec.rb +18 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/formatters/text_mate_formatted-1.8.6.html +280 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html +280 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +280 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/formatters/text_mate_formatted-1.9.1.html +280 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +280 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/formatters/text_mate_formatter_spec.rb +70 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/hooks_filtering_spec.rb +124 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/hooks_spec.rb +57 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/kernel_extensions_spec.rb +9 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/let_spec.rb +42 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/metadata_spec.rb +305 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/option_parser_spec.rb +39 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/pending_example_spec.rb +85 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/rake_task_spec.rb +148 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/reporter_spec.rb +70 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/resources/a_bar.rb +0 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/resources/a_foo.rb +0 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/resources/a_spec.rb +1 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/resources/custom_example_group_runner.rb +14 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/resources/formatter_specs.rb +36 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/resources/utf8_encoded.rb +8 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/ruby_project_spec.rb +24 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/runner_spec.rb +47 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/shared_example_group_spec.rb +152 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/subject_spec.rb +63 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/world_spec.rb +163 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core_spec.rb +31 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/ruby_forker.rb +13 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/spec_helper.rb +84 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/support/matchers.rb +44 -0
- data/vendor/ruby/1.8/gems/rspec-core-2.0.0/specs.watchr +58 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/.document +5 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/.gitignore +10 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/Gemfile +20 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/History.markdown +37 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/License.txt +22 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/README.markdown +23 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/Rakefile +70 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/Upgrade.markdown +53 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/cucumber.yml +3 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/features/README.markdown +18 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/features/expectations/attribute_of_subject.feature +19 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/features/expectations/customized_message.feature +54 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/features/expectations/diffing.feature +85 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/features/expectations/implicit_docstrings.feature +52 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/features/matchers/access_running_example.feature +53 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/features/matchers/define_diffable_matcher.feature +27 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/features/matchers/define_matcher.feature +311 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/features/matchers/define_matcher_outside_rspec.feature +38 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/features/matchers/define_matcher_with_fluent_interface.feature +24 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/features/matchers/equality.feature +142 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/features/matchers/expect_change.feature +65 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/features/matchers/expect_error.feature +44 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/features/matchers/have.feature +103 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/features/matchers/include.feature +136 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/features/matchers/operators.feature +280 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/features/matchers/predicates.feature +128 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/features/matchers/respond_to.feature +78 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/features/step_definitions/additional_cli_steps.rb +13 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/features/support/env.rb +1 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/features/test_frameworks/test_unit.feature +29 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations/backward_compatibility.rb +16 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations/differ.rb +62 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations/errors.rb +12 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations/extensions/array.rb +7 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations/extensions/kernel.rb +52 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations/extensions/rspec/core/example_group.rb +19 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations/extensions.rb +3 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations/fail_with.rb +51 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations/handler.rb +50 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations/version.rb +7 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations.rb +38 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/be.rb +222 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/be_close.rb +32 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/be_instance_of.rb +26 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/be_kind_of.rb +26 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/change.rb +184 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/compatibility.rb +14 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/dsl.rb +21 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/eq.rb +50 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/eql.rb +45 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/equal.rb +53 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/errors.rb +5 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/exist.rb +16 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/extensions/instance_exec.rb +31 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/generated_descriptions.rb +36 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/has.rb +35 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/have.rb +151 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/include.rb +51 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/match.rb +21 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/match_array.rb +71 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/matcher.rb +161 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/method_missing.rb +9 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/operator_matcher.rb +78 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/pretty.rb +37 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/raise_error.rb +130 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/respond_to.rb +85 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/satisfy.rb +51 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers/throw_symbol.rb +104 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/matchers.rb +198 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec-expectations.rb +1 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/rspec-expectations.gemspec +31 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/expectations/differ_spec.rb +96 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/expectations/extensions/kernel_spec.rb +45 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/expectations/fail_with_spec.rb +70 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/expectations/handler_spec.rb +206 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/be_close_spec.rb +50 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/be_instance_of_spec.rb +36 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/be_kind_of_spec.rb +33 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/be_spec.rb +452 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/change_spec.rb +409 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/compatibility_spec.rb +28 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/description_generation_spec.rb +160 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/dsl_spec.rb +25 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/eq_spec.rb +38 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/eql_spec.rb +37 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/equal_spec.rb +57 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/exist_spec.rb +65 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/has_spec.rb +81 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/have_spec.rb +401 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/include_spec.rb +341 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/match_array_spec.rb +111 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/match_spec.rb +57 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/matcher_spec.rb +366 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/matchers_spec.rb +51 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/operator_matcher_spec.rb +189 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/raise_error_spec.rb +339 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/respond_to_spec.rb +292 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/satisfy_spec.rb +40 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/throw_symbol_spec.rb +96 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/spec_helper.rb +53 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/suite.rb +1 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/support/classes.rb +45 -0
- data/vendor/ruby/1.8/gems/rspec-expectations-2.0.0/specs.watchr +57 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/.autotest +7 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/.document +5 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/.gitignore +10 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/Gemfile +17 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/History.markdown +26 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/License.txt +22 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/README.markdown +45 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/Rakefile +70 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/autotest/discover.rb +1 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/cucumber.yml +2 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/features/README.markdown +30 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/features/message_expectations/block_local_expectations.feature.pending +55 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/features/message_expectations/expect_message.feature +94 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/features/message_expectations/warn_when_expectation_is_set_on_nil.feature +50 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/features/outside_rspec/configuration.feature +82 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/features/stubs/simple_return_value.feature +55 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/features/stubs/stub_chain.feature +44 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/features/stubs/stub_implementation.feature +26 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/features/support/env.rb +2 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/lib/rspec/mocks/argument_expectation.rb +48 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/lib/rspec/mocks/argument_matchers.rb +233 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/lib/rspec/mocks/error_generator.rb +97 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/lib/rspec/mocks/errors.rb +10 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/lib/rspec/mocks/extensions/instance_exec.rb +31 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/lib/rspec/mocks/extensions/object.rb +3 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/lib/rspec/mocks/framework.rb +17 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/lib/rspec/mocks/message_expectation.rb +341 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/lib/rspec/mocks/method_double.rb +165 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/lib/rspec/mocks/methods.rb +100 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/lib/rspec/mocks/mock.rb +79 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/lib/rspec/mocks/order_group.rb +29 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/lib/rspec/mocks/proxy.rb +157 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/lib/rspec/mocks/serialization.rb +24 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/lib/rspec/mocks/space.rb +28 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/lib/rspec/mocks/spec_methods.rb +53 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/lib/rspec/mocks/version.rb +7 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/lib/rspec/mocks.rb +196 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/lib/spec/mocks.rb +2 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/rspec-mocks.gemspec +28 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/and_yield_spec.rb +114 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/any_number_of_times_spec.rb +36 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/argument_expectation_spec.rb +23 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/at_least_spec.rb +97 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/at_most_spec.rb +93 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/block_return_value_spec.rb +45 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/bug_report_10260_spec.rb +8 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/bug_report_10263_spec.rb +27 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/bug_report_11545_spec.rb +32 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/bug_report_15719_spec.rb +29 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/bug_report_496_spec.rb +17 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/bug_report_600_spec.rb +22 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/bug_report_7611_spec.rb +18 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/bug_report_7805_spec.rb +22 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/bug_report_8165_spec.rb +31 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/bug_report_8302_spec.rb +26 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/bug_report_830_spec.rb +21 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/bug_report_957_spec.rb +22 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/double_spec.rb +12 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/failing_argument_matchers_spec.rb +96 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/hash_including_matcher_spec.rb +90 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/hash_not_including_matcher_spec.rb +67 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/mock_ordering_spec.rb +94 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/mock_space_spec.rb +54 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/mock_spec.rb +661 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/multiple_return_value_spec.rb +133 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/nil_expectation_warning_spec.rb +63 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/null_object_mock_spec.rb +73 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/once_counts_spec.rb +53 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/options_hash_spec.rb +35 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/partial_mock_spec.rb +155 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb +94 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/passing_argument_matchers_spec.rb +145 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/precise_counts_spec.rb +52 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/record_messages_spec.rb +26 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/serialization_spec.rb +69 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/stash_spec.rb +27 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/stub_chain_spec.rb +114 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/stub_implementation_spec.rb +68 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/stub_spec.rb +232 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/stubbed_message_expectations_spec.rb +26 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/twice_counts_spec.rb +67 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks_spec.rb +51 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/spec_helper.rb +52 -0
- data/vendor/ruby/1.8/gems/rspec-mocks-2.0.0/specs.watchr +57 -0
- data/vendor/ruby/1.8/gems/rubyforge-2.0.4/History.txt +128 -0
- data/vendor/ruby/1.8/gems/rubyforge-2.0.4/Manifest.txt +9 -0
- data/vendor/ruby/1.8/gems/rubyforge-2.0.4/README.txt +55 -0
- data/vendor/ruby/1.8/gems/rubyforge-2.0.4/Rakefile +40 -0
- data/vendor/ruby/1.8/gems/rubyforge-2.0.4/bin/rubyforge +222 -0
- data/vendor/ruby/1.8/gems/rubyforge-2.0.4/lib/rubyforge/client.rb +124 -0
- data/vendor/ruby/1.8/gems/rubyforge-2.0.4/lib/rubyforge.rb +389 -0
- data/vendor/ruby/1.8/gems/rubyforge-2.0.4/test/test_rubyforge.rb +329 -0
- data/vendor/ruby/1.8/gems/rubyforge-2.0.4/test/test_rubyforge_client.rb +57 -0
- data/vendor/ruby/1.8/specifications/bundler-1.0.3.gemspec +37 -0
- data/vendor/ruby/1.8/specifications/diff-lcs-1.1.2.gemspec +34 -0
- data/vendor/ruby/1.8/specifications/gemcutter-0.6.1.gemspec +56 -0
- data/vendor/ruby/1.8/specifications/git-1.2.5.gemspec +30 -0
- data/vendor/ruby/1.8/specifications/jeweler-1.4.0.gemspec +66 -0
- data/vendor/ruby/1.8/specifications/json_pure-1.4.6.gemspec +33 -0
- data/vendor/ruby/1.8/specifications/mime-types-1.16.gemspec +44 -0
- data/vendor/ruby/1.8/specifications/rest-client-1.6.1.gemspec +36 -0
- data/vendor/ruby/1.8/specifications/rspec-2.0.0.gemspec +39 -0
- data/vendor/ruby/1.8/specifications/rspec-core-2.0.0.gemspec +66 -0
- data/vendor/ruby/1.8/specifications/rspec-expectations-2.0.0.gemspec +46 -0
- data/vendor/ruby/1.8/specifications/rspec-mocks-2.0.0.gemspec +37 -0
- data/vendor/ruby/1.8/specifications/rubyforge-2.0.4.gemspec +43 -0
- metadata +956 -0
@@ -0,0 +1,29 @@
|
|
1
|
+
module RSpec
|
2
|
+
module Mocks
|
3
|
+
class OrderGroup
|
4
|
+
def initialize error_generator
|
5
|
+
@error_generator = error_generator
|
6
|
+
@ordering = Array.new
|
7
|
+
end
|
8
|
+
|
9
|
+
def register(expectation)
|
10
|
+
@ordering << expectation
|
11
|
+
end
|
12
|
+
|
13
|
+
def ready_for?(expectation)
|
14
|
+
return @ordering.first == expectation
|
15
|
+
end
|
16
|
+
|
17
|
+
def consume
|
18
|
+
@ordering.shift
|
19
|
+
end
|
20
|
+
|
21
|
+
def handle_order_constraint expectation
|
22
|
+
return unless @ordering.include? expectation
|
23
|
+
return consume if ready_for?(expectation)
|
24
|
+
@error_generator.raise_out_of_order_error expectation.sym
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,157 @@
|
|
1
|
+
module RSpec
|
2
|
+
module Mocks
|
3
|
+
class Proxy
|
4
|
+
class << self
|
5
|
+
def warn_about_expectations_on_nil
|
6
|
+
defined?(@warn_about_expectations_on_nil) ? @warn_about_expectations_on_nil : true
|
7
|
+
end
|
8
|
+
|
9
|
+
def warn_about_expectations_on_nil=(new_value)
|
10
|
+
@warn_about_expectations_on_nil = new_value
|
11
|
+
end
|
12
|
+
|
13
|
+
def allow_message_expectations_on_nil
|
14
|
+
@warn_about_expectations_on_nil = false
|
15
|
+
|
16
|
+
# ensure nil.rspec_verify is called even if an expectation is not set in the example
|
17
|
+
# otherwise the allowance would effect subsequent examples
|
18
|
+
RSpec::Mocks::space.add(nil) unless RSpec::Mocks::space.nil?
|
19
|
+
end
|
20
|
+
|
21
|
+
def allow_message_expectations_on_nil?
|
22
|
+
!warn_about_expectations_on_nil
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def initialize(object, name=nil, options={})
|
27
|
+
@object = object
|
28
|
+
@name = name
|
29
|
+
@error_generator = ErrorGenerator.new object, name, options
|
30
|
+
@expectation_ordering = OrderGroup.new @error_generator
|
31
|
+
@messages_received = []
|
32
|
+
@options = options
|
33
|
+
@already_proxied_respond_to = false
|
34
|
+
@null_object = false
|
35
|
+
end
|
36
|
+
|
37
|
+
def null_object?
|
38
|
+
@null_object
|
39
|
+
end
|
40
|
+
|
41
|
+
# Tells the object to ignore any messages that aren't explicitly set as
|
42
|
+
# stubs or message expectations.
|
43
|
+
def as_null_object
|
44
|
+
@null_object = true
|
45
|
+
@object
|
46
|
+
end
|
47
|
+
|
48
|
+
def already_proxied_respond_to # :nodoc:
|
49
|
+
@already_proxied_respond_to = true
|
50
|
+
end
|
51
|
+
|
52
|
+
def already_proxied_respond_to? # :nodoc:
|
53
|
+
@already_proxied_respond_to
|
54
|
+
end
|
55
|
+
|
56
|
+
def add_message_expectation(location, method_name, opts={}, &block)
|
57
|
+
method_double[method_name].add_expectation @error_generator, @expectation_ordering, location, opts, &block
|
58
|
+
end
|
59
|
+
|
60
|
+
def add_negative_message_expectation(location, method_name, &implementation)
|
61
|
+
method_double[method_name].add_negative_expectation @error_generator, @expectation_ordering, location, &implementation
|
62
|
+
end
|
63
|
+
|
64
|
+
def add_stub(location, method_name, opts={}, &implementation)
|
65
|
+
method_double[method_name].add_stub @error_generator, @expectation_ordering, location, opts, &implementation
|
66
|
+
end
|
67
|
+
|
68
|
+
def remove_stub(method_name)
|
69
|
+
method_double[method_name].remove_stub
|
70
|
+
end
|
71
|
+
|
72
|
+
def verify #:nodoc:
|
73
|
+
method_doubles.each {|d| d.verify}
|
74
|
+
ensure
|
75
|
+
reset
|
76
|
+
end
|
77
|
+
|
78
|
+
def reset
|
79
|
+
method_doubles.each {|d| d.reset}
|
80
|
+
end
|
81
|
+
|
82
|
+
def received_message?(method_name, *args, &block)
|
83
|
+
@messages_received.any? {|array| array == [method_name, args, block]}
|
84
|
+
end
|
85
|
+
|
86
|
+
def has_negative_expectation?(method_name)
|
87
|
+
method_double[method_name].expectations.detect {|expectation| expectation.negative_expectation_for?(method_name)}
|
88
|
+
end
|
89
|
+
|
90
|
+
def record_message_received(method_name, *args, &block)
|
91
|
+
@messages_received << [method_name, args, block]
|
92
|
+
end
|
93
|
+
|
94
|
+
def message_received(method_name, *args, &block)
|
95
|
+
expectation = find_matching_expectation(method_name, *args)
|
96
|
+
stub = find_matching_method_stub(method_name, *args)
|
97
|
+
|
98
|
+
if (stub && expectation && expectation.called_max_times?) || (stub && !expectation)
|
99
|
+
if expectation = find_almost_matching_expectation(method_name, *args)
|
100
|
+
expectation.advise(*args) unless expectation.expected_messages_received?
|
101
|
+
end
|
102
|
+
stub.invoke(*args, &block)
|
103
|
+
elsif expectation
|
104
|
+
expectation.invoke(*args, &block)
|
105
|
+
elsif expectation = find_almost_matching_expectation(method_name, *args)
|
106
|
+
expectation.advise(*args) if null_object? unless expectation.expected_messages_received?
|
107
|
+
raise_unexpected_message_args_error(expectation, *args) unless (has_negative_expectation?(method_name) or null_object?)
|
108
|
+
elsif stub = find_almost_matching_stub(method_name, *args)
|
109
|
+
stub.advise(*args)
|
110
|
+
raise_unexpected_message_args_error(stub, *args)
|
111
|
+
elsif @object.is_a?(Class)
|
112
|
+
@object.superclass.send(method_name, *args, &block)
|
113
|
+
else
|
114
|
+
@object.__send__(:method_missing, method_name, *args, &block)
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
def raise_unexpected_message_args_error(expectation, *args)
|
119
|
+
@error_generator.raise_unexpected_message_args_error(expectation, *args)
|
120
|
+
end
|
121
|
+
|
122
|
+
def raise_unexpected_message_error(method_name, *args)
|
123
|
+
@error_generator.raise_unexpected_message_error method_name, *args
|
124
|
+
end
|
125
|
+
|
126
|
+
private
|
127
|
+
|
128
|
+
def method_double
|
129
|
+
@method_double ||= Hash.new {|h,k|
|
130
|
+
h[k] = MethodDouble.new(@object, k, self)
|
131
|
+
}
|
132
|
+
end
|
133
|
+
|
134
|
+
def method_doubles
|
135
|
+
method_double.values
|
136
|
+
end
|
137
|
+
|
138
|
+
def find_matching_expectation(method_name, *args)
|
139
|
+
method_double[method_name].expectations.find {|expectation| expectation.matches?(method_name, *args) && !expectation.called_max_times?} ||
|
140
|
+
method_double[method_name].expectations.find {|expectation| expectation.matches?(method_name, *args)}
|
141
|
+
end
|
142
|
+
|
143
|
+
def find_almost_matching_expectation(method_name, *args)
|
144
|
+
method_double[method_name].expectations.find {|expectation| expectation.matches_name_but_not_args(method_name, *args)}
|
145
|
+
end
|
146
|
+
|
147
|
+
def find_matching_method_stub(method_name, *args)
|
148
|
+
method_double[method_name].stubs.find {|stub| stub.matches?(method_name, *args)}
|
149
|
+
end
|
150
|
+
|
151
|
+
def find_almost_matching_stub(method_name, *args)
|
152
|
+
method_double[method_name].stubs.find {|stub| stub.matches_name_but_not_args(method_name, *args)}
|
153
|
+
end
|
154
|
+
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module RSpec
|
2
|
+
module Mocks
|
3
|
+
module Serialization
|
4
|
+
def self.fix_for(object)
|
5
|
+
object.extend(YAML) if defined?(::YAML)
|
6
|
+
end
|
7
|
+
|
8
|
+
module YAML
|
9
|
+
def to_yaml(*a)
|
10
|
+
return super(*a) unless instance_variable_defined?(:@mock_proxy)
|
11
|
+
|
12
|
+
mp = @mock_proxy
|
13
|
+
remove_instance_variable(:@mock_proxy)
|
14
|
+
|
15
|
+
begin
|
16
|
+
super(*a)
|
17
|
+
ensure
|
18
|
+
@mock_proxy = mp
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module RSpec
|
2
|
+
module Mocks
|
3
|
+
class Space
|
4
|
+
def add(obj)
|
5
|
+
mocks << obj unless mocks.detect {|m| m.equal? obj}
|
6
|
+
end
|
7
|
+
|
8
|
+
def verify_all
|
9
|
+
mocks.each do |mock|
|
10
|
+
mock.rspec_verify
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def reset_all
|
15
|
+
mocks.each do |mock|
|
16
|
+
mock.rspec_reset
|
17
|
+
end
|
18
|
+
mocks.clear
|
19
|
+
end
|
20
|
+
|
21
|
+
private
|
22
|
+
|
23
|
+
def mocks
|
24
|
+
@mocks ||= []
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
module RSpec
|
2
|
+
module Mocks
|
3
|
+
module ExampleMethods
|
4
|
+
include RSpec::Mocks::ArgumentMatchers
|
5
|
+
|
6
|
+
# Creates an instance of RSpec::Mocks::Mock.
|
7
|
+
#
|
8
|
+
# +name+ is used for failure reporting, so you should use the role that
|
9
|
+
# the mock is playing in the example.
|
10
|
+
#
|
11
|
+
# Use +stubs+ to declare one or more method stubs in one statement.
|
12
|
+
#
|
13
|
+
# == Examples
|
14
|
+
#
|
15
|
+
# book = double("book", :title => "The RSpec Book")
|
16
|
+
# book.title => "The RSpec Book"
|
17
|
+
#
|
18
|
+
# card = double("card", :suit => "Spades", :rank => "A"
|
19
|
+
# card.suit => "Spades"
|
20
|
+
# card.rank => "A"
|
21
|
+
def double(*args)
|
22
|
+
declare_double('Double', *args)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Just like double, but use double
|
26
|
+
def mock(*args)
|
27
|
+
declare_double('Mock', *args)
|
28
|
+
end
|
29
|
+
|
30
|
+
# Just like double, but use double
|
31
|
+
def stub(*args)
|
32
|
+
declare_double('Stub', *args)
|
33
|
+
end
|
34
|
+
|
35
|
+
# Disables warning messages about expectations being set on nil.
|
36
|
+
#
|
37
|
+
# By default warning messages are issued when expectations are set on nil. This is to
|
38
|
+
# prevent false-positives and to catch potential bugs early on.
|
39
|
+
def allow_message_expectations_on_nil
|
40
|
+
Proxy.allow_message_expectations_on_nil
|
41
|
+
end
|
42
|
+
|
43
|
+
private
|
44
|
+
|
45
|
+
def declare_double(declared_as, *args)
|
46
|
+
args << {} unless Hash === args.last
|
47
|
+
args.last[:__declared_as] = declared_as
|
48
|
+
RSpec::Mocks::Mock.new(*args)
|
49
|
+
end
|
50
|
+
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,196 @@
|
|
1
|
+
require 'rspec/mocks/framework'
|
2
|
+
require 'rspec/mocks/version'
|
3
|
+
|
4
|
+
module RSpec
|
5
|
+
# == Test Doubles
|
6
|
+
#
|
7
|
+
# A Test Double is an object that stands in for a real object in a test.
|
8
|
+
# RSpec creates test doubles that support method stubs and message
|
9
|
+
# expectations.
|
10
|
+
#
|
11
|
+
# book = double("book")
|
12
|
+
#
|
13
|
+
# == Method Stubs
|
14
|
+
#
|
15
|
+
# A method stub is an implementation that returns a pre-determined value.
|
16
|
+
#
|
17
|
+
# book = double("book")
|
18
|
+
# double.stub(:title) { "The RSpec Book" }
|
19
|
+
# double.title => "The RSpec Book"
|
20
|
+
#
|
21
|
+
# When we declare a stub, we say we are "stubbing" a method.
|
22
|
+
#
|
23
|
+
# == Message Expectations
|
24
|
+
#
|
25
|
+
# A message expectation is an expectation that the test double will receive a
|
26
|
+
# message some time before the example ends. If the message is received, the
|
27
|
+
# expectation is satisfied. If not, the example fails.
|
28
|
+
#
|
29
|
+
# validator = double("validator")
|
30
|
+
# validator.should_receive(:validate).with("02134")
|
31
|
+
# zipcode = Zipcode.new("02134", validator)
|
32
|
+
# zipcode.valid?
|
33
|
+
#
|
34
|
+
# When we declare a message expectation, we say we are "mocking" a method.
|
35
|
+
#
|
36
|
+
# == Mock Objects and Test Stubs
|
37
|
+
#
|
38
|
+
# The names Mock Object and Test Stub suggest specialized Test Doubles. i.e.
|
39
|
+
# Test Stub evokes Test Double that only supports method stubs, and a Mock
|
40
|
+
# Object evokes a Test Double that only supports message expectations, or
|
41
|
+
# sometimes supports message expectations in addition to method stubs.
|
42
|
+
#
|
43
|
+
# There is a lot of overlapping nomenclature here, and there are many
|
44
|
+
# variations of these patterns (fakes, spies, etc). Keep in mind that most of
|
45
|
+
# the time we're talking about method-level concepts that are variations of
|
46
|
+
# method stubs and message expectations, and we're applying to them to _one_
|
47
|
+
# generic kind of object: a Test Double.
|
48
|
+
#
|
49
|
+
# == Test-Specific Extension
|
50
|
+
#
|
51
|
+
# a.k.a. Partial Stub/Mock, a Test-Specific Extension is an extension of a
|
52
|
+
# real object in a system that is instrumented with test-double like
|
53
|
+
# behaviour in the context of a test. This technique is very common in Ruby
|
54
|
+
# because we often see class objects acting as global namespaces for methods.
|
55
|
+
# For example, in Rails:
|
56
|
+
#
|
57
|
+
# person = double("person")
|
58
|
+
# Person.stub(:find) { person }
|
59
|
+
#
|
60
|
+
# In this case we're instrumenting Person to return the person object we've
|
61
|
+
# defined whenever it receives the +find+ message. We can do this with any
|
62
|
+
# object in a system because RSpec adds the +stub+ and +should_receive+
|
63
|
+
# methods to every object. When we use either, RSpec replaces the method
|
64
|
+
# we're stubbing or mocking with it's own test-double-like method. At the
|
65
|
+
# end of the example, RSpec verifies any message expectations, and then
|
66
|
+
# restores the original methods.
|
67
|
+
#
|
68
|
+
# == Expecting Arguments
|
69
|
+
#
|
70
|
+
# double.should_receive(:msg).with(*args)
|
71
|
+
# double.should_not_receive(:msg).with(*args)
|
72
|
+
#
|
73
|
+
# == Argument Matchers
|
74
|
+
#
|
75
|
+
# Arguments that are passed to #with are compared with actual arguments received
|
76
|
+
# using == by default. In cases in which you want to specify things about the arguments
|
77
|
+
# rather than the arguments themselves, you can use any of RSpec's Expression Matchers.
|
78
|
+
# They don't all make syntactic sense (they were primarily designed for use with
|
79
|
+
# RSpec::Expectations), but you are free to create your own custom RSpec::Matchers.
|
80
|
+
#
|
81
|
+
# RSpec::Mocks does provide one additional Matcher method named #ducktype.
|
82
|
+
#
|
83
|
+
# In addition, RSpec::Mocks adds some keyword Symbols that you can use to
|
84
|
+
# specify certain kinds of arguments:
|
85
|
+
#
|
86
|
+
# double.should_receive(:msg).with(no_args())
|
87
|
+
# double.should_receive(:msg).with(any_args())
|
88
|
+
# double.should_receive(:msg).with(1, kind_of(Numeric), "b") #2nd argument can any kind of Numeric
|
89
|
+
# double.should_receive(:msg).with(1, boolean(), "b") #2nd argument can true or false
|
90
|
+
# double.should_receive(:msg).with(1, /abc/, "b") #2nd argument can be any String matching the submitted Regexp
|
91
|
+
# double.should_receive(:msg).with(1, anything(), "b") #2nd argument can be anything at all
|
92
|
+
# double.should_receive(:msg).with(1, ducktype(:abs, :div), "b")
|
93
|
+
# #2nd argument can be object that responds to #abs and #div
|
94
|
+
#
|
95
|
+
# == Receive Counts
|
96
|
+
#
|
97
|
+
# double.should_receive(:msg).once
|
98
|
+
# double.should_receive(:msg).twice
|
99
|
+
# double.should_receive(:msg).exactly(n).times
|
100
|
+
# double.should_receive(:msg).at_least(:once)
|
101
|
+
# double.should_receive(:msg).at_least(:twice)
|
102
|
+
# double.should_receive(:msg).at_least(n).times
|
103
|
+
# double.should_receive(:msg).at_most(:once)
|
104
|
+
# double.should_receive(:msg).at_most(:twice)
|
105
|
+
# double.should_receive(:msg).at_most(n).times
|
106
|
+
# double.should_receive(:msg).any_number_of_times
|
107
|
+
#
|
108
|
+
# == Ordering
|
109
|
+
#
|
110
|
+
# double.should_receive(:msg).ordered
|
111
|
+
# double.should_receive(:other_msg).ordered
|
112
|
+
# #This will fail if the messages are received out of order
|
113
|
+
#
|
114
|
+
# == Setting Reponses
|
115
|
+
#
|
116
|
+
# Whether you are setting a message expectation or a method stub, you can
|
117
|
+
# tell the object precisely how to respond. The most generic way is to pass
|
118
|
+
# a block to +stub+ or +should_receive+:
|
119
|
+
#
|
120
|
+
# double.should_receive(:msg) { value }
|
121
|
+
#
|
122
|
+
# When the double receives the +msg+ message, it evaluates the block and returns
|
123
|
+
# the result.
|
124
|
+
#
|
125
|
+
# double.should_receive(:msg).and_return(value)
|
126
|
+
# double.should_receive(:msg).exactly(3).times.and_return(value1, value2, value3)
|
127
|
+
# # returns value1 the first time, value2 the second, etc
|
128
|
+
# double.should_receive(:msg).and_raise(error)
|
129
|
+
# #error can be an instantiated object or a class
|
130
|
+
# #if it is a class, it must be instantiable with no args
|
131
|
+
# double.should_receive(:msg).and_throw(:msg)
|
132
|
+
# double.should_receive(:msg).and_yield(values,to,yield)
|
133
|
+
# double.should_receive(:msg).and_yield(values,to,yield).and_yield(some,other,values,this,time)
|
134
|
+
# # for methods that yield to a block multiple times
|
135
|
+
#
|
136
|
+
# Any of these responses can be applied to a stub as well
|
137
|
+
#
|
138
|
+
# double.stub(:msg).and_return(value)
|
139
|
+
# double.stub(:msg).and_return(value1, value2, value3)
|
140
|
+
# double.stub(:msg).and_raise(error)
|
141
|
+
# double.stub(:msg).and_throw(:msg)
|
142
|
+
# double.stub(:msg).and_yield(values,to,yield)
|
143
|
+
# double.stub(:msg).and_yield(values,to,yield).and_yield(some,other,values,this,time)
|
144
|
+
#
|
145
|
+
# == Arbitrary Handling
|
146
|
+
#
|
147
|
+
# Once in a while you'll find that the available expectations don't solve the
|
148
|
+
# particular problem you are trying to solve. Imagine that you expect the message
|
149
|
+
# to come with an Array argument that has a specific length, but you don't care
|
150
|
+
# what is in it. You could do this:
|
151
|
+
#
|
152
|
+
# double.should_receive(:msg) do |arg|
|
153
|
+
# arg.should be_an_istance_of(Array)
|
154
|
+
# arg.length.should == 7
|
155
|
+
# end
|
156
|
+
#
|
157
|
+
# == Combining Expectation Details
|
158
|
+
#
|
159
|
+
# Combining the message name with specific arguments, receive counts and responses
|
160
|
+
# you can get quite a bit of detail in your expectations:
|
161
|
+
#
|
162
|
+
# double.should_receive(:<<).with("illegal value").once.and_raise(ArgumentError)
|
163
|
+
#
|
164
|
+
# == Further Reading
|
165
|
+
#
|
166
|
+
# There are many different viewpoints about the meaning of mocks and stubs. If you are interested
|
167
|
+
# in learning more, here is some recommended reading:
|
168
|
+
#
|
169
|
+
# * Mock Objects: http://www.mockobjects.com/
|
170
|
+
# * Endo-Testing: http://www.mockobjects.com/files/endotesting.pdf
|
171
|
+
# * Mock Roles, Not Objects: http://www.mockobjects.com/files/mockrolesnotobjects.pdf
|
172
|
+
# * Test Double Patterns: http://xunitpatterns.com/Test%20Double%20Patterns.html
|
173
|
+
# * Mocks aren't stubs: http://www.martinfowler.com/articles/mocksArentStubs.html
|
174
|
+
module Mocks
|
175
|
+
class << self
|
176
|
+
attr_accessor :space
|
177
|
+
|
178
|
+
def setup(includer)
|
179
|
+
require 'rspec/mocks/extensions/object'
|
180
|
+
require 'rspec/mocks/spec_methods'
|
181
|
+
(class << includer; self; end).class_eval do
|
182
|
+
include RSpec::Mocks::ExampleMethods
|
183
|
+
end
|
184
|
+
self.space ||= RSpec::Mocks::Space.new
|
185
|
+
end
|
186
|
+
|
187
|
+
def verify
|
188
|
+
space.verify_all
|
189
|
+
end
|
190
|
+
|
191
|
+
def teardown
|
192
|
+
space.reset_all
|
193
|
+
end
|
194
|
+
end
|
195
|
+
end
|
196
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
|
3
|
+
require "rspec/mocks/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "rspec-mocks"
|
7
|
+
s.version = RSpec::Mocks::Version::STRING
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["David Chelimsky", "Chad Humphries"]
|
10
|
+
s.email = "dchelimsky@gmail.com;chad.humphries@gmail.com"
|
11
|
+
s.homepage = "http://github.com/rspec/rspec-mocks"
|
12
|
+
s.summary = "rspec-mocks-#{RSpec::Mocks::Version::STRING}"
|
13
|
+
s.description = "RSpec's 'test double' framework, with support for stubbing and mocking"
|
14
|
+
|
15
|
+
s.rubygems_version = "1.3.7"
|
16
|
+
s.rubyforge_project = "rspec"
|
17
|
+
|
18
|
+
s.files = `git ls-files`.split("\n")
|
19
|
+
s.test_files = `git ls-files -- {spec,features}/*`.split("\n")
|
20
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
21
|
+
s.extra_rdoc_files = [ "README.markdown" ]
|
22
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
23
|
+
s.require_path = "lib"
|
24
|
+
|
25
|
+
s.add_dependency "rspec-core", RSpec::Mocks::Version::STRING
|
26
|
+
s.add_dependency "rspec-expectations", RSpec::Mocks::Version::STRING
|
27
|
+
end
|
28
|
+
|
@@ -0,0 +1,114 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
def obj
|
3
|
+
@obj ||= mock
|
4
|
+
end
|
5
|
+
|
6
|
+
describe RSpec::Mocks::Mock do
|
7
|
+
describe "#and_yield" do
|
8
|
+
context "with eval context as block argument" do
|
9
|
+
|
10
|
+
it "evaluates the supplied block as it is read" do
|
11
|
+
evaluated = false
|
12
|
+
obj.stub(:method_that_accepts_a_block).and_yield do |eval_context|
|
13
|
+
evaluated = true
|
14
|
+
end
|
15
|
+
evaluated.should be_true
|
16
|
+
end
|
17
|
+
|
18
|
+
it "passes an eval context object to the supplied block" do
|
19
|
+
obj.stub(:method_that_accepts_a_block).and_yield do |eval_context|
|
20
|
+
eval_context.should_not be_nil
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
it "evaluates the block passed to the stubbed method in the context of the supplied eval context" do
|
25
|
+
expected_eval_context = nil
|
26
|
+
actual_eval_context = nil
|
27
|
+
|
28
|
+
obj.stub(:method_that_accepts_a_block).and_yield do |eval_context|
|
29
|
+
expected_eval_context = eval_context
|
30
|
+
end
|
31
|
+
|
32
|
+
obj.method_that_accepts_a_block do
|
33
|
+
actual_eval_context = self
|
34
|
+
end
|
35
|
+
|
36
|
+
actual_eval_context.should equal(expected_eval_context)
|
37
|
+
end
|
38
|
+
|
39
|
+
context "and no yielded arguments" do
|
40
|
+
|
41
|
+
it "passes when expectations set on the eval context are met" do
|
42
|
+
configured_eval_context = nil
|
43
|
+
obj.stub(:method_that_accepts_a_block).and_yield do |eval_context|
|
44
|
+
configured_eval_context = eval_context
|
45
|
+
configured_eval_context.should_receive(:foo)
|
46
|
+
end
|
47
|
+
|
48
|
+
obj.method_that_accepts_a_block do
|
49
|
+
foo
|
50
|
+
end
|
51
|
+
|
52
|
+
configured_eval_context.rspec_verify
|
53
|
+
end
|
54
|
+
|
55
|
+
it "fails when expectations set on the eval context are not met" do
|
56
|
+
configured_eval_context = nil
|
57
|
+
obj.stub(:method_that_accepts_a_block).and_yield do |eval_context|
|
58
|
+
configured_eval_context = eval_context
|
59
|
+
configured_eval_context.should_receive(:foo)
|
60
|
+
end
|
61
|
+
|
62
|
+
obj.method_that_accepts_a_block do
|
63
|
+
# foo is not called here
|
64
|
+
end
|
65
|
+
|
66
|
+
lambda {configured_eval_context.rspec_verify}.should raise_error(RSpec::Mocks::MockExpectationError)
|
67
|
+
end
|
68
|
+
|
69
|
+
end
|
70
|
+
|
71
|
+
context "and yielded arguments" do
|
72
|
+
|
73
|
+
it "passes when expectations set on the eval context and yielded arguments are met" do
|
74
|
+
configured_eval_context = nil
|
75
|
+
yielded_arg = Object.new
|
76
|
+
obj.stub(:method_that_accepts_a_block).and_yield(yielded_arg) do |eval_context|
|
77
|
+
configured_eval_context = eval_context
|
78
|
+
configured_eval_context.should_receive(:foo)
|
79
|
+
yielded_arg.should_receive(:bar)
|
80
|
+
end
|
81
|
+
|
82
|
+
obj.method_that_accepts_a_block do |obj|
|
83
|
+
obj.bar
|
84
|
+
foo
|
85
|
+
end
|
86
|
+
|
87
|
+
configured_eval_context.rspec_verify
|
88
|
+
yielded_arg.rspec_verify
|
89
|
+
end
|
90
|
+
|
91
|
+
it "fails when expectations set on the eval context and yielded arguments are not met" do
|
92
|
+
configured_eval_context = nil
|
93
|
+
yielded_arg = Object.new
|
94
|
+
obj.stub(:method_that_accepts_a_block).and_yield(yielded_arg) do |eval_context|
|
95
|
+
configured_eval_context = eval_context
|
96
|
+
configured_eval_context.should_receive(:foo)
|
97
|
+
yielded_arg.should_receive(:bar)
|
98
|
+
end
|
99
|
+
|
100
|
+
obj.method_that_accepts_a_block do |obj|
|
101
|
+
# obj.bar is not called here
|
102
|
+
# foo is not called here
|
103
|
+
end
|
104
|
+
|
105
|
+
lambda {configured_eval_context.rspec_verify}.should raise_error(RSpec::Mocks::MockExpectationError)
|
106
|
+
lambda {yielded_arg.rspec_verify}.should raise_error(RSpec::Mocks::MockExpectationError)
|
107
|
+
end
|
108
|
+
|
109
|
+
end
|
110
|
+
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module RSpec
|
4
|
+
module Mocks
|
5
|
+
|
6
|
+
describe "AnyNumberOfTimes" do
|
7
|
+
before(:each) do
|
8
|
+
@mock = RSpec::Mocks::Mock.new("test mock")
|
9
|
+
end
|
10
|
+
|
11
|
+
it "passes if any number of times method is called many times" do
|
12
|
+
@mock.should_receive(:random_call).any_number_of_times
|
13
|
+
(1..10).each do
|
14
|
+
@mock.random_call
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
it "passes if any number of times method is called once" do
|
19
|
+
@mock.should_receive(:random_call).any_number_of_times
|
20
|
+
@mock.random_call
|
21
|
+
end
|
22
|
+
|
23
|
+
it "passes if any number of times method is not called" do
|
24
|
+
@mock.should_receive(:random_call).any_number_of_times
|
25
|
+
end
|
26
|
+
|
27
|
+
it "returns the mocked value when called after a similar stub" do
|
28
|
+
@mock.stub(:message).and_return :stub_value
|
29
|
+
@mock.should_receive(:message).any_number_of_times.and_return(:mock_value)
|
30
|
+
@mock.message.should == :mock_value
|
31
|
+
@mock.message.should == :mock_value
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
end
|