syllable_counter 0.0.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/README.md +5 -2
- data/lib/syllable_counter.rb +7 -19
- data/lib/syllable_counter/calculate.rb +28 -0
- data/lib/syllable_counter/english_exceptions.rb +11 -0
- data/lib/syllable_counter/rules.rb +71 -0
- data/lib/syllable_counter/version.rb +1 -1
- data/spec/calculator_spec.rb +27 -0
- data/spec/rules_spec.rb +39 -0
- data/spec/spec_helper.rb +3 -0
- data/spec/syllable_counter_spec.rb +6 -75
- data/syllable_counter.gemspec +2 -2
- data/vendor/bundle/bin/autospec +23 -0
- data/vendor/bundle/bin/htmldiff +25 -0
- data/vendor/bundle/bin/ldiff +25 -0
- data/vendor/bundle/bin/rake +23 -0
- data/vendor/bundle/bin/rspec +23 -0
- data/vendor/bundle/build_info/diff-lcs-1.2.4.info +1 -0
- data/vendor/bundle/build_info/rake-10.1.0.info +1 -0
- data/vendor/bundle/build_info/rspec-2.14.1.info +1 -0
- data/vendor/bundle/build_info/rspec-core-2.14.5.info +1 -0
- data/vendor/bundle/build_info/rspec-expectations-2.14.2.info +1 -0
- data/vendor/bundle/build_info/rspec-mocks-2.14.3.info +1 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/.autotest +3 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/.gemtest +0 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/.hoerc +2 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/.rspec +2 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/.travis.yml +22 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/Contributing.rdoc +64 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/Gemfile +20 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/History.rdoc +146 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/License.rdoc +39 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/Manifest.txt +38 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/README.rdoc +85 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/Rakefile +39 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/autotest/discover.rb +1 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/bin/htmldiff +32 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/bin/ldiff +6 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/docs/COPYING.txt +339 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/docs/artistic.txt +127 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/lib/diff-lcs.rb +3 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/lib/diff/lcs.rb +805 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/lib/diff/lcs/array.rb +7 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/lib/diff/lcs/block.rb +37 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/lib/diff/lcs/callbacks.rb +322 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/lib/diff/lcs/change.rb +177 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/lib/diff/lcs/htmldiff.rb +149 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/lib/diff/lcs/hunk.rb +276 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/lib/diff/lcs/internals.rb +301 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/lib/diff/lcs/ldiff.rb +195 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/lib/diff/lcs/string.rb +5 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/spec/change_spec.rb +65 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/spec/diff_spec.rb +47 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/spec/hunk_spec.rb +72 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/spec/issues_spec.rb +24 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/spec/lcs_spec.rb +54 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/spec/patch_spec.rb +414 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/spec/sdiff_spec.rb +202 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/spec/spec_helper.rb +290 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/spec/traverse_balanced_spec.rb +310 -0
- data/vendor/bundle/gems/diff-lcs-1.2.4/spec/traverse_sequences_spec.rb +139 -0
- data/vendor/bundle/gems/rake-10.1.0/.gemtest +0 -0
- data/vendor/bundle/gems/rake-10.1.0/CHANGES +530 -0
- data/vendor/bundle/gems/rake-10.1.0/MIT-LICENSE +21 -0
- data/vendor/bundle/gems/rake-10.1.0/README.rdoc +187 -0
- data/vendor/bundle/gems/rake-10.1.0/Rakefile +375 -0
- data/vendor/bundle/gems/rake-10.1.0/TODO +21 -0
- data/vendor/bundle/gems/rake-10.1.0/bin/rake +33 -0
- data/vendor/bundle/gems/rake-10.1.0/install.rb +80 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake.rb +73 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/alt_system.rb +108 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/application.rb +728 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/backtrace.rb +20 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/clean.rb +55 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/cloneable.rb +16 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/contrib/compositepublisher.rb +21 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/contrib/ftptools.rb +139 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/contrib/publisher.rb +73 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/contrib/rubyforgepublisher.rb +16 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/contrib/sshpublisher.rb +50 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/contrib/sys.rb +2 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/default_loader.rb +10 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/dsl_definition.rb +157 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/early_time.rb +18 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/ext/core.rb +28 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/ext/module.rb +0 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/ext/string.rb +166 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/ext/time.rb +15 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/file_creation_task.rb +24 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/file_list.rb +416 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/file_task.rb +46 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/file_utils.rb +116 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/file_utils_ext.rb +144 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/gempackagetask.rb +2 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/invocation_chain.rb +57 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/invocation_exception_mixin.rb +16 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/linked_list.rb +103 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/loaders/makefile.rb +40 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/multi_task.rb +13 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/name_space.rb +25 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/packagetask.rb +190 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/pathmap.rb +1 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/phony.rb +15 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/private_reader.rb +20 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/promise.rb +99 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/pseudo_status.rb +29 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/rake_module.rb +37 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/rake_test_loader.rb +22 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/rdoctask.rb +2 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/ruby182_test_unit_fix.rb +27 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/runtest.rb +22 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/scope.rb +42 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/task.rb +378 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/task_argument_error.rb +7 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/task_arguments.rb +89 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/task_manager.rb +297 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/tasklib.rb +22 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/testtask.rb +201 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/thread_history_display.rb +48 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/thread_pool.rb +161 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/trace_output.rb +22 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/version.rb +9 -0
- data/vendor/bundle/gems/rake-10.1.0/lib/rake/win32.rb +56 -0
- data/vendor/bundle/gems/rake-10.1.0/test/file_creation.rb +34 -0
- data/vendor/bundle/gems/rake-10.1.0/test/helper.rb +128 -0
- data/vendor/bundle/gems/rake-10.1.0/test/support/rakefile_definitions.rb +444 -0
- data/vendor/bundle/gems/rake-10.1.0/test/support/ruby_runner.rb +33 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_private_reader.rb +42 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake.rb +40 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_application.rb +517 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_application_options.rb +457 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_backtrace.rb +113 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_clean.rb +46 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_definitions.rb +79 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_directory_task.rb +57 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_dsl.rb +40 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_early_time.rb +31 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_extension.rb +59 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_file_creation_task.rb +56 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_file_list.rb +627 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_file_list_path_map.rb +8 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_file_task.rb +122 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_file_utils.rb +309 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_ftp_file.rb +74 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_functional.rb +466 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_invocation_chain.rb +64 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_linked_list.rb +84 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_makefile_loader.rb +46 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_multi_task.rb +58 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_name_space.rb +43 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_package_task.rb +79 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_path_map.rb +168 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_path_map_explode.rb +34 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_path_map_partial.rb +18 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_pseudo_status.rb +21 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_rake_test_loader.rb +20 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_reduce_compat.rb +26 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_require.rb +40 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_rules.rb +362 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_scope.rb +44 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_task.rb +376 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_task_argument_parsing.rb +103 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_task_arguments.rb +121 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_task_lib.rb +9 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_task_manager.rb +158 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_task_manager_argument_resolution.rb +19 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_task_with_arguments.rb +171 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_test_task.rb +119 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_thread_pool.rb +142 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_top_level_functions.rb +71 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_rake_win32.rb +72 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_thread_history_display.rb +101 -0
- data/vendor/bundle/gems/rake-10.1.0/test/test_trace_output.rb +52 -0
- data/vendor/bundle/gems/rspec-2.14.1/License.txt +24 -0
- data/vendor/bundle/gems/rspec-2.14.1/README.md +47 -0
- data/vendor/bundle/gems/rspec-2.14.1/lib/rspec.rb +3 -0
- data/vendor/bundle/gems/rspec-2.14.1/lib/rspec/version.rb +5 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/.document +5 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/.yardopts +6 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/Changelog.md +881 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/License.txt +24 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/README.md +261 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/exe/autospec +13 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/exe/rspec +25 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/Autotest.md +38 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/README.md +17 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/Upgrade.md +364 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/command_line/README.md +28 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/command_line/example_name_option.feature +97 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/command_line/exit_status.feature +82 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/command_line/format_option.feature +75 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/command_line/init.feature +18 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/command_line/line_number_appended_to_path.feature +140 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/command_line/line_number_option.feature +58 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/command_line/order.feature +29 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/command_line/pattern_option.feature +49 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/command_line/rake_task.feature +122 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/command_line/require_option.feature +43 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/command_line/ruby.feature +22 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/command_line/tag.feature +98 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/command_line/warnings_option.feature +29 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/configuration/alias_example_to.feature +48 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/configuration/backtrace_clean_patterns.feature +102 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/configuration/custom_settings.feature +84 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/configuration/default_path.feature +38 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/configuration/deprecation_stream.feature +58 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/configuration/fail_fast.feature +77 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/configuration/failure_exit_code.feature +36 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/configuration/order_and_seed.feature +3 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/configuration/output_stream.feature +24 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/configuration/pattern.feature +38 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/configuration/profile.feature +220 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/configuration/read_options_from_file.feature +90 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/configuration/run_all_when_everything_filtered.feature +76 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/configuration/show_failures_in_pending_blocks.feature +61 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/configuration/treat_symbols_as_metadata_keys_with_true_values.feature +52 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/example_groups/basic_structure.feature +55 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/example_groups/shared_context.feature +74 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/example_groups/shared_examples.feature +294 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/expectation_framework_integration/configure_expectation_framework.feature +102 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/filtering/exclusion_filters.feature +138 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/filtering/if_and_unless.feature +168 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/filtering/inclusion_filters.feature +105 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/formatters/configurable_colors.feature +31 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/formatters/custom_formatter.feature +36 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/formatters/json_formatter.feature +30 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/formatters/text_formatter.feature +46 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/helper_methods/arbitrary_methods.feature +40 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/helper_methods/let.feature +50 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/helper_methods/modules.feature +149 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/hooks/around_hooks.feature +343 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/hooks/before_and_after_hooks.feature +427 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/hooks/filtering.feature +234 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/metadata/current_example.feature +17 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/metadata/described_class.feature +17 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/metadata/user_defined.feature +113 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/mock_framework_integration/use_any_framework.feature +106 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/mock_framework_integration/use_flexmock.feature +96 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/mock_framework_integration/use_mocha.feature +97 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/mock_framework_integration/use_rr.feature +98 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/mock_framework_integration/use_rspec.feature +97 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/pending/pending_examples.feature +229 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/spec_files/arbitrary_file_suffix.feature +13 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/step_definitions/additional_cli_steps.rb +49 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/subject/attribute_of_subject.feature +124 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/subject/explicit_subject.feature +101 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/subject/implicit_receiver.feature +29 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/subject/implicit_subject.feature +63 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/support/env.rb +14 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/features/support/rubinius.rb +6 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/autotest/discover.rb +1 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/autotest/rspec2.rb +73 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/autorun.rb +2 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core.rb +169 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/backtrace_cleaner.rb +46 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/backward_compatibility.rb +55 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb +36 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/configuration.rb +1174 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/configuration_options.rb +156 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/deprecation.rb +31 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/drb_command_line.rb +26 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/drb_options.rb +87 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/dsl.rb +26 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/example.rb +331 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb +479 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/extensions/instance_eval_with_args.rb +44 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/extensions/kernel.rb +9 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/extensions/module_eval_with_args.rb +38 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/extensions/ordered.rb +27 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/filter_manager.rb +203 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/formatters.rb +55 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/formatters/base_formatter.rb +246 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/formatters/base_text_formatter.rb +329 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/formatters/deprecation_formatter.rb +39 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/formatters/documentation_formatter.rb +67 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/formatters/helpers.rb +110 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/formatters/html_formatter.rb +155 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/formatters/html_printer.rb +408 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/formatters/json_formatter.rb +70 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/formatters/progress_formatter.rb +32 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/formatters/snippet_extractor.rb +92 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/formatters/text_mate_formatter.rb +34 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb +519 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/memoized_helpers.rb +514 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/metadata.rb +299 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/metadata_hash_builder.rb +97 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/mocking/with_absolutely_nothing.rb +11 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/mocking/with_flexmock.rb +27 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/mocking/with_mocha.rb +52 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/mocking/with_rr.rb +27 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/mocking/with_rspec.rb +27 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/option_parser.rb +219 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/pending.rb +109 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/project_initializer.rb +86 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/rake_task.rb +206 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/reporter.rb +132 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/ruby_project.rb +44 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/runner.rb +87 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/shared_context.rb +55 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/shared_example_group.rb +185 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/shared_example_group/collection.rb +43 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/version.rb +8 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/lib/rspec/core/world.rb +127 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/autotest/discover_spec.rb +19 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/autotest/failed_results_re_spec.rb +45 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/autotest/rspec_spec.rb +133 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/command_line/order_spec.rb +204 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/backtrace_cleaner_spec.rb +68 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/command_line_spec.rb +108 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/command_line_spec_output.txt +0 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/configuration_options_spec.rb +417 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/configuration_spec.rb +1561 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/deprecation_spec.rb +46 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/deprecations_spec.rb +73 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/drb_command_line_spec.rb +102 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/drb_options_spec.rb +193 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/dsl_spec.rb +25 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/example_group_spec.rb +1187 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/example_spec.rb +439 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/filter_manager_spec.rb +246 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/base_formatter_spec.rb +108 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/base_text_formatter_spec.rb +494 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/deprecation_formatter_spec.rb +96 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/documentation_formatter_spec.rb +88 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/helpers_spec.rb +94 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +404 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/html_formatted-1.8.7-rbx.html +477 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/html_formatted-1.8.7.html +414 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/html_formatted-1.9.2.html +425 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/html_formatted-1.9.3-jruby.html +404 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/html_formatted-1.9.3-rbx.html +477 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/html_formatted-1.9.3.html +425 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/html_formatted-2.0.0.html +425 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/html_formatter_spec.rb +95 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/json_formatter_spec.rb +115 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/progress_formatter_spec.rb +30 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/snippet_extractor_spec.rb +26 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html +395 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/text_mate_formatted-1.8.7-rbx.html +477 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +414 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +425 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/text_mate_formatted-1.9.3-jruby.html +404 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/text_mate_formatted-1.9.3-rbx.html +477 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/text_mate_formatted-1.9.3.html +425 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/text_mate_formatted-2.0.0.html +425 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/formatters/text_mate_formatter_spec.rb +96 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/hooks_filtering_spec.rb +227 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/hooks_spec.rb +267 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/kernel_extensions_spec.rb +9 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/memoized_helpers_spec.rb +688 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/metadata_spec.rb +491 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/option_parser_spec.rb +242 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/pending_example_spec.rb +220 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/project_initializer_spec.rb +130 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/rake_task_spec.rb +181 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/reporter_spec.rb +141 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/resources/a_bar.rb +0 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/resources/a_foo.rb +0 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/resources/a_spec.rb +1 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/resources/custom_example_group_runner.rb +14 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/resources/formatter_specs.rb +60 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/resources/utf8_encoded.rb +8 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/rspec_matchers_spec.rb +45 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/ruby_project_spec.rb +26 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/runner_spec.rb +82 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/shared_context_spec.rb +114 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/shared_example_group/collection_spec.rb +70 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/shared_example_group_spec.rb +120 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core/world_spec.rb +142 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/rspec/core_spec.rb +74 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/spec_helper.rb +132 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/support/config_options_helper.rb +15 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/support/helper_methods.rb +36 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/support/isolate_load_path_mutation.rb +6 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/support/isolated_directory.rb +10 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/support/isolated_home_directory.rb +16 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/support/matchers.rb +65 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/support/sandboxed_mock_space.rb +100 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/support/shared_example_groups.rb +41 -0
- data/vendor/bundle/gems/rspec-core-2.14.5/spec/support/spec_files.rb +44 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/.document +5 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/.yardopts +6 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/Changelog.md +399 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/License.txt +23 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/README.md +184 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/README.md +48 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/Upgrade.md +53 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/built_in_matchers/README.md +90 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/built_in_matchers/be.feature +175 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/built_in_matchers/be_within.feature +48 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/built_in_matchers/cover.feature +47 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/built_in_matchers/end_with.feature +48 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/built_in_matchers/equality.feature +139 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/built_in_matchers/exist.feature +45 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/built_in_matchers/expect_change.feature +59 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/built_in_matchers/expect_error.feature +144 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/built_in_matchers/have.feature +109 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/built_in_matchers/include.feature +174 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/built_in_matchers/match.feature +52 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/built_in_matchers/operators.feature +227 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/built_in_matchers/predicates.feature +137 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/built_in_matchers/respond_to.feature +84 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/built_in_matchers/satisfy.feature +33 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/built_in_matchers/start_with.feature +48 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/built_in_matchers/throw_symbol.feature +91 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/built_in_matchers/types.feature +116 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/built_in_matchers/yield.feature +161 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/custom_matchers/access_running_example.feature +53 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/custom_matchers/define_diffable_matcher.feature +27 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/custom_matchers/define_matcher.feature +368 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/custom_matchers/define_matcher_outside_rspec.feature +38 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/custom_matchers/define_matcher_with_fluent_interface.feature +24 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/customized_message.feature +22 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/diffing.feature +85 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/implicit_docstrings.feature +52 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/step_definitions/additional_cli_steps.rb +22 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/support/env.rb +14 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/support/rubinius.rb +6 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/syntax_configuration.feature +71 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/features/test_frameworks/test_unit.feature +44 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec-expectations.rb +1 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/expectations.rb +47 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/expectations/deprecation.rb +17 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/expectations/differ.rb +140 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/expectations/errors.rb +9 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/expectations/expectation_target.rb +87 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/expectations/extensions.rb +2 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/expectations/extensions/array.rb +9 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/expectations/extensions/object.rb +29 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/expectations/fail_with.rb +79 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/expectations/handler.rb +68 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/expectations/syntax.rb +164 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/expectations/version.rb +9 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers.rb +697 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/be_close.rb +9 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in.rb +39 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/base_matcher.rb +68 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/be.rb +197 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/be_instance_of.rb +15 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/be_kind_of.rb +11 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/be_within.rb +55 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/change.rb +141 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/cover.rb +21 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/eq.rb +22 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/eql.rb +23 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/equal.rb +48 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/exist.rb +26 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/has.rb +48 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/have.rb +124 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/include.rb +61 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/match.rb +12 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/match_array.rb +51 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/raise_error.rb +123 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/respond_to.rb +74 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/satisfy.rb +30 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/start_and_end_with.rb +48 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/throw_symbol.rb +94 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/built_in/yield.rb +296 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/compatibility.rb +14 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/configuration.rb +108 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/dsl.rb +24 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/extensions/instance_eval_with_args.rb +39 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/generated_descriptions.rb +35 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/matcher.rb +300 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/method_missing.rb +12 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/operator_matcher.rb +109 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/pretty.rb +70 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/matchers/test_unit_integration.rb +11 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/expectations/differ_spec.rb +203 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/expectations/expectation_target_spec.rb +82 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/expectations/extensions/kernel_spec.rb +67 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/expectations/fail_with_spec.rb +114 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/expectations/handler_spec.rb +227 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/expectations/syntax_spec.rb +139 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/base_matcher_spec.rb +62 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/be_close_spec.rb +22 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/be_instance_of_spec.rb +63 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/be_kind_of_spec.rb +41 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/be_spec.rb +522 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/be_within_spec.rb +137 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/change_spec.rb +567 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/configuration_spec.rb +206 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/cover_spec.rb +69 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/description_generation_spec.rb +190 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/dsl_spec.rb +57 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/eq_spec.rb +60 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/eql_spec.rb +41 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/equal_spec.rb +78 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/exist_spec.rb +124 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/has_spec.rb +122 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/have_spec.rb +455 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/include_matcher_integration_spec.rb +30 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/include_spec.rb +531 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/match_array_spec.rb +194 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/match_spec.rb +61 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/matcher_spec.rb +471 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/matchers_spec.rb +37 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/method_missing_spec.rb +28 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/operator_matcher_spec.rb +223 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/raise_error_spec.rb +485 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/respond_to_spec.rb +292 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/satisfy_spec.rb +44 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/start_with_end_with_spec.rb +186 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/throw_symbol_spec.rb +116 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/rspec/matchers/yield_spec.rb +514 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/spec_helper.rb +54 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/support/classes.rb +56 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/support/in_sub_process.rb +38 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/support/matchers.rb +22 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/support/ruby_version.rb +10 -0
- data/vendor/bundle/gems/rspec-expectations-2.14.2/spec/support/shared_examples.rb +13 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/.document +5 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/.yardopts +6 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/Changelog.md +410 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/License.txt +23 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/README.md +315 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/README.md +67 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/Scope.md +17 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/Upgrade.md +22 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/argument_matchers/README.md +27 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/argument_matchers/explicit.feature +59 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/argument_matchers/general_matchers.feature +85 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/argument_matchers/type_matchers.feature +26 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/message_expectations/README.md +73 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/message_expectations/allow_any_instance_of.feature +26 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/message_expectations/any_instance.feature +21 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/message_expectations/block_local_expectations.feature.pending +55 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/message_expectations/call_original.feature +24 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/message_expectations/expect_any_instance_of.feature +27 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/message_expectations/expect_message_using_expect.feature +107 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/message_expectations/expect_message_using_should_receive.feature +118 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/message_expectations/receive_counts.feature +209 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/message_expectations/warn_when_expectation_is_set_on_nil.feature +50 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/method_stubs/README.md +73 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/method_stubs/any_instance.feature +136 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/method_stubs/as_null_object.feature +40 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/method_stubs/simple_return_value_with_allow.feature +44 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/method_stubs/simple_return_value_with_stub.feature +64 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/method_stubs/stub_chain.feature +51 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/method_stubs/stub_implementation.feature +48 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/method_stubs/to_ary.feature +51 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/mutating_constants/README.md +82 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/mutating_constants/hiding_defined_constant.feature +64 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/mutating_constants/stub_defined_constant.feature +79 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/mutating_constants/stub_undefined_constant.feature +50 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/outside_rspec/configuration.feature +62 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/outside_rspec/standalone.feature +33 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/spies/spy_partial_mock_method.feature +34 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/spies/spy_pure_mock_method.feature +76 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/spies/spy_unstubbed_method.feature +18 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/step_definitions/additional_cli_steps.rb +11 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/support/env.rb +13 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/support/rubinius.rb +6 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/features/test_frameworks/test_unit.feature +43 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks.rb +92 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/any_instance/chain.rb +93 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/any_instance/expectation_chain.rb +42 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/any_instance/message_chains.rb +60 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/any_instance/recorder.rb +206 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/any_instance/stub_chain.rb +38 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/any_instance/stub_chain_chain.rb +23 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/argument_list_matcher.rb +97 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/argument_matchers.rb +238 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/configuration.rb +55 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/deprecation.rb +18 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/error_generator.rb +179 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/errors.rb +12 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/example_methods.rb +156 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/extensions/instance_exec.rb +34 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/extensions/marshal.rb +17 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/framework.rb +34 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/instance_method_stasher.rb +94 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/matchers/have_received.rb +93 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/matchers/receive.rb +96 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/message_expectation.rb +583 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/method_double.rb +265 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/mock.rb +7 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/mutate_const.rb +403 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/order_group.rb +40 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/proxy.rb +216 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/proxy_for_nil.rb +37 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/space.rb +87 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/standalone.rb +3 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/stub_chain.rb +51 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/syntax.rb +349 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/targets.rb +69 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/test_double.rb +135 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/rspec/mocks/version.rb +7 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/lib/spec/mocks.rb +4 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/and_call_original_spec.rb +243 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/and_yield_spec.rb +127 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/any_instance/message_chains_spec.rb +40 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/any_instance_spec.rb +963 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/any_number_of_times_spec.rb +36 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/argument_expectation_spec.rb +32 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/at_least_spec.rb +151 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/at_most_spec.rb +90 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/block_return_value_spec.rb +88 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/bug_report_10260_spec.rb +8 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/bug_report_10263_spec.rb +27 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/bug_report_11545_spec.rb +32 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/bug_report_496_spec.rb +17 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/bug_report_600_spec.rb +22 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/bug_report_7611_spec.rb +16 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/bug_report_8165_spec.rb +31 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/bug_report_830_spec.rb +21 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/bug_report_957_spec.rb +22 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/combining_implementation_instructions_spec.rb +205 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/configuration_spec.rb +150 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/double_spec.rb +24 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/extensions/marshal_spec.rb +54 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/failing_argument_matchers_spec.rb +110 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/hash_excluding_matcher_spec.rb +67 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/hash_including_matcher_spec.rb +90 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/instance_method_stasher_spec.rb +58 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/matchers/have_received_spec.rb +266 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/matchers/receive_spec.rb +328 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/methods_spec.rb +27 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/mock_ordering_spec.rb +103 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/mock_space_spec.rb +113 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/mock_spec.rb +798 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/multiple_return_value_spec.rb +132 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/mutate_const_spec.rb +501 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/nil_expectation_warning_spec.rb +68 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/null_object_mock_spec.rb +123 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/once_counts_spec.rb +52 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/options_hash_spec.rb +35 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/partial_mock_spec.rb +205 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb +95 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/passing_argument_matchers_spec.rb +142 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/precise_counts_spec.rb +68 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/record_messages_spec.rb +26 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/serialization_spec.rb +89 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/stash_spec.rb +46 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/stub_chain_spec.rb +154 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/stub_implementation_spec.rb +81 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/stub_spec.rb +353 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/stubbed_message_expectations_spec.rb +58 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb +81 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/test_double_spec.rb +67 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/to_ary_spec.rb +54 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/twice_counts_spec.rb +66 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks_spec.rb +65 -0
- data/vendor/bundle/gems/rspec-mocks-2.14.3/spec/spec_helper.rb +60 -0
- data/vendor/bundle/specifications/diff-lcs-1.2.4.gemspec +64 -0
- data/vendor/bundle/specifications/rake-10.1.0.gemspec +35 -0
- data/vendor/bundle/specifications/rspec-2.14.1.gemspec +39 -0
- data/vendor/bundle/specifications/rspec-core-2.14.5.gemspec +58 -0
- data/vendor/bundle/specifications/rspec-expectations-2.14.2.gemspec +40 -0
- data/vendor/bundle/specifications/rspec-mocks-2.14.3.gemspec +37 -0
- metadata +657 -11
@@ -0,0 +1,21 @@
|
|
1
|
+
= Rake Project -- To Do List
|
2
|
+
|
3
|
+
Send suggestions for this list to mailto:jim@weirichhouse.org or on
|
4
|
+
the rake-devel@rubyforge.org mailing list.
|
5
|
+
|
6
|
+
=== To Do
|
7
|
+
* Need a nice API for accessing tasks in namespaces, namespaces in an app, etc.
|
8
|
+
* Provide a way to disable -w warning mode.
|
9
|
+
* Define a set of default rules that work in the absence of any Rakefile
|
10
|
+
* What about cyclic dependencies?
|
11
|
+
* Java support utilities
|
12
|
+
* Installation support utilities
|
13
|
+
* Check out installpkg.rb
|
14
|
+
* Autogenerate Dependencies
|
15
|
+
* Rules should apply to existing tasks if no actions are defined.
|
16
|
+
* How to create multiple package tasks without task name collision?
|
17
|
+
* Trap "ln -s" commands that fail and use "cp" instead (SMB mounted
|
18
|
+
drives have problems with "ln -s".
|
19
|
+
|
20
|
+
|
21
|
+
(moved DONE list to CHANGES file)
|
@@ -0,0 +1,33 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
#--
|
4
|
+
# Copyright (c) 2003, 2004, 2005, 2006, 2007 Jim Weirich
|
5
|
+
#
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
# of this software and associated documentation files (the "Software"), to
|
8
|
+
# deal in the Software without restriction, including without limitation the
|
9
|
+
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
10
|
+
# sell copies of the Software, and to permit persons to whom the Software is
|
11
|
+
# furnished to do so, subject to the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be included in
|
14
|
+
# all copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
22
|
+
# IN THE SOFTWARE.
|
23
|
+
#++
|
24
|
+
|
25
|
+
begin
|
26
|
+
require 'rubygems'
|
27
|
+
gem 'rake'
|
28
|
+
rescue LoadError
|
29
|
+
end
|
30
|
+
|
31
|
+
require 'rake'
|
32
|
+
|
33
|
+
Rake.application.run
|
@@ -0,0 +1,80 @@
|
|
1
|
+
require 'rbconfig'
|
2
|
+
require 'find'
|
3
|
+
require 'fileutils'
|
4
|
+
require 'tempfile'
|
5
|
+
|
6
|
+
include RbConfig
|
7
|
+
|
8
|
+
$ruby = CONFIG['ruby_install_name']
|
9
|
+
|
10
|
+
##
|
11
|
+
# Install a binary file. We patch in on the way through to
|
12
|
+
# insert a #! line. If this is a Unix install, we name
|
13
|
+
# the command (for example) 'rake' and let the shebang line
|
14
|
+
# handle running it. Under windows, we add a '.rb' extension
|
15
|
+
# and let file associations do their stuff
|
16
|
+
#
|
17
|
+
|
18
|
+
def installBIN(from, opfile)
|
19
|
+
|
20
|
+
tmp_file = Tempfile.new("_tmp")
|
21
|
+
|
22
|
+
File.open(from) do |ip|
|
23
|
+
File.open(tmp_file, "w") do |op|
|
24
|
+
ruby = File.join($realbindir, $ruby)
|
25
|
+
op.puts "#!#{ruby} -w"
|
26
|
+
op.write ip.read
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
opfile += ".rb" if CONFIG["target_os"] =~ /mswin/i
|
31
|
+
FileUtils.install(tmp_file, File.join($bindir, opfile),
|
32
|
+
{:mode => 0755, :verbose => true})
|
33
|
+
tmp_file.unlink
|
34
|
+
end
|
35
|
+
|
36
|
+
$sitedir = CONFIG["sitelibdir"]
|
37
|
+
unless $sitedir
|
38
|
+
version = CONFIG["MAJOR"]+"."+CONFIG["MINOR"]
|
39
|
+
$libdir = File.join(CONFIG["libdir"], "ruby", version)
|
40
|
+
$sitedir = $:.find {|x| x =~ /site_ruby/}
|
41
|
+
if !$sitedir
|
42
|
+
$sitedir = File.join($libdir, "site_ruby")
|
43
|
+
elsif $sitedir !~ Regexp.quote(version)
|
44
|
+
$sitedir = File.join($sitedir, version)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
$bindir = CONFIG["bindir"]
|
49
|
+
|
50
|
+
$realbindir = $bindir
|
51
|
+
|
52
|
+
if (destdir = ENV['DESTDIR'])
|
53
|
+
$bindir = destdir + $bindir
|
54
|
+
$sitedir = destdir + $sitedir
|
55
|
+
|
56
|
+
FileUtils.mkdir_p($bindir)
|
57
|
+
FileUtils.mkdir_p($sitedir)
|
58
|
+
end
|
59
|
+
|
60
|
+
rake_dest = File.join($sitedir, "rake")
|
61
|
+
FileUtils.mkdir_p(rake_dest, {:verbose => true})
|
62
|
+
File.chmod(0755, rake_dest)
|
63
|
+
|
64
|
+
# The library files
|
65
|
+
|
66
|
+
files = Dir.chdir('lib') { Dir['**/*.rb'].sort }
|
67
|
+
|
68
|
+
for fn in files
|
69
|
+
fn_dir = File.dirname(fn)
|
70
|
+
target_dir = File.join($sitedir, fn_dir)
|
71
|
+
if ! File.exist?(target_dir)
|
72
|
+
FileUtils.mkdir_p(target_dir)
|
73
|
+
end
|
74
|
+
FileUtils.install(File.join('lib', fn), File.join($sitedir, fn),
|
75
|
+
{:mode => 0644, :verbose => true})
|
76
|
+
end
|
77
|
+
|
78
|
+
# and the executable
|
79
|
+
|
80
|
+
installBIN("bin/rake", "rake")
|
@@ -0,0 +1,73 @@
|
|
1
|
+
#--
|
2
|
+
|
3
|
+
# Copyright 2003-2010 by Jim Weirich (jim.weirich@gmail.com)
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
# of this software and associated documentation files (the "Software"), to
|
7
|
+
# deal in the Software without restriction, including without limitation the
|
8
|
+
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
9
|
+
# sell copies of the Software, and to permit persons to whom the Software is
|
10
|
+
# furnished to do so, subject to the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be included in
|
13
|
+
# all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
20
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
21
|
+
# IN THE SOFTWARE.
|
22
|
+
#++
|
23
|
+
|
24
|
+
require 'rake/version'
|
25
|
+
|
26
|
+
# :stopdoc:
|
27
|
+
RAKEVERSION = Rake::VERSION
|
28
|
+
# :startdoc:
|
29
|
+
|
30
|
+
require 'rbconfig'
|
31
|
+
require 'fileutils'
|
32
|
+
require 'singleton'
|
33
|
+
require 'monitor'
|
34
|
+
require 'optparse'
|
35
|
+
require 'ostruct'
|
36
|
+
|
37
|
+
require 'rake/ext/module'
|
38
|
+
require 'rake/ext/string'
|
39
|
+
require 'rake/ext/time'
|
40
|
+
|
41
|
+
require 'rake/win32'
|
42
|
+
|
43
|
+
require 'rake/linked_list'
|
44
|
+
require 'rake/scope'
|
45
|
+
require 'rake/task_argument_error'
|
46
|
+
require 'rake/rule_recursion_overflow_error'
|
47
|
+
require 'rake/rake_module'
|
48
|
+
require 'rake/trace_output'
|
49
|
+
require 'rake/pseudo_status'
|
50
|
+
require 'rake/task_arguments'
|
51
|
+
require 'rake/invocation_chain'
|
52
|
+
require 'rake/task'
|
53
|
+
require 'rake/file_task'
|
54
|
+
require 'rake/file_creation_task'
|
55
|
+
require 'rake/multi_task'
|
56
|
+
require 'rake/dsl_definition'
|
57
|
+
require 'rake/file_utils_ext'
|
58
|
+
require 'rake/file_list'
|
59
|
+
require 'rake/default_loader'
|
60
|
+
require 'rake/early_time'
|
61
|
+
require 'rake/name_space'
|
62
|
+
require 'rake/task_manager'
|
63
|
+
require 'rake/application'
|
64
|
+
require 'rake/backtrace'
|
65
|
+
|
66
|
+
$trace = false
|
67
|
+
|
68
|
+
# :stopdoc:
|
69
|
+
#
|
70
|
+
# Some top level Constants.
|
71
|
+
|
72
|
+
FileList = Rake::FileList
|
73
|
+
RakeFileUtils = Rake::FileUtilsExt
|
@@ -0,0 +1,108 @@
|
|
1
|
+
#
|
2
|
+
# Copyright (c) 2008 James M. Lawrence
|
3
|
+
#
|
4
|
+
# Permission is hereby granted, free of charge, to any person
|
5
|
+
# obtaining a copy of this software and associated documentation files
|
6
|
+
# (the "Software"), to deal in the Software without restriction,
|
7
|
+
# including without limitation the rights to use, copy, modify, merge,
|
8
|
+
# publish, distribute, sublicense, and/or sell copies of the Software,
|
9
|
+
# and to permit persons to whom the Software is furnished to do so,
|
10
|
+
# subject to the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be
|
13
|
+
# included in all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
17
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
19
|
+
# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
20
|
+
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
21
|
+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
22
|
+
# SOFTWARE.
|
23
|
+
#
|
24
|
+
|
25
|
+
require 'rbconfig'
|
26
|
+
|
27
|
+
#
|
28
|
+
# Alternate implementations of system() and backticks `` on Windows
|
29
|
+
# for ruby-1.8 and earlier.
|
30
|
+
#
|
31
|
+
module Rake::AltSystem
|
32
|
+
WINDOWS = RbConfig::CONFIG["host_os"] =~
|
33
|
+
%r!(msdos|mswin|djgpp|mingw|[Ww]indows)!
|
34
|
+
|
35
|
+
class << self
|
36
|
+
def define_module_function(name, &block)
|
37
|
+
define_method(name, &block)
|
38
|
+
module_function(name)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
if WINDOWS && RUBY_VERSION < "1.9.0"
|
43
|
+
RUNNABLE_EXTS = %w[com exe bat cmd]
|
44
|
+
RUNNABLE_PATTERN = %r!\.(#{RUNNABLE_EXTS.join('|')})\Z!i
|
45
|
+
|
46
|
+
define_module_function :kernel_system, &Kernel.method(:system)
|
47
|
+
define_module_function :kernel_backticks, &Kernel.method(:'`')
|
48
|
+
|
49
|
+
module_function
|
50
|
+
|
51
|
+
def repair_command(cmd)
|
52
|
+
"call " + (
|
53
|
+
if cmd =~ %r!\A\s*\".*?\"!
|
54
|
+
# already quoted
|
55
|
+
cmd
|
56
|
+
elsif match = cmd.match(%r!\A\s*(\S+)!)
|
57
|
+
if match[1] =~ %r!/!
|
58
|
+
# avoid x/y.bat interpretation as x with option /y
|
59
|
+
%Q!"#{match[1]}"! + match.post_match
|
60
|
+
else
|
61
|
+
# a shell command will fail if quoted
|
62
|
+
cmd
|
63
|
+
end
|
64
|
+
else
|
65
|
+
# empty or whitespace
|
66
|
+
cmd
|
67
|
+
end
|
68
|
+
)
|
69
|
+
end
|
70
|
+
|
71
|
+
def find_runnable(file)
|
72
|
+
if file =~ RUNNABLE_PATTERN
|
73
|
+
file
|
74
|
+
else
|
75
|
+
RUNNABLE_EXTS.each { |ext|
|
76
|
+
test = "#{file}.#{ext}"
|
77
|
+
return test if File.exist?(test)
|
78
|
+
}
|
79
|
+
nil
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
def system(cmd, *args)
|
84
|
+
repaired = (
|
85
|
+
if args.empty?
|
86
|
+
[repair_command(cmd)]
|
87
|
+
elsif runnable = find_runnable(cmd)
|
88
|
+
[File.expand_path(runnable), *args]
|
89
|
+
else
|
90
|
+
# non-existent file
|
91
|
+
[cmd, *args]
|
92
|
+
end
|
93
|
+
)
|
94
|
+
kernel_system(*repaired)
|
95
|
+
end
|
96
|
+
|
97
|
+
def backticks(cmd)
|
98
|
+
kernel_backticks(repair_command(cmd))
|
99
|
+
end
|
100
|
+
|
101
|
+
define_module_function :'`', &method(:backticks)
|
102
|
+
else
|
103
|
+
# Non-Windows or ruby-1.9+: same as Kernel versions
|
104
|
+
define_module_function :system, &Kernel.method(:system)
|
105
|
+
define_module_function :backticks, &Kernel.method(:'`')
|
106
|
+
define_module_function :'`', &Kernel.method(:'`')
|
107
|
+
end
|
108
|
+
end
|
@@ -0,0 +1,728 @@
|
|
1
|
+
require 'shellwords'
|
2
|
+
require 'optparse'
|
3
|
+
|
4
|
+
require 'rake/task_manager'
|
5
|
+
require 'rake/file_list'
|
6
|
+
require 'rake/thread_pool'
|
7
|
+
require 'rake/thread_history_display'
|
8
|
+
require 'rake/trace_output'
|
9
|
+
require 'rake/win32'
|
10
|
+
|
11
|
+
module Rake
|
12
|
+
|
13
|
+
CommandLineOptionError = Class.new(StandardError)
|
14
|
+
|
15
|
+
######################################################################
|
16
|
+
# Rake main application object. When invoking +rake+ from the
|
17
|
+
# command line, a Rake::Application object is created and run.
|
18
|
+
#
|
19
|
+
class Application
|
20
|
+
include TaskManager
|
21
|
+
include TraceOutput
|
22
|
+
|
23
|
+
# The name of the application (typically 'rake')
|
24
|
+
attr_reader :name
|
25
|
+
|
26
|
+
# The original directory where rake was invoked.
|
27
|
+
attr_reader :original_dir
|
28
|
+
|
29
|
+
# Name of the actual rakefile used.
|
30
|
+
attr_reader :rakefile
|
31
|
+
|
32
|
+
# Number of columns on the terminal
|
33
|
+
attr_accessor :terminal_columns
|
34
|
+
|
35
|
+
# List of the top level task names (task names from the command line).
|
36
|
+
attr_reader :top_level_tasks
|
37
|
+
|
38
|
+
DEFAULT_RAKEFILES = [
|
39
|
+
'rakefile',
|
40
|
+
'Rakefile',
|
41
|
+
'rakefile.rb',
|
42
|
+
'Rakefile.rb'
|
43
|
+
].freeze
|
44
|
+
|
45
|
+
# Initialize a Rake::Application object.
|
46
|
+
def initialize
|
47
|
+
super
|
48
|
+
@name = 'rake'
|
49
|
+
@rakefiles = DEFAULT_RAKEFILES.dup
|
50
|
+
@rakefile = nil
|
51
|
+
@pending_imports = []
|
52
|
+
@imported = []
|
53
|
+
@loaders = {}
|
54
|
+
@default_loader = Rake::DefaultLoader.new
|
55
|
+
@original_dir = Dir.pwd
|
56
|
+
@top_level_tasks = []
|
57
|
+
add_loader('rb', DefaultLoader.new)
|
58
|
+
add_loader('rf', DefaultLoader.new)
|
59
|
+
add_loader('rake', DefaultLoader.new)
|
60
|
+
@tty_output = STDOUT.tty?
|
61
|
+
@terminal_columns = ENV['RAKE_COLUMNS'].to_i
|
62
|
+
end
|
63
|
+
|
64
|
+
# Run the Rake application. The run method performs the following
|
65
|
+
# three steps:
|
66
|
+
#
|
67
|
+
# * Initialize the command line options (+init+).
|
68
|
+
# * Define the tasks (+load_rakefile+).
|
69
|
+
# * Run the top level tasks (+top_level+).
|
70
|
+
#
|
71
|
+
# If you wish to build a custom rake command, you should call
|
72
|
+
# +init+ on your application. Then define any tasks. Finally,
|
73
|
+
# call +top_level+ to run your top level tasks.
|
74
|
+
def run
|
75
|
+
standard_exception_handling do
|
76
|
+
init
|
77
|
+
load_rakefile
|
78
|
+
top_level
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# Initialize the command line parameters and app name.
|
83
|
+
def init(app_name='rake')
|
84
|
+
standard_exception_handling do
|
85
|
+
@name = app_name
|
86
|
+
handle_options
|
87
|
+
collect_tasks
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# Find the rakefile and then load it and any pending imports.
|
92
|
+
def load_rakefile
|
93
|
+
standard_exception_handling do
|
94
|
+
raw_load_rakefile
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
# Run the top level tasks of a Rake application.
|
99
|
+
def top_level
|
100
|
+
run_with_threads do
|
101
|
+
if options.show_tasks
|
102
|
+
display_tasks_and_comments
|
103
|
+
elsif options.show_prereqs
|
104
|
+
display_prerequisites
|
105
|
+
else
|
106
|
+
top_level_tasks.each { |task_name| invoke_task(task_name) }
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
# Run the given block with the thread startup and shutdown.
|
112
|
+
def run_with_threads
|
113
|
+
thread_pool.gather_history if options.job_stats == :history
|
114
|
+
|
115
|
+
yield
|
116
|
+
|
117
|
+
thread_pool.join
|
118
|
+
if options.job_stats
|
119
|
+
stats = thread_pool.statistics
|
120
|
+
puts "Maximum active threads: #{stats[:max_active_threads]}"
|
121
|
+
puts "Total threads in play: #{stats[:total_threads_in_play]}"
|
122
|
+
end
|
123
|
+
ThreadHistoryDisplay.new(thread_pool.history).show if
|
124
|
+
options.job_stats == :history
|
125
|
+
end
|
126
|
+
|
127
|
+
# Add a loader to handle imported files ending in the extension
|
128
|
+
# +ext+.
|
129
|
+
def add_loader(ext, loader)
|
130
|
+
ext = ".#{ext}" unless ext =~ /^\./
|
131
|
+
@loaders[ext] = loader
|
132
|
+
end
|
133
|
+
|
134
|
+
# Application options from the command line
|
135
|
+
def options
|
136
|
+
@options ||= OpenStruct.new
|
137
|
+
end
|
138
|
+
|
139
|
+
# Return the thread pool used for multithreaded processing.
|
140
|
+
def thread_pool # :nodoc:
|
141
|
+
@thread_pool ||= ThreadPool.new(options.thread_pool_size || FIXNUM_MAX)
|
142
|
+
end
|
143
|
+
|
144
|
+
# private ----------------------------------------------------------------
|
145
|
+
|
146
|
+
def invoke_task(task_string)
|
147
|
+
name, args = parse_task_string(task_string)
|
148
|
+
t = self[name]
|
149
|
+
t.invoke(*args)
|
150
|
+
end
|
151
|
+
|
152
|
+
def parse_task_string(string)
|
153
|
+
if string =~ /^([^\[]+)(\[(.*)\])$/
|
154
|
+
name = $1
|
155
|
+
args = $3.split(/\s*,\s*/)
|
156
|
+
else
|
157
|
+
name = string
|
158
|
+
args = []
|
159
|
+
end
|
160
|
+
[name, args]
|
161
|
+
end
|
162
|
+
|
163
|
+
# Provide standard exception handling for the given block.
|
164
|
+
def standard_exception_handling
|
165
|
+
yield
|
166
|
+
rescue SystemExit
|
167
|
+
# Exit silently with current status
|
168
|
+
raise
|
169
|
+
rescue OptionParser::InvalidOption => ex
|
170
|
+
$stderr.puts ex.message
|
171
|
+
exit(false)
|
172
|
+
rescue Exception => ex
|
173
|
+
# Exit with error message
|
174
|
+
display_error_message(ex)
|
175
|
+
exit_because_of_exception(ex)
|
176
|
+
end
|
177
|
+
|
178
|
+
# Exit the program because of an unhandle exception.
|
179
|
+
# (may be overridden by subclasses)
|
180
|
+
def exit_because_of_exception(ex)
|
181
|
+
exit(false)
|
182
|
+
end
|
183
|
+
|
184
|
+
# Display the error message that caused the exception.
|
185
|
+
def display_error_message(ex)
|
186
|
+
trace "#{name} aborted!"
|
187
|
+
trace ex.message
|
188
|
+
if options.backtrace
|
189
|
+
trace ex.backtrace.join("\n")
|
190
|
+
else
|
191
|
+
trace Backtrace.collapse(ex.backtrace).join("\n")
|
192
|
+
end
|
193
|
+
trace "Tasks: #{ex.chain}" if has_chain?(ex)
|
194
|
+
trace "(See full trace by running task with --trace)" unless
|
195
|
+
options.backtrace
|
196
|
+
end
|
197
|
+
|
198
|
+
# Warn about deprecated usage.
|
199
|
+
#
|
200
|
+
# Example:
|
201
|
+
# Rake.application.deprecate("import", "Rake.import", caller.first)
|
202
|
+
#
|
203
|
+
def deprecate(old_usage, new_usage, call_site)
|
204
|
+
unless options.ignore_deprecate
|
205
|
+
$stderr.puts "WARNING: '#{old_usage}' is deprecated. " +
|
206
|
+
"Please use '#{new_usage}' instead.\n" +
|
207
|
+
" at #{call_site}"
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
# Does the exception have a task invocation chain?
|
212
|
+
def has_chain?(exception)
|
213
|
+
exception.respond_to?(:chain) && exception.chain
|
214
|
+
end
|
215
|
+
private :has_chain?
|
216
|
+
|
217
|
+
# True if one of the files in RAKEFILES is in the current directory.
|
218
|
+
# If a match is found, it is copied into @rakefile.
|
219
|
+
def have_rakefile
|
220
|
+
@rakefiles.each do |fn|
|
221
|
+
if File.exist?(fn)
|
222
|
+
others = FileList.glob(fn, File::FNM_CASEFOLD)
|
223
|
+
return others.size == 1 ? others.first : fn
|
224
|
+
elsif fn == ''
|
225
|
+
return fn
|
226
|
+
end
|
227
|
+
end
|
228
|
+
return nil
|
229
|
+
end
|
230
|
+
|
231
|
+
# True if we are outputting to TTY, false otherwise
|
232
|
+
def tty_output?
|
233
|
+
@tty_output
|
234
|
+
end
|
235
|
+
|
236
|
+
# Override the detected TTY output state (mostly for testing)
|
237
|
+
def tty_output=(tty_output_state)
|
238
|
+
@tty_output = tty_output_state
|
239
|
+
end
|
240
|
+
|
241
|
+
# We will truncate output if we are outputting to a TTY or if we've been
|
242
|
+
# given an explicit column width to honor
|
243
|
+
def truncate_output?
|
244
|
+
tty_output? || @terminal_columns.nonzero?
|
245
|
+
end
|
246
|
+
|
247
|
+
# Display the tasks and comments.
|
248
|
+
def display_tasks_and_comments
|
249
|
+
displayable_tasks = tasks.select { |t|
|
250
|
+
(options.show_all_tasks || t.comment) &&
|
251
|
+
t.name =~ options.show_task_pattern
|
252
|
+
}
|
253
|
+
case options.show_tasks
|
254
|
+
when :tasks
|
255
|
+
width = displayable_tasks.map { |t| t.name_with_args.length }.max || 10
|
256
|
+
if truncate_output?
|
257
|
+
max_column = terminal_width - name.size - width - 7
|
258
|
+
else
|
259
|
+
max_column = nil
|
260
|
+
end
|
261
|
+
|
262
|
+
displayable_tasks.each do |t|
|
263
|
+
printf("#{name} %-#{width}s # %s\n",
|
264
|
+
t.name_with_args,
|
265
|
+
max_column ? truncate(t.comment, max_column) : t.comment)
|
266
|
+
end
|
267
|
+
when :describe
|
268
|
+
displayable_tasks.each do |t|
|
269
|
+
puts "#{name} #{t.name_with_args}"
|
270
|
+
comment = t.full_comment || ""
|
271
|
+
comment.split("\n").each do |line|
|
272
|
+
puts " #{line}"
|
273
|
+
end
|
274
|
+
puts
|
275
|
+
end
|
276
|
+
when :lines
|
277
|
+
displayable_tasks.each do |t|
|
278
|
+
t.locations.each do |loc|
|
279
|
+
printf "#{name} %-30s %s\n", t.name_with_args, loc
|
280
|
+
end
|
281
|
+
end
|
282
|
+
else
|
283
|
+
fail "Unknown show task mode: '#{options.show_tasks}'"
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
def terminal_width
|
288
|
+
if @terminal_columns.nonzero?
|
289
|
+
result = @terminal_columns
|
290
|
+
else
|
291
|
+
result = unix? ? dynamic_width : 80
|
292
|
+
end
|
293
|
+
(result < 10) ? 80 : result
|
294
|
+
rescue
|
295
|
+
80
|
296
|
+
end
|
297
|
+
|
298
|
+
# Calculate the dynamic width of the
|
299
|
+
def dynamic_width
|
300
|
+
@dynamic_width ||= (dynamic_width_stty.nonzero? || dynamic_width_tput)
|
301
|
+
end
|
302
|
+
|
303
|
+
def dynamic_width_stty
|
304
|
+
%x{stty size 2>/dev/null}.split[1].to_i
|
305
|
+
end
|
306
|
+
|
307
|
+
def dynamic_width_tput
|
308
|
+
%x{tput cols 2>/dev/null}.to_i
|
309
|
+
end
|
310
|
+
|
311
|
+
def unix?
|
312
|
+
RbConfig::CONFIG['host_os'] =~
|
313
|
+
/(aix|darwin|linux|(net|free|open)bsd|cygwin|solaris|irix|hpux)/i
|
314
|
+
end
|
315
|
+
|
316
|
+
def windows?
|
317
|
+
Win32.windows?
|
318
|
+
end
|
319
|
+
|
320
|
+
def truncate(string, width)
|
321
|
+
if string.nil?
|
322
|
+
""
|
323
|
+
elsif string.length <= width
|
324
|
+
string
|
325
|
+
else
|
326
|
+
(string[0, width - 3] || "") + "..."
|
327
|
+
end
|
328
|
+
end
|
329
|
+
|
330
|
+
# Display the tasks and prerequisites
|
331
|
+
def display_prerequisites
|
332
|
+
tasks.each do |t|
|
333
|
+
puts "#{name} #{t.name}"
|
334
|
+
t.prerequisites.each { |pre| puts " #{pre}" }
|
335
|
+
end
|
336
|
+
end
|
337
|
+
|
338
|
+
def trace(*strings)
|
339
|
+
options.trace_output ||= $stderr
|
340
|
+
trace_on(options.trace_output, *strings)
|
341
|
+
end
|
342
|
+
|
343
|
+
def sort_options(options)
|
344
|
+
options.sort_by { |opt|
|
345
|
+
opt.select { |o| o =~ /^-/ }.map { |o| o.downcase }.sort.reverse
|
346
|
+
}
|
347
|
+
end
|
348
|
+
private :sort_options
|
349
|
+
|
350
|
+
# A list of all the standard options used in rake, suitable for
|
351
|
+
# passing to OptionParser.
|
352
|
+
def standard_rake_options
|
353
|
+
sort_options(
|
354
|
+
[
|
355
|
+
['--all', '-A',
|
356
|
+
"Show all tasks, even uncommented ones",
|
357
|
+
lambda { |value|
|
358
|
+
options.show_all_tasks = value
|
359
|
+
}
|
360
|
+
],
|
361
|
+
['--backtrace=[OUT]',
|
362
|
+
"Enable full backtrace. OUT can be stderr (default) or stdout.",
|
363
|
+
lambda { |value|
|
364
|
+
options.backtrace = true
|
365
|
+
select_trace_output(options, 'backtrace', value)
|
366
|
+
}
|
367
|
+
],
|
368
|
+
['--comments',
|
369
|
+
"Show commented tasks only",
|
370
|
+
lambda { |value|
|
371
|
+
options.show_all_tasks = !value
|
372
|
+
}
|
373
|
+
],
|
374
|
+
['--describe', '-D [PATTERN]',
|
375
|
+
"Describe the tasks (matching optional PATTERN), then exit.",
|
376
|
+
lambda { |value|
|
377
|
+
select_tasks_to_show(options, :describe, value)
|
378
|
+
}
|
379
|
+
],
|
380
|
+
['--dry-run', '-n',
|
381
|
+
"Do a dry run without executing actions.",
|
382
|
+
lambda { |value|
|
383
|
+
Rake.verbose(true)
|
384
|
+
Rake.nowrite(true)
|
385
|
+
options.dryrun = true
|
386
|
+
options.trace = true
|
387
|
+
}
|
388
|
+
],
|
389
|
+
['--execute', '-e CODE',
|
390
|
+
"Execute some Ruby code and exit.",
|
391
|
+
lambda { |value|
|
392
|
+
eval(value)
|
393
|
+
exit
|
394
|
+
}
|
395
|
+
],
|
396
|
+
['--execute-print', '-p CODE',
|
397
|
+
"Execute some Ruby code, print the result, then exit.",
|
398
|
+
lambda { |value|
|
399
|
+
puts eval(value)
|
400
|
+
exit
|
401
|
+
}
|
402
|
+
],
|
403
|
+
['--execute-continue', '-E CODE',
|
404
|
+
"Execute some Ruby code, " +
|
405
|
+
"then continue with normal task processing.",
|
406
|
+
lambda { |value| eval(value) }
|
407
|
+
],
|
408
|
+
['--jobs', '-j [NUMBER]',
|
409
|
+
"Specifies the maximum number of tasks to execute in parallel. " +
|
410
|
+
"(default is 2)",
|
411
|
+
lambda { |value|
|
412
|
+
options.thread_pool_size = [(value || 2).to_i, 2].max
|
413
|
+
}
|
414
|
+
],
|
415
|
+
['--job-stats [LEVEL]',
|
416
|
+
"Display job statistics. " +
|
417
|
+
"LEVEL=history displays a complete job list",
|
418
|
+
lambda { |value|
|
419
|
+
if value =~ /^history/i
|
420
|
+
options.job_stats = :history
|
421
|
+
else
|
422
|
+
options.job_stats = true
|
423
|
+
end
|
424
|
+
}
|
425
|
+
],
|
426
|
+
['--libdir', '-I LIBDIR',
|
427
|
+
"Include LIBDIR in the search path for required modules.",
|
428
|
+
lambda { |value| $:.push(value) }
|
429
|
+
],
|
430
|
+
['--multitask', '-m',
|
431
|
+
"Treat all tasks as multitasks.",
|
432
|
+
lambda { |value| options.always_multitask = true }
|
433
|
+
],
|
434
|
+
['--no-search', '--nosearch',
|
435
|
+
'-N', "Do not search parent directories for the Rakefile.",
|
436
|
+
lambda { |value| options.nosearch = true }
|
437
|
+
],
|
438
|
+
['--prereqs', '-P',
|
439
|
+
"Display the tasks and dependencies, then exit.",
|
440
|
+
lambda { |value| options.show_prereqs = true }
|
441
|
+
],
|
442
|
+
['--quiet', '-q',
|
443
|
+
"Do not log messages to standard output.",
|
444
|
+
lambda { |value| Rake.verbose(false) }
|
445
|
+
],
|
446
|
+
['--rakefile', '-f [FILE]',
|
447
|
+
"Use FILE as the rakefile.",
|
448
|
+
lambda { |value|
|
449
|
+
value ||= ''
|
450
|
+
@rakefiles.clear
|
451
|
+
@rakefiles << value
|
452
|
+
}
|
453
|
+
],
|
454
|
+
['--rakelibdir', '--rakelib', '-R RAKELIBDIR',
|
455
|
+
"Auto-import any .rake files in RAKELIBDIR. " +
|
456
|
+
"(default is 'rakelib')",
|
457
|
+
lambda { |value|
|
458
|
+
options.rakelib = value.split(File::PATH_SEPARATOR)
|
459
|
+
}
|
460
|
+
],
|
461
|
+
['--require', '-r MODULE',
|
462
|
+
"Require MODULE before executing rakefile.",
|
463
|
+
lambda { |value|
|
464
|
+
begin
|
465
|
+
require value
|
466
|
+
rescue LoadError => ex
|
467
|
+
begin
|
468
|
+
rake_require value
|
469
|
+
rescue LoadError
|
470
|
+
raise ex
|
471
|
+
end
|
472
|
+
end
|
473
|
+
}
|
474
|
+
],
|
475
|
+
['--rules',
|
476
|
+
"Trace the rules resolution.",
|
477
|
+
lambda { |value| options.trace_rules = true }
|
478
|
+
],
|
479
|
+
['--silent', '-s',
|
480
|
+
"Like --quiet, but also suppresses the " +
|
481
|
+
"'in directory' announcement.",
|
482
|
+
lambda { |value|
|
483
|
+
Rake.verbose(false)
|
484
|
+
options.silent = true
|
485
|
+
}
|
486
|
+
],
|
487
|
+
['--suppress-backtrace PATTERN',
|
488
|
+
"Suppress backtrace lines matching regexp PATTERN. " +
|
489
|
+
"Ignored if --trace is on.",
|
490
|
+
lambda { |value|
|
491
|
+
options.suppress_backtrace_pattern = Regexp.new(value)
|
492
|
+
}
|
493
|
+
],
|
494
|
+
['--system', '-g',
|
495
|
+
"Using system wide (global) rakefiles " +
|
496
|
+
"(usually '~/.rake/*.rake').",
|
497
|
+
lambda { |value| options.load_system = true }
|
498
|
+
],
|
499
|
+
['--no-system', '--nosystem', '-G',
|
500
|
+
"Use standard project Rakefile search paths, " +
|
501
|
+
"ignore system wide rakefiles.",
|
502
|
+
lambda { |value| options.ignore_system = true }
|
503
|
+
],
|
504
|
+
['--tasks', '-T [PATTERN]',
|
505
|
+
"Display the tasks (matching optional PATTERN) " +
|
506
|
+
"with descriptions, then exit.",
|
507
|
+
lambda { |value|
|
508
|
+
select_tasks_to_show(options, :tasks, value)
|
509
|
+
}
|
510
|
+
],
|
511
|
+
['--trace=[OUT]', '-t',
|
512
|
+
"Turn on invoke/execute tracing, enable full backtrace. " +
|
513
|
+
"OUT can be stderr (default) or stdout.",
|
514
|
+
lambda { |value|
|
515
|
+
options.trace = true
|
516
|
+
options.backtrace = true
|
517
|
+
select_trace_output(options, 'trace', value)
|
518
|
+
Rake.verbose(true)
|
519
|
+
}
|
520
|
+
],
|
521
|
+
['--verbose', '-v',
|
522
|
+
"Log message to standard output.",
|
523
|
+
lambda { |value| Rake.verbose(true) }
|
524
|
+
],
|
525
|
+
['--version', '-V',
|
526
|
+
"Display the program version.",
|
527
|
+
lambda { |value|
|
528
|
+
puts "rake, version #{RAKEVERSION}"
|
529
|
+
exit
|
530
|
+
}
|
531
|
+
],
|
532
|
+
['--where', '-W [PATTERN]',
|
533
|
+
"Describe the tasks (matching optional PATTERN), then exit.",
|
534
|
+
lambda { |value|
|
535
|
+
select_tasks_to_show(options, :lines, value)
|
536
|
+
options.show_all_tasks = true
|
537
|
+
}
|
538
|
+
],
|
539
|
+
['--no-deprecation-warnings', '-X',
|
540
|
+
"Disable the deprecation warnings.",
|
541
|
+
lambda { |value|
|
542
|
+
options.ignore_deprecate = true
|
543
|
+
}
|
544
|
+
],
|
545
|
+
])
|
546
|
+
end
|
547
|
+
|
548
|
+
def select_tasks_to_show(options, show_tasks, value)
|
549
|
+
options.show_tasks = show_tasks
|
550
|
+
options.show_task_pattern = Regexp.new(value || '')
|
551
|
+
Rake::TaskManager.record_task_metadata = true
|
552
|
+
end
|
553
|
+
private :select_tasks_to_show
|
554
|
+
|
555
|
+
def select_trace_output(options, trace_option, value)
|
556
|
+
value = value.strip unless value.nil?
|
557
|
+
case value
|
558
|
+
when 'stdout'
|
559
|
+
options.trace_output = $stdout
|
560
|
+
when 'stderr', nil
|
561
|
+
options.trace_output = $stderr
|
562
|
+
else
|
563
|
+
fail CommandLineOptionError,
|
564
|
+
"Unrecognized --#{trace_option} option '#{value}'"
|
565
|
+
end
|
566
|
+
end
|
567
|
+
private :select_trace_output
|
568
|
+
|
569
|
+
# Read and handle the command line options.
|
570
|
+
def handle_options
|
571
|
+
options.rakelib = ['rakelib']
|
572
|
+
options.trace_output = $stderr
|
573
|
+
|
574
|
+
OptionParser.new do |opts|
|
575
|
+
opts.banner = "#{Rake.application.name} [-f rakefile] {options} targets..."
|
576
|
+
opts.separator ""
|
577
|
+
opts.separator "Options are ..."
|
578
|
+
|
579
|
+
opts.on_tail("-h", "--help", "-H", "Display this help message.") do
|
580
|
+
puts opts
|
581
|
+
exit
|
582
|
+
end
|
583
|
+
|
584
|
+
standard_rake_options.each { |args| opts.on(*args) }
|
585
|
+
opts.environment('RAKEOPT')
|
586
|
+
end.parse!
|
587
|
+
end
|
588
|
+
|
589
|
+
# Similar to the regular Ruby +require+ command, but will check
|
590
|
+
# for *.rake files in addition to *.rb files.
|
591
|
+
def rake_require(file_name, paths=$LOAD_PATH, loaded=$")
|
592
|
+
fn = file_name + ".rake"
|
593
|
+
return false if loaded.include?(fn)
|
594
|
+
paths.each do |path|
|
595
|
+
full_path = File.join(path, fn)
|
596
|
+
if File.exist?(full_path)
|
597
|
+
Rake.load_rakefile(full_path)
|
598
|
+
loaded << fn
|
599
|
+
return true
|
600
|
+
end
|
601
|
+
end
|
602
|
+
fail LoadError, "Can't find #{file_name}"
|
603
|
+
end
|
604
|
+
|
605
|
+
def find_rakefile_location
|
606
|
+
here = Dir.pwd
|
607
|
+
until (fn = have_rakefile)
|
608
|
+
Dir.chdir("..")
|
609
|
+
return nil if Dir.pwd == here || options.nosearch
|
610
|
+
here = Dir.pwd
|
611
|
+
end
|
612
|
+
[fn, here]
|
613
|
+
ensure
|
614
|
+
Dir.chdir(Rake.original_dir)
|
615
|
+
end
|
616
|
+
|
617
|
+
def print_rakefile_directory(location)
|
618
|
+
$stderr.puts "(in #{Dir.pwd})" unless
|
619
|
+
options.silent or original_dir == location
|
620
|
+
end
|
621
|
+
|
622
|
+
def raw_load_rakefile # :nodoc:
|
623
|
+
rakefile, location = find_rakefile_location
|
624
|
+
if (! options.ignore_system) &&
|
625
|
+
(options.load_system || rakefile.nil?) &&
|
626
|
+
system_dir && File.directory?(system_dir)
|
627
|
+
print_rakefile_directory(location)
|
628
|
+
glob("#{system_dir}/*.rake") do |name|
|
629
|
+
add_import name
|
630
|
+
end
|
631
|
+
else
|
632
|
+
fail "No Rakefile found (looking for: #{@rakefiles.join(', ')})" if
|
633
|
+
rakefile.nil?
|
634
|
+
@rakefile = rakefile
|
635
|
+
Dir.chdir(location)
|
636
|
+
print_rakefile_directory(location)
|
637
|
+
Rake.load_rakefile(File.expand_path(@rakefile)) if
|
638
|
+
@rakefile && @rakefile != ''
|
639
|
+
options.rakelib.each do |rlib|
|
640
|
+
glob("#{rlib}/*.rake") do |name|
|
641
|
+
add_import name
|
642
|
+
end
|
643
|
+
end
|
644
|
+
end
|
645
|
+
load_imports
|
646
|
+
end
|
647
|
+
|
648
|
+
def glob(path, &block)
|
649
|
+
FileList.glob(path.gsub("\\", '/')).each(&block)
|
650
|
+
end
|
651
|
+
private :glob
|
652
|
+
|
653
|
+
# The directory path containing the system wide rakefiles.
|
654
|
+
def system_dir
|
655
|
+
@system_dir ||=
|
656
|
+
begin
|
657
|
+
if ENV['RAKE_SYSTEM']
|
658
|
+
ENV['RAKE_SYSTEM']
|
659
|
+
else
|
660
|
+
standard_system_dir
|
661
|
+
end
|
662
|
+
end
|
663
|
+
end
|
664
|
+
|
665
|
+
# The standard directory containing system wide rake files.
|
666
|
+
if Win32.windows?
|
667
|
+
def standard_system_dir #:nodoc:
|
668
|
+
Win32.win32_system_dir
|
669
|
+
end
|
670
|
+
else
|
671
|
+
def standard_system_dir #:nodoc:
|
672
|
+
File.join(File.expand_path('~'), '.rake')
|
673
|
+
end
|
674
|
+
end
|
675
|
+
private :standard_system_dir
|
676
|
+
|
677
|
+
# Collect the list of tasks on the command line. If no tasks are
|
678
|
+
# given, return a list containing only the default task.
|
679
|
+
# Environmental assignments are processed at this time as well.
|
680
|
+
def collect_tasks
|
681
|
+
@top_level_tasks = []
|
682
|
+
ARGV.each do |arg|
|
683
|
+
if arg =~ /^(\w+)=(.*)$/m
|
684
|
+
ENV[$1] = $2
|
685
|
+
else
|
686
|
+
@top_level_tasks << arg unless arg =~ /^-/
|
687
|
+
end
|
688
|
+
end
|
689
|
+
@top_level_tasks.push(default_task_name) if @top_level_tasks.empty?
|
690
|
+
end
|
691
|
+
|
692
|
+
# Default task name ("default").
|
693
|
+
# (May be overridden by subclasses)
|
694
|
+
def default_task_name
|
695
|
+
"default"
|
696
|
+
end
|
697
|
+
|
698
|
+
# Add a file to the list of files to be imported.
|
699
|
+
def add_import(fn)
|
700
|
+
@pending_imports << fn
|
701
|
+
end
|
702
|
+
|
703
|
+
# Load the pending list of imported files.
|
704
|
+
def load_imports
|
705
|
+
while fn = @pending_imports.shift
|
706
|
+
next if @imported.member?(fn)
|
707
|
+
fn_task = lookup(fn) and fn_task.invoke
|
708
|
+
ext = File.extname(fn)
|
709
|
+
loader = @loaders[ext] || @default_loader
|
710
|
+
loader.load(fn)
|
711
|
+
@imported << fn
|
712
|
+
end
|
713
|
+
end
|
714
|
+
|
715
|
+
def rakefile_location(backtrace=caller)
|
716
|
+
backtrace.map { |t| t[/([^:]+):/, 1] }
|
717
|
+
|
718
|
+
re = /^#{@rakefile}$/
|
719
|
+
re = /#{re.source}/i if windows?
|
720
|
+
|
721
|
+
backtrace.find { |str| str =~ re } || ''
|
722
|
+
end
|
723
|
+
|
724
|
+
private
|
725
|
+
FIXNUM_MAX = (2**(0.size * 8 - 2) - 1) # :nodoc:
|
726
|
+
|
727
|
+
end
|
728
|
+
end
|