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,174 @@
|
|
1
|
+
class Thor
|
2
|
+
# This is a modified version of Daniel Berger's Getopt::Long class, licensed
|
3
|
+
# under Ruby's license.
|
4
|
+
#
|
5
|
+
class Options < Arguments #:nodoc:
|
6
|
+
LONG_RE = /^(--\w+(?:-\w+)*)$/
|
7
|
+
SHORT_RE = /^(-[a-z])$/i
|
8
|
+
EQ_RE = /^(--\w+(?:-\w+)*|-[a-z])=(.*)$/i
|
9
|
+
SHORT_SQ_RE = /^-([a-z]{2,})$/i # Allow either -x -v or -xv style for single char args
|
10
|
+
SHORT_NUM = /^(-[a-z])#{NUMERIC}$/i
|
11
|
+
|
12
|
+
# Receives a hash and makes it switches.
|
13
|
+
def self.to_switches(options)
|
14
|
+
options.map do |key, value|
|
15
|
+
case value
|
16
|
+
when true
|
17
|
+
"--#{key}"
|
18
|
+
when Array
|
19
|
+
"--#{key} #{value.map{ |v| v.inspect }.join(' ')}"
|
20
|
+
when Hash
|
21
|
+
"--#{key} #{value.map{ |k,v| "#{k}:#{v}" }.join(' ')}"
|
22
|
+
when nil, false
|
23
|
+
""
|
24
|
+
else
|
25
|
+
"--#{key} #{value.inspect}"
|
26
|
+
end
|
27
|
+
end.join(" ")
|
28
|
+
end
|
29
|
+
|
30
|
+
# Takes a hash of Thor::Option and a hash with defaults.
|
31
|
+
def initialize(hash_options={}, defaults={})
|
32
|
+
options = hash_options.values
|
33
|
+
super(options)
|
34
|
+
|
35
|
+
# Add defaults
|
36
|
+
defaults.each do |key, value|
|
37
|
+
@assigns[key.to_s] = value
|
38
|
+
@non_assigned_required.delete(hash_options[key])
|
39
|
+
end
|
40
|
+
|
41
|
+
@shorts, @switches, @unknown = {}, {}, []
|
42
|
+
|
43
|
+
options.each do |option|
|
44
|
+
@switches[option.switch_name] = option
|
45
|
+
|
46
|
+
option.aliases.each do |short|
|
47
|
+
@shorts[short.to_s] ||= option.switch_name
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
def parse(args)
|
53
|
+
@pile = args.dup
|
54
|
+
|
55
|
+
while peek
|
56
|
+
if current_is_switch?
|
57
|
+
case shift
|
58
|
+
when SHORT_SQ_RE
|
59
|
+
unshift($1.split('').map { |f| "-#{f}" })
|
60
|
+
next
|
61
|
+
when EQ_RE, SHORT_NUM
|
62
|
+
unshift($2)
|
63
|
+
switch = $1
|
64
|
+
when LONG_RE, SHORT_RE
|
65
|
+
switch = $1
|
66
|
+
end
|
67
|
+
|
68
|
+
switch = normalize_switch(switch)
|
69
|
+
option = switch_option(switch)
|
70
|
+
@assigns[option.human_name] = parse_peek(switch, option)
|
71
|
+
elsif current_is_switch_formatted?
|
72
|
+
@unknown << shift
|
73
|
+
else
|
74
|
+
shift
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
check_requirement!
|
79
|
+
|
80
|
+
assigns = Thor::CoreExt::HashWithIndifferentAccess.new(@assigns)
|
81
|
+
assigns.freeze
|
82
|
+
assigns
|
83
|
+
end
|
84
|
+
|
85
|
+
def check_unknown!
|
86
|
+
raise UnknownArgumentError, "Unknown switches '#{@unknown.join(', ')}'" unless @unknown.empty?
|
87
|
+
end
|
88
|
+
|
89
|
+
protected
|
90
|
+
|
91
|
+
# Returns true if the current value in peek is a registered switch.
|
92
|
+
#
|
93
|
+
def current_is_switch?
|
94
|
+
case peek
|
95
|
+
when LONG_RE, SHORT_RE, EQ_RE, SHORT_NUM
|
96
|
+
switch?($1)
|
97
|
+
when SHORT_SQ_RE
|
98
|
+
$1.split('').any? { |f| switch?("-#{f}") }
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
def switch_formatted?(arg)
|
103
|
+
case arg
|
104
|
+
when LONG_RE, SHORT_RE, EQ_RE, SHORT_NUM, SHORT_SQ_RE
|
105
|
+
true
|
106
|
+
else
|
107
|
+
false
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
def current_is_switch_formatted?
|
112
|
+
switch_formatted? peek
|
113
|
+
end
|
114
|
+
|
115
|
+
def switch?(arg)
|
116
|
+
switch_option(arg) || @shorts.key?(arg)
|
117
|
+
end
|
118
|
+
|
119
|
+
def switch_option(arg)
|
120
|
+
if match = no_or_skip?(arg)
|
121
|
+
@switches[arg] || @switches["--#{match}"]
|
122
|
+
else
|
123
|
+
@switches[arg]
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
# Check if the given argument is actually a shortcut.
|
128
|
+
#
|
129
|
+
def normalize_switch(arg)
|
130
|
+
@shorts.key?(arg) ? @shorts[arg] : arg
|
131
|
+
end
|
132
|
+
|
133
|
+
# Parse boolean values which can be given as --foo=true, --foo or --no-foo.
|
134
|
+
#
|
135
|
+
def parse_boolean(switch)
|
136
|
+
if current_is_value?
|
137
|
+
if ["true", "TRUE", "t", "T", true].include?(peek)
|
138
|
+
shift
|
139
|
+
true
|
140
|
+
elsif ["false", "FALSE", "f", "F", false].include?(peek)
|
141
|
+
shift
|
142
|
+
false
|
143
|
+
else
|
144
|
+
true
|
145
|
+
end
|
146
|
+
else
|
147
|
+
@switches.key?(switch) || !no_or_skip?(switch)
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
# Parse the value at the peek analyzing if it requires an input or not.
|
152
|
+
#
|
153
|
+
def parse_peek(switch, option)
|
154
|
+
if current_is_switch_formatted? || last?
|
155
|
+
if option.boolean?
|
156
|
+
# No problem for boolean types
|
157
|
+
elsif no_or_skip?(switch)
|
158
|
+
return nil # User set value to nil
|
159
|
+
elsif option.string? && !option.required?
|
160
|
+
# Return the default if there is one, else the human name
|
161
|
+
return option.lazy_default || option.default || option.human_name
|
162
|
+
elsif option.lazy_default
|
163
|
+
return option.lazy_default
|
164
|
+
else
|
165
|
+
raise MalformattedArgumentError, "No value provided for option '#{switch}'"
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
@non_assigned_required.delete(option)
|
170
|
+
send(:"parse_#{option.type}", switch)
|
171
|
+
end
|
172
|
+
|
173
|
+
end
|
174
|
+
end
|
@@ -0,0 +1,275 @@
|
|
1
|
+
require 'tempfile'
|
2
|
+
|
3
|
+
class Thor
|
4
|
+
module Shell
|
5
|
+
class Basic
|
6
|
+
attr_accessor :base, :padding
|
7
|
+
|
8
|
+
# Initialize base and padding to nil.
|
9
|
+
#
|
10
|
+
def initialize #:nodoc:
|
11
|
+
@base, @padding = nil, 0
|
12
|
+
end
|
13
|
+
|
14
|
+
# Sets the output padding, not allowing less than zero values.
|
15
|
+
#
|
16
|
+
def padding=(value)
|
17
|
+
@padding = [0, value].max
|
18
|
+
end
|
19
|
+
|
20
|
+
# Ask something to the user and receives a response.
|
21
|
+
#
|
22
|
+
# ==== Example
|
23
|
+
# ask("What is your name?")
|
24
|
+
#
|
25
|
+
def ask(statement, color=nil)
|
26
|
+
say("#{statement} ", color)
|
27
|
+
$stdin.gets.strip
|
28
|
+
end
|
29
|
+
|
30
|
+
# Say (print) something to the user. If the sentence ends with a whitespace
|
31
|
+
# or tab character, a new line is not appended (print + flush). Otherwise
|
32
|
+
# are passed straight to puts (behavior got from Highline).
|
33
|
+
#
|
34
|
+
# ==== Example
|
35
|
+
# say("I know you knew that.")
|
36
|
+
#
|
37
|
+
def say(message="", color=nil, force_new_line=(message.to_s !~ /( |\t)$/))
|
38
|
+
message = message.to_s
|
39
|
+
message = set_color(message, color) if color
|
40
|
+
|
41
|
+
spaces = " " * padding
|
42
|
+
|
43
|
+
if force_new_line
|
44
|
+
$stdout.puts(spaces + message)
|
45
|
+
else
|
46
|
+
$stdout.print(spaces + message)
|
47
|
+
end
|
48
|
+
$stdout.flush
|
49
|
+
end
|
50
|
+
|
51
|
+
# Say a status with the given color and appends the message. Since this
|
52
|
+
# method is used frequently by actions, it allows nil or false to be given
|
53
|
+
# in log_status, avoiding the message from being shown. If a Symbol is
|
54
|
+
# given in log_status, it's used as the color.
|
55
|
+
#
|
56
|
+
def say_status(status, message, log_status=true)
|
57
|
+
return if quiet? || log_status == false
|
58
|
+
spaces = " " * (padding + 1)
|
59
|
+
color = log_status.is_a?(Symbol) ? log_status : :green
|
60
|
+
|
61
|
+
status = status.to_s.rjust(12)
|
62
|
+
status = set_color status, color, true if color
|
63
|
+
|
64
|
+
$stdout.puts "#{status}#{spaces}#{message}"
|
65
|
+
$stdout.flush
|
66
|
+
end
|
67
|
+
|
68
|
+
# Make a question the to user and returns true if the user replies "y" or
|
69
|
+
# "yes".
|
70
|
+
#
|
71
|
+
def yes?(statement, color=nil)
|
72
|
+
ask(statement, color) =~ is?(:yes)
|
73
|
+
end
|
74
|
+
|
75
|
+
# Make a question the to user and returns true if the user replies "n" or
|
76
|
+
# "no".
|
77
|
+
#
|
78
|
+
def no?(statement, color=nil)
|
79
|
+
!yes?(statement, color)
|
80
|
+
end
|
81
|
+
|
82
|
+
# Prints a table.
|
83
|
+
#
|
84
|
+
# ==== Parameters
|
85
|
+
# Array[Array[String, String, ...]]
|
86
|
+
#
|
87
|
+
# ==== Options
|
88
|
+
# ident<Integer>:: Indent the first column by ident value.
|
89
|
+
# colwidth<Integer>:: Force the first column to colwidth spaces wide.
|
90
|
+
#
|
91
|
+
def print_table(table, options={})
|
92
|
+
return if table.empty?
|
93
|
+
|
94
|
+
formats, ident, colwidth = [], options[:ident].to_i, options[:colwidth]
|
95
|
+
options[:truncate] = terminal_width if options[:truncate] == true
|
96
|
+
|
97
|
+
formats << "%-#{colwidth + 2}s" if colwidth
|
98
|
+
start = colwidth ? 1 : 0
|
99
|
+
|
100
|
+
start.upto(table.first.length - 2) do |i|
|
101
|
+
maxima ||= table.max{|a,b| a[i].size <=> b[i].size }[i].size
|
102
|
+
formats << "%-#{maxima + 2}s"
|
103
|
+
end
|
104
|
+
|
105
|
+
formats[0] = formats[0].insert(0, " " * ident)
|
106
|
+
formats << "%s"
|
107
|
+
|
108
|
+
table.each do |row|
|
109
|
+
sentence = ""
|
110
|
+
|
111
|
+
row.each_with_index do |column, i|
|
112
|
+
sentence << formats[i] % column.to_s
|
113
|
+
end
|
114
|
+
|
115
|
+
sentence = truncate(sentence, options[:truncate]) if options[:truncate]
|
116
|
+
$stdout.puts sentence
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
# Prints a long string, word-wrapping the text to the current width of the
|
121
|
+
# terminal display. Ideal for printing heredocs.
|
122
|
+
#
|
123
|
+
# ==== Parameters
|
124
|
+
# String
|
125
|
+
#
|
126
|
+
# ==== Options
|
127
|
+
# ident<Integer>:: Indent each line of the printed paragraph by ident value.
|
128
|
+
#
|
129
|
+
def print_wrapped(message, options={})
|
130
|
+
ident = options[:ident] || 0
|
131
|
+
width = terminal_width - ident
|
132
|
+
paras = message.split("\n\n")
|
133
|
+
|
134
|
+
paras.map! do |unwrapped|
|
135
|
+
unwrapped.strip.gsub(/\n/, " ").squeeze(" ").
|
136
|
+
gsub(/.{1,#{width}}(?:\s|\Z)/){($& + 5.chr).
|
137
|
+
gsub(/\n\005/,"\n").gsub(/\005/,"\n")}
|
138
|
+
end
|
139
|
+
|
140
|
+
paras.each do |para|
|
141
|
+
para.split("\n").each do |line|
|
142
|
+
$stdout.puts line.insert(0, " " * ident)
|
143
|
+
end
|
144
|
+
$stdout.puts unless para == paras.last
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
# Deals with file collision and returns true if the file should be
|
149
|
+
# overwriten and false otherwise. If a block is given, it uses the block
|
150
|
+
# response as the content for the diff.
|
151
|
+
#
|
152
|
+
# ==== Parameters
|
153
|
+
# destination<String>:: the destination file to solve conflicts
|
154
|
+
# block<Proc>:: an optional block that returns the value to be used in diff
|
155
|
+
#
|
156
|
+
def file_collision(destination)
|
157
|
+
return true if @always_force
|
158
|
+
options = block_given? ? "[Ynaqdh]" : "[Ynaqh]"
|
159
|
+
|
160
|
+
while true
|
161
|
+
answer = ask %[Overwrite #{destination}? (enter "h" for help) #{options}]
|
162
|
+
|
163
|
+
case answer
|
164
|
+
when is?(:yes), is?(:force), ""
|
165
|
+
return true
|
166
|
+
when is?(:no), is?(:skip)
|
167
|
+
return false
|
168
|
+
when is?(:always)
|
169
|
+
return @always_force = true
|
170
|
+
when is?(:quit)
|
171
|
+
say 'Aborting...'
|
172
|
+
raise SystemExit
|
173
|
+
when is?(:diff)
|
174
|
+
show_diff(destination, yield) if block_given?
|
175
|
+
say 'Retrying...'
|
176
|
+
else
|
177
|
+
say file_collision_help
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
# Called if something goes wrong during the execution. This is used by Thor
|
183
|
+
# internally and should not be used inside your scripts. If someone went
|
184
|
+
# wrong, you can always raise an exception. If you raise a Thor::Error, it
|
185
|
+
# will be rescued and wrapped in the method below.
|
186
|
+
#
|
187
|
+
def error(statement)
|
188
|
+
$stderr.puts statement
|
189
|
+
end
|
190
|
+
|
191
|
+
# Apply color to the given string with optional bold. Disabled in the
|
192
|
+
# Thor::Shell::Basic class.
|
193
|
+
#
|
194
|
+
def set_color(string, color, bold=false) #:nodoc:
|
195
|
+
string
|
196
|
+
end
|
197
|
+
|
198
|
+
protected
|
199
|
+
|
200
|
+
def is?(value) #:nodoc:
|
201
|
+
value = value.to_s
|
202
|
+
|
203
|
+
if value.size == 1
|
204
|
+
/\A#{value}\z/i
|
205
|
+
else
|
206
|
+
/\A(#{value}|#{value[0,1]})\z/i
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
def file_collision_help #:nodoc:
|
211
|
+
<<HELP
|
212
|
+
Y - yes, overwrite
|
213
|
+
n - no, do not overwrite
|
214
|
+
a - all, overwrite this and all others
|
215
|
+
q - quit, abort
|
216
|
+
d - diff, show the differences between the old and the new
|
217
|
+
h - help, show this help
|
218
|
+
HELP
|
219
|
+
end
|
220
|
+
|
221
|
+
def show_diff(destination, content) #:nodoc:
|
222
|
+
diff_cmd = ENV['THOR_DIFF'] || ENV['RAILS_DIFF'] || 'diff -u'
|
223
|
+
|
224
|
+
Tempfile.open(File.basename(destination), File.dirname(destination)) do |temp|
|
225
|
+
temp.write content
|
226
|
+
temp.rewind
|
227
|
+
system %(#{diff_cmd} "#{destination}" "#{temp.path}")
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
231
|
+
def quiet? #:nodoc:
|
232
|
+
base && base.options[:quiet]
|
233
|
+
end
|
234
|
+
|
235
|
+
# This code was copied from Rake, available under MIT-LICENSE
|
236
|
+
# Copyright (c) 2003, 2004 Jim Weirich
|
237
|
+
def terminal_width
|
238
|
+
if ENV['THOR_COLUMNS']
|
239
|
+
result = ENV['THOR_COLUMNS'].to_i
|
240
|
+
else
|
241
|
+
result = unix? ? dynamic_width : 80
|
242
|
+
end
|
243
|
+
(result < 10) ? 80 : result
|
244
|
+
rescue
|
245
|
+
80
|
246
|
+
end
|
247
|
+
|
248
|
+
# Calculate the dynamic width of the terminal
|
249
|
+
def dynamic_width
|
250
|
+
@dynamic_width ||= (dynamic_width_stty.nonzero? || dynamic_width_tput)
|
251
|
+
end
|
252
|
+
|
253
|
+
def dynamic_width_stty
|
254
|
+
%x{stty size 2>/dev/null}.split[1].to_i
|
255
|
+
end
|
256
|
+
|
257
|
+
def dynamic_width_tput
|
258
|
+
%x{tput cols 2>/dev/null}.to_i
|
259
|
+
end
|
260
|
+
|
261
|
+
def unix?
|
262
|
+
RUBY_PLATFORM =~ /(aix|darwin|linux|(net|free|open)bsd|cygwin|solaris|irix|hpux)/i
|
263
|
+
end
|
264
|
+
|
265
|
+
def truncate(string, width)
|
266
|
+
if string.length <= width
|
267
|
+
string
|
268
|
+
else
|
269
|
+
( string[0, width-3] || "" ) + "..."
|
270
|
+
end
|
271
|
+
end
|
272
|
+
|
273
|
+
end
|
274
|
+
end
|
275
|
+
end
|
@@ -0,0 +1,108 @@
|
|
1
|
+
require 'thor/shell/basic'
|
2
|
+
|
3
|
+
class Thor
|
4
|
+
module Shell
|
5
|
+
# Inherit from Thor::Shell::Basic and add set_color behavior. Check
|
6
|
+
# Thor::Shell::Basic to see all available methods.
|
7
|
+
#
|
8
|
+
class Color < Basic
|
9
|
+
# Embed in a String to clear all previous ANSI sequences.
|
10
|
+
CLEAR = "\e[0m"
|
11
|
+
# The start of an ANSI bold sequence.
|
12
|
+
BOLD = "\e[1m"
|
13
|
+
|
14
|
+
# Set the terminal's foreground ANSI color to black.
|
15
|
+
BLACK = "\e[30m"
|
16
|
+
# Set the terminal's foreground ANSI color to red.
|
17
|
+
RED = "\e[31m"
|
18
|
+
# Set the terminal's foreground ANSI color to green.
|
19
|
+
GREEN = "\e[32m"
|
20
|
+
# Set the terminal's foreground ANSI color to yellow.
|
21
|
+
YELLOW = "\e[33m"
|
22
|
+
# Set the terminal's foreground ANSI color to blue.
|
23
|
+
BLUE = "\e[34m"
|
24
|
+
# Set the terminal's foreground ANSI color to magenta.
|
25
|
+
MAGENTA = "\e[35m"
|
26
|
+
# Set the terminal's foreground ANSI color to cyan.
|
27
|
+
CYAN = "\e[36m"
|
28
|
+
# Set the terminal's foreground ANSI color to white.
|
29
|
+
WHITE = "\e[37m"
|
30
|
+
|
31
|
+
# Set the terminal's background ANSI color to black.
|
32
|
+
ON_BLACK = "\e[40m"
|
33
|
+
# Set the terminal's background ANSI color to red.
|
34
|
+
ON_RED = "\e[41m"
|
35
|
+
# Set the terminal's background ANSI color to green.
|
36
|
+
ON_GREEN = "\e[42m"
|
37
|
+
# Set the terminal's background ANSI color to yellow.
|
38
|
+
ON_YELLOW = "\e[43m"
|
39
|
+
# Set the terminal's background ANSI color to blue.
|
40
|
+
ON_BLUE = "\e[44m"
|
41
|
+
# Set the terminal's background ANSI color to magenta.
|
42
|
+
ON_MAGENTA = "\e[45m"
|
43
|
+
# Set the terminal's background ANSI color to cyan.
|
44
|
+
ON_CYAN = "\e[46m"
|
45
|
+
# Set the terminal's background ANSI color to white.
|
46
|
+
ON_WHITE = "\e[47m"
|
47
|
+
|
48
|
+
# Set color by using a string or one of the defined constants. If a third
|
49
|
+
# option is set to true, it also adds bold to the string. This is based
|
50
|
+
# on Highline implementation and it automatically appends CLEAR to the end
|
51
|
+
# of the returned String.
|
52
|
+
#
|
53
|
+
def set_color(string, color, bold=false)
|
54
|
+
color = self.class.const_get(color.to_s.upcase) if color.is_a?(Symbol)
|
55
|
+
bold = bold ? BOLD : ""
|
56
|
+
"#{bold}#{color}#{string}#{CLEAR}"
|
57
|
+
end
|
58
|
+
|
59
|
+
protected
|
60
|
+
|
61
|
+
# Overwrite show_diff to show diff with colors if Diff::LCS is
|
62
|
+
# available.
|
63
|
+
#
|
64
|
+
def show_diff(destination, content) #:nodoc:
|
65
|
+
if diff_lcs_loaded? && ENV['THOR_DIFF'].nil? && ENV['RAILS_DIFF'].nil?
|
66
|
+
actual = File.binread(destination).to_s.split("\n")
|
67
|
+
content = content.to_s.split("\n")
|
68
|
+
|
69
|
+
Diff::LCS.sdiff(actual, content).each do |diff|
|
70
|
+
output_diff_line(diff)
|
71
|
+
end
|
72
|
+
else
|
73
|
+
super
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
def output_diff_line(diff) #:nodoc:
|
78
|
+
case diff.action
|
79
|
+
when '-'
|
80
|
+
say "- #{diff.old_element.chomp}", :red, true
|
81
|
+
when '+'
|
82
|
+
say "+ #{diff.new_element.chomp}", :green, true
|
83
|
+
when '!'
|
84
|
+
say "- #{diff.old_element.chomp}", :red, true
|
85
|
+
say "+ #{diff.new_element.chomp}", :green, true
|
86
|
+
else
|
87
|
+
say " #{diff.old_element.chomp}", nil, true
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# Check if Diff::LCS is loaded. If it is, use it to create pretty output
|
92
|
+
# for diff.
|
93
|
+
#
|
94
|
+
def diff_lcs_loaded? #:nodoc:
|
95
|
+
return true if defined?(Diff::LCS)
|
96
|
+
return @diff_lcs_loaded unless @diff_lcs_loaded.nil?
|
97
|
+
|
98
|
+
@diff_lcs_loaded = begin
|
99
|
+
require 'diff/lcs'
|
100
|
+
true
|
101
|
+
rescue LoadError
|
102
|
+
false
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
@@ -0,0 +1,121 @@
|
|
1
|
+
require 'thor/shell/basic'
|
2
|
+
|
3
|
+
class Thor
|
4
|
+
module Shell
|
5
|
+
# Inherit from Thor::Shell::Basic and add set_color behavior. Check
|
6
|
+
# Thor::Shell::Basic to see all available methods.
|
7
|
+
#
|
8
|
+
class HTML < Basic
|
9
|
+
# The start of an HTML bold sequence.
|
10
|
+
BOLD = "<strong>"
|
11
|
+
# The end of an HTML bold sequence.
|
12
|
+
END_BOLD = "</strong>"
|
13
|
+
|
14
|
+
# Embed in a String to clear previous color selection.
|
15
|
+
CLEAR = "</span>"
|
16
|
+
|
17
|
+
# Set the terminal's foreground HTML color to black.
|
18
|
+
BLACK = '<span style="color: black;">'
|
19
|
+
# Set the terminal's foreground HTML color to red.
|
20
|
+
RED = '<span style="color: red;">'
|
21
|
+
# Set the terminal's foreground HTML color to green.
|
22
|
+
GREEN = '<span style="color: green;">'
|
23
|
+
# Set the terminal's foreground HTML color to yellow.
|
24
|
+
YELLOW = '<span style="color: yellow;">'
|
25
|
+
# Set the terminal's foreground HTML color to blue.
|
26
|
+
BLUE = '<span style="color: blue;">'
|
27
|
+
# Set the terminal's foreground HTML color to magenta.
|
28
|
+
MAGENTA = '<span style="color: magenta;">'
|
29
|
+
# Set the terminal's foreground HTML color to cyan.
|
30
|
+
CYAN = '<span style="color: cyan;">'
|
31
|
+
# Set the terminal's foreground HTML color to white.
|
32
|
+
WHITE = '<span style="color: white;">'
|
33
|
+
|
34
|
+
# Set the terminal's background HTML color to black.
|
35
|
+
ON_BLACK = '<span style="background-color: black">'
|
36
|
+
# Set the terminal's background HTML color to red.
|
37
|
+
ON_RED = '<span style="background-color: red">'
|
38
|
+
# Set the terminal's background HTML color to green.
|
39
|
+
ON_GREEN = '<span style="background-color: green">'
|
40
|
+
# Set the terminal's background HTML color to yellow.
|
41
|
+
ON_YELLOW = '<span style="background-color: yellow">'
|
42
|
+
# Set the terminal's background HTML color to blue.
|
43
|
+
ON_BLUE = '<span style="background-color: blue">'
|
44
|
+
# Set the terminal's background HTML color to magenta.
|
45
|
+
ON_MAGENTA = '<span style="background-color: magenta">'
|
46
|
+
# Set the terminal's background HTML color to cyan.
|
47
|
+
ON_CYAN = '<span style="background-color: cyan">'
|
48
|
+
# Set the terminal's background HTML color to white.
|
49
|
+
ON_WHITE = '<span style="background-color: white">'
|
50
|
+
|
51
|
+
# Set color by using a string or one of the defined constants. If a third
|
52
|
+
# option is set to true, it also adds bold to the string. This is based
|
53
|
+
# on Highline implementation and it automatically appends CLEAR to the end
|
54
|
+
# of the returned String.
|
55
|
+
#
|
56
|
+
def set_color(string, color, bold=false)
|
57
|
+
color = self.class.const_get(color.to_s.upcase) if color.is_a?(Symbol)
|
58
|
+
bold, end_bold = bold ? [BOLD, END_BOLD] : ['', '']
|
59
|
+
"#{bold}#{color}#{string}#{CLEAR}#{end_bold}"
|
60
|
+
end
|
61
|
+
|
62
|
+
# Ask something to the user and receives a response.
|
63
|
+
#
|
64
|
+
# ==== Example
|
65
|
+
# ask("What is your name?")
|
66
|
+
#
|
67
|
+
# TODO: Implement #ask for Thor::Shell::HTML
|
68
|
+
def ask(statement, color=nil)
|
69
|
+
raise NotImplementedError, "Implement #ask for Thor::Shell::HTML"
|
70
|
+
end
|
71
|
+
|
72
|
+
protected
|
73
|
+
|
74
|
+
# Overwrite show_diff to show diff with colors if Diff::LCS is
|
75
|
+
# available.
|
76
|
+
#
|
77
|
+
def show_diff(destination, content) #:nodoc:
|
78
|
+
if diff_lcs_loaded? && ENV['THOR_DIFF'].nil? && ENV['RAILS_DIFF'].nil?
|
79
|
+
actual = File.binread(destination).to_s.split("\n")
|
80
|
+
content = content.to_s.split("\n")
|
81
|
+
|
82
|
+
Diff::LCS.sdiff(actual, content).each do |diff|
|
83
|
+
output_diff_line(diff)
|
84
|
+
end
|
85
|
+
else
|
86
|
+
super
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
def output_diff_line(diff) #:nodoc:
|
91
|
+
case diff.action
|
92
|
+
when '-'
|
93
|
+
say "- #{diff.old_element.chomp}", :red, true
|
94
|
+
when '+'
|
95
|
+
say "+ #{diff.new_element.chomp}", :green, true
|
96
|
+
when '!'
|
97
|
+
say "- #{diff.old_element.chomp}", :red, true
|
98
|
+
say "+ #{diff.new_element.chomp}", :green, true
|
99
|
+
else
|
100
|
+
say " #{diff.old_element.chomp}", nil, true
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
# Check if Diff::LCS is loaded. If it is, use it to create pretty output
|
105
|
+
# for diff.
|
106
|
+
#
|
107
|
+
def diff_lcs_loaded? #:nodoc:
|
108
|
+
return true if defined?(Diff::LCS)
|
109
|
+
return @diff_lcs_loaded unless @diff_lcs_loaded.nil?
|
110
|
+
|
111
|
+
@diff_lcs_loaded = begin
|
112
|
+
require 'diff/lcs'
|
113
|
+
true
|
114
|
+
rescue LoadError
|
115
|
+
false
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|