sshp 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +35 -0
- data/Rakefile +1 -0
- data/bin/sshp +16 -0
- data/bin/sshp-alias +17 -0
- data/lib/sshp.rb +3 -0
- data/lib/sshp/alias.rb +27 -0
- data/lib/sshp/version.rb +3 -0
- data/spec/spec_helper.rb +12 -0
- data/spec/sshp/alias_spec.rb +33 -0
- data/sshp.gemspec +24 -0
- data/vendor/ruby/1.9.1/bin/autospec +23 -0
- data/vendor/ruby/1.9.1/bin/coderay +23 -0
- data/vendor/ruby/1.9.1/bin/htmldiff +25 -0
- data/vendor/ruby/1.9.1/bin/ldiff +25 -0
- data/vendor/ruby/1.9.1/bin/pry +23 -0
- data/vendor/ruby/1.9.1/bin/rake +23 -0
- data/vendor/ruby/1.9.1/bin/rspec +23 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/README_INDEX.rdoc +123 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/Rakefile +35 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/bin/coderay +215 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay.rb +285 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/duo.rb +81 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoder.rb +201 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/_map.rb +17 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/comment_filter.rb +25 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/count.rb +39 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/debug.rb +61 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/div.rb +23 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/filter.rb +58 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/html.rb +327 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/html/css.rb +65 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/html/numbering.rb +103 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/html/output.rb +166 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/json.rb +83 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/lines_of_code.rb +45 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/null.rb +18 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/page.rb +24 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/span.rb +23 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/statistic.rb +96 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/terminal.rb +179 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/text.rb +46 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/token_kind_filter.rb +111 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/xml.rb +72 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/yaml.rb +50 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/for_redcloth.rb +95 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/helpers/file_type.rb +143 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/helpers/gzip.rb +41 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/helpers/plugin.rb +283 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/helpers/word_list.rb +72 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanner.rb +323 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/_map.rb +24 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/c.rb +189 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/clojure.rb +217 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/cpp.rb +215 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/css.rb +199 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/debug.rb +65 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/delphi.rb +144 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/diff.rb +199 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/erb.rb +81 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/groovy.rb +255 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/haml.rb +168 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/html.rb +253 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/java.rb +174 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/java/builtin_types.rb +421 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/java_script.rb +213 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/json.rb +95 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/php.rb +509 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/python.rb +287 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/raydebug.rb +66 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/ruby.rb +470 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/ruby/patterns.rb +175 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/ruby/string_state.rb +71 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/sql.rb +174 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/text.rb +26 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/xml.rb +17 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/yaml.rb +140 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/style.rb +23 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/styles/_map.rb +7 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/styles/alpha.rb +142 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/token_kinds.rb +90 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/tokens.rb +215 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/tokens_proxy.rb +55 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/test/functional/basic.rb +320 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/test/functional/examples.rb +129 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/test/functional/for_redcloth.rb +84 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/test/functional/suite.rb +15 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/.autotest +3 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/.gemtest +0 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/.hoerc +2 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/.travis.yml +22 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/Contributing.rdoc +64 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/Gemfile +20 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/History.rdoc +146 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/License.rdoc +39 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/Manifest.txt +38 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/README.rdoc +85 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/Rakefile +39 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/autotest/discover.rb +1 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/bin/htmldiff +32 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/bin/ldiff +6 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/docs/COPYING.txt +339 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/docs/artistic.txt +127 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff-lcs.rb +3 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs.rb +805 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/array.rb +7 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/block.rb +37 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/callbacks.rb +322 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/change.rb +177 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/htmldiff.rb +149 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/hunk.rb +276 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/internals.rb +301 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/ldiff.rb +195 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/string.rb +5 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/change_spec.rb +65 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/diff_spec.rb +47 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/hunk_spec.rb +72 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/issues_spec.rb +24 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/lcs_spec.rb +54 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/patch_spec.rb +414 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/sdiff_spec.rb +202 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/spec_helper.rb +290 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/traverse_balanced_spec.rb +310 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/traverse_sequences_spec.rb +139 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/.gitignore +2 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/AUTHORS +3 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/CHANGELOG +346 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/COPYING +340 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/INSTALL +55 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/LICENSE +7 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/README.rdoc +63 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/Rakefile +50 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/TODO +6 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/ansi_colors.rb +38 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/asking_for_arrays.rb +18 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/basic_usage.rb +75 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/color_scheme.rb +32 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/get_character.rb +12 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/limit.rb +12 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/menus.rb +65 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/overwrite.rb +19 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/page_and_wrap.rb +322 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/password.rb +7 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/repeat_entry.rb +21 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/trapping_eof.rb +22 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/using_readline.rb +17 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/highline.gemspec +37 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/lib/highline.rb +1012 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/lib/highline/color_scheme.rb +134 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/lib/highline/compatibility.rb +16 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/lib/highline/import.rb +41 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/lib/highline/menu.rb +398 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/lib/highline/question.rb +475 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/lib/highline/simulate.rb +48 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/lib/highline/string_extensions.rb +131 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/lib/highline/style.rb +181 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/lib/highline/system_extensions.rb +222 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/setup.rb +1360 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/site/.cvsignore +1 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/site/highline.css +65 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/site/images/logo.png +0 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/site/index.html +58 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/test/string_methods.rb +32 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/test/tc_color_scheme.rb +96 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/test/tc_highline.rb +1128 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/test/tc_import.rb +52 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/test/tc_menu.rb +439 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/test/tc_string_extension.rb +20 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/test/tc_string_highline.rb +38 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/test/tc_style.rb +567 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/test/ts_all.rb +16 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/.gemtest +0 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/.travis.yml +17 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/.yardopts +1 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/Gemfile +2 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/LICENSE +25 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/README.markdown +91 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/Rakefile +79 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/lib/method_source.rb +141 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/lib/method_source/code_helpers.rb +139 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/lib/method_source/source_location.rb +138 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/lib/method_source/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/method_source.gemspec +33 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/test/test.rb +138 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/test/test_code_helpers.rb +41 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/test/test_helper.rb +98 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/.document +2 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/.gitignore +16 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/.travis.yml +21 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/.yardopts +1 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/CHANGELOG +534 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/CONTRIBUTORS +55 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/Gemfile +9 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/Guardfile +62 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/LICENSE +25 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/README.markdown +400 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/Rakefile +140 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/TODO +117 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/bin/pry +16 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry.rb +271 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/cli.rb +202 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/code.rb +385 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/code/code_range.rb +70 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/code/loc.rb +92 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/code_object.rb +153 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/command.rb +689 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/command_set.rb +400 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands.rb +6 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/amend_line.rb +99 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/bang.rb +20 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/bang_pry.rb +17 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/cat.rb +53 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/cat/abstract_formatter.rb +27 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/cat/exception_formatter.rb +78 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/cat/file_formatter.rb +84 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/cat/input_expression_formatter.rb +43 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/cd.rb +30 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/code_collector.rb +165 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/disable_pry.rb +27 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/disabled_commands.rb +2 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/easter_eggs.rb +112 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/edit.rb +207 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/edit/exception_patcher.rb +25 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/edit/file_and_line_locator.rb +38 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/edit/method_patcher.rb +122 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/exit.rb +42 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/exit_all.rb +29 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/exit_program.rb +24 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/find_method.rb +199 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/fix_indent.rb +19 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/gem_cd.rb +26 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/gem_install.rb +29 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/gem_list.rb +33 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/gem_open.rb +29 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/gist.rb +102 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/help.rb +164 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/hist.rb +161 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/import_set.rb +22 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/install_command.rb +51 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/jump_to.rb +29 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/ls.rb +338 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/nesting.rb +25 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/play.rb +69 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/pry_backtrace.rb +26 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/pry_version.rb +17 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/raise_up.rb +32 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/reload_code.rb +65 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/reset.rb +18 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/ri.rb +56 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/save_file.rb +61 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/shell_command.rb +43 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/shell_mode.rb +27 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/show_doc.rb +78 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/show_info.rb +200 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/show_input.rb +17 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/show_source.rb +38 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/simple_prompt.rb +22 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/stat.rb +40 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/switch_to.rb +23 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/toggle_color.rb +20 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/whereami.rb +182 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/wtf.rb +57 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/completion.rb +304 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/config.rb +244 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/core_extensions.rb +121 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/custom_completions.rb +6 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/editor.rb +129 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/helpers.rb +5 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/helpers/base_helpers.rb +200 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/helpers/command_helpers.rb +154 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/helpers/documentation_helpers.rb +76 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/helpers/options_helpers.rb +27 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/helpers/table.rb +109 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/helpers/text.rb +108 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/history.rb +122 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/history_array.rb +116 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/hooks.rb +250 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/indent.rb +406 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/method.rb +551 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/method/disowned.rb +53 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/method/weird_method_locator.rb +186 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/module_candidate.rb +146 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/pager.rb +90 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/plugins.rb +103 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/pry_class.rb +469 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/pry_instance.rb +763 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/rbx_method.rb +13 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/rbx_path.rb +22 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/repl_file_loader.rb +80 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/rubygem.rb +74 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/terminal.rb +78 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/test/helper.rb +185 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/wrapped_module.rb +383 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/man/pry.1 +195 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/man/pry.1.html +204 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/man/pry.1.ronn +141 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/pry.gemspec +30 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/Procfile +3 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/cli_spec.rb +78 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/code_object_spec.rb +277 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/code_spec.rb +219 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/command_helpers_spec.rb +29 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/command_integration_spec.rb +644 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/command_set_spec.rb +627 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/command_spec.rb +821 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/amend_line_spec.rb +247 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/bang_spec.rb +19 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/cat_spec.rb +164 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/cd_spec.rb +250 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/disable_pry_spec.rb +25 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/edit_spec.rb +727 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/exit_all_spec.rb +34 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/exit_program_spec.rb +19 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/exit_spec.rb +34 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/find_method_spec.rb +70 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/gem_list_spec.rb +26 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/gist_spec.rb +79 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/help_spec.rb +56 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/hist_spec.rb +181 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/jump_to_spec.rb +15 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/ls_spec.rb +181 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/play_spec.rb +140 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/raise_up_spec.rb +56 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/save_file_spec.rb +177 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/show_doc_spec.rb +510 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/show_input_spec.rb +17 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/show_source_spec.rb +782 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/whereami_spec.rb +203 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/completion_spec.rb +239 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/control_d_handler_spec.rb +58 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/documentation_helper_spec.rb +73 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/editor_spec.rb +79 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/exception_whitelist_spec.rb +21 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/fixtures/candidate_helper1.rb +11 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/fixtures/candidate_helper2.rb +8 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/fixtures/example.erb +5 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/fixtures/example_nesting.rb +33 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/fixtures/show_source_doc_examples.rb +15 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/fixtures/testrc +2 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/fixtures/testrcbad +2 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/fixtures/whereami_helper.rb +6 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/helper.rb +34 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/helpers/bacon.rb +86 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/helpers/mock_pry.rb +43 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/helpers/table_spec.rb +105 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/history_array_spec.rb +67 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/hooks_spec.rb +522 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/indent_spec.rb +301 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/input_stack_spec.rb +90 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/method_spec.rb +482 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/prompt_spec.rb +60 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/pry_defaults_spec.rb +419 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/pry_history_spec.rb +99 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/pry_output_spec.rb +95 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/pry_spec.rb +504 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/run_command_spec.rb +25 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/sticky_locals_spec.rb +157 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/syntax_checking_spec.rb +81 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/wrapped_module_spec.rb +261 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/wiki/Customizing-pry.md +397 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/wiki/Home.md +4 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/.gemtest +0 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/CHANGES +530 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/MIT-LICENSE +21 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/README.rdoc +187 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/Rakefile +375 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/TODO +21 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/bin/rake +33 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/install.rb +90 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake.rb +71 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/alt_system.rb +109 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb +681 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/backtrace.rb +19 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/clean.rb +32 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/cloneable.rb +16 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/contrib/compositepublisher.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/contrib/ftptools.rb +151 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/contrib/publisher.rb +73 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/contrib/rubyforgepublisher.rb +16 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/contrib/sshpublisher.rb +50 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/contrib/sys.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/default_loader.rb +10 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/dsl_definition.rb +156 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/early_time.rb +18 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/ext/core.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/ext/module.rb +0 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/ext/string.rb +168 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/ext/time.rb +15 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/file_creation_task.rb +24 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/file_list.rb +410 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/file_task.rb +47 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/file_utils.rb +114 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/file_utils_ext.rb +143 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/gempackagetask.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/invocation_chain.rb +51 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/invocation_exception_mixin.rb +16 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/loaders/makefile.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/multi_task.rb +13 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/name_space.rb +25 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/packagetask.rb +185 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/pathmap.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/phony.rb +15 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/private_reader.rb +20 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/promise.rb +99 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/pseudo_status.rb +24 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_module.rb +37 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rdoctask.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/ruby182_test_unit_fix.rb +25 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/runtest.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb +368 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task_argument_error.rb +7 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task_arguments.rb +78 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task_manager.rb +296 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/tasklib.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/testtask.rb +198 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/thread_history_display.rb +48 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/thread_pool.rb +155 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/trace_output.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/version.rb +13 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/win32.rb +55 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/file_creation.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/helper.rb +562 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_private_reader.rb +42 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_application.rb +515 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_application_options.rb +455 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_backtrace.rb +89 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_clean.rb +14 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_definitions.rb +80 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_directory_task.rb +57 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_dsl.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_early_time.rb +31 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_extension.rb +59 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_file_creation_task.rb +56 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_file_list.rb +628 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_file_list_path_map.rb +8 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_file_task.rb +122 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_file_utils.rb +305 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_ftp_file.rb +59 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_functional.rb +496 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_invocation_chain.rb +52 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_makefile_loader.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_multi_task.rb +59 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_name_space.rb +43 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_package_task.rb +79 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_path_map.rb +157 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_path_map_explode.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_path_map_partial.rb +18 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_pseudo_status.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_rake_test_loader.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_reduce_compat.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_require.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_rules.rb +327 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_task.rb +340 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_task_argument_parsing.rb +103 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_task_arguments.rb +88 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_task_lib.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_task_manager.rb +157 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_task_manager_argument_resolution.rb +19 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_task_with_arguments.rb +171 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_test_task.rb +120 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_thread_pool.rb +122 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_top_level_functions.rb +71 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_win32.rb +72 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_thread_history_display.rb +91 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_trace_output.rb +50 -0
- data/vendor/ruby/1.9.1/gems/rspec-2.13.0/License.txt +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-2.13.0/README.md +47 -0
- data/vendor/ruby/1.9.1/gems/rspec-2.13.0/lib/rspec.rb +4 -0
- data/vendor/ruby/1.9.1/gems/rspec-2.13.0/lib/rspec/version.rb +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/.document +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/.yardopts +6 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/Changelog.md +718 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/License.txt +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/README.md +261 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/exe/autospec +13 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/exe/rspec +25 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/Autotest.md +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/README.md +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/Upgrade.md +364 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/README.md +28 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/example_name_option.feature +97 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/exit_status.feature +82 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/format_option.feature +81 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/init.feature +18 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/line_number_appended_to_path.feature +140 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/line_number_option.feature +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/order.feature +29 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/pattern_option.feature +31 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/rake_task.feature +122 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/ruby.feature +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/tag.feature +98 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/alias_example_to.feature +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/backtrace_clean_patterns.feature +102 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/custom_settings.feature +84 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/default_path.feature +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/fail_fast.feature +77 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/failure_exit_code.feature +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/order_and_seed.feature +3 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/output_stream.feature +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/pattern.feature +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/profile.feature +163 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/read_options_from_file.feature +87 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/run_all_when_everything_filtered.feature +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/show_failures_in_pending_blocks.feature +61 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/treat_symbols_as_metadata_keys_with_true_values.feature +52 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/example_groups/basic_structure.feature +55 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/example_groups/shared_context.feature +74 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/example_groups/shared_examples.feature +222 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/expectation_framework_integration/configure_expectation_framework.feature +102 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/filtering/exclusion_filters.feature +138 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/filtering/if_and_unless.feature +168 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/filtering/inclusion_filters.feature +105 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/filtering/run_all_when_everything_filtered.feature +46 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/formatters/configurable_colors.feature +31 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/formatters/custom_formatter.feature +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/formatters/json_formatter.feature +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/formatters/text_formatter.feature +46 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/helper_methods/arbitrary_methods.feature +40 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/helper_methods/let.feature +50 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/helper_methods/modules.feature +149 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/hooks/around_hooks.feature +343 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/hooks/before_and_after_hooks.feature +427 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/hooks/filtering.feature +234 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/metadata/current_example.feature +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/metadata/described_class.feature +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/metadata/user_defined.feature +113 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/mock_framework_integration/use_any_framework.feature +106 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/mock_framework_integration/use_flexmock.feature +96 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/mock_framework_integration/use_mocha.feature +97 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/mock_framework_integration/use_rr.feature +98 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/mock_framework_integration/use_rspec.feature +97 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/pending/pending_examples.feature +229 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/spec_files/arbitrary_file_suffix.feature +13 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/step_definitions/additional_cli_steps.rb +49 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/subject/attribute_of_subject.feature +124 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/subject/explicit_subject.feature +101 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/subject/implicit_receiver.feature +29 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/subject/implicit_subject.feature +63 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/support/env.rb +14 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/autotest/discover.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/autotest/rspec2.rb +73 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/autorun.rb +2 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core.rb +146 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/backward_compatibility.rb +65 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb +1087 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/configuration_options.rb +144 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/deprecation.rb +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/drb_command_line.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/drb_options.rb +87 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/dsl.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/example.rb +331 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/example_group.rb +478 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/extensions/instance_eval_with_args.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/extensions/kernel.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/extensions/module_eval_with_args.rb +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/extensions/ordered.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/filter_manager.rb +203 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters.rb +55 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/base_formatter.rb +237 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/base_text_formatter.rb +292 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/documentation_formatter.rb +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/helpers.rb +103 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/html_formatter.rb +154 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/html_printer.rb +407 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/json_formatter.rb +73 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/progress_formatter.rb +32 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/snippet_extractor.rb +92 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/text_mate_formatter.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/hooks.rb +489 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/load_path.rb +3 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/memoized_helpers.rb +501 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/metadata.rb +297 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/metadata_hash_builder.rb +97 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/mocking/with_absolutely_nothing.rb +11 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/mocking/with_flexmock.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/mocking/with_mocha.rb +52 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/mocking/with_rr.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/mocking/with_rspec.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/option_parser.rb +208 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/pending.rb +108 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/project_initializer.rb +86 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/rake_task.rb +202 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/reporter.rb +102 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/ruby_project.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb +87 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/shared_context.rb +49 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/shared_example_group.rb +144 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/version.rb +7 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/world.rb +128 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/autotest/discover_spec.rb +19 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/autotest/failed_results_re_spec.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/autotest/rspec_spec.rb +133 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/command_line/order_spec.rb +204 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/command_line_spec.rb +108 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/command_line_spec_output.txt +0 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/configuration_options_spec.rb +398 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/configuration_spec.rb +1376 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/deprecations_spec.rb +75 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/drb_command_line_spec.rb +102 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/drb_options_spec.rb +193 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/dsl_spec.rb +25 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/example_group_spec.rb +1176 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/example_spec.rb +418 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/filter_manager_spec.rb +246 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/base_formatter_spec.rb +108 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/base_text_formatter_spec.rb +429 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/documentation_formatter_spec.rb +88 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/helpers_spec.rb +78 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +398 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-1.8.7-rbx.html +577 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-1.8.7.html +409 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-1.9.2.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-1.9.3-jruby.html +410 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-1.9.3-rbx.html +577 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-1.9.3.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-2.0.0.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatter_spec.rb +94 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/json_formatter_spec.rb +110 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/progress_formatter_spec.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/snippet_extractor_spec.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html +398 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-1.8.7-rbx.html +577 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +409 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-1.9.3-jruby.html +398 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-1.9.3-rbx.html +577 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-1.9.3.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-2.0.0.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatter_spec.rb +95 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/hooks_filtering_spec.rb +227 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/hooks_spec.rb +267 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/kernel_extensions_spec.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/memoized_helpers_spec.rb +642 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/metadata_spec.rb +486 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/option_parser_spec.rb +208 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/pending_example_spec.rb +220 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/project_initializer_spec.rb +130 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/rake_task_spec.rb +181 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/reporter_spec.rb +120 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/resources/a_bar.rb +0 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/resources/a_foo.rb +0 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/resources/a_spec.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/resources/custom_example_group_runner.rb +14 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/resources/formatter_specs.rb +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/resources/utf8_encoded.rb +8 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/rspec_matchers_spec.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/ruby_project_spec.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/runner_spec.rb +82 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/shared_context_spec.rb +94 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/shared_example_group_spec.rb +96 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/world_spec.rb +144 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core_spec.rb +35 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/spec_helper.rb +132 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/support/config_options_helper.rb +15 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/support/helper_methods.rb +18 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/support/isolated_directory.rb +10 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/support/isolated_home_directory.rb +16 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/support/matchers.rb +65 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/support/shared_example_groups.rb +41 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/support/spec_files.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/.document +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/.yardopts +6 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/Changelog.md +328 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/License.txt +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/README.md +228 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/README.md +49 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/Upgrade.md +53 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/README.md +90 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/be.feature +175 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/be_within.feature +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/cover.feature +47 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/end_with.feature +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/equality.feature +139 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/exist.feature +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/expect_change.feature +59 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/expect_error.feature +144 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/have.feature +109 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/include.feature +174 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/match.feature +52 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/operators.feature +227 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/predicates.feature +137 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/respond_to.feature +84 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/satisfy.feature +33 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/start_with.feature +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/throw_symbol.feature +91 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/types.feature +116 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/yield.feature +146 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/custom_matchers/access_running_example.feature +53 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/custom_matchers/define_diffable_matcher.feature +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/custom_matchers/define_matcher.feature +368 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/custom_matchers/define_matcher_outside_rspec.feature +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/custom_matchers/define_matcher_with_fluent_interface.feature +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/customized_message.feature +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/diffing.feature +85 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/implicit_docstrings.feature +52 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/step_definitions/additional_cli_steps.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/support/env.rb +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/syntax_configuration.feature +68 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/test_frameworks/test_unit.feature +46 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec-expectations.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations.rb +47 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/deprecation.rb +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/differ.rb +115 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/errors.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/expectation_target.rb +88 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/extensions.rb +2 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/extensions/array.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/extensions/object.rb +39 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/fail_with.rb +69 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/handler.rb +63 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/syntax.rb +164 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/version.rb +8 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers.rb +699 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/be_close.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in.rb +39 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/base_matcher.rb +68 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/be.rb +189 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/be_instance_of.rb +15 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/be_kind_of.rb +11 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/be_within.rb +55 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/change.rb +133 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/cover.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/eq.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/eql.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/equal.rb +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/exist.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/has.rb +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/have.rb +108 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/include.rb +69 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/match.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/match_array.rb +51 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/raise_error.rb +107 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/respond_to.rb +74 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/satisfy.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/start_and_end_with.rb +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/throw_symbol.rb +94 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/yield.rb +221 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/compatibility.rb +14 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/configuration.rb +108 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/dsl.rb +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/extensions/instance_eval_with_args.rb +39 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/generated_descriptions.rb +35 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/matcher.rb +300 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/method_missing.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/operator_matcher.rb +109 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/pretty.rb +64 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/expectations/differ_spec.rb +170 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/expectations/expectation_target_spec.rb +75 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/expectations/extensions/kernel_spec.rb +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/expectations/fail_with_spec.rb +95 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/expectations/handler_spec.rb +206 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/expectations/syntax_spec.rb +97 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/base_matcher_spec.rb +62 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/be_close_spec.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/be_instance_of_spec.rb +63 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/be_kind_of_spec.rb +41 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/be_spec.rb +516 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/be_within_spec.rb +129 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/change_spec.rb +542 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/configuration_spec.rb +238 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/cover_spec.rb +69 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/description_generation_spec.rb +176 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/dsl_spec.rb +57 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/eq_spec.rb +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/eql_spec.rb +41 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/equal_spec.rb +78 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/exist_spec.rb +124 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/has_spec.rb +122 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/have_spec.rb +445 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/include_matcher_integration_spec.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/include_spec.rb +531 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/match_array_spec.rb +194 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/match_spec.rb +61 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/matcher_spec.rb +471 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/matchers_spec.rb +37 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/method_missing_spec.rb +28 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/operator_matcher_spec.rb +223 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/raise_error_spec.rb +395 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/respond_to_spec.rb +292 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/satisfy_spec.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/start_with_end_with_spec.rb +186 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/throw_symbol_spec.rb +116 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/yield_spec.rb +437 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/spec_helper.rb +54 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/support/classes.rb +56 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/support/in_sub_process.rb +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/support/matchers.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/support/ruby_version.rb +10 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/support/shared_examples.rb +13 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/.document +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/.yardopts +6 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/Changelog.md +306 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/License.txt +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/README.md +315 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/README.md +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/Scope.md +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/Upgrade.md +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/argument_matchers/README.md +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/argument_matchers/explicit.feature +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/argument_matchers/general_matchers.feature +85 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/argument_matchers/type_matchers.feature +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/message_expectations/README.md +73 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/message_expectations/any_instance.feature +21 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/message_expectations/block_local_expectations.feature.pending +55 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/message_expectations/call_original.feature +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/message_expectations/expect_message.feature +94 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/message_expectations/receive_counts.feature +209 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/message_expectations/warn_when_expectation_is_set_on_nil.feature +50 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/method_stubs/README.md +47 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/method_stubs/any_instance.feature +132 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/method_stubs/as_null_object.feature +35 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/method_stubs/simple_return_value.feature +64 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/method_stubs/stub_chain.feature +51 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/method_stubs/stub_implementation.feature +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/method_stubs/to_ary.feature +47 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/mutating_constants/README.md +82 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/mutating_constants/hiding_defined_constant.feature +64 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/mutating_constants/stub_defined_constant.feature +79 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/mutating_constants/stub_undefined_constant.feature +50 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/outside_rspec/configuration.feature +82 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/outside_rspec/standalone.feature +33 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/step_definitions/additional_cli_steps.rb +4 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/support/env.rb +13 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks.rb +82 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance.rb +81 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/chain.rb +78 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/expectation_chain.rb +66 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/message_chains.rb +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/recorder.rb +204 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/stub_chain.rb +37 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/stub_chain_chain.rb +25 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/argument_list_matcher.rb +93 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/argument_matchers.rb +238 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/configuration.rb +28 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/error_generator.rb +120 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/errors.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/example_methods.rb +120 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/extensions/instance_exec.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/extensions/marshal.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/extensions/psych.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/framework.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/instance_method_stasher.rb +85 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/message_expectation.rb +567 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/method_double.rb +267 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/methods.rb +155 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/mock.rb +7 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/mutate_const.rb +415 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/order_group.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/proxy.rb +205 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/serialization.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/space.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/standalone.rb +3 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/test_double.rb +103 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/version.rb +7 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/spec/mocks.rb +6 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/and_call_original_spec.rb +235 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/and_yield_spec.rb +127 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/any_instance/message_chains_spec.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/any_instance_spec.rb +925 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/any_number_of_times_spec.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/argument_expectation_spec.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/at_least_spec.rb +142 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/at_most_spec.rb +90 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/block_return_value_spec.rb +53 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_10260_spec.rb +8 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_10263_spec.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_11545_spec.rb +32 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_496_spec.rb +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_600_spec.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_7611_spec.rb +16 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_8165_spec.rb +31 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_830_spec.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_957_spec.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/combining_implementation_instructions_spec.rb +197 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/configuration_spec.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/double_spec.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/failing_argument_matchers_spec.rb +94 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/hash_excluding_matcher_spec.rb +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/hash_including_matcher_spec.rb +90 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/instance_method_stasher_spec.rb +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/mock_ordering_spec.rb +103 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/mock_space_spec.rb +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/mock_spec.rb +734 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/multiple_return_value_spec.rb +132 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/mutate_const_spec.rb +481 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/nil_expectation_warning_spec.rb +62 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/null_object_mock_spec.rb +107 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/once_counts_spec.rb +52 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/options_hash_spec.rb +35 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/partial_mock_spec.rb +196 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb +95 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/passing_argument_matchers_spec.rb +142 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/precise_counts_spec.rb +68 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/record_messages_spec.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/serialization_spec.rb +110 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/stash_spec.rb +54 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/stub_chain_spec.rb +154 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/stub_implementation_spec.rb +81 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/stub_spec.rb +279 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/stubbed_message_expectations_spec.rb +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/test_double_spec.rb +57 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/to_ary_spec.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/twice_counts_spec.rb +66 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks_spec.rb +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/spec_helper.rb +36 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/.gitignore +7 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/.travis.yml +12 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/CHANGES.md +290 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/Gemfile +3 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/LICENSE +20 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/README.md +182 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/Rakefile +29 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/lib/slop.rb +689 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/lib/slop/commands.rb +196 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/lib/slop/option.rb +208 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/slop.gemspec +17 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/test/commands_test.rb +26 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/test/helper.rb +12 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/test/option_test.rb +134 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/test/slop_test.rb +497 -0
- data/vendor/ruby/1.9.1/specifications/coderay-1.0.9.gemspec +32 -0
- data/vendor/ruby/1.9.1/specifications/diff-lcs-1.2.4.gemspec +64 -0
- data/vendor/ruby/1.9.1/specifications/highline-1.6.19.gemspec +30 -0
- data/vendor/ruby/1.9.1/specifications/method_source-0.8.1.gemspec +31 -0
- data/vendor/ruby/1.9.1/specifications/pry-0.9.12.2.gemspec +54 -0
- data/vendor/ruby/1.9.1/specifications/rake-10.0.4.gemspec +35 -0
- data/vendor/ruby/1.9.1/specifications/rspec-2.13.0.gemspec +39 -0
- data/vendor/ruby/1.9.1/specifications/rspec-core-2.13.1.gemspec +58 -0
- data/vendor/ruby/1.9.1/specifications/rspec-expectations-2.13.0.gemspec +40 -0
- data/vendor/ruby/1.9.1/specifications/rspec-mocks-2.13.1.gemspec +37 -0
- data/vendor/ruby/1.9.1/specifications/slop-3.4.5.gemspec +33 -0
- metadata +1105 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
module RSpec
|
|
2
|
+
module Core
|
|
3
|
+
# @private
|
|
4
|
+
module ConstMissing
|
|
5
|
+
# Used to print deprecation warnings for Rspec and Spec constants (use
|
|
6
|
+
# RSpec instead)
|
|
7
|
+
def const_missing(name)
|
|
8
|
+
case name
|
|
9
|
+
when :Rspec, :Spec
|
|
10
|
+
RSpec.warn_deprecation <<-WARNING
|
|
11
|
+
*****************************************************************
|
|
12
|
+
DEPRECATION WARNING: you are using a deprecated constant that will
|
|
13
|
+
be removed from a future version of RSpec.
|
|
14
|
+
|
|
15
|
+
#{caller(0)[2]}
|
|
16
|
+
|
|
17
|
+
* #{name} is deprecated.
|
|
18
|
+
* RSpec is the new top-level module in RSpec-2
|
|
19
|
+
*****************************************************************
|
|
20
|
+
WARNING
|
|
21
|
+
RSpec
|
|
22
|
+
else
|
|
23
|
+
begin
|
|
24
|
+
super
|
|
25
|
+
rescue Exception => e
|
|
26
|
+
e.backtrace.reject! {|l| l =~ Regexp.compile(__FILE__) }
|
|
27
|
+
raise e
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
module Runner
|
|
35
|
+
# @deprecated use RSpec.configure instead.
|
|
36
|
+
def self.configure(&block)
|
|
37
|
+
RSpec.deprecate("Spec::Runner.configure", "RSpec.configure")
|
|
38
|
+
RSpec.configure(&block)
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# @private
|
|
43
|
+
module Rake
|
|
44
|
+
# Used to print deprecation warnings for Rake::SpecTask constant (use
|
|
45
|
+
# RSpec::Core::RakeTask instead)
|
|
46
|
+
def self.const_missing(name)
|
|
47
|
+
case name
|
|
48
|
+
when :SpecTask
|
|
49
|
+
RSpec.deprecate("Spec::Rake::SpecTask", "RSpec::Core::RakeTask")
|
|
50
|
+
require 'rspec/core/rake_task'
|
|
51
|
+
RSpec::Core::RakeTask
|
|
52
|
+
else
|
|
53
|
+
begin
|
|
54
|
+
super
|
|
55
|
+
rescue Exception => e
|
|
56
|
+
e.backtrace.reject! {|l| l =~ Regexp.compile(__FILE__) }
|
|
57
|
+
raise e
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
Object.extend(RSpec::Core::ConstMissing)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module RSpec
|
|
2
|
+
module Core
|
|
3
|
+
class CommandLine
|
|
4
|
+
def initialize(options, configuration=RSpec::configuration, world=RSpec::world)
|
|
5
|
+
if Array === options
|
|
6
|
+
options = ConfigurationOptions.new(options)
|
|
7
|
+
options.parse_options
|
|
8
|
+
end
|
|
9
|
+
@options = options
|
|
10
|
+
@configuration = configuration
|
|
11
|
+
@world = world
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Configures and runs a suite
|
|
15
|
+
#
|
|
16
|
+
# @param [IO] err
|
|
17
|
+
# @param [IO] out
|
|
18
|
+
def run(err, out)
|
|
19
|
+
@configuration.error_stream = err
|
|
20
|
+
@configuration.output_stream ||= out
|
|
21
|
+
@options.configure(@configuration)
|
|
22
|
+
@configuration.load_spec_files
|
|
23
|
+
@world.announce_filters
|
|
24
|
+
|
|
25
|
+
@configuration.reporter.report(@world.example_count, @configuration.randomize? ? @configuration.seed : nil) do |reporter|
|
|
26
|
+
begin
|
|
27
|
+
@configuration.run_hook(:before, :suite)
|
|
28
|
+
@world.example_groups.ordered.map {|g| g.run(reporter)}.all? ? 0 : @configuration.failure_exit_code
|
|
29
|
+
ensure
|
|
30
|
+
@configuration.run_hook(:after, :suite)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,1087 @@
|
|
|
1
|
+
require 'fileutils'
|
|
2
|
+
|
|
3
|
+
module RSpec
|
|
4
|
+
module Core
|
|
5
|
+
# Stores runtime configuration information.
|
|
6
|
+
#
|
|
7
|
+
# Configuration options are loaded from `~/.rspec`, `.rspec`,
|
|
8
|
+
# `.rspec-local`, command line switches, and the `SPEC_OPTS` environment
|
|
9
|
+
# variable (listed in lowest to highest precedence; for example, an option
|
|
10
|
+
# in `~/.rspec` can be overridden by an option in `.rspec-local`).
|
|
11
|
+
#
|
|
12
|
+
# @example Standard settings
|
|
13
|
+
# RSpec.configure do |c|
|
|
14
|
+
# c.drb = true
|
|
15
|
+
# c.drb_port = 1234
|
|
16
|
+
# c.default_path = 'behavior'
|
|
17
|
+
# end
|
|
18
|
+
#
|
|
19
|
+
# @example Hooks
|
|
20
|
+
# RSpec.configure do |c|
|
|
21
|
+
# c.before(:suite) { establish_connection }
|
|
22
|
+
# c.before(:each) { log_in_as :authorized }
|
|
23
|
+
# c.around(:each) { |ex| Database.transaction(&ex) }
|
|
24
|
+
# end
|
|
25
|
+
#
|
|
26
|
+
# @see RSpec.configure
|
|
27
|
+
# @see Hooks
|
|
28
|
+
class Configuration
|
|
29
|
+
include RSpec::Core::Hooks
|
|
30
|
+
|
|
31
|
+
class MustBeConfiguredBeforeExampleGroupsError < StandardError; end
|
|
32
|
+
|
|
33
|
+
# @private
|
|
34
|
+
def self.define_reader(name)
|
|
35
|
+
eval <<-CODE
|
|
36
|
+
def #{name}
|
|
37
|
+
value_for(#{name.inspect}, defined?(@#{name}) ? @#{name} : nil)
|
|
38
|
+
end
|
|
39
|
+
CODE
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# @private
|
|
43
|
+
def self.deprecate_alias_key
|
|
44
|
+
RSpec.warn_deprecation <<-MESSAGE
|
|
45
|
+
The :alias option to add_setting is deprecated. Use :alias_with on the original setting instead.
|
|
46
|
+
Called from #{caller(0)[5]}
|
|
47
|
+
MESSAGE
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# @private
|
|
51
|
+
def self.define_aliases(name, alias_name)
|
|
52
|
+
alias_method alias_name, name
|
|
53
|
+
alias_method "#{alias_name}=", "#{name}="
|
|
54
|
+
define_predicate_for alias_name
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# @private
|
|
58
|
+
def self.define_predicate_for(*names)
|
|
59
|
+
names.each {|name| alias_method "#{name}?", name}
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# @private
|
|
63
|
+
#
|
|
64
|
+
# Invoked by the `add_setting` instance method. Use that method on a
|
|
65
|
+
# `Configuration` instance rather than this class method.
|
|
66
|
+
def self.add_setting(name, opts={})
|
|
67
|
+
raise "Use the instance add_setting method if you want to set a default" if opts.has_key?(:default)
|
|
68
|
+
if opts[:alias]
|
|
69
|
+
deprecate_alias_key
|
|
70
|
+
define_aliases(opts[:alias], name)
|
|
71
|
+
else
|
|
72
|
+
attr_writer name
|
|
73
|
+
define_reader name
|
|
74
|
+
define_predicate_for name
|
|
75
|
+
end
|
|
76
|
+
[opts[:alias_with]].flatten.compact.each do |alias_name|
|
|
77
|
+
define_aliases(name, alias_name)
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# @macro [attach] add_setting
|
|
82
|
+
# @attribute $1
|
|
83
|
+
# Patterns to match against lines in backtraces presented in failure
|
|
84
|
+
# messages in order to filter them out (default:
|
|
85
|
+
# DEFAULT_BACKTRACE_PATTERNS). You can either replace this list using
|
|
86
|
+
# the setter or modify it using the getter.
|
|
87
|
+
#
|
|
88
|
+
# To override this behavior and display a full backtrace, use
|
|
89
|
+
# `--backtrace` on the command line, in a `.rspec` file, or in the
|
|
90
|
+
# `rspec_options` attribute of RSpec's rake task.
|
|
91
|
+
add_setting :backtrace_clean_patterns
|
|
92
|
+
|
|
93
|
+
# Path to use if no path is provided to the `rspec` command (default:
|
|
94
|
+
# `"spec"`). Allows you to just type `rspec` instead of `rspec spec` to
|
|
95
|
+
# run all the examples in the `spec` directory.
|
|
96
|
+
add_setting :default_path
|
|
97
|
+
|
|
98
|
+
# Run examples over DRb (default: `false`). RSpec doesn't supply the DRb
|
|
99
|
+
# server, but you can use tools like spork.
|
|
100
|
+
add_setting :drb
|
|
101
|
+
|
|
102
|
+
# The drb_port (default: nil).
|
|
103
|
+
add_setting :drb_port
|
|
104
|
+
|
|
105
|
+
# Default: `$stderr`.
|
|
106
|
+
add_setting :error_stream
|
|
107
|
+
|
|
108
|
+
# Clean up and exit after the first failure (default: `false`).
|
|
109
|
+
add_setting :fail_fast
|
|
110
|
+
|
|
111
|
+
# The exit code to return if there are any failures (default: 1).
|
|
112
|
+
add_setting :failure_exit_code
|
|
113
|
+
|
|
114
|
+
# Determines the order in which examples are run (default: OS standard
|
|
115
|
+
# load order for files, declaration order for groups and examples).
|
|
116
|
+
define_reader :order
|
|
117
|
+
|
|
118
|
+
# Default: `$stdout`.
|
|
119
|
+
# Also known as `output` and `out`
|
|
120
|
+
add_setting :output_stream, :alias_with => [:output, :out]
|
|
121
|
+
|
|
122
|
+
# Load files matching this pattern (default: `'**/*_spec.rb'`)
|
|
123
|
+
add_setting :pattern, :alias_with => :filename_pattern
|
|
124
|
+
|
|
125
|
+
# Report the times for the slowest examples (default: `false`).
|
|
126
|
+
# Use this to specify the number of examples to include in the profile.
|
|
127
|
+
add_setting :profile_examples
|
|
128
|
+
|
|
129
|
+
# Run all examples if none match the configured filters (default: `false`).
|
|
130
|
+
add_setting :run_all_when_everything_filtered
|
|
131
|
+
|
|
132
|
+
# Allow user to configure their own success/pending/failure colors
|
|
133
|
+
# @param [Symbol] should be one of the following: [:black, :white, :red, :green, :yellow, :blue, :magenta, :cyan]
|
|
134
|
+
add_setting :success_color
|
|
135
|
+
add_setting :pending_color
|
|
136
|
+
add_setting :failure_color
|
|
137
|
+
add_setting :default_color
|
|
138
|
+
add_setting :fixed_color
|
|
139
|
+
add_setting :detail_color
|
|
140
|
+
|
|
141
|
+
# Seed for random ordering (default: generated randomly each run).
|
|
142
|
+
#
|
|
143
|
+
# When you run specs with `--order random`, RSpec generates a random seed
|
|
144
|
+
# for the randomization and prints it to the `output_stream` (assuming
|
|
145
|
+
# you're using RSpec's built-in formatters). If you discover an ordering
|
|
146
|
+
# dependency (i.e. examples fail intermittently depending on order), set
|
|
147
|
+
# this (on Configuration or on the command line with `--seed`) to run
|
|
148
|
+
# using the same seed while you debug the issue.
|
|
149
|
+
#
|
|
150
|
+
# We recommend, actually, that you use the command line approach so you
|
|
151
|
+
# don't accidentally leave the seed encoded.
|
|
152
|
+
define_reader :seed
|
|
153
|
+
|
|
154
|
+
# When a block passed to pending fails (as expected), display the failure
|
|
155
|
+
# without reporting it as a failure (default: false).
|
|
156
|
+
add_setting :show_failures_in_pending_blocks
|
|
157
|
+
|
|
158
|
+
# Convert symbols to hashes with the symbol as a key with a value of
|
|
159
|
+
# `true` (default: false).
|
|
160
|
+
#
|
|
161
|
+
# This allows you to tag a group or example like this:
|
|
162
|
+
#
|
|
163
|
+
# describe "something slow", :slow do
|
|
164
|
+
# # ...
|
|
165
|
+
# end
|
|
166
|
+
#
|
|
167
|
+
# ... instead of having to type:
|
|
168
|
+
#
|
|
169
|
+
# describe "something slow", :slow => true do
|
|
170
|
+
# # ...
|
|
171
|
+
# end
|
|
172
|
+
add_setting :treat_symbols_as_metadata_keys_with_true_values
|
|
173
|
+
|
|
174
|
+
# @private
|
|
175
|
+
add_setting :tty
|
|
176
|
+
# @private
|
|
177
|
+
add_setting :include_or_extend_modules
|
|
178
|
+
# @private
|
|
179
|
+
add_setting :files_to_run
|
|
180
|
+
# @private
|
|
181
|
+
add_setting :expecting_with_rspec
|
|
182
|
+
# @private
|
|
183
|
+
attr_accessor :filter_manager
|
|
184
|
+
|
|
185
|
+
DEFAULT_BACKTRACE_PATTERNS = [
|
|
186
|
+
/\/lib\d*\/ruby\//,
|
|
187
|
+
/org\/jruby\//,
|
|
188
|
+
/bin\//,
|
|
189
|
+
%r|/gems/|,
|
|
190
|
+
/spec\/spec_helper\.rb/,
|
|
191
|
+
/lib\/rspec\/(core|expectations|matchers|mocks)/
|
|
192
|
+
]
|
|
193
|
+
|
|
194
|
+
def initialize
|
|
195
|
+
@expectation_frameworks = []
|
|
196
|
+
@include_or_extend_modules = []
|
|
197
|
+
@mock_framework = nil
|
|
198
|
+
@files_to_run = []
|
|
199
|
+
@formatters = []
|
|
200
|
+
@color = false
|
|
201
|
+
@pattern = '**/*_spec.rb'
|
|
202
|
+
@failure_exit_code = 1
|
|
203
|
+
@backtrace_clean_patterns = DEFAULT_BACKTRACE_PATTERNS.dup
|
|
204
|
+
@default_path = 'spec'
|
|
205
|
+
@filter_manager = FilterManager.new
|
|
206
|
+
@preferred_options = {}
|
|
207
|
+
@seed = srand % 0xFFFF
|
|
208
|
+
@failure_color = :red
|
|
209
|
+
@success_color = :green
|
|
210
|
+
@pending_color = :yellow
|
|
211
|
+
@default_color = :white
|
|
212
|
+
@fixed_color = :blue
|
|
213
|
+
@detail_color = :cyan
|
|
214
|
+
@profile_examples = false
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# @private
|
|
218
|
+
#
|
|
219
|
+
# Used to set higher priority option values from the command line.
|
|
220
|
+
def force(hash)
|
|
221
|
+
if hash.has_key?(:seed)
|
|
222
|
+
hash[:order], hash[:seed] = order_and_seed_from_seed(hash[:seed])
|
|
223
|
+
elsif hash.has_key?(:order)
|
|
224
|
+
set_order_and_seed(hash)
|
|
225
|
+
end
|
|
226
|
+
@preferred_options.merge!(hash)
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# @private
|
|
230
|
+
def reset
|
|
231
|
+
@reporter = nil
|
|
232
|
+
@formatters.clear
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# @overload add_setting(name)
|
|
236
|
+
# @overload add_setting(name, opts)
|
|
237
|
+
# @option opts [Symbol] :default
|
|
238
|
+
#
|
|
239
|
+
# set a default value for the generated getter and predicate methods:
|
|
240
|
+
#
|
|
241
|
+
# add_setting(:foo, :default => "default value")
|
|
242
|
+
#
|
|
243
|
+
# @option opts [Symbol] :alias_with
|
|
244
|
+
#
|
|
245
|
+
# Use `:alias_with` to alias the setter, getter, and predicate to another
|
|
246
|
+
# name, or names:
|
|
247
|
+
#
|
|
248
|
+
# add_setting(:foo, :alias_with => :bar)
|
|
249
|
+
# add_setting(:foo, :alias_with => [:bar, :baz])
|
|
250
|
+
#
|
|
251
|
+
# Adds a custom setting to the RSpec.configuration object.
|
|
252
|
+
#
|
|
253
|
+
# RSpec.configuration.add_setting :foo
|
|
254
|
+
#
|
|
255
|
+
# Used internally and by extension frameworks like rspec-rails, so they
|
|
256
|
+
# can add config settings that are domain specific. For example:
|
|
257
|
+
#
|
|
258
|
+
# RSpec.configure do |c|
|
|
259
|
+
# c.add_setting :use_transactional_fixtures,
|
|
260
|
+
# :default => true,
|
|
261
|
+
# :alias_with => :use_transactional_examples
|
|
262
|
+
# end
|
|
263
|
+
#
|
|
264
|
+
# `add_setting` creates three methods on the configuration object, a
|
|
265
|
+
# setter, a getter, and a predicate:
|
|
266
|
+
#
|
|
267
|
+
# RSpec.configuration.foo=(value)
|
|
268
|
+
# RSpec.configuration.foo
|
|
269
|
+
# RSpec.configuration.foo? # returns true if foo returns anything but nil or false
|
|
270
|
+
def add_setting(name, opts={})
|
|
271
|
+
default = opts.delete(:default)
|
|
272
|
+
(class << self; self; end).class_eval do
|
|
273
|
+
add_setting(name, opts)
|
|
274
|
+
end
|
|
275
|
+
send("#{name}=", default) if default
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
# Used by formatters to ask whether a backtrace line should be displayed
|
|
279
|
+
# or not, based on the line matching any `backtrace_clean_patterns`.
|
|
280
|
+
def cleaned_from_backtrace?(line)
|
|
281
|
+
# TODO (David 2011-12-25) why are we asking the configuration to do
|
|
282
|
+
# stuff? Either use the patterns directly or enapsulate the filtering
|
|
283
|
+
# in a BacktraceCleaner object.
|
|
284
|
+
backtrace_clean_patterns.any? { |regex| line =~ regex }
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
# Returns the configured mock framework adapter module
|
|
288
|
+
def mock_framework
|
|
289
|
+
mock_with :rspec unless @mock_framework
|
|
290
|
+
@mock_framework
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
# Delegates to mock_framework=(framework)
|
|
294
|
+
def mock_framework=(framework)
|
|
295
|
+
mock_with framework
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# Sets the mock framework adapter module.
|
|
299
|
+
#
|
|
300
|
+
# `framework` can be a Symbol or a Module.
|
|
301
|
+
#
|
|
302
|
+
# Given any of `:rspec`, `:mocha`, `:flexmock`, or `:rr`, configures the
|
|
303
|
+
# named framework.
|
|
304
|
+
#
|
|
305
|
+
# Given `:nothing`, configures no framework. Use this if you don't use
|
|
306
|
+
# any mocking framework to save a little bit of overhead.
|
|
307
|
+
#
|
|
308
|
+
# Given a Module, includes that module in every example group. The module
|
|
309
|
+
# should adhere to RSpec's mock framework adapter API:
|
|
310
|
+
#
|
|
311
|
+
# setup_mocks_for_rspec
|
|
312
|
+
# - called before each example
|
|
313
|
+
#
|
|
314
|
+
# verify_mocks_for_rspec
|
|
315
|
+
# - called after each example. Framework should raise an exception
|
|
316
|
+
# when expectations fail
|
|
317
|
+
#
|
|
318
|
+
# teardown_mocks_for_rspec
|
|
319
|
+
# - called after verify_mocks_for_rspec (even if there are errors)
|
|
320
|
+
#
|
|
321
|
+
# If the module responds to `configuration` and `mock_with` receives a block,
|
|
322
|
+
# it will yield the configuration object to the block e.g.
|
|
323
|
+
#
|
|
324
|
+
# config.mock_with OtherMockFrameworkAdapter do |mod_config|
|
|
325
|
+
# mod_config.custom_setting = true
|
|
326
|
+
# end
|
|
327
|
+
def mock_with(framework)
|
|
328
|
+
framework_module = case framework
|
|
329
|
+
when Module
|
|
330
|
+
framework
|
|
331
|
+
when String, Symbol
|
|
332
|
+
require case framework.to_s
|
|
333
|
+
when /rspec/i
|
|
334
|
+
'rspec/core/mocking/with_rspec'
|
|
335
|
+
when /mocha/i
|
|
336
|
+
'rspec/core/mocking/with_mocha'
|
|
337
|
+
when /rr/i
|
|
338
|
+
'rspec/core/mocking/with_rr'
|
|
339
|
+
when /flexmock/i
|
|
340
|
+
'rspec/core/mocking/with_flexmock'
|
|
341
|
+
else
|
|
342
|
+
'rspec/core/mocking/with_absolutely_nothing'
|
|
343
|
+
end
|
|
344
|
+
RSpec::Core::MockFrameworkAdapter
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
new_name, old_name = [framework_module, @mock_framework].map do |mod|
|
|
348
|
+
mod.respond_to?(:framework_name) ? mod.framework_name : :unnamed
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
unless new_name == old_name
|
|
352
|
+
assert_no_example_groups_defined(:mock_framework)
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
if block_given?
|
|
356
|
+
raise "#{framework_module} must respond to `configuration` so that mock_with can yield it." unless framework_module.respond_to?(:configuration)
|
|
357
|
+
yield framework_module.configuration
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
@mock_framework = framework_module
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
# Returns the configured expectation framework adapter module(s)
|
|
364
|
+
def expectation_frameworks
|
|
365
|
+
expect_with :rspec if @expectation_frameworks.empty?
|
|
366
|
+
@expectation_frameworks
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
# Delegates to expect_with(framework)
|
|
370
|
+
def expectation_framework=(framework)
|
|
371
|
+
expect_with(framework)
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
# Sets the expectation framework module(s) to be included in each example
|
|
375
|
+
# group.
|
|
376
|
+
#
|
|
377
|
+
# `frameworks` can be `:rspec`, `:stdlib`, a custom module, or any
|
|
378
|
+
# combination thereof:
|
|
379
|
+
#
|
|
380
|
+
# config.expect_with :rspec
|
|
381
|
+
# config.expect_with :stdlib
|
|
382
|
+
# config.expect_with :rspec, :stdlib
|
|
383
|
+
# config.expect_with OtherExpectationFramework
|
|
384
|
+
#
|
|
385
|
+
# RSpec will translate `:rspec` and `:stdlib` into the appropriate
|
|
386
|
+
# modules.
|
|
387
|
+
#
|
|
388
|
+
# ## Configuration
|
|
389
|
+
#
|
|
390
|
+
# If the module responds to `configuration`, `expect_with` will
|
|
391
|
+
# yield the `configuration` object if given a block:
|
|
392
|
+
#
|
|
393
|
+
# config.expect_with OtherExpectationFramework do |custom_config|
|
|
394
|
+
# custom_config.custom_setting = true
|
|
395
|
+
# end
|
|
396
|
+
def expect_with(*frameworks)
|
|
397
|
+
modules = frameworks.map do |framework|
|
|
398
|
+
case framework
|
|
399
|
+
when Module
|
|
400
|
+
framework
|
|
401
|
+
when :rspec
|
|
402
|
+
require 'rspec/expectations'
|
|
403
|
+
self.expecting_with_rspec = true
|
|
404
|
+
::RSpec::Matchers
|
|
405
|
+
when :stdlib
|
|
406
|
+
require 'test/unit/assertions'
|
|
407
|
+
::Test::Unit::Assertions
|
|
408
|
+
else
|
|
409
|
+
raise ArgumentError, "#{framework.inspect} is not supported"
|
|
410
|
+
end
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
if (modules - @expectation_frameworks).any?
|
|
414
|
+
assert_no_example_groups_defined(:expect_with)
|
|
415
|
+
end
|
|
416
|
+
|
|
417
|
+
if block_given?
|
|
418
|
+
raise "expect_with only accepts a block with a single argument. Call expect_with #{modules.length} times, once with each argument, instead." if modules.length > 1
|
|
419
|
+
raise "#{modules.first} must respond to `configuration` so that expect_with can yield it." unless modules.first.respond_to?(:configuration)
|
|
420
|
+
yield modules.first.configuration
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
@expectation_frameworks.push(*modules)
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
def full_backtrace=(true_or_false)
|
|
427
|
+
@backtrace_clean_patterns = true_or_false ? [] : DEFAULT_BACKTRACE_PATTERNS
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
def color(output=output_stream)
|
|
431
|
+
# rspec's built-in formatters all call this with the output argument,
|
|
432
|
+
# but defaulting to output_stream for backward compatibility with
|
|
433
|
+
# formatters in extension libs
|
|
434
|
+
return false unless output_to_tty?(output)
|
|
435
|
+
value_for(:color, @color)
|
|
436
|
+
end
|
|
437
|
+
|
|
438
|
+
def color=(bool)
|
|
439
|
+
if bool
|
|
440
|
+
if RSpec.windows_os? and not ENV['ANSICON']
|
|
441
|
+
warn "You must use ANSICON 1.31 or later (http://adoxa.3eeweb.com/ansicon/) to use colour on Windows"
|
|
442
|
+
@color = false
|
|
443
|
+
else
|
|
444
|
+
@color = true
|
|
445
|
+
end
|
|
446
|
+
end
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
# TODO - deprecate color_enabled - probably not until the last 2.x
|
|
450
|
+
# release before 3.0
|
|
451
|
+
alias_method :color_enabled, :color
|
|
452
|
+
alias_method :color_enabled=, :color=
|
|
453
|
+
define_predicate_for :color_enabled, :color
|
|
454
|
+
|
|
455
|
+
def libs=(libs)
|
|
456
|
+
libs.map {|lib| $LOAD_PATH.unshift lib}
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
def requires=(paths)
|
|
460
|
+
paths.map {|path| require path}
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
def debug=(bool)
|
|
464
|
+
return unless bool
|
|
465
|
+
begin
|
|
466
|
+
require 'ruby-debug'
|
|
467
|
+
Debugger.start
|
|
468
|
+
rescue LoadError => e
|
|
469
|
+
raise <<-EOM
|
|
470
|
+
|
|
471
|
+
#{'*'*50}
|
|
472
|
+
#{e.message}
|
|
473
|
+
|
|
474
|
+
If you have it installed as a ruby gem, then you need to either require
|
|
475
|
+
'rubygems' or configure the RUBYOPT environment variable with the value
|
|
476
|
+
'rubygems'.
|
|
477
|
+
|
|
478
|
+
#{e.backtrace.join("\n")}
|
|
479
|
+
#{'*'*50}
|
|
480
|
+
EOM
|
|
481
|
+
end
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
# Run examples defined on `line_numbers` in all files to run.
|
|
485
|
+
def line_numbers=(line_numbers)
|
|
486
|
+
filter_run :line_numbers => line_numbers.map{|l| l.to_i}
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
def full_description=(description)
|
|
490
|
+
filter_run :full_description => Regexp.union(*Array(description).map {|d| Regexp.new(d) })
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
# @overload add_formatter(formatter)
|
|
494
|
+
#
|
|
495
|
+
# Adds a formatter to the formatters collection. `formatter` can be a
|
|
496
|
+
# string representing any of the built-in formatters (see
|
|
497
|
+
# `built_in_formatter`), or a custom formatter class.
|
|
498
|
+
#
|
|
499
|
+
# ### Note
|
|
500
|
+
#
|
|
501
|
+
# For internal purposes, `add_formatter` also accepts the name of a class
|
|
502
|
+
# and path to a file that contains that class definition, but you should
|
|
503
|
+
# consider that a private api that may change at any time without notice.
|
|
504
|
+
def add_formatter(formatter_to_use, path=nil)
|
|
505
|
+
formatter_class =
|
|
506
|
+
built_in_formatter(formatter_to_use) ||
|
|
507
|
+
custom_formatter(formatter_to_use) ||
|
|
508
|
+
(raise ArgumentError, "Formatter '#{formatter_to_use}' unknown - maybe you meant 'documentation' or 'progress'?.")
|
|
509
|
+
|
|
510
|
+
formatters << formatter_class.new(path ? file_at(path) : output)
|
|
511
|
+
end
|
|
512
|
+
|
|
513
|
+
alias_method :formatter=, :add_formatter
|
|
514
|
+
|
|
515
|
+
def formatters
|
|
516
|
+
@formatters ||= []
|
|
517
|
+
end
|
|
518
|
+
|
|
519
|
+
def reporter
|
|
520
|
+
@reporter ||= begin
|
|
521
|
+
add_formatter('progress') if formatters.empty?
|
|
522
|
+
Reporter.new(*formatters)
|
|
523
|
+
end
|
|
524
|
+
end
|
|
525
|
+
|
|
526
|
+
# @api private
|
|
527
|
+
#
|
|
528
|
+
# Defaults `profile_examples` to 10 examples when `@profile_examples` is `true`.
|
|
529
|
+
#
|
|
530
|
+
def profile_examples
|
|
531
|
+
profile = value_for(:profile_examples, @profile_examples)
|
|
532
|
+
if profile && !profile.is_a?(Integer)
|
|
533
|
+
10
|
|
534
|
+
else
|
|
535
|
+
profile
|
|
536
|
+
end
|
|
537
|
+
end
|
|
538
|
+
|
|
539
|
+
# @private
|
|
540
|
+
def files_or_directories_to_run=(*files)
|
|
541
|
+
files = files.flatten
|
|
542
|
+
files << default_path if (command == 'rspec' || Runner.running_in_drb?) && default_path && files.empty?
|
|
543
|
+
self.files_to_run = get_files_to_run(files)
|
|
544
|
+
end
|
|
545
|
+
|
|
546
|
+
# Creates a method that delegates to `example` including the submitted
|
|
547
|
+
# `args`. Used internally to add variants of `example` like `pending`:
|
|
548
|
+
#
|
|
549
|
+
# @example
|
|
550
|
+
# alias_example_to :pending, :pending => true
|
|
551
|
+
#
|
|
552
|
+
# # This lets you do this:
|
|
553
|
+
#
|
|
554
|
+
# describe Thing do
|
|
555
|
+
# pending "does something" do
|
|
556
|
+
# thing = Thing.new
|
|
557
|
+
# end
|
|
558
|
+
# end
|
|
559
|
+
#
|
|
560
|
+
# # ... which is the equivalent of
|
|
561
|
+
#
|
|
562
|
+
# describe Thing do
|
|
563
|
+
# it "does something", :pending => true do
|
|
564
|
+
# thing = Thing.new
|
|
565
|
+
# end
|
|
566
|
+
# end
|
|
567
|
+
def alias_example_to(new_name, *args)
|
|
568
|
+
extra_options = build_metadata_hash_from(args)
|
|
569
|
+
RSpec::Core::ExampleGroup.alias_example_to(new_name, extra_options)
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
# Define an alias for it_should_behave_like that allows different
|
|
573
|
+
# language (like "it_has_behavior" or "it_behaves_like") to be
|
|
574
|
+
# employed when including shared examples.
|
|
575
|
+
#
|
|
576
|
+
# Example:
|
|
577
|
+
#
|
|
578
|
+
# alias_it_behaves_like_to(:it_has_behavior, 'has behavior:')
|
|
579
|
+
#
|
|
580
|
+
# allows the user to include a shared example group like:
|
|
581
|
+
#
|
|
582
|
+
# describe Entity do
|
|
583
|
+
# it_has_behavior 'sortability' do
|
|
584
|
+
# let(:sortable) { Entity.new }
|
|
585
|
+
# end
|
|
586
|
+
# end
|
|
587
|
+
#
|
|
588
|
+
# which is reported in the output as:
|
|
589
|
+
#
|
|
590
|
+
# Entity
|
|
591
|
+
# has behavior: sortability
|
|
592
|
+
# # sortability examples here
|
|
593
|
+
def alias_it_behaves_like_to(new_name, report_label = '')
|
|
594
|
+
RSpec::Core::ExampleGroup.alias_it_behaves_like_to(new_name, report_label)
|
|
595
|
+
end
|
|
596
|
+
|
|
597
|
+
alias_method :alias_it_should_behave_like_to, :alias_it_behaves_like_to
|
|
598
|
+
|
|
599
|
+
# Adds key/value pairs to the `inclusion_filter`. If the
|
|
600
|
+
# `treat_symbols_as_metadata_keys_with_true_values` config option is set
|
|
601
|
+
# to true and `args` includes any symbols that are not part of a hash,
|
|
602
|
+
# each symbol is treated as a key in the hash with the value `true`.
|
|
603
|
+
#
|
|
604
|
+
# ### Note
|
|
605
|
+
#
|
|
606
|
+
# Filters set using this method can be overridden from the command line
|
|
607
|
+
# or config files (e.g. `.rspec`).
|
|
608
|
+
#
|
|
609
|
+
# @example
|
|
610
|
+
# # given this declaration
|
|
611
|
+
# describe "something", :foo => 'bar' do
|
|
612
|
+
# # ...
|
|
613
|
+
# end
|
|
614
|
+
#
|
|
615
|
+
# # any of the following will include that group
|
|
616
|
+
# config.filter_run_including :foo => 'bar'
|
|
617
|
+
# config.filter_run_including :foo => /^ba/
|
|
618
|
+
# config.filter_run_including :foo => lambda {|v| v == 'bar'}
|
|
619
|
+
# config.filter_run_including :foo => lambda {|v,m| m[:foo] == 'bar'}
|
|
620
|
+
#
|
|
621
|
+
# # given a proc with an arity of 1, the lambda is passed the value related to the key, e.g.
|
|
622
|
+
# config.filter_run_including :foo => lambda {|v| v == 'bar'}
|
|
623
|
+
#
|
|
624
|
+
# # given a proc with an arity of 2, the lambda is passed the value related to the key,
|
|
625
|
+
# # and the metadata itself e.g.
|
|
626
|
+
# config.filter_run_including :foo => lambda {|v,m| m[:foo] == 'bar'}
|
|
627
|
+
#
|
|
628
|
+
# # with treat_symbols_as_metadata_keys_with_true_values = true
|
|
629
|
+
# filter_run_including :foo # same as filter_run_including :foo => true
|
|
630
|
+
def filter_run_including(*args)
|
|
631
|
+
filter_manager.include_with_low_priority build_metadata_hash_from(args)
|
|
632
|
+
end
|
|
633
|
+
|
|
634
|
+
alias_method :filter_run, :filter_run_including
|
|
635
|
+
|
|
636
|
+
# Clears and reassigns the `inclusion_filter`. Set to `nil` if you don't
|
|
637
|
+
# want any inclusion filter at all.
|
|
638
|
+
#
|
|
639
|
+
# ### Warning
|
|
640
|
+
#
|
|
641
|
+
# This overrides any inclusion filters/tags set on the command line or in
|
|
642
|
+
# configuration files.
|
|
643
|
+
def inclusion_filter=(filter)
|
|
644
|
+
filter_manager.include! build_metadata_hash_from([filter])
|
|
645
|
+
end
|
|
646
|
+
|
|
647
|
+
alias_method :filter=, :inclusion_filter=
|
|
648
|
+
|
|
649
|
+
# Returns the `inclusion_filter`. If none has been set, returns an empty
|
|
650
|
+
# hash.
|
|
651
|
+
def inclusion_filter
|
|
652
|
+
filter_manager.inclusions
|
|
653
|
+
end
|
|
654
|
+
|
|
655
|
+
alias_method :filter, :inclusion_filter
|
|
656
|
+
|
|
657
|
+
# Adds key/value pairs to the `exclusion_filter`. If the
|
|
658
|
+
# `treat_symbols_as_metadata_keys_with_true_values` config option is set
|
|
659
|
+
# to true and `args` excludes any symbols that are not part of a hash,
|
|
660
|
+
# each symbol is treated as a key in the hash with the value `true`.
|
|
661
|
+
#
|
|
662
|
+
# ### Note
|
|
663
|
+
#
|
|
664
|
+
# Filters set using this method can be overridden from the command line
|
|
665
|
+
# or config files (e.g. `.rspec`).
|
|
666
|
+
#
|
|
667
|
+
# @example
|
|
668
|
+
# # given this declaration
|
|
669
|
+
# describe "something", :foo => 'bar' do
|
|
670
|
+
# # ...
|
|
671
|
+
# end
|
|
672
|
+
#
|
|
673
|
+
# # any of the following will exclude that group
|
|
674
|
+
# config.filter_run_excluding :foo => 'bar'
|
|
675
|
+
# config.filter_run_excluding :foo => /^ba/
|
|
676
|
+
# config.filter_run_excluding :foo => lambda {|v| v == 'bar'}
|
|
677
|
+
# config.filter_run_excluding :foo => lambda {|v,m| m[:foo] == 'bar'}
|
|
678
|
+
#
|
|
679
|
+
# # given a proc with an arity of 1, the lambda is passed the value related to the key, e.g.
|
|
680
|
+
# config.filter_run_excluding :foo => lambda {|v| v == 'bar'}
|
|
681
|
+
#
|
|
682
|
+
# # given a proc with an arity of 2, the lambda is passed the value related to the key,
|
|
683
|
+
# # and the metadata itself e.g.
|
|
684
|
+
# config.filter_run_excluding :foo => lambda {|v,m| m[:foo] == 'bar'}
|
|
685
|
+
#
|
|
686
|
+
# # with treat_symbols_as_metadata_keys_with_true_values = true
|
|
687
|
+
# filter_run_excluding :foo # same as filter_run_excluding :foo => true
|
|
688
|
+
def filter_run_excluding(*args)
|
|
689
|
+
filter_manager.exclude_with_low_priority build_metadata_hash_from(args)
|
|
690
|
+
end
|
|
691
|
+
|
|
692
|
+
# Clears and reassigns the `exclusion_filter`. Set to `nil` if you don't
|
|
693
|
+
# want any exclusion filter at all.
|
|
694
|
+
#
|
|
695
|
+
# ### Warning
|
|
696
|
+
#
|
|
697
|
+
# This overrides any exclusion filters/tags set on the command line or in
|
|
698
|
+
# configuration files.
|
|
699
|
+
def exclusion_filter=(filter)
|
|
700
|
+
filter_manager.exclude! build_metadata_hash_from([filter])
|
|
701
|
+
end
|
|
702
|
+
|
|
703
|
+
# Returns the `exclusion_filter`. If none has been set, returns an empty
|
|
704
|
+
# hash.
|
|
705
|
+
def exclusion_filter
|
|
706
|
+
filter_manager.exclusions
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
# Tells RSpec to include `mod` in example groups. Methods defined in
|
|
710
|
+
# `mod` are exposed to examples (not example groups). Use `filters` to
|
|
711
|
+
# constrain the groups in which to include the module.
|
|
712
|
+
#
|
|
713
|
+
# @example
|
|
714
|
+
#
|
|
715
|
+
# module AuthenticationHelpers
|
|
716
|
+
# def login_as(user)
|
|
717
|
+
# # ...
|
|
718
|
+
# end
|
|
719
|
+
# end
|
|
720
|
+
#
|
|
721
|
+
# module UserHelpers
|
|
722
|
+
# def users(username)
|
|
723
|
+
# # ...
|
|
724
|
+
# end
|
|
725
|
+
# end
|
|
726
|
+
#
|
|
727
|
+
# RSpec.configure do |config|
|
|
728
|
+
# config.include(UserHelpers) # included in all modules
|
|
729
|
+
# config.include(AuthenticationHelpers, :type => :request)
|
|
730
|
+
# end
|
|
731
|
+
#
|
|
732
|
+
# describe "edit profile", :type => :request do
|
|
733
|
+
# it "can be viewed by owning user" do
|
|
734
|
+
# login_as users(:jdoe)
|
|
735
|
+
# get "/profiles/jdoe"
|
|
736
|
+
# assert_select ".username", :text => 'jdoe'
|
|
737
|
+
# end
|
|
738
|
+
# end
|
|
739
|
+
#
|
|
740
|
+
# @see #extend
|
|
741
|
+
def include(mod, *filters)
|
|
742
|
+
include_or_extend_modules << [:include, mod, build_metadata_hash_from(filters)]
|
|
743
|
+
end
|
|
744
|
+
|
|
745
|
+
# Tells RSpec to extend example groups with `mod`. Methods defined in
|
|
746
|
+
# `mod` are exposed to example groups (not examples). Use `filters` to
|
|
747
|
+
# constrain the groups to extend.
|
|
748
|
+
#
|
|
749
|
+
# Similar to `include`, but behavior is added to example groups, which
|
|
750
|
+
# are classes, rather than the examples, which are instances of those
|
|
751
|
+
# classes.
|
|
752
|
+
#
|
|
753
|
+
# @example
|
|
754
|
+
#
|
|
755
|
+
# module UiHelpers
|
|
756
|
+
# def run_in_browser
|
|
757
|
+
# # ...
|
|
758
|
+
# end
|
|
759
|
+
# end
|
|
760
|
+
#
|
|
761
|
+
# RSpec.configure do |config|
|
|
762
|
+
# config.extend(UiHelpers, :type => :request)
|
|
763
|
+
# end
|
|
764
|
+
#
|
|
765
|
+
# describe "edit profile", :type => :request do
|
|
766
|
+
# run_in_browser
|
|
767
|
+
#
|
|
768
|
+
# it "does stuff in the client" do
|
|
769
|
+
# # ...
|
|
770
|
+
# end
|
|
771
|
+
# end
|
|
772
|
+
#
|
|
773
|
+
# @see #include
|
|
774
|
+
def extend(mod, *filters)
|
|
775
|
+
include_or_extend_modules << [:extend, mod, build_metadata_hash_from(filters)]
|
|
776
|
+
end
|
|
777
|
+
|
|
778
|
+
# @private
|
|
779
|
+
#
|
|
780
|
+
# Used internally to extend a group with modules using `include` and/or
|
|
781
|
+
# `extend`.
|
|
782
|
+
def configure_group(group)
|
|
783
|
+
include_or_extend_modules.each do |include_or_extend, mod, filters|
|
|
784
|
+
next unless filters.empty? || group.any_apply?(filters)
|
|
785
|
+
send("safe_#{include_or_extend}", mod, group)
|
|
786
|
+
end
|
|
787
|
+
end
|
|
788
|
+
|
|
789
|
+
# @private
|
|
790
|
+
def safe_include(mod, host)
|
|
791
|
+
host.send(:include,mod) unless host < mod
|
|
792
|
+
end
|
|
793
|
+
|
|
794
|
+
# @private
|
|
795
|
+
if RUBY_VERSION.to_f >= 1.9
|
|
796
|
+
def safe_extend(mod, host)
|
|
797
|
+
host.extend(mod) unless (class << host; self; end) < mod
|
|
798
|
+
end
|
|
799
|
+
else
|
|
800
|
+
def safe_extend(mod, host)
|
|
801
|
+
host.extend(mod) unless (class << host; self; end).included_modules.include?(mod)
|
|
802
|
+
end
|
|
803
|
+
end
|
|
804
|
+
|
|
805
|
+
# @private
|
|
806
|
+
def configure_mock_framework
|
|
807
|
+
RSpec::Core::ExampleGroup.send(:include, mock_framework)
|
|
808
|
+
end
|
|
809
|
+
|
|
810
|
+
# @private
|
|
811
|
+
def configure_expectation_framework
|
|
812
|
+
expectation_frameworks.each do |framework|
|
|
813
|
+
RSpec::Core::ExampleGroup.send(:include, framework)
|
|
814
|
+
end
|
|
815
|
+
end
|
|
816
|
+
|
|
817
|
+
# @private
|
|
818
|
+
def load_spec_files
|
|
819
|
+
files_to_run.uniq.each {|f| load File.expand_path(f) }
|
|
820
|
+
raise_if_rspec_1_is_loaded
|
|
821
|
+
end
|
|
822
|
+
|
|
823
|
+
# @private
|
|
824
|
+
DEFAULT_FORMATTER = lambda { |string| string }
|
|
825
|
+
|
|
826
|
+
# Formats the docstring output using the block provided.
|
|
827
|
+
#
|
|
828
|
+
# @example
|
|
829
|
+
# # This will strip the descriptions of both examples and example groups.
|
|
830
|
+
# RSpec.configure do |config|
|
|
831
|
+
# config.format_docstrings { |s| s.strip }
|
|
832
|
+
# end
|
|
833
|
+
def format_docstrings(&block)
|
|
834
|
+
@format_docstrings_block = block_given? ? block : DEFAULT_FORMATTER
|
|
835
|
+
end
|
|
836
|
+
|
|
837
|
+
# @private
|
|
838
|
+
def format_docstrings_block
|
|
839
|
+
@format_docstrings_block ||= DEFAULT_FORMATTER
|
|
840
|
+
end
|
|
841
|
+
|
|
842
|
+
# @api
|
|
843
|
+
#
|
|
844
|
+
# Sets the seed value and sets `order='rand'`
|
|
845
|
+
def seed=(seed)
|
|
846
|
+
order_and_seed_from_seed(seed)
|
|
847
|
+
end
|
|
848
|
+
|
|
849
|
+
# @api
|
|
850
|
+
#
|
|
851
|
+
# Sets the order and, if order is `'rand:<seed>'`, also sets the seed.
|
|
852
|
+
def order=(type)
|
|
853
|
+
order_and_seed_from_order(type)
|
|
854
|
+
end
|
|
855
|
+
|
|
856
|
+
def randomize?
|
|
857
|
+
order.to_s.match(/rand/)
|
|
858
|
+
end
|
|
859
|
+
|
|
860
|
+
# @private
|
|
861
|
+
DEFAULT_ORDERING = lambda { |list| list }
|
|
862
|
+
|
|
863
|
+
# @private
|
|
864
|
+
RANDOM_ORDERING = lambda do |list|
|
|
865
|
+
Kernel.srand RSpec.configuration.seed
|
|
866
|
+
list.sort_by { Kernel.rand(list.size) }
|
|
867
|
+
end
|
|
868
|
+
|
|
869
|
+
# Sets a strategy by which to order examples.
|
|
870
|
+
#
|
|
871
|
+
# @example
|
|
872
|
+
# RSpec.configure do |config|
|
|
873
|
+
# config.order_examples do |examples|
|
|
874
|
+
# examples.reverse
|
|
875
|
+
# end
|
|
876
|
+
# end
|
|
877
|
+
#
|
|
878
|
+
# @see #order_groups
|
|
879
|
+
# @see #order_groups_and_examples
|
|
880
|
+
# @see #order=
|
|
881
|
+
# @see #seed=
|
|
882
|
+
def order_examples(&block)
|
|
883
|
+
@example_ordering_block = block
|
|
884
|
+
@order = "custom" unless built_in_orderer?(block)
|
|
885
|
+
end
|
|
886
|
+
|
|
887
|
+
# @private
|
|
888
|
+
def example_ordering_block
|
|
889
|
+
@example_ordering_block ||= DEFAULT_ORDERING
|
|
890
|
+
end
|
|
891
|
+
|
|
892
|
+
# Sets a strategy by which to order groups.
|
|
893
|
+
#
|
|
894
|
+
# @example
|
|
895
|
+
# RSpec.configure do |config|
|
|
896
|
+
# config.order_groups do |groups|
|
|
897
|
+
# groups.reverse
|
|
898
|
+
# end
|
|
899
|
+
# end
|
|
900
|
+
#
|
|
901
|
+
# @see #order_examples
|
|
902
|
+
# @see #order_groups_and_examples
|
|
903
|
+
# @see #order=
|
|
904
|
+
# @see #seed=
|
|
905
|
+
def order_groups(&block)
|
|
906
|
+
@group_ordering_block = block
|
|
907
|
+
@order = "custom" unless built_in_orderer?(block)
|
|
908
|
+
end
|
|
909
|
+
|
|
910
|
+
# @private
|
|
911
|
+
def group_ordering_block
|
|
912
|
+
@group_ordering_block ||= DEFAULT_ORDERING
|
|
913
|
+
end
|
|
914
|
+
|
|
915
|
+
# Sets a strategy by which to order groups and examples.
|
|
916
|
+
#
|
|
917
|
+
# @example
|
|
918
|
+
# RSpec.configure do |config|
|
|
919
|
+
# config.order_groups_and_examples do |groups_or_examples|
|
|
920
|
+
# groups_or_examples.reverse
|
|
921
|
+
# end
|
|
922
|
+
# end
|
|
923
|
+
#
|
|
924
|
+
# @see #order_groups
|
|
925
|
+
# @see #order_examples
|
|
926
|
+
# @see #order=
|
|
927
|
+
# @see #seed=
|
|
928
|
+
def order_groups_and_examples(&block)
|
|
929
|
+
order_groups(&block)
|
|
930
|
+
order_examples(&block)
|
|
931
|
+
end
|
|
932
|
+
|
|
933
|
+
private
|
|
934
|
+
|
|
935
|
+
def get_files_to_run(paths)
|
|
936
|
+
patterns = pattern.split(",")
|
|
937
|
+
paths.map do |path|
|
|
938
|
+
path = path.gsub(File::ALT_SEPARATOR, File::SEPARATOR) if File::ALT_SEPARATOR
|
|
939
|
+
File.directory?(path) ? gather_directories(path, patterns) : extract_location(path)
|
|
940
|
+
end.flatten.sort
|
|
941
|
+
end
|
|
942
|
+
|
|
943
|
+
def gather_directories(path, patterns)
|
|
944
|
+
patterns.map do |pattern|
|
|
945
|
+
pattern =~ /^#{path}/ ? Dir[pattern.strip].sort : Dir["#{path}/{#{pattern.strip}}"].sort
|
|
946
|
+
end
|
|
947
|
+
end
|
|
948
|
+
|
|
949
|
+
def extract_location(path)
|
|
950
|
+
if path =~ /^(.*?)((?:\:\d+)+)$/
|
|
951
|
+
path, lines = $1, $2[1..-1].split(":").map{|n| n.to_i}
|
|
952
|
+
filter_manager.add_location path, lines
|
|
953
|
+
end
|
|
954
|
+
path
|
|
955
|
+
end
|
|
956
|
+
|
|
957
|
+
def command
|
|
958
|
+
$0.split(File::SEPARATOR).last
|
|
959
|
+
end
|
|
960
|
+
|
|
961
|
+
def value_for(key, default=nil)
|
|
962
|
+
@preferred_options.has_key?(key) ? @preferred_options[key] : default
|
|
963
|
+
end
|
|
964
|
+
|
|
965
|
+
def assert_no_example_groups_defined(config_option)
|
|
966
|
+
if RSpec.world.example_groups.any?
|
|
967
|
+
raise MustBeConfiguredBeforeExampleGroupsError.new(
|
|
968
|
+
"RSpec's #{config_option} configuration option must be configured before " +
|
|
969
|
+
"any example groups are defined, but you have already defined a group."
|
|
970
|
+
)
|
|
971
|
+
end
|
|
972
|
+
end
|
|
973
|
+
|
|
974
|
+
def raise_if_rspec_1_is_loaded
|
|
975
|
+
if defined?(Spec) && defined?(Spec::VERSION::MAJOR) && Spec::VERSION::MAJOR == 1
|
|
976
|
+
raise <<-MESSAGE
|
|
977
|
+
|
|
978
|
+
#{'*'*80}
|
|
979
|
+
You are running rspec-2, but it seems as though rspec-1 has been loaded as
|
|
980
|
+
well. This is likely due to a statement like this somewhere in the specs:
|
|
981
|
+
|
|
982
|
+
require 'spec'
|
|
983
|
+
|
|
984
|
+
Please locate that statement, remove it, and try again.
|
|
985
|
+
#{'*'*80}
|
|
986
|
+
MESSAGE
|
|
987
|
+
end
|
|
988
|
+
end
|
|
989
|
+
|
|
990
|
+
def output_to_tty?(output=output_stream)
|
|
991
|
+
tty? || (output.respond_to?(:tty?) && output.tty?)
|
|
992
|
+
end
|
|
993
|
+
|
|
994
|
+
def built_in_formatter(key)
|
|
995
|
+
case key.to_s
|
|
996
|
+
when 'd', 'doc', 'documentation', 's', 'n', 'spec', 'nested'
|
|
997
|
+
require 'rspec/core/formatters/documentation_formatter'
|
|
998
|
+
RSpec::Core::Formatters::DocumentationFormatter
|
|
999
|
+
when 'h', 'html'
|
|
1000
|
+
require 'rspec/core/formatters/html_formatter'
|
|
1001
|
+
RSpec::Core::Formatters::HtmlFormatter
|
|
1002
|
+
when 't', 'textmate'
|
|
1003
|
+
require 'rspec/core/formatters/text_mate_formatter'
|
|
1004
|
+
RSpec::Core::Formatters::TextMateFormatter
|
|
1005
|
+
when 'p', 'progress'
|
|
1006
|
+
require 'rspec/core/formatters/progress_formatter'
|
|
1007
|
+
RSpec::Core::Formatters::ProgressFormatter
|
|
1008
|
+
when 'j', 'json'
|
|
1009
|
+
require 'rspec/core/formatters/json_formatter'
|
|
1010
|
+
RSpec::Core::Formatters::JsonFormatter
|
|
1011
|
+
end
|
|
1012
|
+
end
|
|
1013
|
+
|
|
1014
|
+
def custom_formatter(formatter_ref)
|
|
1015
|
+
if Class === formatter_ref
|
|
1016
|
+
formatter_ref
|
|
1017
|
+
elsif string_const?(formatter_ref)
|
|
1018
|
+
begin
|
|
1019
|
+
eval(formatter_ref)
|
|
1020
|
+
rescue NameError
|
|
1021
|
+
require path_for(formatter_ref)
|
|
1022
|
+
eval(formatter_ref)
|
|
1023
|
+
end
|
|
1024
|
+
end
|
|
1025
|
+
end
|
|
1026
|
+
|
|
1027
|
+
def string_const?(str)
|
|
1028
|
+
str.is_a?(String) && /\A[A-Z][a-zA-Z0-9_:]*\z/ =~ str
|
|
1029
|
+
end
|
|
1030
|
+
|
|
1031
|
+
def path_for(const_ref)
|
|
1032
|
+
underscore_with_fix_for_non_standard_rspec_naming(const_ref)
|
|
1033
|
+
end
|
|
1034
|
+
|
|
1035
|
+
def underscore_with_fix_for_non_standard_rspec_naming(string)
|
|
1036
|
+
underscore(string).sub(%r{(^|/)r_spec($|/)}, '\\1rspec\\2')
|
|
1037
|
+
end
|
|
1038
|
+
|
|
1039
|
+
# activesupport/lib/active_support/inflector/methods.rb, line 48
|
|
1040
|
+
def underscore(camel_cased_word)
|
|
1041
|
+
word = camel_cased_word.to_s.dup
|
|
1042
|
+
word.gsub!(/::/, '/')
|
|
1043
|
+
word.gsub!(/([A-Z]+)([A-Z][a-z])/,'\1_\2')
|
|
1044
|
+
word.gsub!(/([a-z\d])([A-Z])/,'\1_\2')
|
|
1045
|
+
word.tr!("-", "_")
|
|
1046
|
+
word.downcase!
|
|
1047
|
+
word
|
|
1048
|
+
end
|
|
1049
|
+
|
|
1050
|
+
def file_at(path)
|
|
1051
|
+
FileUtils.mkdir_p(File.dirname(path))
|
|
1052
|
+
File.new(path, 'w')
|
|
1053
|
+
end
|
|
1054
|
+
|
|
1055
|
+
def order_and_seed_from_seed(value)
|
|
1056
|
+
order_groups_and_examples(&RANDOM_ORDERING)
|
|
1057
|
+
@order, @seed = 'rand', value.to_i
|
|
1058
|
+
[@order, @seed]
|
|
1059
|
+
end
|
|
1060
|
+
|
|
1061
|
+
def set_order_and_seed(hash)
|
|
1062
|
+
hash[:order], seed = order_and_seed_from_order(hash[:order])
|
|
1063
|
+
hash[:seed] = seed if seed
|
|
1064
|
+
end
|
|
1065
|
+
|
|
1066
|
+
def order_and_seed_from_order(type)
|
|
1067
|
+
order, seed = type.to_s.split(':')
|
|
1068
|
+
@order = order
|
|
1069
|
+
@seed = seed = seed.to_i if seed
|
|
1070
|
+
|
|
1071
|
+
if randomize?
|
|
1072
|
+
order_groups_and_examples(&RANDOM_ORDERING)
|
|
1073
|
+
elsif order == 'default'
|
|
1074
|
+
@order, @seed = nil, nil
|
|
1075
|
+
order_groups_and_examples(&DEFAULT_ORDERING)
|
|
1076
|
+
end
|
|
1077
|
+
|
|
1078
|
+
return order, seed
|
|
1079
|
+
end
|
|
1080
|
+
|
|
1081
|
+
def built_in_orderer?(block)
|
|
1082
|
+
[DEFAULT_ORDERING, RANDOM_ORDERING].include?(block)
|
|
1083
|
+
end
|
|
1084
|
+
|
|
1085
|
+
end
|
|
1086
|
+
end
|
|
1087
|
+
end
|