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,301 @@
|
|
|
1
|
+
require 'helper'
|
|
2
|
+
|
|
3
|
+
# Please keep in mind that any hash signs ("#") in the heredoc strings are
|
|
4
|
+
# placed on purpose. Without these editors might remove the whitespace on empty
|
|
5
|
+
# lines.
|
|
6
|
+
describe Pry::Indent do
|
|
7
|
+
before do
|
|
8
|
+
@indent = Pry::Indent.new
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
it 'should indent an array' do
|
|
12
|
+
input = "array = [\n10,\n15\n]"
|
|
13
|
+
output = "array = [\n 10,\n 15\n]"
|
|
14
|
+
|
|
15
|
+
@indent.indent(input).should == output
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
it 'should indent a hash' do
|
|
19
|
+
input = "hash = {\n:name => 'Ruby'\n}"
|
|
20
|
+
output = "hash = {\n :name => 'Ruby'\n}"
|
|
21
|
+
|
|
22
|
+
@indent.indent(input).should == output
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
it 'should indent a function' do
|
|
26
|
+
input = "def\nreturn 10\nend"
|
|
27
|
+
output = "def\n return 10\nend"
|
|
28
|
+
|
|
29
|
+
@indent.indent(input).should == output
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
it 'should indent a module and class' do
|
|
33
|
+
input = "module Foo\n# Hello world\nend"
|
|
34
|
+
output = "module Foo\n # Hello world\nend"
|
|
35
|
+
input_class = "class Foo\n# Hello world\nend"
|
|
36
|
+
output_class = "class Foo\n # Hello world\nend"
|
|
37
|
+
|
|
38
|
+
@indent.indent(input).should == output
|
|
39
|
+
@indent.indent(input_class).should == output_class
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
it 'should indent separate lines' do
|
|
43
|
+
@indent.indent('def foo').should == 'def foo'
|
|
44
|
+
@indent.indent('return 10').should == ' return 10'
|
|
45
|
+
@indent.indent('end').should == 'end'
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
it 'should not indent single line statements' do
|
|
49
|
+
input = <<TXT.strip
|
|
50
|
+
def hello; end
|
|
51
|
+
puts "Hello"
|
|
52
|
+
TXT
|
|
53
|
+
|
|
54
|
+
@indent.indent(input).should == input
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
it 'should handle multiple open and closing tokens on a line' do
|
|
58
|
+
input = <<TXT.strip
|
|
59
|
+
[10, 15].each do |num|
|
|
60
|
+
puts num
|
|
61
|
+
end
|
|
62
|
+
TXT
|
|
63
|
+
|
|
64
|
+
output = <<TXT.strip
|
|
65
|
+
[10, 15].each do |num|
|
|
66
|
+
puts num
|
|
67
|
+
end
|
|
68
|
+
TXT
|
|
69
|
+
|
|
70
|
+
@indent.indent(input).should == output
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
it 'should properly indent nested code' do
|
|
74
|
+
input = <<TXT.strip
|
|
75
|
+
module A
|
|
76
|
+
module B
|
|
77
|
+
class C
|
|
78
|
+
attr_accessor :test
|
|
79
|
+
# keep
|
|
80
|
+
def number
|
|
81
|
+
return 10
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
TXT
|
|
87
|
+
|
|
88
|
+
output = <<TXT.strip
|
|
89
|
+
module A
|
|
90
|
+
module B
|
|
91
|
+
class C
|
|
92
|
+
attr_accessor :test
|
|
93
|
+
# keep
|
|
94
|
+
def number
|
|
95
|
+
return 10
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
TXT
|
|
101
|
+
|
|
102
|
+
@indent.indent(input).should == output
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
it 'should indent statements such as if, else, etc' do
|
|
106
|
+
input = <<TXT.strip
|
|
107
|
+
if a == 10
|
|
108
|
+
#
|
|
109
|
+
elsif a == 15
|
|
110
|
+
#
|
|
111
|
+
else
|
|
112
|
+
#
|
|
113
|
+
end
|
|
114
|
+
#
|
|
115
|
+
while true
|
|
116
|
+
#
|
|
117
|
+
end
|
|
118
|
+
#
|
|
119
|
+
for num in [10, 15, 20]
|
|
120
|
+
#
|
|
121
|
+
end
|
|
122
|
+
#
|
|
123
|
+
for num in [10, 15, 20] do
|
|
124
|
+
#
|
|
125
|
+
end
|
|
126
|
+
TXT
|
|
127
|
+
|
|
128
|
+
output = <<TXT.strip
|
|
129
|
+
if a == 10
|
|
130
|
+
#
|
|
131
|
+
elsif a == 15
|
|
132
|
+
#
|
|
133
|
+
else
|
|
134
|
+
#
|
|
135
|
+
end
|
|
136
|
+
#
|
|
137
|
+
while true
|
|
138
|
+
#
|
|
139
|
+
end
|
|
140
|
+
#
|
|
141
|
+
for num in [10, 15, 20]
|
|
142
|
+
#
|
|
143
|
+
end
|
|
144
|
+
#
|
|
145
|
+
for num in [10, 15, 20] do
|
|
146
|
+
#
|
|
147
|
+
end
|
|
148
|
+
TXT
|
|
149
|
+
|
|
150
|
+
@indent.indent(input).should == output
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
it "should correctly handle while <foo> do" do
|
|
154
|
+
input = "while 5 do\n5\nend"
|
|
155
|
+
@indent.indent(input).should == "while 5 do\n 5\nend"
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
it "should ident case statements" do
|
|
159
|
+
input = <<TXT.strip
|
|
160
|
+
case foo
|
|
161
|
+
when 1
|
|
162
|
+
2
|
|
163
|
+
when 2
|
|
164
|
+
if 3
|
|
165
|
+
4
|
|
166
|
+
end
|
|
167
|
+
when 5
|
|
168
|
+
#
|
|
169
|
+
else
|
|
170
|
+
#
|
|
171
|
+
end
|
|
172
|
+
TXT
|
|
173
|
+
|
|
174
|
+
output = <<TXT.strip
|
|
175
|
+
case foo
|
|
176
|
+
when 1
|
|
177
|
+
2
|
|
178
|
+
when 2
|
|
179
|
+
if 3
|
|
180
|
+
4
|
|
181
|
+
end
|
|
182
|
+
when 5
|
|
183
|
+
#
|
|
184
|
+
else
|
|
185
|
+
#
|
|
186
|
+
end
|
|
187
|
+
TXT
|
|
188
|
+
|
|
189
|
+
@indent.indent(input).should == output
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
it "should indent correctly with nesting" do
|
|
193
|
+
@indent.indent("[[\n[]]\n]").should == "[[\n []]\n]"
|
|
194
|
+
@indent.reset.indent("[[\n[]]\n]").should == "[[\n []]\n]"
|
|
195
|
+
@indent.reset.indent("[[{\n[] =>\n[]}]\n]").should == "[[{\n [] =>\n []}]\n]"
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
it "should not indent single-line ifs" do
|
|
199
|
+
@indent.indent("foo if bar\n#").should == "foo if bar\n#"
|
|
200
|
+
@indent.reset.indent("foo() if bar\n#").should == "foo() if bar\n#"
|
|
201
|
+
@indent.reset.indent("foo 'hi' if bar\n#").should == "foo 'hi' if bar\n#"
|
|
202
|
+
@indent.reset.indent("foo 1 while bar\n#").should == "foo 1 while bar\n#"
|
|
203
|
+
@indent.reset.indent("super if true\n#").should == "super if true\n#"
|
|
204
|
+
@indent.reset.indent("true if false\n#").should == "true if false\n#"
|
|
205
|
+
@indent.reset.indent("String if false\n#").should == "String if false\n#"
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
it "should indent cunningly disguised ifs" do
|
|
209
|
+
@indent.indent("{1 => if bar\n#").should == "{1 => if bar\n #"
|
|
210
|
+
@indent.reset.indent("foo(if bar\n#").should == "foo(if bar\n #"
|
|
211
|
+
@indent.reset.indent("bar(baz, if bar\n#").should == "bar(baz, if bar\n #"
|
|
212
|
+
@indent.reset.indent("[if bar\n#").should == "[if bar\n #"
|
|
213
|
+
@indent.reset.indent("true; while bar\n#").should == "true; while bar\n #"
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
it "should differentiate single/multi-line unless" do
|
|
217
|
+
@indent.indent("foo unless bar\nunless foo\nbar\nend").should == "foo unless bar\nunless foo\n bar\nend"
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
it "should not indent single/multi-line until" do
|
|
221
|
+
@indent.indent("%w{baz} until bar\nuntil foo\nbar\nend").should == "%w{baz} until bar\nuntil foo\n bar\nend"
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
it "should indent begin rescue end" do
|
|
225
|
+
input = <<INPUT.strip
|
|
226
|
+
begin
|
|
227
|
+
doo :something => :wrong
|
|
228
|
+
rescue => e
|
|
229
|
+
doit :right
|
|
230
|
+
end
|
|
231
|
+
INPUT
|
|
232
|
+
output = <<OUTPUT.strip
|
|
233
|
+
begin
|
|
234
|
+
doo :something => :wrong
|
|
235
|
+
rescue => e
|
|
236
|
+
doit :right
|
|
237
|
+
end
|
|
238
|
+
OUTPUT
|
|
239
|
+
|
|
240
|
+
@indent.indent(input).should == output
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
it "should not indent inside strings" do
|
|
244
|
+
@indent.indent(%(def a\n"foo\nbar"\n end)).should == %(def a\n "foo\nbar"\nend)
|
|
245
|
+
@indent.indent(%(def a\nputs %w(foo\nbar), 'foo\nbar'\n end)).should == %(def a\n puts %w(foo\nbar), 'foo\nbar'\nend)
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
it "should not indent inside HEREDOCs" do
|
|
249
|
+
@indent.indent(%(def a\nputs <<FOO\n bar\nFOO\nbaz\nend)).should == %(def a\n puts <<FOO\n bar\nFOO\n baz\nend)
|
|
250
|
+
@indent.indent(%(def a\nputs <<-'^^'\n bar\n\t^^\nbaz\nend)).should == %(def a\n puts <<-'^^'\n bar\n\t^^\n baz\nend)
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
it "should not indent nested HEREDOCs" do
|
|
254
|
+
input = <<INPUT.strip
|
|
255
|
+
def a
|
|
256
|
+
puts <<FOO, <<-BAR, "baz", <<-':p'
|
|
257
|
+
foo
|
|
258
|
+
FOO
|
|
259
|
+
bar
|
|
260
|
+
BAR
|
|
261
|
+
tongue
|
|
262
|
+
:p
|
|
263
|
+
puts :p
|
|
264
|
+
end
|
|
265
|
+
INPUT
|
|
266
|
+
|
|
267
|
+
output = <<OUTPUT.strip
|
|
268
|
+
def a
|
|
269
|
+
puts <<FOO, <<-BAR, "baz", <<-':p'
|
|
270
|
+
foo
|
|
271
|
+
FOO
|
|
272
|
+
bar
|
|
273
|
+
BAR
|
|
274
|
+
tongue
|
|
275
|
+
:p
|
|
276
|
+
puts :p
|
|
277
|
+
end
|
|
278
|
+
OUTPUT
|
|
279
|
+
|
|
280
|
+
@indent.indent(input).should == output
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
describe "nesting" do
|
|
284
|
+
test = File.read("spec/fixtures/example_nesting.rb")
|
|
285
|
+
|
|
286
|
+
test.lines.each_with_index do |line, i|
|
|
287
|
+
result = line.split("#").last.strip
|
|
288
|
+
if result == ""
|
|
289
|
+
it "should fail to parse nesting on line #{i + 1} of example_nesting.rb" do
|
|
290
|
+
lambda {
|
|
291
|
+
Pry::Indent.nesting_at(test, i + 1)
|
|
292
|
+
}.should.raise(Pry::Indent::UnparseableNestingError)
|
|
293
|
+
end
|
|
294
|
+
else
|
|
295
|
+
it "should parse nesting on line #{i + 1} of example_nesting.rb" do
|
|
296
|
+
Pry::Indent.nesting_at(test, i + 1).should == eval(result)
|
|
297
|
+
end
|
|
298
|
+
end
|
|
299
|
+
end
|
|
300
|
+
end
|
|
301
|
+
end
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
require 'helper'
|
|
3
|
+
|
|
4
|
+
describe "Pry#input_stack" do
|
|
5
|
+
before do
|
|
6
|
+
@str_output = StringIO.new
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
it 'should accept :input_stack as a config option' do
|
|
10
|
+
stack = [StringIO.new("test")]
|
|
11
|
+
Pry.new(:input_stack => stack).input_stack.should == stack
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
it 'should use defaults from Pry.config' do
|
|
15
|
+
Pry.config.input_stack = [StringIO.new("exit")]
|
|
16
|
+
Pry.new.input_stack.should == Pry.config.input_stack
|
|
17
|
+
Pry.config.input_stack = []
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
it 'should read from all input objects on stack and exit session (usingn repl)' do
|
|
21
|
+
stack = [b = StringIO.new(":cloister\nexit\n"), c = StringIO.new(":baron\n")]
|
|
22
|
+
instance = Pry.new(:input => StringIO.new(":alex\n"),
|
|
23
|
+
:output => @str_output,
|
|
24
|
+
:input_stack => stack)
|
|
25
|
+
|
|
26
|
+
instance.repl
|
|
27
|
+
@str_output.string.should =~ /:alex/
|
|
28
|
+
@str_output.string.should =~ /:baron/
|
|
29
|
+
@str_output.string.should =~ /:cloister/
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
it 'input objects should be popped off stack as they are used up' do
|
|
33
|
+
stack = [StringIO.new(":cloister\n"), StringIO.new(":baron\n")]
|
|
34
|
+
instance = Pry.new(:input => StringIO.new(":alex\n"),
|
|
35
|
+
:output => @str_output,
|
|
36
|
+
:input_stack => stack)
|
|
37
|
+
|
|
38
|
+
stack.size.should == 2
|
|
39
|
+
|
|
40
|
+
instance.rep
|
|
41
|
+
@str_output.string.should =~ /:alex/
|
|
42
|
+
instance.rep
|
|
43
|
+
@str_output.string.should =~ /:baron/
|
|
44
|
+
stack.size.should == 1
|
|
45
|
+
instance.rep
|
|
46
|
+
@str_output.string.should =~ /:cloister/
|
|
47
|
+
stack.size.should == 0
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
it 'should revert to Pry.config.input when it runs out of input objects in input_stack' do
|
|
51
|
+
redirect_pry_io(StringIO.new(":rimbaud\nexit\n"), StringIO.new) do
|
|
52
|
+
stack = [StringIO.new(":cloister\n"), StringIO.new(":baron\n")]
|
|
53
|
+
instance = Pry.new(:input => StringIO.new(":alex\n"),
|
|
54
|
+
:output => @str_output,
|
|
55
|
+
:input_stack => stack)
|
|
56
|
+
|
|
57
|
+
instance.repl
|
|
58
|
+
@str_output.string.should =~ /:alex/
|
|
59
|
+
@str_output.string.should =~ /:baron/
|
|
60
|
+
@str_output.string.should =~ /:cloister/
|
|
61
|
+
@str_output.string.should =~ /:rimbaud/
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
it 'should display error and throw(:breakout) if at end of input after using up input_stack objects' do
|
|
66
|
+
catch(:breakout) do
|
|
67
|
+
redirect_pry_io(StringIO.new(":rimbaud\n"), @str_output) do
|
|
68
|
+
Pry.new(:input_stack => [StringIO.new(":a\n"), StringIO.new(":b\n")]).repl
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
@str_output.string.should =~ /Error: Pry ran out of things to read/
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
if "".respond_to?(:encoding)
|
|
75
|
+
after do
|
|
76
|
+
Pry.line_buffer = [""]
|
|
77
|
+
Pry.current_line = 1
|
|
78
|
+
end
|
|
79
|
+
it "should pass strings to Pry in the right encoding" do
|
|
80
|
+
input1 = "'f。。'.encoding.name" # utf-8, see coding declaration
|
|
81
|
+
input2 = input1.encode('Shift_JIS')
|
|
82
|
+
|
|
83
|
+
mock_pry(input1, input2).should == %{=> "UTF-8"\n=> "Shift_JIS"\n\n}
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
it "should be able to use unicode regexes on a UTF-8 terminal" do
|
|
87
|
+
mock_pry('":-Þ" =~ /þ/i').should == %{=> 2\n\n}
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
require 'helper'
|
|
2
|
+
require 'set'
|
|
3
|
+
|
|
4
|
+
describe Pry::Method do
|
|
5
|
+
it "should use String names for compatibility" do
|
|
6
|
+
klass = Class.new { def hello; end }
|
|
7
|
+
Pry::Method.new(klass.instance_method(:hello)).name.should == "hello"
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
describe ".from_str" do
|
|
11
|
+
it 'should look up instance methods if no methods available and no options provided' do
|
|
12
|
+
klass = Class.new { def hello; end }
|
|
13
|
+
meth = Pry::Method.from_str(:hello, Pry.binding_for(klass))
|
|
14
|
+
meth.should == klass.instance_method(:hello)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
it 'should look up methods if no instance methods available and no options provided' do
|
|
18
|
+
klass = Class.new { def self.hello; end }
|
|
19
|
+
meth = Pry::Method.from_str(:hello, Pry.binding_for(klass))
|
|
20
|
+
meth.should == klass.method(:hello)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
it 'should look up instance methods first even if methods available and no options provided' do
|
|
24
|
+
klass = Class.new { def hello; end; def self.hello; end }
|
|
25
|
+
meth = Pry::Method.from_str(:hello, Pry.binding_for(klass))
|
|
26
|
+
meth.should == klass.instance_method(:hello)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
it 'should look up instance methods if "instance-methods" option provided' do
|
|
30
|
+
klass = Class.new { def hello; end; def self.hello; end }
|
|
31
|
+
meth = Pry::Method.from_str(:hello, Pry.binding_for(klass), {"instance-methods" => true})
|
|
32
|
+
meth.should == klass.instance_method(:hello)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
it 'should look up methods if :methods option provided' do
|
|
36
|
+
klass = Class.new { def hello; end; def self.hello; end }
|
|
37
|
+
meth = Pry::Method.from_str(:hello, Pry.binding_for(klass), {:methods => true})
|
|
38
|
+
meth.should == klass.method(:hello)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
it 'should look up instance methods using the Class#method syntax' do
|
|
42
|
+
klass = Class.new { def hello; end; def self.hello; end }
|
|
43
|
+
meth = Pry::Method.from_str("klass#hello", Pry.binding_for(binding))
|
|
44
|
+
meth.should == klass.instance_method(:hello)
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
it 'should look up methods using the object.method syntax' do
|
|
48
|
+
klass = Class.new { def hello; end; def self.hello; end }
|
|
49
|
+
meth = Pry::Method.from_str("klass.hello", Pry.binding_for(binding))
|
|
50
|
+
meth.should == klass.method(:hello)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
it 'should NOT look up instance methods using the Class#method syntax if no instance methods defined' do
|
|
54
|
+
klass = Class.new { def self.hello; end }
|
|
55
|
+
meth = Pry::Method.from_str("klass#hello", Pry.binding_for(binding))
|
|
56
|
+
meth.should == nil
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
it 'should NOT look up methods using the object.method syntax if no methods defined' do
|
|
60
|
+
klass = Class.new { def hello; end }
|
|
61
|
+
meth = Pry::Method.from_str("klass.hello", Pry.binding_for(binding))
|
|
62
|
+
meth.should == nil
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
it 'should look up methods using klass.new.method syntax' do
|
|
66
|
+
klass = Class.new { def hello; :hello; end }
|
|
67
|
+
meth = Pry::Method.from_str("klass.new.hello", Pry.binding_for(binding))
|
|
68
|
+
meth.name.should == "hello"
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
it 'should look up instance methods using klass.meth#method syntax' do
|
|
72
|
+
klass = Class.new { def self.meth; Class.new; end }
|
|
73
|
+
meth = Pry::Method.from_str("klass.meth#initialize", Pry.binding_for(binding))
|
|
74
|
+
meth.name.should == "initialize"
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
it 'should look up methods using instance::bar syntax' do
|
|
78
|
+
klass = Class.new{ def self.meth; Class.new; end }
|
|
79
|
+
meth = Pry::Method.from_str("klass::meth", Pry.binding_for(binding))
|
|
80
|
+
meth.name.should == "meth"
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
it 'should not raise an exception if receiver does not exist' do
|
|
84
|
+
lambda { Pry::Method.from_str("random_klass.meth", Pry.binding_for(binding)) }.should.not.raise
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
describe '.from_binding' do
|
|
89
|
+
it 'should be able to pick a method out of a binding' do
|
|
90
|
+
Pry::Method.from_binding(Class.new{ def self.foo; binding; end }.foo).name.should == "foo"
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
it 'should NOT find a method from the toplevel binding' do
|
|
94
|
+
Pry::Method.from_binding(TOPLEVEL_BINDING).should == nil
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
it "should find methods that have been undef'd" do
|
|
98
|
+
c = Class.new do
|
|
99
|
+
def self.bar
|
|
100
|
+
class << self; undef bar; end
|
|
101
|
+
binding
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
m = Pry::Method.from_binding(c.bar)
|
|
106
|
+
m.name.should == "bar"
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Our source_location trick doesn't work, due to https://github.com/rubinius/rubinius/issues/953
|
|
110
|
+
unless Pry::Helpers::BaseHelpers.rbx?
|
|
111
|
+
it 'should find the super method correctly' do
|
|
112
|
+
a = Class.new{ def gag33; binding; end; def self.line; __LINE__; end }
|
|
113
|
+
b = Class.new(a){ def gag33; super; end }
|
|
114
|
+
|
|
115
|
+
g = b.new.gag33
|
|
116
|
+
m = Pry::Method.from_binding(g)
|
|
117
|
+
|
|
118
|
+
m.owner.should == a
|
|
119
|
+
m.source_line.should == a.line
|
|
120
|
+
m.name.should == "gag33"
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
it 'should find the right method if a super method exists' do
|
|
125
|
+
a = Class.new{ def gag; binding; end; }
|
|
126
|
+
b = Class.new(a){ def gag; super; binding; end; def self.line; __LINE__; end }
|
|
127
|
+
|
|
128
|
+
m = Pry::Method.from_binding(b.new.gag)
|
|
129
|
+
|
|
130
|
+
m.owner.should == b
|
|
131
|
+
m.source_line.should == b.line
|
|
132
|
+
m.name.should == "gag"
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if defined?(BasicObject) && !Pry::Helpers::BaseHelpers.rbx? # rubinius issue 1921
|
|
136
|
+
it "should find the right method from a BasicObject" do
|
|
137
|
+
a = Class.new(BasicObject) { def gag; ::Kernel.binding; end; def self.line; __LINE__; end }
|
|
138
|
+
|
|
139
|
+
m = Pry::Method.from_binding(a.new.gag)
|
|
140
|
+
m.owner.should == a
|
|
141
|
+
m.source_file.should == __FILE__
|
|
142
|
+
m.source_line.should == a.line
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
it 'should find the right method even if it was renamed and replaced' do
|
|
147
|
+
o = Object.new
|
|
148
|
+
class << o
|
|
149
|
+
def borscht
|
|
150
|
+
"nips"
|
|
151
|
+
binding
|
|
152
|
+
end
|
|
153
|
+
alias paella borscht
|
|
154
|
+
def borscht() paella end
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
m = Pry::Method.from_binding(o.borscht)
|
|
158
|
+
m.source.should == Pry::Method(o.method(:paella)).source
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
describe 'super' do
|
|
163
|
+
it 'should be able to find the super method on a bound method' do
|
|
164
|
+
a = Class.new{ def rar; 4; end }
|
|
165
|
+
b = Class.new(a){ def rar; super; end }
|
|
166
|
+
|
|
167
|
+
obj = b.new
|
|
168
|
+
|
|
169
|
+
zuper = Pry::Method(obj.method(:rar)).super
|
|
170
|
+
zuper.owner.should == a
|
|
171
|
+
zuper.receiver.should == obj
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
it 'should be able to find the super method of an unbound method' do
|
|
175
|
+
a = Class.new{ def rar; 4; end }
|
|
176
|
+
b = Class.new(a){ def rar; super; end }
|
|
177
|
+
|
|
178
|
+
zuper = Pry::Method(b.instance_method(:rar)).super
|
|
179
|
+
zuper.owner.should == a
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
it 'should return nil if no super method exists' do
|
|
183
|
+
a = Class.new{ def rar; super; end }
|
|
184
|
+
|
|
185
|
+
Pry::Method(a.instance_method(:rar)).super.should == nil
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
it 'should be able to find super methods defined on modules' do
|
|
189
|
+
m = Module.new{ def rar; 4; end }
|
|
190
|
+
a = Class.new{ def rar; super; end; include m }
|
|
191
|
+
|
|
192
|
+
zuper = Pry::Method(a.new.method(:rar)).super
|
|
193
|
+
zuper.owner.should == m
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
it 'should be able to find super methods defined on super-classes when there are modules in the way' do
|
|
197
|
+
a = Class.new{ def rar; 4; end }
|
|
198
|
+
m = Module.new{ def mooo; 4; end }
|
|
199
|
+
b = Class.new(a){ def rar; super; end; include m }
|
|
200
|
+
|
|
201
|
+
zuper = Pry::Method(b.new.method(:rar)).super
|
|
202
|
+
zuper.owner.should == a
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
it 'should be able to jump up multiple levels of bound method, even through modules' do
|
|
206
|
+
a = Class.new{ def rar; 4; end }
|
|
207
|
+
m = Module.new{ def rar; 4; end }
|
|
208
|
+
b = Class.new(a){ def rar; super; end; include m }
|
|
209
|
+
|
|
210
|
+
zuper = Pry::Method(b.new.method(:rar)).super
|
|
211
|
+
zuper.owner.should == m
|
|
212
|
+
zuper.super.owner.should == a
|
|
213
|
+
end
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
describe 'all_from_class' do
|
|
217
|
+
def should_find_method(name)
|
|
218
|
+
Pry::Method.all_from_class(@class).map(&:name).should.include(name)
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
it 'should be able to find public instance methods defined in a class' do
|
|
222
|
+
@class = Class.new{ def meth; 1; end }
|
|
223
|
+
should_find_method('meth')
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
it 'should be able to find private and protected instance methods defined in a class' do
|
|
227
|
+
@class = Class.new { protected; def prot; 1; end; private; def priv; 1; end }
|
|
228
|
+
should_find_method('priv')
|
|
229
|
+
should_find_method('prot')
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
it 'should find methods all the way up to Kernel' do
|
|
233
|
+
@class = Class.new
|
|
234
|
+
should_find_method('exit!')
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
it 'should be able to find instance methods defined in a super-class' do
|
|
238
|
+
@class = Class.new(Class.new{ def meth; 1; end }) {}
|
|
239
|
+
should_find_method('meth')
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
it 'should be able to find instance methods defined in modules included into this class' do
|
|
243
|
+
@class = Class.new{ include Module.new{ def meth; 1; end; } }
|
|
244
|
+
should_find_method('meth')
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
it 'should be able to find instance methods defined in modules included into super-classes' do
|
|
248
|
+
@class = Class.new(Class.new{ include Module.new{ def meth; 1; end; } })
|
|
249
|
+
should_find_method('meth')
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
it 'should attribute overridden methods to the sub-class' do
|
|
253
|
+
@class = Class.new(Class.new{ include Module.new{ def meth; 1; end; } }) { def meth; 2; end }
|
|
254
|
+
Pry::Method.all_from_class(@class).detect{ |x| x.name == 'meth' }.owner.should == @class
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
it 'should be able to find methods defined on a singleton class' do
|
|
258
|
+
@class = (class << Object.new; def meth; 1; end; self; end)
|
|
259
|
+
should_find_method('meth')
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
it 'should be able to find methods on super-classes when given a singleton class' do
|
|
263
|
+
@class = (class << Class.new{ def meth; 1; end}.new; self; end)
|
|
264
|
+
should_find_method('meth')
|
|
265
|
+
end
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
describe 'all_from_obj' do
|
|
269
|
+
describe 'on normal objects' do
|
|
270
|
+
def should_find_method(name)
|
|
271
|
+
Pry::Method.all_from_obj(@obj).map(&:name).should.include(name)
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
it "should find methods defined in the object's class" do
|
|
275
|
+
@obj = Class.new{ def meth; 1; end }.new
|
|
276
|
+
should_find_method('meth')
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
it "should find methods defined in modules included into the object's class" do
|
|
280
|
+
@obj = Class.new{ include Module.new{ def meth; 1; end } }.new
|
|
281
|
+
should_find_method('meth')
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
it "should find methods defined in the object's singleton class" do
|
|
285
|
+
@obj = Object.new
|
|
286
|
+
class << @obj; def meth; 1; end; end
|
|
287
|
+
should_find_method('meth')
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
it "should find methods in modules included into the object's singleton class" do
|
|
291
|
+
@obj = Object.new
|
|
292
|
+
@obj.extend Module.new{ def meth; 1; end }
|
|
293
|
+
should_find_method('meth')
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
it "should find methods all the way up to Kernel" do
|
|
297
|
+
@obj = Object.new
|
|
298
|
+
should_find_method('exit!')
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
it "should not find methods defined on the classes singleton class" do
|
|
302
|
+
@obj = Class.new{ class << self; def meth; 1; end; end }.new
|
|
303
|
+
Pry::Method.all_from_obj(@obj).map(&:name).should.not.include('meth')
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
it "should work in the face of an overridden send" do
|
|
307
|
+
@obj = Class.new{ def meth; 1; end; def send; raise EOFError; end }.new
|
|
308
|
+
should_find_method('meth')
|
|
309
|
+
end
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
describe 'on classes' do
|
|
313
|
+
def should_find_method(name)
|
|
314
|
+
Pry::Method.all_from_obj(@class).map(&:name).should.include(name)
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
it "should find methods defined in the class' singleton class" do
|
|
318
|
+
@class = Class.new{ class << self; def meth; 1; end; end }
|
|
319
|
+
should_find_method('meth')
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
it "should find methods defined on modules extended into the class" do
|
|
323
|
+
@class = Class.new{ extend Module.new{ def meth; 1; end; } }
|
|
324
|
+
should_find_method('meth')
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
it "should find methods defined on the singleton class of super-classes" do
|
|
328
|
+
@class = Class.new(Class.new{ class << self; def meth; 1; end; end })
|
|
329
|
+
should_find_method('meth')
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
it "should not find methods defined within the class" do
|
|
333
|
+
@class = Class.new{ def meth; 1; end }
|
|
334
|
+
Pry::Method.all_from_obj(@obj).map(&:name).should.not.include('meth')
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
it "should find methods defined on Class" do
|
|
338
|
+
@class = Class.new
|
|
339
|
+
should_find_method('allocate')
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
it "should find methods defined on Kernel" do
|
|
343
|
+
@class = Class.new
|
|
344
|
+
should_find_method('exit!')
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
it "should attribute overridden methods to the sub-class' singleton class" do
|
|
348
|
+
@class = Class.new(Class.new{ class << self; def meth; 1; end; end }) { class << self; def meth; 1; end; end }
|
|
349
|
+
Pry::Method.all_from_obj(@class).detect{ |x| x.name == 'meth' }.owner.should == (class << @class; self; end)
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
it "should attrbute overridden methods to the class not the module" do
|
|
353
|
+
@class = Class.new { class << self; def meth; 1; end; end; extend Module.new{ def meth; 1; end; } }
|
|
354
|
+
Pry::Method.all_from_obj(@class).detect{ |x| x.name == 'meth' }.owner.should == (class << @class; self; end)
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
it "should attribute overridden methods to the relevant singleton class in preference to Class" do
|
|
358
|
+
@class = Class.new { class << self; def allocate; 1; end; end }
|
|
359
|
+
Pry::Method.all_from_obj(@class).detect{ |x| x.name == 'allocate' }.owner.should == (class << @class; self; end)
|
|
360
|
+
end
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
describe 'method resolution order' do
|
|
364
|
+
module LS
|
|
365
|
+
class Top; end
|
|
366
|
+
|
|
367
|
+
class Next < Top; end
|
|
368
|
+
|
|
369
|
+
module M; end
|
|
370
|
+
module N; include M; end
|
|
371
|
+
module O; include M; end
|
|
372
|
+
module P; end
|
|
373
|
+
|
|
374
|
+
class Low < Next; include N; include P; end
|
|
375
|
+
class Lower < Low; extend N; end
|
|
376
|
+
class Bottom < Lower; extend O; end
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
def singleton_class(obj); class << obj; self; end; end
|
|
380
|
+
|
|
381
|
+
it "should look at a class and then its superclass" do
|
|
382
|
+
Pry::Method.instance_resolution_order(LS::Next).should == [LS::Next] + Pry::Method.instance_resolution_order(LS::Top)
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
it "should include the included modules between a class and its superclass" do
|
|
386
|
+
Pry::Method.instance_resolution_order(LS::Low).should == [LS::Low, LS::P, LS::N, LS::M] + Pry::Method.instance_resolution_order(LS::Next)
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
it "should not include modules extended into the class" do
|
|
390
|
+
Pry::Method.instance_resolution_order(LS::Bottom).should == [LS::Bottom] + Pry::Method.instance_resolution_order(LS::Lower)
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
it "should include included modules for Modules" do
|
|
394
|
+
Pry::Method.instance_resolution_order(LS::O).should == [LS::O, LS::M]
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
it "should include the singleton class of objects" do
|
|
398
|
+
obj = LS::Low.new
|
|
399
|
+
Pry::Method.resolution_order(obj).should == [singleton_class(obj)] + Pry::Method.instance_resolution_order(LS::Low)
|
|
400
|
+
end
|
|
401
|
+
|
|
402
|
+
it "should not include singleton classes of numbers" do
|
|
403
|
+
Pry::Method.resolution_order(4).should == Pry::Method.instance_resolution_order(Fixnum)
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
it "should include singleton classes for classes" do
|
|
407
|
+
Pry::Method.resolution_order(LS::Low).should == [singleton_class(LS::Low)] + Pry::Method.resolution_order(LS::Next)
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
it "should include modules included into singleton classes" do
|
|
411
|
+
Pry::Method.resolution_order(LS::Lower).should == [singleton_class(LS::Lower), LS::N, LS::M] + Pry::Method.resolution_order(LS::Low)
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
it "should include modules at most once" do
|
|
415
|
+
Pry::Method.resolution_order(LS::Bottom).count(LS::M).should == 1
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
it "should include modules at the point which they would be reached" do
|
|
419
|
+
Pry::Method.resolution_order(LS::Bottom).should == [singleton_class(LS::Bottom), LS::O] + (Pry::Method.resolution_order(LS::Lower))
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
it "should include the Pry::Method.instance_resolution_order of Class after the singleton classes" do
|
|
423
|
+
Pry::Method.resolution_order(LS::Top).should ==
|
|
424
|
+
[singleton_class(LS::Top), singleton_class(Object), (defined? BasicObject) && singleton_class(BasicObject)].compact +
|
|
425
|
+
Pry::Method.instance_resolution_order(Class)
|
|
426
|
+
end
|
|
427
|
+
end
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
describe 'method_name_from_first_line' do
|
|
431
|
+
it 'should work in all simple cases' do
|
|
432
|
+
meth = Pry::Method.new(nil)
|
|
433
|
+
meth.send(:method_name_from_first_line, "def x").should == "x"
|
|
434
|
+
meth.send(:method_name_from_first_line, "def self.x").should == "x"
|
|
435
|
+
meth.send(:method_name_from_first_line, "def ClassName.x").should == "x"
|
|
436
|
+
meth.send(:method_name_from_first_line, "def obj_name.x").should == "x"
|
|
437
|
+
end
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
describe 'method aliases' do
|
|
441
|
+
before do
|
|
442
|
+
@class = Class.new {
|
|
443
|
+
def eat
|
|
444
|
+
end
|
|
445
|
+
|
|
446
|
+
alias fress eat
|
|
447
|
+
alias_method :omnomnom, :fress
|
|
448
|
+
|
|
449
|
+
def eruct
|
|
450
|
+
end
|
|
451
|
+
}
|
|
452
|
+
end
|
|
453
|
+
|
|
454
|
+
it 'should be able to find method aliases' do
|
|
455
|
+
meth = Pry::Method(@class.new.method(:eat))
|
|
456
|
+
aliases = Set.new(meth.aliases)
|
|
457
|
+
|
|
458
|
+
aliases.should == Set.new(["fress", "omnomnom"])
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
it 'should return an empty Array if cannot find aliases' do
|
|
462
|
+
meth = Pry::Method(@class.new.method(:eruct))
|
|
463
|
+
meth.aliases.should.be.empty
|
|
464
|
+
end
|
|
465
|
+
|
|
466
|
+
it 'should not include the own name in the list of aliases' do
|
|
467
|
+
meth = Pry::Method(@class.new.method(:eat))
|
|
468
|
+
meth.aliases.should.not.include "eat"
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
unless Pry::Helpers::BaseHelpers.mri_18?
|
|
472
|
+
# Ruby 1.8 doesn't support this feature.
|
|
473
|
+
it 'should be able to find aliases for methods implemented in C' do
|
|
474
|
+
meth = Pry::Method(Hash.new.method(:key?))
|
|
475
|
+
aliases = Set.new(meth.aliases)
|
|
476
|
+
|
|
477
|
+
aliases.should == Set.new(["include?", "member?", "has_key?"])
|
|
478
|
+
end
|
|
479
|
+
end
|
|
480
|
+
|
|
481
|
+
end
|
|
482
|
+
end
|