vim-jar 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1042) hide show
  1. data/.gitignore +4 -0
  2. data/.rspec +2 -0
  3. data/.rvmrc +1 -0
  4. data/Gemfile +4 -0
  5. data/Gemfile.lock +44 -0
  6. data/README.md +25 -0
  7. data/Rakefile +2 -0
  8. data/TODO.otl +28 -0
  9. data/bin/vim-jar +62 -0
  10. data/bundler/ruby/1.8/bin/autospec +19 -0
  11. data/bundler/ruby/1.8/bin/autotest +21 -0
  12. data/bundler/ruby/1.8/bin/htmldiff +19 -0
  13. data/bundler/ruby/1.8/bin/ldiff +19 -0
  14. data/bundler/ruby/1.8/bin/multigem +21 -0
  15. data/bundler/ruby/1.8/bin/multiruby +21 -0
  16. data/bundler/ruby/1.8/bin/multiruby_setup +21 -0
  17. data/bundler/ruby/1.8/bin/rdebug +19 -0
  18. data/bundler/ruby/1.8/bin/rspec +19 -0
  19. data/bundler/ruby/1.8/bin/unit_diff +21 -0
  20. data/bundler/ruby/1.8/bin/vim-jar +19 -0
  21. data/bundler/ruby/1.8/bin/zentest +21 -0
  22. data/bundler/ruby/1.8/gems/RubyInline-3.8.6/History.txt +392 -0
  23. data/bundler/ruby/1.8/gems/RubyInline-3.8.6/Manifest.txt +12 -0
  24. data/bundler/ruby/1.8/gems/RubyInline-3.8.6/README.txt +139 -0
  25. data/bundler/ruby/1.8/gems/RubyInline-3.8.6/Rakefile +38 -0
  26. data/bundler/ruby/1.8/gems/RubyInline-3.8.6/demo/fastmath.rb +27 -0
  27. data/bundler/ruby/1.8/gems/RubyInline-3.8.6/demo/hello.rb +13 -0
  28. data/bundler/ruby/1.8/gems/RubyInline-3.8.6/example.rb +86 -0
  29. data/bundler/ruby/1.8/gems/RubyInline-3.8.6/example2.rb +34 -0
  30. data/bundler/ruby/1.8/gems/RubyInline-3.8.6/lib/inline.rb +878 -0
  31. data/bundler/ruby/1.8/gems/RubyInline-3.8.6/test/test_inline.rb +1051 -0
  32. data/bundler/ruby/1.8/gems/RubyInline-3.8.6/tutorial/example1.rb +63 -0
  33. data/bundler/ruby/1.8/gems/RubyInline-3.8.6/tutorial/example2.rb +96 -0
  34. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/.autotest +21 -0
  35. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/History.txt +709 -0
  36. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/Manifest.txt +35 -0
  37. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/README.txt +109 -0
  38. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/Rakefile +59 -0
  39. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/articles/Article.css +721 -0
  40. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/articles/getting_started_with_autotest.html +533 -0
  41. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/articles/how_to_use_zentest.txt +393 -0
  42. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/bin/autotest +55 -0
  43. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/bin/multigem +4 -0
  44. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/bin/multiruby +76 -0
  45. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/bin/multiruby_setup +74 -0
  46. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/bin/unit_diff +37 -0
  47. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/bin/zentest +28 -0
  48. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/example.txt +42 -0
  49. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/example1.rb +7 -0
  50. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/example2.rb +15 -0
  51. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/example_dot_autotest.rb +12 -0
  52. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/lib/autotest/autoupdate.rb +26 -0
  53. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/lib/autotest/once.rb +9 -0
  54. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/lib/autotest/rcov.rb +27 -0
  55. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/lib/autotest/restart.rb +11 -0
  56. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/lib/autotest/timestamp.rb +9 -0
  57. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/lib/autotest.rb +658 -0
  58. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/lib/focus.rb +21 -0
  59. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/lib/functional_test_matrix.rb +92 -0
  60. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/lib/multiruby.rb +412 -0
  61. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/lib/unit_diff.rb +274 -0
  62. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/lib/zentest.rb +562 -0
  63. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/lib/zentest_mapping.rb +117 -0
  64. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/test/test_autotest.rb +477 -0
  65. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/test/test_focus.rb +35 -0
  66. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/test/test_unit_diff.rb +343 -0
  67. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/test/test_zentest.rb +566 -0
  68. data/bundler/ruby/1.8/gems/ZenTest-4.4.0/test/test_zentest_mapping.rb +242 -0
  69. data/bundler/ruby/1.8/gems/columnize-0.3.2/AUTHORS +1 -0
  70. data/bundler/ruby/1.8/gems/columnize-0.3.2/COPYING +340 -0
  71. data/bundler/ruby/1.8/gems/columnize-0.3.2/ChangeLog +101 -0
  72. data/bundler/ruby/1.8/gems/columnize-0.3.2/Makefile +8 -0
  73. data/bundler/ruby/1.8/gems/columnize-0.3.2/NEWS +32 -0
  74. data/bundler/ruby/1.8/gems/columnize-0.3.2/README +39 -0
  75. data/bundler/ruby/1.8/gems/columnize-0.3.2/Rakefile +84 -0
  76. data/bundler/ruby/1.8/gems/columnize-0.3.2/lib/Makefile +7 -0
  77. data/bundler/ruby/1.8/gems/columnize-0.3.2/lib/columnize.rb +247 -0
  78. data/bundler/ruby/1.8/gems/columnize-0.3.2/lib/version.rb +3 -0
  79. data/bundler/ruby/1.8/gems/columnize-0.3.2/test/test-columnize.rb +81 -0
  80. data/bundler/ruby/1.8/gems/curb-0.7.8/.require_paths +3 -0
  81. data/bundler/ruby/1.8/gems/curb-0.7.8/LICENSE +51 -0
  82. data/bundler/ruby/1.8/gems/curb-0.7.8/README +158 -0
  83. data/bundler/ruby/1.8/gems/curb-0.7.8/Rakefile +316 -0
  84. data/bundler/ruby/1.8/gems/curb-0.7.8/doc.rb +42 -0
  85. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/Makefile +157 -0
  86. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/conftest.dSYM/Contents/Info.plist +20 -0
  87. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/conftest.dSYM/Contents/Resources/DWARF/conftest +0 -0
  88. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/curb.c +373 -0
  89. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/curb.h +52 -0
  90. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/curb.o +0 -0
  91. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/curb_config.h +64 -0
  92. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/curb_core.bundle +0 -0
  93. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/curb_easy.c +3379 -0
  94. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/curb_easy.h +84 -0
  95. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/curb_easy.o +0 -0
  96. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/curb_errors.c +637 -0
  97. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/curb_errors.h +129 -0
  98. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/curb_errors.o +0 -0
  99. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/curb_macros.h +155 -0
  100. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/curb_multi.c +519 -0
  101. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/curb_multi.h +26 -0
  102. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/curb_multi.o +0 -0
  103. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/curb_postfield.c +522 -0
  104. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/curb_postfield.h +40 -0
  105. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/curb_postfield.o +0 -0
  106. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/curb_upload.c +80 -0
  107. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/curb_upload.h +30 -0
  108. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/curb_upload.o +0 -0
  109. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/extconf.rb +177 -0
  110. data/bundler/ruby/1.8/gems/curb-0.7.8/ext/mkmf.log +1088 -0
  111. data/bundler/ruby/1.8/gems/curb-0.7.8/lib/curb.rb +255 -0
  112. data/bundler/ruby/1.8/gems/curb-0.7.8/lib/curb_core.bundle +0 -0
  113. data/bundler/ruby/1.8/gems/curb-0.7.8/lib/curl.rb +2 -0
  114. data/bundler/ruby/1.8/gems/curb-0.7.8/tests/alltests.rb +3 -0
  115. data/bundler/ruby/1.8/gems/curb-0.7.8/tests/bug_curb_easy_blocks_ruby_threads.rb +52 -0
  116. data/bundler/ruby/1.8/gems/curb-0.7.8/tests/bug_curb_easy_post_with_string_no_content_length_header.rb +83 -0
  117. data/bundler/ruby/1.8/gems/curb-0.7.8/tests/bug_instance_post_differs_from_class_post.rb +53 -0
  118. data/bundler/ruby/1.8/gems/curb-0.7.8/tests/bug_multi_segfault.rb +14 -0
  119. data/bundler/ruby/1.8/gems/curb-0.7.8/tests/bug_postfields_crash.rb +26 -0
  120. data/bundler/ruby/1.8/gems/curb-0.7.8/tests/bug_postfields_crash2.rb +57 -0
  121. data/bundler/ruby/1.8/gems/curb-0.7.8/tests/bug_require_last_or_segfault.rb +40 -0
  122. data/bundler/ruby/1.8/gems/curb-0.7.8/tests/bugtests.rb +9 -0
  123. data/bundler/ruby/1.8/gems/curb-0.7.8/tests/helper.rb +182 -0
  124. data/bundler/ruby/1.8/gems/curb-0.7.8/tests/mem_check.rb +65 -0
  125. data/bundler/ruby/1.8/gems/curb-0.7.8/tests/require_last_or_segfault_script.rb +36 -0
  126. data/bundler/ruby/1.8/gems/curb-0.7.8/tests/tc_curl_download.rb +32 -0
  127. data/bundler/ruby/1.8/gems/curb-0.7.8/tests/tc_curl_easy.rb +830 -0
  128. data/bundler/ruby/1.8/gems/curb-0.7.8/tests/tc_curl_multi.rb +461 -0
  129. data/bundler/ruby/1.8/gems/curb-0.7.8/tests/tc_curl_postfield.rb +143 -0
  130. data/bundler/ruby/1.8/gems/curb-0.7.8/tests/unittests.rb +2 -0
  131. data/bundler/ruby/1.8/gems/curl-multi-0.2/History.txt +7 -0
  132. data/bundler/ruby/1.8/gems/curl-multi-0.2/License.txt +676 -0
  133. data/bundler/ruby/1.8/gems/curl-multi-0.2/Manifest.txt +25 -0
  134. data/bundler/ruby/1.8/gems/curl-multi-0.2/README.txt +7 -0
  135. data/bundler/ruby/1.8/gems/curl-multi-0.2/Rakefile +4 -0
  136. data/bundler/ruby/1.8/gems/curl-multi-0.2/config/hoe.rb +71 -0
  137. data/bundler/ruby/1.8/gems/curl-multi-0.2/config/requirements.rb +17 -0
  138. data/bundler/ruby/1.8/gems/curl-multi-0.2/lib/curl-multi/version.rb +23 -0
  139. data/bundler/ruby/1.8/gems/curl-multi-0.2/lib/curl-multi.rb +374 -0
  140. data/bundler/ruby/1.8/gems/curl-multi-0.2/lib/uri-extensions.rb +34 -0
  141. data/bundler/ruby/1.8/gems/curl-multi-0.2/log/debug.log +0 -0
  142. data/bundler/ruby/1.8/gems/curl-multi-0.2/script/destroy +14 -0
  143. data/bundler/ruby/1.8/gems/curl-multi-0.2/script/generate +14 -0
  144. data/bundler/ruby/1.8/gems/curl-multi-0.2/script/txt2html +74 -0
  145. data/bundler/ruby/1.8/gems/curl-multi-0.2/setup.rb +1585 -0
  146. data/bundler/ruby/1.8/gems/curl-multi-0.2/tasks/deployment.rake +34 -0
  147. data/bundler/ruby/1.8/gems/curl-multi-0.2/tasks/environment.rake +7 -0
  148. data/bundler/ruby/1.8/gems/curl-multi-0.2/tasks/website.rake +17 -0
  149. data/bundler/ruby/1.8/gems/curl-multi-0.2/test/test_curl-multi.rb +34 -0
  150. data/bundler/ruby/1.8/gems/curl-multi-0.2/test/test_helper.rb +2 -0
  151. data/bundler/ruby/1.8/gems/curl-multi-0.2/website/index.html +129 -0
  152. data/bundler/ruby/1.8/gems/curl-multi-0.2/website/index.txt +65 -0
  153. data/bundler/ruby/1.8/gems/curl-multi-0.2/website/javascripts/rounded_corners_lite.inc.js +285 -0
  154. data/bundler/ruby/1.8/gems/curl-multi-0.2/website/stylesheets/screen.css +138 -0
  155. data/bundler/ruby/1.8/gems/curl-multi-0.2/website/template.rhtml +48 -0
  156. data/bundler/ruby/1.8/gems/diff-lcs-1.1.2/ChangeLog +46 -0
  157. data/bundler/ruby/1.8/gems/diff-lcs-1.1.2/Install +6 -0
  158. data/bundler/ruby/1.8/gems/diff-lcs-1.1.2/README +76 -0
  159. data/bundler/ruby/1.8/gems/diff-lcs-1.1.2/Rakefile +116 -0
  160. data/bundler/ruby/1.8/gems/diff-lcs-1.1.2/bin/htmldiff +112 -0
  161. data/bundler/ruby/1.8/gems/diff-lcs-1.1.2/bin/ldiff +45 -0
  162. data/bundler/ruby/1.8/gems/diff-lcs-1.1.2/lib/diff/lcs/array.rb +21 -0
  163. data/bundler/ruby/1.8/gems/diff-lcs-1.1.2/lib/diff/lcs/block.rb +51 -0
  164. data/bundler/ruby/1.8/gems/diff-lcs-1.1.2/lib/diff/lcs/callbacks.rb +322 -0
  165. data/bundler/ruby/1.8/gems/diff-lcs-1.1.2/lib/diff/lcs/change.rb +169 -0
  166. data/bundler/ruby/1.8/gems/diff-lcs-1.1.2/lib/diff/lcs/hunk.rb +257 -0
  167. data/bundler/ruby/1.8/gems/diff-lcs-1.1.2/lib/diff/lcs/ldiff.rb +226 -0
  168. data/bundler/ruby/1.8/gems/diff-lcs-1.1.2/lib/diff/lcs/string.rb +19 -0
  169. data/bundler/ruby/1.8/gems/diff-lcs-1.1.2/lib/diff/lcs.rb +1105 -0
  170. data/bundler/ruby/1.8/gems/diff-lcs-1.1.2/tests/00test.rb +626 -0
  171. data/bundler/ruby/1.8/gems/fakefs-0.2.1/.gitignore +1 -0
  172. data/bundler/ruby/1.8/gems/fakefs-0.2.1/CONTRIBUTORS +12 -0
  173. data/bundler/ruby/1.8/gems/fakefs-0.2.1/LICENSE +20 -0
  174. data/bundler/ruby/1.8/gems/fakefs-0.2.1/README.markdown +101 -0
  175. data/bundler/ruby/1.8/gems/fakefs-0.2.1/Rakefile +47 -0
  176. data/bundler/ruby/1.8/gems/fakefs-0.2.1/lib/fakefs/base.rb +38 -0
  177. data/bundler/ruby/1.8/gems/fakefs-0.2.1/lib/fakefs/dir.rb +114 -0
  178. data/bundler/ruby/1.8/gems/fakefs-0.2.1/lib/fakefs/fake/dir.rb +45 -0
  179. data/bundler/ruby/1.8/gems/fakefs-0.2.1/lib/fakefs/fake/file.rb +79 -0
  180. data/bundler/ruby/1.8/gems/fakefs-0.2.1/lib/fakefs/fake/symlink.rb +32 -0
  181. data/bundler/ruby/1.8/gems/fakefs-0.2.1/lib/fakefs/file.rb +282 -0
  182. data/bundler/ruby/1.8/gems/fakefs-0.2.1/lib/fakefs/file_system.rb +136 -0
  183. data/bundler/ruby/1.8/gems/fakefs-0.2.1/lib/fakefs/fileutils.rb +129 -0
  184. data/bundler/ruby/1.8/gems/fakefs-0.2.1/lib/fakefs/safe.rb +11 -0
  185. data/bundler/ruby/1.8/gems/fakefs-0.2.1/lib/fakefs/spec_helpers.rb +46 -0
  186. data/bundler/ruby/1.8/gems/fakefs-0.2.1/lib/fakefs/version.rb +9 -0
  187. data/bundler/ruby/1.8/gems/fakefs-0.2.1/lib/fakefs.rb +3 -0
  188. data/bundler/ruby/1.8/gems/fakefs-0.2.1/spec/fakefs/spec_helpers_spec.rb +57 -0
  189. data/bundler/ruby/1.8/gems/fakefs-0.2.1/spec/spec.opts +1 -0
  190. data/bundler/ruby/1.8/gems/fakefs-0.2.1/spec/spec_helper.rb +3 -0
  191. data/bundler/ruby/1.8/gems/fakefs-0.2.1/test/fake/file_test.rb +88 -0
  192. data/bundler/ruby/1.8/gems/fakefs-0.2.1/test/fake/symlink_test.rb +12 -0
  193. data/bundler/ruby/1.8/gems/fakefs-0.2.1/test/fakefs_test.rb +1251 -0
  194. data/bundler/ruby/1.8/gems/fakefs-0.2.1/test/file/stat_test.rb +70 -0
  195. data/bundler/ruby/1.8/gems/fakefs-0.2.1/test/safe_test.rb +42 -0
  196. data/bundler/ruby/1.8/gems/fakefs-0.2.1/test/verify.rb +27 -0
  197. data/bundler/ruby/1.8/gems/fuubar-0.0.2/.gitignore +3 -0
  198. data/bundler/ruby/1.8/gems/fuubar-0.0.2/.rspec +2 -0
  199. data/bundler/ruby/1.8/gems/fuubar-0.0.2/Gemfile +4 -0
  200. data/bundler/ruby/1.8/gems/fuubar-0.0.2/Gemfile.lock +31 -0
  201. data/bundler/ruby/1.8/gems/fuubar-0.0.2/LICENSE +3 -0
  202. data/bundler/ruby/1.8/gems/fuubar-0.0.2/README.textile +18 -0
  203. data/bundler/ruby/1.8/gems/fuubar-0.0.2/fuubar.gemspec +23 -0
  204. data/bundler/ruby/1.8/gems/fuubar-0.0.2/lib/fuubar.rb +69 -0
  205. data/bundler/ruby/1.8/gems/fuubar-0.0.2/spec/fuubar_spec.rb +150 -0
  206. data/bundler/ruby/1.8/gems/fuubar-0.0.2/spec/spec_helper.rb +3 -0
  207. data/bundler/ruby/1.8/gems/linecache-0.43/AUTHORS +1 -0
  208. data/bundler/ruby/1.8/gems/linecache-0.43/COPYING +340 -0
  209. data/bundler/ruby/1.8/gems/linecache-0.43/ChangeLog +317 -0
  210. data/bundler/ruby/1.8/gems/linecache-0.43/NEWS +29 -0
  211. data/bundler/ruby/1.8/gems/linecache-0.43/README +38 -0
  212. data/bundler/ruby/1.8/gems/linecache-0.43/Rakefile +166 -0
  213. data/bundler/ruby/1.8/gems/linecache-0.43/VERSION +1 -0
  214. data/bundler/ruby/1.8/gems/linecache-0.43/ext/Makefile +157 -0
  215. data/bundler/ruby/1.8/gems/linecache-0.43/ext/extconf.rb +16 -0
  216. data/bundler/ruby/1.8/gems/linecache-0.43/ext/trace_nums.bundle +0 -0
  217. data/bundler/ruby/1.8/gems/linecache-0.43/ext/trace_nums.c +716 -0
  218. data/bundler/ruby/1.8/gems/linecache-0.43/ext/trace_nums.h +111 -0
  219. data/bundler/ruby/1.8/gems/linecache-0.43/ext/trace_nums.o +0 -0
  220. data/bundler/ruby/1.8/gems/linecache-0.43/lib/linecache.rb +399 -0
  221. data/bundler/ruby/1.8/gems/linecache-0.43/lib/trace_nums.bundle +0 -0
  222. data/bundler/ruby/1.8/gems/linecache-0.43/lib/tracelines.rb +47 -0
  223. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/begin1.rb +3 -0
  224. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/begin2.rb +3 -0
  225. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/begin3.rb +6 -0
  226. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/block1.rb +7 -0
  227. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/block2.rb +4 -0
  228. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/case1.rb +6 -0
  229. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/case2.rb +5 -0
  230. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/case3.rb +5 -0
  231. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/case4.rb +4 -0
  232. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/case5.rb +10 -0
  233. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/class1.rb +5 -0
  234. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/comments1.rb +6 -0
  235. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/def1.rb +9 -0
  236. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/each1.rb +3 -0
  237. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/end.rb +3 -0
  238. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/for1.rb +4 -0
  239. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/if1.rb +4 -0
  240. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/if2.rb +4 -0
  241. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/if3.rb +9 -0
  242. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/if4.rb +14 -0
  243. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/if5.rb +7 -0
  244. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/if6.rb +4 -0
  245. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/if7.rb +8 -0
  246. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/match.rb +3 -0
  247. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/match3.rb +5 -0
  248. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/match3a.rb +6 -0
  249. data/bundler/ruby/1.8/gems/linecache-0.43/test/data/not-lit.rb +6 -0
  250. data/bundler/ruby/1.8/gems/linecache-0.43/test/lnum-diag.rb +130 -0
  251. data/bundler/ruby/1.8/gems/linecache-0.43/test/parse-show.rb +14 -0
  252. data/bundler/ruby/1.8/gems/linecache-0.43/test/rcov-bug.rb +10 -0
  253. data/bundler/ruby/1.8/gems/linecache-0.43/test/short-file +2 -0
  254. data/bundler/ruby/1.8/gems/linecache-0.43/test/test-linecache.rb +151 -0
  255. data/bundler/ruby/1.8/gems/linecache-0.43/test/test-lnum.rb +36 -0
  256. data/bundler/ruby/1.8/gems/linecache-0.43/test/test-tracelines.rb +41 -0
  257. data/bundler/ruby/1.8/gems/rr-1.0.2/CHANGES +260 -0
  258. data/bundler/ruby/1.8/gems/rr-1.0.2/Gemfile +6 -0
  259. data/bundler/ruby/1.8/gems/rr-1.0.2/LICENSE +22 -0
  260. data/bundler/ruby/1.8/gems/rr-1.0.2/README.rdoc +385 -0
  261. data/bundler/ruby/1.8/gems/rr-1.0.2/Rakefile +88 -0
  262. data/bundler/ruby/1.8/gems/rr-1.0.2/VERSION.yml +5 -0
  263. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/adapters/rr_methods.rb +146 -0
  264. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/adapters/rspec.rb +61 -0
  265. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/adapters/test_unit.rb +31 -0
  266. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/blank_slate.rb +17 -0
  267. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/class_instance_method_defined.rb +9 -0
  268. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/double.rb +154 -0
  269. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/double_definitions/child_double_definition_create.rb +27 -0
  270. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/double_definitions/double_definition.rb +367 -0
  271. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/double_definitions/double_definition_create.rb +139 -0
  272. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/double_definitions/double_definition_create_blank_slate.rb +26 -0
  273. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/double_definitions/double_injections/any_instance_of.rb +28 -0
  274. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/double_definitions/double_injections/instance.rb +16 -0
  275. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/double_definitions/strategies/double_injection/any_instance_of.rb +30 -0
  276. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/double_definitions/strategies/double_injection/double_injection_strategy.rb +10 -0
  277. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/double_definitions/strategies/double_injection/instance.rb +17 -0
  278. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/double_definitions/strategies/implementation/implementation_strategy.rb +10 -0
  279. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/double_definitions/strategies/implementation/proxy.rb +60 -0
  280. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/double_definitions/strategies/implementation/reimplementation.rb +14 -0
  281. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/double_definitions/strategies/implementation/strongly_typed_reimplementation.rb +15 -0
  282. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/double_definitions/strategies/strategy.rb +43 -0
  283. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/double_definitions/strategies/strategy_methods.rb +53 -0
  284. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/double_definitions/strategies/verification/dont_allow.rb +31 -0
  285. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/double_definitions/strategies/verification/mock.rb +42 -0
  286. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/double_definitions/strategies/verification/stub.rb +43 -0
  287. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/double_definitions/strategies/verification/verification_strategy.rb +10 -0
  288. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/double_matches.rb +42 -0
  289. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/errors/argument_equality_error.rb +6 -0
  290. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/errors/double_definition_error.rb +6 -0
  291. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/errors/double_not_found_error.rb +6 -0
  292. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/errors/double_order_error.rb +6 -0
  293. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/errors/rr_error.rb +20 -0
  294. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/errors/spy_verification_errors/double_injection_not_found_error.rb +8 -0
  295. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/errors/spy_verification_errors/invocation_count_error.rb +8 -0
  296. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/errors/spy_verification_errors/spy_verification_error.rb +8 -0
  297. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/errors/subject_does_not_implement_method_error.rb +6 -0
  298. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/errors/subject_has_different_arity_error.rb +6 -0
  299. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/errors/times_called_error.rb +6 -0
  300. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/expectations/any_argument_expectation.rb +21 -0
  301. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/expectations/argument_equality_expectation.rb +41 -0
  302. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/expectations/times_called_expectation.rb +57 -0
  303. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/hash_with_object_id_key.rb +46 -0
  304. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/injections/double_injection.rb +213 -0
  305. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/injections/injection.rb +33 -0
  306. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/injections/method_missing_injection.rb +68 -0
  307. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/injections/singleton_method_added_injection.rb +72 -0
  308. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/method_dispatches/base_method_dispatch.rb +84 -0
  309. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/method_dispatches/method_dispatch.rb +59 -0
  310. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/method_dispatches/method_missing_dispatch.rb +61 -0
  311. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/proc_from_block.rb +7 -0
  312. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/recorded_calls.rb +103 -0
  313. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/space.rb +112 -0
  314. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/spy_verification.rb +48 -0
  315. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/spy_verification_proxy.rb +13 -0
  316. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/times_called_matchers/any_times_matcher.rb +18 -0
  317. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/times_called_matchers/at_least_matcher.rb +15 -0
  318. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/times_called_matchers/at_most_matcher.rb +23 -0
  319. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/times_called_matchers/integer_matcher.rb +19 -0
  320. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/times_called_matchers/never_matcher.rb +23 -0
  321. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/times_called_matchers/non_terminal.rb +27 -0
  322. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/times_called_matchers/proc_matcher.rb +11 -0
  323. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/times_called_matchers/range_matcher.rb +21 -0
  324. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/times_called_matchers/terminal.rb +20 -0
  325. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/times_called_matchers/times_called_matcher.rb +44 -0
  326. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/wildcard_matchers/anything.rb +18 -0
  327. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/wildcard_matchers/boolean.rb +23 -0
  328. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/wildcard_matchers/duck_type.rb +32 -0
  329. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/wildcard_matchers/hash_including.rb +29 -0
  330. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/wildcard_matchers/is_a.rb +25 -0
  331. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/wildcard_matchers/numeric.rb +13 -0
  332. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/wildcard_matchers/range.rb +7 -0
  333. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/wildcard_matchers/regexp.rb +7 -0
  334. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/wildcard_matchers/satisfy.rb +26 -0
  335. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/wildcard_matchers.rb +158 -0
  336. data/bundler/ruby/1.8/gems/rr-1.0.2/lib/rr.rb +99 -0
  337. data/bundler/ruby/1.8/gems/rr-1.0.2/scratch.rb +118 -0
  338. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/api/any_instance_of/all_instances_of_spec.rb +12 -0
  339. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/api/any_instance_of/any_instance_of_spec.rb +47 -0
  340. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/api/any_instance_of/instance_of_spec.rb +12 -0
  341. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/api/dont_allow/dont_allow_after_stub_spec.rb +14 -0
  342. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/api/mock/mock_spec.rb +193 -0
  343. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/api/proxy/proxy_spec.rb +86 -0
  344. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/api/spy/spy_spec.rb +49 -0
  345. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/api/strong/strong_spec.rb +87 -0
  346. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/api/stub/stub_spec.rb +152 -0
  347. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/core_spec_suite.rb +19 -0
  348. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/environment_fixture_setup.rb +8 -0
  349. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/proc_from_block_spec.rb +14 -0
  350. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/adapters/rr_methods_argument_matcher_spec.rb +67 -0
  351. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/adapters/rr_methods_creator_spec.rb +137 -0
  352. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/adapters/rr_methods_space_spec.rb +98 -0
  353. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/adapters/rr_methods_spec_helper.rb +11 -0
  354. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/adapters/rr_methods_times_matcher_spec.rb +13 -0
  355. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/double_definitions/child_double_definition_creator_spec.rb +112 -0
  356. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/double_definitions/double_definition_create_blank_slate_spec.rb +91 -0
  357. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/double_definitions/double_definition_create_spec.rb +443 -0
  358. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/double_injection/double_injection_spec.rb +546 -0
  359. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/double_injection/double_injection_verify_spec.rb +29 -0
  360. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/errors/rr_error_spec.rb +67 -0
  361. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/expectations/any_argument_expectation_spec.rb +47 -0
  362. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/expectations/anything_argument_equality_expectation_spec.rb +14 -0
  363. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/expectations/argument_equality_expectation_spec.rb +135 -0
  364. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/expectations/boolean_argument_equality_expectation_spec.rb +34 -0
  365. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/expectations/hash_including_argument_equality_expectation_spec.rb +82 -0
  366. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/expectations/hash_including_spec.rb +17 -0
  367. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/expectations/satisfy_argument_equality_expectation_spec.rb +59 -0
  368. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/expectations/satisfy_spec.rb +14 -0
  369. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_any_times_spec.rb +22 -0
  370. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_at_least_spec.rb +37 -0
  371. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_at_most_spec.rb +43 -0
  372. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_helper.rb +15 -0
  373. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_integer_spec.rb +58 -0
  374. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_proc_spec.rb +35 -0
  375. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_range_spec.rb +39 -0
  376. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/rspec/invocation_matcher_spec.rb +279 -0
  377. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/rspec/rspec_adapter_spec.rb +63 -0
  378. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/rspec/rspec_backtrace_tweaking_spec.rb +31 -0
  379. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/rspec/rspec_backtrace_tweaking_spec_fixture.rb +11 -0
  380. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/rspec/rspec_usage_spec.rb +86 -0
  381. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/space/hash_with_object_id_key_spec.rb +88 -0
  382. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/space/space_spec.rb +587 -0
  383. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/test_unit/test_helper.rb +7 -0
  384. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/test_unit/test_unit_backtrace_test.rb +36 -0
  385. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/test_unit/test_unit_integration_test.rb +59 -0
  386. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/times_called_matchers/any_times_matcher_spec.rb +47 -0
  387. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/times_called_matchers/at_least_matcher_spec.rb +55 -0
  388. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/times_called_matchers/at_most_matcher_spec.rb +70 -0
  389. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/times_called_matchers/integer_matcher_spec.rb +70 -0
  390. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/times_called_matchers/proc_matcher_spec.rb +55 -0
  391. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/times_called_matchers/range_matcher_spec.rb +76 -0
  392. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/times_called_matchers/times_called_matcher_spec.rb +118 -0
  393. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/wildcard_matchers/anything_spec.rb +24 -0
  394. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/wildcard_matchers/boolean_spec.rb +36 -0
  395. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/wildcard_matchers/duck_type_spec.rb +52 -0
  396. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/wildcard_matchers/is_a_spec.rb +32 -0
  397. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/wildcard_matchers/numeric_spec.rb +32 -0
  398. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/wildcard_matchers/range_spec.rb +35 -0
  399. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/wildcard_matchers/regexp_spec.rb +43 -0
  400. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rr_spec.rb +28 -0
  401. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/rspec_spec_suite.rb +17 -0
  402. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/spec_helper.rb +37 -0
  403. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/spec_suite.rb +48 -0
  404. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/spy_verification_spec.rb +129 -0
  405. data/bundler/ruby/1.8/gems/rr-1.0.2/spec/test_unit_spec_suite.rb +21 -0
  406. data/bundler/ruby/1.8/gems/rspec-2.1.0/.document +2 -0
  407. data/bundler/ruby/1.8/gems/rspec-2.1.0/.gitignore +7 -0
  408. data/bundler/ruby/1.8/gems/rspec-2.1.0/Gemfile +7 -0
  409. data/bundler/ruby/1.8/gems/rspec-2.1.0/License.txt +22 -0
  410. data/bundler/ruby/1.8/gems/rspec-2.1.0/README.markdown +47 -0
  411. data/bundler/ruby/1.8/gems/rspec-2.1.0/Rakefile +16 -0
  412. data/bundler/ruby/1.8/gems/rspec-2.1.0/lib/rspec/version.rb +5 -0
  413. data/bundler/ruby/1.8/gems/rspec-2.1.0/lib/rspec.rb +4 -0
  414. data/bundler/ruby/1.8/gems/rspec-2.1.0/rspec.gemspec +29 -0
  415. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/.document +5 -0
  416. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/.gitignore +11 -0
  417. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/.treasure_map.rb +23 -0
  418. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/Gemfile +31 -0
  419. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/Guardfile +5 -0
  420. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/History.markdown +104 -0
  421. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/License.txt +22 -0
  422. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/README.markdown +95 -0
  423. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/Rakefile +71 -0
  424. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/Upgrade.markdown +289 -0
  425. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/autotest/discover.rb +2 -0
  426. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/bin/autospec +13 -0
  427. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/bin/rspec +25 -0
  428. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/cucumber.yml +2 -0
  429. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/README.markdown +19 -0
  430. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/command_line/configure.feature +20 -0
  431. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/command_line/example_name_option.feature +86 -0
  432. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/command_line/exit_status.feature +52 -0
  433. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/command_line/line_number_appended_to_path.feature +106 -0
  434. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/command_line/line_number_option.feature +45 -0
  435. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/command_line/rake_task.feature +68 -0
  436. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/command_line/tag.feature +74 -0
  437. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/configuration/custom_settings.feature +84 -0
  438. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/configuration/fail_fast.feature +77 -0
  439. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/configuration/read_options_from_file.feature +74 -0
  440. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/example_groups/basic_structure.feature +54 -0
  441. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/example_groups/shared_example_group.feature +177 -0
  442. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/filtering/exclusion_filters.feature +115 -0
  443. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/filtering/implicit_filters.feature +166 -0
  444. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/filtering/inclusion_filters.feature +83 -0
  445. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/filtering/run_all_when_everything_filtered.feature +46 -0
  446. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/formatters/custom_formatter.feature +32 -0
  447. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/hooks/around_hooks.feature +320 -0
  448. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/hooks/before_and_after_hooks.feature +432 -0
  449. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/metadata/described_class.feature +17 -0
  450. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/mock_framework_integration/use_flexmock.feature +23 -0
  451. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/mock_framework_integration/use_mocha.feature +23 -0
  452. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/mock_framework_integration/use_rr.feature +23 -0
  453. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/mock_framework_integration/use_rspec.feature +23 -0
  454. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/pending/pending_examples.feature +216 -0
  455. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/spec_files/arbitrary_file_suffix.feature +13 -0
  456. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/step_definitions/additional_cli_steps.rb +11 -0
  457. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/subject/attribute_of_subject.feature +52 -0
  458. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/subject/explicit_subject.feature +62 -0
  459. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/subject/implicit_receiver.feature +29 -0
  460. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/subject/implicit_subject.feature +30 -0
  461. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/features/support/env.rb +1 -0
  462. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/autotest/rspec2.rb +66 -0
  463. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/autorun.rb +2 -0
  464. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/backward_compatibility.rb +48 -0
  465. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/command_line.rb +35 -0
  466. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/command_line_configuration.rb +62 -0
  467. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/configuration.rb +401 -0
  468. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/configuration_options.rb +98 -0
  469. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/deprecation.rb +45 -0
  470. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/drb_command_line.rb +29 -0
  471. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/errors.rb +14 -0
  472. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/example.rb +139 -0
  473. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb +311 -0
  474. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/expecting/with_rspec.rb +11 -0
  475. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/extensions/instance_eval_with_args.rb +39 -0
  476. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/extensions/kernel.rb +5 -0
  477. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/extensions/module_eval_with_args.rb +34 -0
  478. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/extensions/object.rb +14 -0
  479. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/extensions.rb +4 -0
  480. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/formatters/base_formatter.rb +162 -0
  481. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/formatters/base_text_formatter.rb +151 -0
  482. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/formatters/documentation_formatter.rb +71 -0
  483. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/formatters/helpers.rb +28 -0
  484. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/formatters/html_formatter.rb +351 -0
  485. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/formatters/progress_formatter.rb +32 -0
  486. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/formatters/snippet_extractor.rb +52 -0
  487. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/formatters/text_mate_formatter.rb +20 -0
  488. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/hooks.rb +134 -0
  489. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/let.rb +101 -0
  490. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/load_path.rb +3 -0
  491. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/metadata.rb +175 -0
  492. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/mocking/with_absolutely_nothing.rb +11 -0
  493. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/mocking/with_flexmock.rb +25 -0
  494. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/mocking/with_mocha.rb +21 -0
  495. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/mocking/with_rr.rb +25 -0
  496. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/mocking/with_rspec.rb +21 -0
  497. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/option_parser.rb +122 -0
  498. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/pending.rb +28 -0
  499. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/rake_task.rb +196 -0
  500. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/reporter.rb +79 -0
  501. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/ruby_project.rb +44 -0
  502. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb +61 -0
  503. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/shared_example_group.rb +52 -0
  504. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/subject.rb +170 -0
  505. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/version.rb +7 -0
  506. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core/world.rb +102 -0
  507. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/core.rb +62 -0
  508. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/monkey/spork/test_framework/rspec.rb +7 -0
  509. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/lib/rspec/monkey.rb +1 -0
  510. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/rspec-core.gemspec +38 -0
  511. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/script/console +8 -0
  512. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/autotest/failed_results_re_spec.rb +20 -0
  513. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/autotest/rspec_spec.rb +123 -0
  514. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/command_line_configuration_spec.rb +26 -0
  515. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/command_line_spec.rb +134 -0
  516. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/command_line_spec_output.txt +0 -0
  517. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/configuration_options_spec.rb +311 -0
  518. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/configuration_spec.rb +662 -0
  519. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/deprecations_spec.rb +45 -0
  520. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/drb_command_line_spec.rb +159 -0
  521. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/example_group_spec.rb +787 -0
  522. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/example_spec.rb +160 -0
  523. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/base_formatter_spec.rb +36 -0
  524. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/base_text_formatter_spec.rb +160 -0
  525. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/documentation_formatter_spec.rb +66 -0
  526. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/helpers_spec.rb +46 -0
  527. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/html_formatted-1.8.6.html +296 -0
  528. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +285 -0
  529. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/html_formatted-1.8.7.html +296 -0
  530. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/html_formatted-1.9.1.html +303 -0
  531. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/html_formatted-1.9.2.html +303 -0
  532. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/html_formatter_spec.rb +81 -0
  533. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/progress_formatter_spec.rb +31 -0
  534. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/snippet_extractor_spec.rb +18 -0
  535. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/text_mate_formatted-1.8.6.html +296 -0
  536. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html +280 -0
  537. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +296 -0
  538. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/text_mate_formatted-1.9.1.html +303 -0
  539. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +303 -0
  540. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/text_mate_formatter_spec.rb +84 -0
  541. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/hooks_filtering_spec.rb +124 -0
  542. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/hooks_spec.rb +57 -0
  543. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/kernel_extensions_spec.rb +9 -0
  544. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/let_spec.rb +42 -0
  545. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/metadata_spec.rb +285 -0
  546. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/option_parser_spec.rb +39 -0
  547. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/pending_example_spec.rb +226 -0
  548. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/rake_task_spec.rb +141 -0
  549. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/reporter_spec.rb +70 -0
  550. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/resources/a_bar.rb +0 -0
  551. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/resources/a_foo.rb +0 -0
  552. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/resources/a_spec.rb +1 -0
  553. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/resources/custom_example_group_runner.rb +14 -0
  554. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/resources/formatter_specs.rb +54 -0
  555. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/resources/utf8_encoded.rb +8 -0
  556. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/ruby_project_spec.rb +24 -0
  557. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/runner_spec.rb +47 -0
  558. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/shared_example_group_spec.rb +152 -0
  559. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/subject_spec.rb +78 -0
  560. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/world_spec.rb +174 -0
  561. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core_spec.rb +31 -0
  562. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/ruby_forker.rb +13 -0
  563. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/spec_helper.rb +70 -0
  564. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/support/matchers.rb +44 -0
  565. data/bundler/ruby/1.8/gems/rspec-core-2.1.0/specs.watchr +58 -0
  566. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/.document +5 -0
  567. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/.gitignore +10 -0
  568. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/Gemfile +21 -0
  569. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/History.markdown +54 -0
  570. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/License.txt +22 -0
  571. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/README.markdown +33 -0
  572. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/Rakefile +70 -0
  573. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/Upgrade.markdown +53 -0
  574. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/cucumber.yml +3 -0
  575. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/README.markdown +18 -0
  576. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/expectations/attribute_of_subject.feature +19 -0
  577. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/expectations/customized_message.feature +54 -0
  578. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/expectations/diffing.feature +85 -0
  579. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/expectations/implicit_docstrings.feature +52 -0
  580. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/matchers/access_running_example.feature +53 -0
  581. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/matchers/be_within.feature +43 -0
  582. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/matchers/define_diffable_matcher.feature +27 -0
  583. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/matchers/define_matcher.feature +311 -0
  584. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/matchers/define_matcher_outside_rspec.feature +38 -0
  585. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/matchers/define_matcher_with_fluent_interface.feature +24 -0
  586. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/matchers/equality.feature +142 -0
  587. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/matchers/exist.feature +44 -0
  588. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/matchers/expect_change.feature +65 -0
  589. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/matchers/expect_error.feature +44 -0
  590. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/matchers/have.feature +103 -0
  591. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/matchers/include.feature +136 -0
  592. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/matchers/operators.feature +280 -0
  593. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/matchers/predicates.feature +128 -0
  594. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/matchers/respond_to.feature +78 -0
  595. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/matchers/satisfy.feature +31 -0
  596. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/matchers/throw_symbol.feature +85 -0
  597. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/matchers/types.feature +114 -0
  598. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/step_definitions/additional_cli_steps.rb +13 -0
  599. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/support/env.rb +1 -0
  600. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/features/test_frameworks/test_unit.feature +46 -0
  601. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/expectations/backward_compatibility.rb +16 -0
  602. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/expectations/deprecation.rb +36 -0
  603. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/expectations/differ.rb +62 -0
  604. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/expectations/errors.rb +12 -0
  605. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/expectations/extensions/array.rb +7 -0
  606. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/expectations/extensions/kernel.rb +52 -0
  607. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/expectations/extensions.rb +2 -0
  608. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/expectations/fail_with.rb +51 -0
  609. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/expectations/handler.rb +50 -0
  610. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/expectations/version.rb +7 -0
  611. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/expectations.rb +39 -0
  612. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/be.rb +222 -0
  613. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/be_close.rb +17 -0
  614. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/be_instance_of.rb +26 -0
  615. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/be_kind_of.rb +26 -0
  616. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/be_within.rb +40 -0
  617. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/block_aliases.rb +18 -0
  618. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/change.rb +184 -0
  619. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/compatibility.rb +14 -0
  620. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/dsl.rb +21 -0
  621. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/eq.rb +50 -0
  622. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/eql.rb +45 -0
  623. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/equal.rb +53 -0
  624. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/errors.rb +5 -0
  625. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/exist.rb +16 -0
  626. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/extensions/instance_exec.rb +31 -0
  627. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/generated_descriptions.rb +36 -0
  628. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/has.rb +35 -0
  629. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/have.rb +151 -0
  630. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/include.rb +51 -0
  631. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/match.rb +21 -0
  632. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/match_array.rb +71 -0
  633. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/matcher.rb +161 -0
  634. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/method_missing.rb +9 -0
  635. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/operator_matcher.rb +87 -0
  636. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/pretty.rb +37 -0
  637. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/raise_error.rb +130 -0
  638. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/respond_to.rb +85 -0
  639. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/satisfy.rb +51 -0
  640. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers/throw_symbol.rb +121 -0
  641. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/matchers.rb +196 -0
  642. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec-expectations.rb +1 -0
  643. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/rspec-expectations.gemspec +27 -0
  644. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/expectations/differ_spec.rb +96 -0
  645. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/expectations/extensions/kernel_spec.rb +45 -0
  646. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/expectations/fail_with_spec.rb +70 -0
  647. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/expectations/handler_spec.rb +206 -0
  648. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/be_close_spec.rb +22 -0
  649. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/be_instance_of_spec.rb +36 -0
  650. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/be_kind_of_spec.rb +33 -0
  651. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/be_spec.rb +456 -0
  652. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/be_within_spec.rb +64 -0
  653. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/change_spec.rb +409 -0
  654. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/compatibility_spec.rb +28 -0
  655. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/description_generation_spec.rb +160 -0
  656. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/dsl_spec.rb +25 -0
  657. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/eq_spec.rb +38 -0
  658. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/eql_spec.rb +37 -0
  659. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/equal_spec.rb +57 -0
  660. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/exist_spec.rb +65 -0
  661. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/has_spec.rb +81 -0
  662. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/have_spec.rb +411 -0
  663. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/include_spec.rb +341 -0
  664. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/match_array_spec.rb +111 -0
  665. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/match_spec.rb +57 -0
  666. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/matcher_spec.rb +374 -0
  667. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/matchers_spec.rb +51 -0
  668. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/operator_matcher_spec.rb +215 -0
  669. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/raise_error_spec.rb +339 -0
  670. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/respond_to_spec.rb +292 -0
  671. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/satisfy_spec.rb +40 -0
  672. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/throw_symbol_spec.rb +113 -0
  673. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/spec_helper.rb +66 -0
  674. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/suite.rb +1 -0
  675. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/support/classes.rb +45 -0
  676. data/bundler/ruby/1.8/gems/rspec-expectations-2.1.0/specs.watchr +57 -0
  677. data/bundler/ruby/1.8/gems/rspec-instafail-0.1.4/Rakefile +20 -0
  678. data/bundler/ruby/1.8/gems/rspec-instafail-0.1.4/Readme.md +48 -0
  679. data/bundler/ruby/1.8/gems/rspec-instafail-0.1.4/VERSION +1 -0
  680. data/bundler/ruby/1.8/gems/rspec-instafail-0.1.4/lib/rspec/instafail/rspec_1.rb +27 -0
  681. data/bundler/ruby/1.8/gems/rspec-instafail-0.1.4/lib/rspec/instafail/rspec_2.rb +21 -0
  682. data/bundler/ruby/1.8/gems/rspec-instafail-0.1.4/lib/rspec/instafail.rb +9 -0
  683. data/bundler/ruby/1.8/gems/rspec-instafail-0.1.4/rspec-instafail.gemspec +51 -0
  684. data/bundler/ruby/1.8/gems/rspec-instafail-0.1.4/spec/instafail_spec.rb +77 -0
  685. data/bundler/ruby/1.8/gems/rspec-instafail-0.1.4/spec/rspec_1/Gemfile +2 -0
  686. data/bundler/ruby/1.8/gems/rspec-instafail-0.1.4/spec/rspec_1/Gemfile.lock +10 -0
  687. data/bundler/ruby/1.8/gems/rspec-instafail-0.1.4/spec/rspec_1/a_test.rb +21 -0
  688. data/bundler/ruby/1.8/gems/rspec-instafail-0.1.4/spec/rspec_2/Gemfile +2 -0
  689. data/bundler/ruby/1.8/gems/rspec-instafail-0.1.4/spec/rspec_2/Gemfile.lock +20 -0
  690. data/bundler/ruby/1.8/gems/rspec-instafail-0.1.4/spec/rspec_2/a_test.rb +21 -0
  691. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/.autotest +7 -0
  692. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/.document +5 -0
  693. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/.gitignore +10 -0
  694. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/Gemfile +18 -0
  695. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/History.markdown +33 -0
  696. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/License.txt +22 -0
  697. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/README.markdown +49 -0
  698. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/Rakefile +70 -0
  699. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/autotest/discover.rb +1 -0
  700. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/cucumber.yml +2 -0
  701. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/features/README.markdown +30 -0
  702. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/features/message_expectations/block_local_expectations.feature.pending +55 -0
  703. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/features/message_expectations/expect_message.feature +94 -0
  704. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/features/message_expectations/warn_when_expectation_is_set_on_nil.feature +50 -0
  705. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/features/outside_rspec/configuration.feature +82 -0
  706. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/features/stubs/simple_return_value.feature +55 -0
  707. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/features/stubs/stub_chain.feature +44 -0
  708. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/features/stubs/stub_implementation.feature +26 -0
  709. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/features/support/env.rb +2 -0
  710. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/lib/rspec/mocks/argument_expectation.rb +48 -0
  711. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/lib/rspec/mocks/argument_matchers.rb +233 -0
  712. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/lib/rspec/mocks/error_generator.rb +97 -0
  713. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/lib/rspec/mocks/errors.rb +10 -0
  714. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/lib/rspec/mocks/extensions/instance_exec.rb +31 -0
  715. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/lib/rspec/mocks/extensions/marshal.rb +25 -0
  716. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/lib/rspec/mocks/extensions/object.rb +3 -0
  717. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/lib/rspec/mocks/framework.rb +17 -0
  718. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/lib/rspec/mocks/message_expectation.rb +341 -0
  719. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/lib/rspec/mocks/method_double.rb +165 -0
  720. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/lib/rspec/mocks/methods.rb +100 -0
  721. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/lib/rspec/mocks/mock.rb +79 -0
  722. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/lib/rspec/mocks/order_group.rb +29 -0
  723. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/lib/rspec/mocks/proxy.rb +157 -0
  724. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/lib/rspec/mocks/serialization.rb +26 -0
  725. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/lib/rspec/mocks/space.rb +28 -0
  726. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/lib/rspec/mocks/spec_methods.rb +53 -0
  727. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/lib/rspec/mocks/version.rb +7 -0
  728. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/lib/rspec/mocks.rb +196 -0
  729. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/lib/spec/mocks.rb +2 -0
  730. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/rspec-mocks.gemspec +25 -0
  731. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/and_yield_spec.rb +114 -0
  732. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/any_number_of_times_spec.rb +36 -0
  733. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/argument_expectation_spec.rb +23 -0
  734. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/at_least_spec.rb +97 -0
  735. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/at_most_spec.rb +93 -0
  736. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/block_return_value_spec.rb +45 -0
  737. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/bug_report_10260_spec.rb +8 -0
  738. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/bug_report_10263_spec.rb +27 -0
  739. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/bug_report_11545_spec.rb +32 -0
  740. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/bug_report_496_spec.rb +17 -0
  741. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/bug_report_600_spec.rb +22 -0
  742. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/bug_report_7611_spec.rb +18 -0
  743. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/bug_report_7805_spec.rb +22 -0
  744. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/bug_report_8165_spec.rb +31 -0
  745. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/bug_report_8302_spec.rb +26 -0
  746. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/bug_report_830_spec.rb +21 -0
  747. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/bug_report_957_spec.rb +22 -0
  748. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/double_spec.rb +12 -0
  749. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/failing_argument_matchers_spec.rb +96 -0
  750. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/hash_including_matcher_spec.rb +90 -0
  751. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/hash_not_including_matcher_spec.rb +67 -0
  752. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/mock_ordering_spec.rb +94 -0
  753. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/mock_space_spec.rb +54 -0
  754. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/mock_spec.rb +661 -0
  755. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/multiple_return_value_spec.rb +133 -0
  756. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/nil_expectation_warning_spec.rb +63 -0
  757. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/null_object_mock_spec.rb +73 -0
  758. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/once_counts_spec.rb +53 -0
  759. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/options_hash_spec.rb +35 -0
  760. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/partial_mock_spec.rb +155 -0
  761. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb +94 -0
  762. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/passing_argument_matchers_spec.rb +145 -0
  763. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/precise_counts_spec.rb +52 -0
  764. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/record_messages_spec.rb +26 -0
  765. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/serialization_spec.rb +67 -0
  766. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/stash_spec.rb +27 -0
  767. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/stub_chain_spec.rb +114 -0
  768. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/stub_implementation_spec.rb +68 -0
  769. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/stub_spec.rb +232 -0
  770. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/stubbed_message_expectations_spec.rb +26 -0
  771. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/twice_counts_spec.rb +67 -0
  772. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks_spec.rb +51 -0
  773. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/spec_helper.rb +52 -0
  774. data/bundler/ruby/1.8/gems/rspec-mocks-2.1.0/specs.watchr +57 -0
  775. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/.require_paths +2 -0
  776. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/AUTHORS +7 -0
  777. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/CHANGES +349 -0
  778. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/ChangeLog +5926 -0
  779. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/LICENSE +23 -0
  780. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/README +114 -0
  781. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/Rakefile +311 -0
  782. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/VERSION +3 -0
  783. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/bin/rdebug +416 -0
  784. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/command.rb +267 -0
  785. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/breakpoints.rb +155 -0
  786. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/catchpoint.rb +55 -0
  787. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/condition.rb +49 -0
  788. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/continue.rb +38 -0
  789. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/control.rb +107 -0
  790. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/disassemble.RB +38 -0
  791. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/display.rb +120 -0
  792. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/edit.rb +48 -0
  793. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/enable.rb +202 -0
  794. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/eval.rb +179 -0
  795. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/finish.rb +42 -0
  796. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/frame.rb +302 -0
  797. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/help.rb +61 -0
  798. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/info.rb +472 -0
  799. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/irb.rb +193 -0
  800. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/kill.rb +50 -0
  801. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/list.rb +94 -0
  802. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/method.rb +84 -0
  803. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/quit.rb +44 -0
  804. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/raise.RB +41 -0
  805. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/reload.rb +40 -0
  806. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/save.rb +90 -0
  807. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/set.rb +237 -0
  808. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/show.rb +251 -0
  809. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/source.RB +44 -0
  810. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/stepping.rb +81 -0
  811. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/threads.rb +189 -0
  812. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/tmate.rb +36 -0
  813. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/trace.rb +57 -0
  814. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/commands/variables.rb +199 -0
  815. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/debugger.rb +5 -0
  816. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/helper.rb +74 -0
  817. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/interface.rb +260 -0
  818. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug/processor.rb +556 -0
  819. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/cli/ruby-debug.rb +179 -0
  820. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/doc/rdebug.1 +241 -0
  821. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/rdbg.rb +33 -0
  822. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/runner.sh +7 -0
  823. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/base/base.rb +74 -0
  824. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/base/binding.rb +31 -0
  825. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/base/catchpoint.rb +26 -0
  826. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/base/load.rb +40 -0
  827. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/base/reload_bug.rb +8 -0
  828. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/bp_loop_issue.rb +3 -0
  829. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/brkpt-class-bug.rb +8 -0
  830. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/classes.rb +11 -0
  831. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/cli/commands/catchpoint_test.rb +36 -0
  832. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/cli/commands/unit/regexp.rb +42 -0
  833. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/config.yaml +8 -0
  834. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/annotate.cmd +29 -0
  835. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/annotate.right +139 -0
  836. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/break_bad.cmd +18 -0
  837. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/break_bad.right +28 -0
  838. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/break_loop_bug.cmd +5 -0
  839. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/break_loop_bug.right +15 -0
  840. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/breakpoints.cmd +38 -0
  841. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/breakpoints.right +98 -0
  842. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/brkpt-class-bug.cmd +9 -0
  843. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/brkpt-class-bug.right +18 -0
  844. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/catch.cmd +17 -0
  845. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/catch.right +39 -0
  846. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/condition.cmd +29 -0
  847. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/condition.right +67 -0
  848. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/ctrl.cmd +23 -0
  849. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/ctrl.right +69 -0
  850. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/display.cmd +24 -0
  851. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/display.right +44 -0
  852. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/dollar-0.right +2 -0
  853. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/dollar-0a.right +2 -0
  854. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/dollar-0b.right +2 -0
  855. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/edit.cmd +12 -0
  856. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/edit.right +19 -0
  857. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/emacs_basic.cmd +43 -0
  858. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/emacs_basic.right +106 -0
  859. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/enable.cmd +20 -0
  860. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/enable.right +36 -0
  861. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/except-bug1.cmd +7 -0
  862. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/except-bug1.right +13 -0
  863. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/file-with-space.cmd +7 -0
  864. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/file-with-space.right +9 -0
  865. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/finish.cmd +16 -0
  866. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/finish.right +31 -0
  867. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/frame.cmd +32 -0
  868. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/frame.right +66 -0
  869. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/help.cmd +20 -0
  870. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/help.right +21 -0
  871. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/history.right +7 -0
  872. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/info-thread.cmd +13 -0
  873. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/info-thread.right +37 -0
  874. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/info-var-bug2.cmd +5 -0
  875. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/info-var-bug2.right +10 -0
  876. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/info-var.cmd +23 -0
  877. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/info-var.right +52 -0
  878. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/info.cmd +22 -0
  879. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/info.right +84 -0
  880. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/linetrace.cmd +6 -0
  881. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/linetrace.right +32 -0
  882. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/linetracep.cmd +7 -0
  883. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/linetracep.right +25 -0
  884. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/list.cmd +19 -0
  885. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/list.right +127 -0
  886. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/method.cmd +10 -0
  887. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/method.right +21 -0
  888. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/methodsig.cmd +10 -0
  889. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/methodsig.right +20 -0
  890. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/noquit.right +1 -0
  891. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/output.cmd +6 -0
  892. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/output.right +31 -0
  893. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/pm-bug.cmd +7 -0
  894. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/pm-bug.right +12 -0
  895. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/post-mortem-next.cmd +8 -0
  896. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/post-mortem-next.right +14 -0
  897. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/post-mortem-osx.right +31 -0
  898. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/post-mortem.cmd +13 -0
  899. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/post-mortem.right +32 -0
  900. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/quit.cmd +6 -0
  901. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/quit.right +0 -0
  902. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/raise.cmd +11 -0
  903. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/raise.right +26 -0
  904. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/save.cmd +33 -0
  905. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/save.right +59 -0
  906. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/setshow.cmd +46 -0
  907. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/setshow.right +80 -0
  908. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/source.cmd +5 -0
  909. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/source.right +15 -0
  910. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/stepping.cmd +21 -0
  911. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/stepping.right +50 -0
  912. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/test-init-cygwin.right +7 -0
  913. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/test-init-osx.right +4 -0
  914. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/test-init.right +5 -0
  915. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/trace.right +23 -0
  916. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/dollar-0.rb +5 -0
  917. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/except-bug1.rb +4 -0
  918. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/except-bug2.rb +7 -0
  919. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/file with space.rb +1 -0
  920. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/gcd-dbg-nox.rb +31 -0
  921. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/gcd-dbg.rb +30 -0
  922. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/gcd.rb +18 -0
  923. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/helper.rb +149 -0
  924. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/info-var-bug.rb +47 -0
  925. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/info-var-bug2.rb +2 -0
  926. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/null.rb +1 -0
  927. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/output.rb +2 -0
  928. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/pm-base.rb +22 -0
  929. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/pm-bug.rb +3 -0
  930. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/pm.rb +11 -0
  931. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/raise.rb +3 -0
  932. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/rdebug-save.1 +7 -0
  933. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/scope-test.rb +8 -0
  934. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/tdebug.rb +252 -0
  935. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-annotate.rb +25 -0
  936. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-break-bad.rb +36 -0
  937. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-breakpoints.rb +25 -0
  938. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-brkpt-class-bug.rb +26 -0
  939. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-catch.rb +25 -0
  940. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-condition.rb +25 -0
  941. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-ctrl.rb +55 -0
  942. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-display.rb +26 -0
  943. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-dollar-0.rb +45 -0
  944. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-edit.rb +26 -0
  945. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-emacs-basic.rb +26 -0
  946. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-enable.rb +25 -0
  947. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-except-bug1.rb +31 -0
  948. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-file-with-space.rb +30 -0
  949. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-finish.rb +34 -0
  950. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-frame.rb +34 -0
  951. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-help.rb +60 -0
  952. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-hist.rb +68 -0
  953. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-info-thread.rb +32 -0
  954. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-info-var.rb +47 -0
  955. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-info.rb +26 -0
  956. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-init.rb +49 -0
  957. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-list.rb +25 -0
  958. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-method.rb +34 -0
  959. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-output.rb +26 -0
  960. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-pm.rb +59 -0
  961. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-quit.rb +30 -0
  962. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-raise.rb +25 -0
  963. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-save.rb +31 -0
  964. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-setshow.rb +25 -0
  965. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-source.rb +25 -0
  966. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-stepping.rb +26 -0
  967. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-trace.rb +63 -0
  968. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/thread1.rb +26 -0
  969. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/trunc-call.rb +31 -0
  970. data/bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/tvar.rb +3 -0
  971. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/AUTHORS +7 -0
  972. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/CHANGES +349 -0
  973. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/LICENSE +23 -0
  974. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/README +114 -0
  975. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/Rakefile +311 -0
  976. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/VERSION +3 -0
  977. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/ext/Makefile +157 -0
  978. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/ext/breakpoint.c +582 -0
  979. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/ext/breakpoint.o +0 -0
  980. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/ext/extconf.rb +20 -0
  981. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/ext/ruby_debug.bundle +0 -0
  982. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/ext/ruby_debug.c +2326 -0
  983. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/ext/ruby_debug.h +123 -0
  984. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/ext/ruby_debug.o +0 -0
  985. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/ext/win32/Makefile +157 -0
  986. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/ext/win32/breakpoint.o +0 -0
  987. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/ext/win32/ruby_debug.o +0 -0
  988. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/ext/win32/ruby_debug.so +0 -0
  989. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/lib/ChangeLog +1162 -0
  990. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/lib/ruby-debug-base.rb +301 -0
  991. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/lib/ruby_debug.bundle +0 -0
  992. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/test/base/base.rb +74 -0
  993. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/test/base/binding.rb +31 -0
  994. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/test/base/catchpoint.rb +26 -0
  995. data/bundler/ruby/1.8/gems/ruby-debug-base-0.10.4/test/base/reload_bug.rb +8 -0
  996. data/bundler/ruby/1.8/gems/ruby-progressbar-0.0.9/GPL_LICENSE +340 -0
  997. data/bundler/ruby/1.8/gems/ruby-progressbar-0.0.9/README.md +91 -0
  998. data/bundler/ruby/1.8/gems/ruby-progressbar-0.0.9/RUBY_LICENSE +53 -0
  999. data/bundler/ruby/1.8/gems/ruby-progressbar-0.0.9/lib/progressbar.rb +237 -0
  1000. data/bundler/ruby/1.8/gems/ruby-progressbar-0.0.9/test.rb +116 -0
  1001. data/bundler/ruby/1.8/specifications/RubyInline-3.8.6.gemspec +52 -0
  1002. data/bundler/ruby/1.8/specifications/ZenTest-4.4.0.gemspec +59 -0
  1003. data/bundler/ruby/1.8/specifications/columnize-0.3.2.gemspec +48 -0
  1004. data/bundler/ruby/1.8/specifications/curb-0.7.8.gemspec +32 -0
  1005. data/bundler/ruby/1.8/specifications/curl-multi-0.2.gemspec +39 -0
  1006. data/bundler/ruby/1.8/specifications/diff-lcs-1.1.2.gemspec +34 -0
  1007. data/bundler/ruby/1.8/specifications/fakefs-0.2.1.gemspec +30 -0
  1008. data/bundler/ruby/1.8/specifications/fuubar-0.0.2.gemspec +38 -0
  1009. data/bundler/ruby/1.8/specifications/linecache-0.43.gemspec +33 -0
  1010. data/bundler/ruby/1.8/specifications/rr-1.0.2.gemspec +31 -0
  1011. data/bundler/ruby/1.8/specifications/rspec-2.1.0.gemspec +39 -0
  1012. data/bundler/ruby/1.8/specifications/rspec-core-2.1.0.gemspec +44 -0
  1013. data/bundler/ruby/1.8/specifications/rspec-expectations-2.1.0.gemspec +34 -0
  1014. data/bundler/ruby/1.8/specifications/rspec-instafail-0.1.4.gemspec +28 -0
  1015. data/bundler/ruby/1.8/specifications/rspec-mocks-2.1.0.gemspec +31 -0
  1016. data/bundler/ruby/1.8/specifications/ruby-debug-0.10.4.gemspec +39 -0
  1017. data/bundler/ruby/1.8/specifications/ruby-debug-base-0.10.4.gemspec +39 -0
  1018. data/bundler/ruby/1.8/specifications/ruby-progressbar-0.0.9.gemspec +27 -0
  1019. data/lib/vim-jar/cli.rb +94 -0
  1020. data/lib/vim-jar/config.rb +59 -0
  1021. data/lib/vim-jar/importer/github.rb +18 -0
  1022. data/lib/vim-jar/importer.rb +51 -0
  1023. data/lib/vim-jar/installer/base.rb +9 -0
  1024. data/lib/vim-jar/installer/git.rb +19 -0
  1025. data/lib/vim-jar/installer.rb +7 -0
  1026. data/lib/vim-jar/plugin/git.rb +32 -0
  1027. data/lib/vim-jar/plugin.rb +65 -0
  1028. data/lib/vim-jar/plugins.yml +2673 -0
  1029. data/lib/vim-jar/version.rb +5 -0
  1030. data/lib/vim-jar.rb +24 -0
  1031. data/script/github_crawler.rb +76 -0
  1032. data/spec/spec_helper.rb +21 -0
  1033. data/spec/vim-jar/config_spec.rb +70 -0
  1034. data/spec/vim-jar/importer/github_spec.rb +12 -0
  1035. data/spec/vim-jar/importer/pages/vim-rails-github.html +975 -0
  1036. data/spec/vim-jar/importer_spec.rb +58 -0
  1037. data/spec/vim-jar/plugin_spec.rb +39 -0
  1038. data/spec/vim-jar/plugin_ymls/blank.yml +6 -0
  1039. data/spec/vim-jar/plugin_ymls/rails-vim.yml +7 -0
  1040. data/spec/vim-jar_test.rb +17 -0
  1041. data/vim-jar.gemspec +28 -0
  1042. metadata +1185 -0
@@ -0,0 +1,1251 @@
1
+ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
2
+ require 'fakefs'
3
+ require 'test/unit'
4
+
5
+ class FakeFSTest < Test::Unit::TestCase
6
+ include FakeFS
7
+
8
+ def setup
9
+ FileSystem.clear
10
+ end
11
+
12
+ def test_can_be_initialized_empty
13
+ fs = FileSystem
14
+ assert_equal 0, fs.files.size
15
+ end
16
+
17
+ def xtest_can_be_initialized_with_an_existing_directory
18
+ fs = FileSystem
19
+ fs.clone(File.expand_path(File.dirname(__FILE__))).inspect
20
+ assert_equal 1, fs.files.size
21
+ end
22
+
23
+ def test_can_create_directories
24
+ FileUtils.mkdir_p("/path/to/dir")
25
+ assert_kind_of FakeDir, FileSystem.fs['path']['to']['dir']
26
+ end
27
+
28
+ def test_can_create_directories_with_mkpath
29
+ FileUtils.mkpath("/path/to/dir")
30
+ assert_kind_of FakeDir, FileSystem.fs['path']['to']['dir']
31
+ end
32
+
33
+ def test_can_delete_directories
34
+ FileUtils.mkdir_p("/path/to/dir")
35
+ FileUtils.rmdir("/path/to/dir")
36
+ assert File.exists?("/path/to/")
37
+ assert File.exists?("/path/to/dir") == false
38
+ end
39
+
40
+ def test_knows_directories_exist
41
+ FileUtils.mkdir_p(path = "/path/to/dir")
42
+ assert File.exists?(path)
43
+ end
44
+
45
+ def test_knows_directories_are_directories
46
+ FileUtils.mkdir_p(path = "/path/to/dir")
47
+ assert File.directory?(path)
48
+ end
49
+
50
+ def test_knows_symlink_directories_are_directories
51
+ FileUtils.mkdir_p(path = "/path/to/dir")
52
+ FileUtils.ln_s path, sympath = '/sympath'
53
+ assert File.directory?(sympath)
54
+ end
55
+
56
+ def test_knows_non_existent_directories_arent_directories
57
+ path = 'does/not/exist/'
58
+ assert_equal RealFile.directory?(path), File.directory?(path)
59
+ end
60
+
61
+ def test_doesnt_overwrite_existing_directories
62
+ FileUtils.mkdir_p(path = "/path/to/dir")
63
+ assert File.exists?(path)
64
+ FileUtils.mkdir_p("/path/to")
65
+ assert File.exists?(path)
66
+ end
67
+
68
+ def test_can_create_symlinks
69
+ FileUtils.mkdir_p(target = "/path/to/target")
70
+ FileUtils.ln_s(target, "/path/to/link")
71
+ assert_kind_of FakeSymlink, FileSystem.fs['path']['to']['link']
72
+
73
+ assert_raises(Errno::EEXIST) do
74
+ FileUtils.ln_s(target, '/path/to/link')
75
+ end
76
+ end
77
+
78
+ def test_can_force_creation_of_symlinks
79
+ FileUtils.mkdir_p(target = "/path/to/first/target")
80
+ FileUtils.ln_s(target, "/path/to/link")
81
+ assert_kind_of FakeSymlink, FileSystem.fs['path']['to']['link']
82
+ FileUtils.ln_s(target, '/path/to/link', :force => true)
83
+ end
84
+
85
+ def test_create_symlink_using_ln_sf
86
+ FileUtils.mkdir_p(target = "/path/to/first/target")
87
+ FileUtils.ln_s(target, "/path/to/link")
88
+ assert_kind_of FakeSymlink, FileSystem.fs['path']['to']['link']
89
+ FileUtils.ln_sf(target, '/path/to/link')
90
+ end
91
+
92
+ def test_can_follow_symlinks
93
+ FileUtils.mkdir_p(target = "/path/to/target")
94
+ FileUtils.ln_s(target, link = "/path/to/symlink")
95
+ assert_equal target, File.readlink(link)
96
+ end
97
+
98
+ def test_knows_symlinks_are_symlinks
99
+ FileUtils.mkdir_p(target = "/path/to/target")
100
+ FileUtils.ln_s(target, link = "/path/to/symlink")
101
+ assert File.symlink?(link)
102
+ end
103
+
104
+ def test_can_create_files
105
+ path = '/path/to/file.txt'
106
+ File.open(path, 'w') do |f|
107
+ f.write "Yatta!"
108
+ end
109
+
110
+ assert File.exists?(path)
111
+ assert File.readable?(path)
112
+ assert File.writable?(path)
113
+ end
114
+
115
+ def test_can_create_files_with_bitmasks
116
+ path = '/path/to/file.txt'
117
+ File.open(path, File::RDWR | File::CREAT) do |f|
118
+ f.write "Yatta!"
119
+ end
120
+
121
+ assert File.exists?(path)
122
+ assert File.readable?(path)
123
+ assert File.writable?(path)
124
+ end
125
+
126
+ def test_file_opens_in_read_only_mode
127
+ File.open("foo", "w") { |f| f << "foo" }
128
+
129
+ f = File.open("foo")
130
+
131
+ assert_raises(IOError) do
132
+ f << "bar"
133
+ end
134
+ end
135
+
136
+ def test_file_opens_in_read_only_mode_with_bitmasks
137
+ File.open("foo", "w") { |f| f << "foo" }
138
+
139
+ f = File.open("foo", File::RDONLY)
140
+
141
+ assert_raises(IOError) do
142
+ f << "bar"
143
+ end
144
+ end
145
+
146
+ def test_file_opens_in_invalid_mode
147
+ FileUtils.touch("foo")
148
+
149
+ assert_raises(ArgumentError) do
150
+ File.open("foo", "an_illegal_mode")
151
+ end
152
+ end
153
+
154
+ def test_raises_error_when_cannot_find_file_in_read_mode
155
+ assert_raises(Errno::ENOENT) do
156
+ File.open("does_not_exist", "r")
157
+ end
158
+ end
159
+
160
+ def test_raises_error_when_cannot_find_file_in_read_write_mode
161
+ assert_raises(Errno::ENOENT) do
162
+ File.open("does_not_exist", "r+")
163
+ end
164
+ end
165
+
166
+ def test_creates_files_in_write_only_mode
167
+ File.open("foo", "w")
168
+ assert File.exists?("foo")
169
+ end
170
+
171
+ def test_creates_files_in_write_only_mode_with_bitmasks
172
+ File.open("foo", File::WRONLY | File::CREAT)
173
+ assert File.exists?("foo")
174
+ end
175
+
176
+ def test_raises_in_write_only_mode_without_create_bitmask
177
+ assert_raises(Errno::ENOENT) do
178
+ File.open("foo", File::WRONLY)
179
+ end
180
+ end
181
+
182
+ def test_creates_files_in_read_write_truncate_mode
183
+ File.open("foo", "w+")
184
+ assert File.exists?("foo")
185
+ end
186
+
187
+ def test_creates_files_in_append_write_only
188
+ File.open("foo", "a")
189
+ assert File.exists?("foo")
190
+ end
191
+
192
+ def test_creates_files_in_append_read_write
193
+ File.open("foo", "a+")
194
+ assert File.exists?("foo")
195
+ end
196
+
197
+ def test_file_in_write_only_raises_error_when_reading
198
+ FileUtils.touch("foo")
199
+
200
+ f = File.open("foo", "w")
201
+
202
+ assert_raises(IOError) do
203
+ f.read
204
+ end
205
+ end
206
+
207
+ def test_file_in_write_mode_truncates_existing_file
208
+ File.open("foo", "w") { |f| f << "contents" }
209
+
210
+ f = File.open("foo", "w")
211
+
212
+ assert_equal "", File.read("foo")
213
+ end
214
+
215
+ def test_file_in_read_write_truncation_mode_truncates_file
216
+ File.open("foo", "w") { |f| f << "foo" }
217
+
218
+ f = File.open("foo", "w+")
219
+
220
+ assert_equal "", File.read("foo")
221
+ end
222
+
223
+ def test_file_in_append_write_only_raises_error_when_reading
224
+ FileUtils.touch("foo")
225
+
226
+ f = File.open("foo", "a")
227
+
228
+ assert_raises(IOError) do
229
+ f.read
230
+ end
231
+ end
232
+
233
+ def test_can_read_files_once_written
234
+ path = '/path/to/file.txt'
235
+ File.open(path, 'w') do |f|
236
+ f.write "Yatta!"
237
+ end
238
+
239
+ assert_equal "Yatta!", File.read(path)
240
+ end
241
+
242
+ def test_can_write_to_files
243
+ path = '/path/to/file.txt'
244
+ File.open(path, 'w') do |f|
245
+ f << 'Yada Yada'
246
+ end
247
+ assert_equal 'Yada Yada', File.read(path)
248
+ end
249
+
250
+ def test_raises_error_when_opening_with_binary_mode_only
251
+ assert_raise ArgumentError do
252
+ File.open("/foo", "b")
253
+ end
254
+ end
255
+
256
+ def test_can_open_file_in_binary_mode
257
+ File.open("/foo", "wb") { |x| x << "a" }
258
+ assert_equal "a", File.read("/foo")
259
+ end
260
+
261
+ def test_can_chunk_io_when_reading
262
+ path = '/path/to/file.txt'
263
+ File.open(path, 'w') do |f|
264
+ f << 'Yada Yada'
265
+ end
266
+ file = File.new(path, 'r')
267
+ assert_equal 'Yada', file.read(4)
268
+ assert_equal ' Yada', file.read(5)
269
+ assert_equal '', file.read
270
+ file.rewind
271
+ assert_equal 'Yada Yada', file.read
272
+ end
273
+
274
+ def test_can_get_size_of_files
275
+ path = '/path/to/file.txt'
276
+ File.open(path, 'w') do |f|
277
+ f << 'Yada Yada'
278
+ end
279
+ assert_equal 9, File.size(path)
280
+ end
281
+
282
+ def test_can_check_if_file_has_size?
283
+ path = '/path/to/file.txt'
284
+ File.open(path, 'w') do |f|
285
+ f << 'Yada Yada'
286
+ end
287
+ assert File.size?(path)
288
+ assert_nil File.size?("/path/to/other.txt")
289
+ end
290
+
291
+ def test_can_check_size?_of_empty_file
292
+ path = '/path/to/file.txt'
293
+ File.open(path, 'w') do |f|
294
+ f << ''
295
+ end
296
+ assert_nil File.size?("/path/to/file.txt")
297
+ end
298
+
299
+ def test_raises_error_on_mtime_if_file_does_not_exist
300
+ assert_raise Errno::ENOENT do
301
+ File.mtime('/path/to/file.txt')
302
+ end
303
+ end
304
+
305
+ def test_can_return_mtime_on_existing_file
306
+ path = '/path/to/file.txt'
307
+ File.open(path, 'w') do |f|
308
+ f << ''
309
+ end
310
+ assert File.mtime('/path/to/file.txt').is_a?(Time)
311
+ end
312
+
313
+ def test_can_read_with_File_readlines
314
+ path = '/path/to/file.txt'
315
+ File.open(path, 'w') do |f|
316
+ f.puts "Yatta!", "Gatta!"
317
+ f.puts ["woot","toot"]
318
+ end
319
+
320
+ assert_equal %w(Yatta! Gatta! woot toot), File.readlines(path)
321
+ end
322
+
323
+ def test_File_close_disallows_further_access
324
+ path = '/path/to/file.txt'
325
+ file = File.open(path, 'w')
326
+ file.write 'Yada'
327
+ file.close
328
+ assert_raise IOError do
329
+ file.read
330
+ end
331
+ end
332
+
333
+ def test_can_read_from_file_objects
334
+ path = '/path/to/file.txt'
335
+ File.open(path, 'w') do |f|
336
+ f.write "Yatta!"
337
+ end
338
+
339
+ assert_equal "Yatta!", File.new(path).read
340
+ end
341
+
342
+ def test_file_read_errors_appropriately
343
+ assert_raise Errno::ENOENT do
344
+ File.read('anything')
345
+ end
346
+ end
347
+
348
+ def test_knows_files_are_files
349
+ path = '/path/to/file.txt'
350
+ File.open(path, 'w') do |f|
351
+ f.write "Yatta!"
352
+ end
353
+
354
+ assert File.file?(path)
355
+ end
356
+
357
+ def test_knows_symlink_files_are_files
358
+ path = '/path/to/file.txt'
359
+ File.open(path, 'w') do |f|
360
+ f.write "Yatta!"
361
+ end
362
+ FileUtils.ln_s path, sympath='/sympath'
363
+
364
+ assert File.file?(sympath)
365
+ end
366
+
367
+ def test_knows_non_existent_files_arent_files
368
+ assert_equal RealFile.file?('does/not/exist.txt'), File.file?('does/not/exist.txt')
369
+ end
370
+
371
+ def test_can_chown_files
372
+ good = 'file.txt'
373
+ bad = 'nofile.txt'
374
+ File.open(good,'w') { |f| f.write "foo" }
375
+
376
+ out = FileUtils.chown('noone', 'nogroup', good, :verbose => true)
377
+ assert_equal [good], out
378
+ assert_raises(Errno::ENOENT) do
379
+ FileUtils.chown('noone', 'nogroup', bad, :verbose => true)
380
+ end
381
+
382
+ assert_equal [good], FileUtils.chown('noone', 'nogroup', good)
383
+ assert_raises(Errno::ENOENT) do
384
+ FileUtils.chown('noone', 'nogroup', bad)
385
+ end
386
+
387
+ assert_equal [good], FileUtils.chown('noone', 'nogroup', [good])
388
+ assert_raises(Errno::ENOENT) do
389
+ FileUtils.chown('noone', 'nogroup', [good, bad])
390
+ end
391
+ end
392
+
393
+ def test_can_chown_R_files
394
+ FileUtils.mkdir_p '/path/'
395
+ File.open('/path/foo', 'w') { |f| f.write 'foo' }
396
+ File.open('/path/foobar', 'w') { |f| f.write 'foo' }
397
+ resp = FileUtils.chown_R('no', 'no', '/path')
398
+ assert_equal ['/path'], resp
399
+ end
400
+
401
+ def test_dir_globs_paths
402
+ FileUtils.mkdir_p '/path'
403
+ File.open('/path/foo', 'w') { |f| f.write 'foo' }
404
+ File.open('/path/foobar', 'w') { |f| f.write 'foo' }
405
+
406
+ FileUtils.mkdir_p '/path/bar'
407
+ File.open('/path/bar/baz', 'w') { |f| f.write 'foo' }
408
+
409
+ FileUtils.cp_r '/path/bar', '/path/bar2'
410
+
411
+ assert_equal ['/path'], Dir['/path']
412
+ assert_equal %w( /path/bar /path/bar2 /path/foo /path/foobar ), Dir['/path/*']
413
+
414
+ assert_equal ['/path/bar/baz'], Dir['/path/bar/*']
415
+ assert_equal ['/path/foo'], Dir['/path/foo']
416
+
417
+ assert_equal ['/path'], Dir['/path*']
418
+ assert_equal ['/path/foo', '/path/foobar'], Dir['/p*h/foo*']
419
+ assert_equal ['/path/foo', '/path/foobar'], Dir['/p??h/foo*']
420
+
421
+ FileUtils.cp_r '/path', '/otherpath'
422
+
423
+ assert_equal %w( /otherpath/foo /otherpath/foobar /path/foo /path/foobar ), Dir['/*/foo*']
424
+ end
425
+
426
+ def test_dir_glob_handles_root
427
+ FileUtils.mkdir_p '/path'
428
+
429
+ # this fails. the root dir should be named '/' but it is '.'
430
+ #assert_equal ['/'], Dir['/']
431
+ end
432
+
433
+ def test_dir_glob_handles_recursive_globs
434
+ File.open('/one/two/three/four.rb', 'w')
435
+ File.open('/one/five.rb', 'w')
436
+ assert_equal ['/one/five.rb', '/one/two/three/four.rb'], Dir['/one/**/*.rb']
437
+ assert_equal ['/one/two'], Dir['/one/**/two']
438
+ assert_equal ['/one/two/three'], Dir['/one/**/three']
439
+ end
440
+
441
+ def test_dir_recursive_glob_ending_in_wildcards_only_returns_files
442
+ File.open('/one/two/three/four.rb', 'w')
443
+ File.open('/one/five.rb', 'w')
444
+ assert_equal ['/one/five.rb', '/one/two/three/four.rb'], Dir['/one/**/*']
445
+ assert_equal ['/one/five.rb', '/one/two/three/four.rb'], Dir['/one/**']
446
+ end
447
+
448
+ def test_chdir_changes_directories_like_a_boss
449
+ # I know memes!
450
+ FileUtils.mkdir_p '/path'
451
+ assert_equal '.', FileSystem.fs.name
452
+ assert_equal({}, FileSystem.fs['path'])
453
+ Dir.chdir '/path' do
454
+ File.open('foo', 'w') { |f| f.write 'foo'}
455
+ File.open('foobar', 'w') { |f| f.write 'foo'}
456
+ end
457
+
458
+ assert_equal '.', FileSystem.fs.name
459
+ assert_equal(['foo', 'foobar'], FileSystem.fs['path'].keys.sort)
460
+
461
+ c = nil
462
+ Dir.chdir '/path' do
463
+ c = File.open('foo', 'r') { |f| f.read }
464
+ end
465
+
466
+ assert_equal 'foo', c
467
+ end
468
+
469
+ def test_chdir_shouldnt_keep_us_from_absolute_paths
470
+ FileUtils.mkdir_p '/path'
471
+
472
+ Dir.chdir '/path' do
473
+ File.open('foo', 'w') { |f| f.write 'foo'}
474
+ File.open('/foobar', 'w') { |f| f.write 'foo'}
475
+ end
476
+ assert_equal ['foo'], FileSystem.fs['path'].keys.sort
477
+ assert_equal ['foobar', 'path'], FileSystem.fs.keys.sort
478
+
479
+ Dir.chdir '/path' do
480
+ FileUtils.rm('foo')
481
+ FileUtils.rm('/foobar')
482
+ end
483
+
484
+ assert_equal [], FileSystem.fs['path'].keys.sort
485
+ assert_equal ['path'], FileSystem.fs.keys.sort
486
+ end
487
+
488
+ def test_chdir_should_be_nestable
489
+ FileUtils.mkdir_p '/path/me'
490
+ Dir.chdir '/path' do
491
+ File.open('foo', 'w') { |f| f.write 'foo'}
492
+ Dir.chdir 'me' do
493
+ File.open('foobar', 'w') { |f| f.write 'foo'}
494
+ end
495
+ end
496
+
497
+ assert_equal ['foo','me'], FileSystem.fs['path'].keys.sort
498
+ assert_equal ['foobar'], FileSystem.fs['path']['me'].keys.sort
499
+ end
500
+
501
+ def test_chdir_should_flop_over_and_die_if_the_dir_doesnt_exist
502
+ assert_raise(Errno::ENOENT) do
503
+ Dir.chdir('/nope') do
504
+ 1
505
+ end
506
+ end
507
+ end
508
+
509
+ def test_chdir_shouldnt_lose_state_because_of_errors
510
+ FileUtils.mkdir_p '/path'
511
+
512
+ Dir.chdir '/path' do
513
+ File.open('foo', 'w') { |f| f.write 'foo'}
514
+ File.open('foobar', 'w') { |f| f.write 'foo'}
515
+ end
516
+
517
+ begin
518
+ Dir.chdir('/path') do
519
+ raise Exception
520
+ end
521
+ rescue Exception # hardcore
522
+ end
523
+
524
+ Dir.chdir('/path') do
525
+ begin
526
+ Dir.chdir('nope'){ }
527
+ rescue Errno::ENOENT
528
+ end
529
+
530
+ assert_equal ['/path'], FileSystem.dir_levels
531
+ end
532
+
533
+ assert_equal(['foo', 'foobar'], FileSystem.fs['path'].keys.sort)
534
+ end
535
+
536
+ def test_chdir_with_no_block_is_awesome
537
+ FileUtils.mkdir_p '/path'
538
+ Dir.chdir('/path')
539
+ FileUtils.mkdir_p 'subdir'
540
+ assert_equal ['subdir'], FileSystem.current_dir.keys
541
+ Dir.chdir('subdir')
542
+ File.open('foo', 'w') { |f| f.write 'foo'}
543
+ assert_equal ['foo'], FileSystem.current_dir.keys
544
+
545
+ assert_raises(Errno::ENOENT) do
546
+ Dir.chdir('subsubdir')
547
+ end
548
+
549
+ assert_equal ['foo'], FileSystem.current_dir.keys
550
+ end
551
+
552
+ def test_current_dir_reflected_by_pwd
553
+ FileUtils.mkdir_p '/path'
554
+ Dir.chdir('/path')
555
+
556
+ assert_equal '/path', Dir.pwd
557
+ assert_equal '/path', Dir.getwd
558
+
559
+ FileUtils.mkdir_p 'subdir'
560
+ Dir.chdir('subdir')
561
+
562
+ assert_equal '/path/subdir', Dir.pwd
563
+ assert_equal '/path/subdir', Dir.getwd
564
+ end
565
+
566
+ def test_file_open_defaults_to_read
567
+ File.open('foo','w') { |f| f.write 'bar' }
568
+ assert_equal 'bar', File.open('foo') { |f| f.read }
569
+ end
570
+
571
+ def test_flush_exists_on_file
572
+ r = File.open('foo','w') { |f| f.write 'bar'; f.flush }
573
+ assert_equal 'foo', r.path
574
+ end
575
+
576
+ def test_mv_should_raise_error_on_missing_file
577
+ assert_raise(Errno::ENOENT) do
578
+ FileUtils.mv 'blafgag', 'foo'
579
+ end
580
+ end
581
+
582
+ def test_mv_actually_works
583
+ File.open('foo', 'w') { |f| f.write 'bar' }
584
+ FileUtils.mv 'foo', 'baz'
585
+ assert_equal 'bar', File.open('baz') { |f| f.read }
586
+ end
587
+
588
+ def test_cp_actually_works
589
+ File.open('foo', 'w') {|f| f.write 'bar' }
590
+ FileUtils.cp('foo', 'baz')
591
+ assert_equal 'bar', File.read('baz')
592
+ end
593
+
594
+ def test_cp_file_into_dir
595
+ File.open('foo', 'w') {|f| f.write 'bar' }
596
+ FileUtils.mkdir_p 'baz'
597
+
598
+ FileUtils.cp('foo', 'baz')
599
+ assert_equal 'bar', File.read('baz/foo')
600
+ end
601
+
602
+ def test_cp_overwrites_dest_file
603
+ File.open('foo', 'w') {|f| f.write 'FOO' }
604
+ File.open('bar', 'w') {|f| f.write 'BAR' }
605
+
606
+ FileUtils.cp('foo', 'bar')
607
+ assert_equal 'FOO', File.read('bar')
608
+ end
609
+
610
+ def test_cp_fails_on_no_source
611
+ assert_raise Errno::ENOENT do
612
+ FileUtils.cp('foo', 'baz')
613
+ end
614
+ end
615
+
616
+ def test_cp_fails_on_directory_copy
617
+ FileUtils.mkdir_p 'baz'
618
+
619
+ assert_raise Errno::EISDIR do
620
+ FileUtils.cp('baz', 'bar')
621
+ end
622
+ end
623
+
624
+ def test_cp_r_doesnt_tangle_files_together
625
+ File.open('foo', 'w') { |f| f.write 'bar' }
626
+ FileUtils.cp_r('foo', 'baz')
627
+ File.open('baz', 'w') { |f| f.write 'quux' }
628
+ assert_equal 'bar', File.open('foo') { |f| f.read }
629
+ end
630
+
631
+ def test_cp_r_should_raise_error_on_missing_file
632
+ # Yes, this error sucks, but it conforms to the original Ruby
633
+ # method.
634
+ assert_raise(RuntimeError) do
635
+ FileUtils.cp_r 'blafgag', 'foo'
636
+ end
637
+ end
638
+
639
+ def test_cp_r_handles_copying_directories
640
+ FileUtils.mkdir_p 'subdir'
641
+ Dir.chdir('subdir'){ File.open('foo', 'w') { |f| f.write 'footext' } }
642
+
643
+ FileUtils.mkdir_p 'baz'
644
+
645
+ # To a previously uncreated directory
646
+ FileUtils.cp_r('subdir', 'quux')
647
+ assert_equal 'footext', File.open('quux/foo') { |f| f.read }
648
+
649
+ # To a directory that already exists
650
+ FileUtils.cp_r('subdir', 'baz')
651
+ assert_equal 'footext', File.open('baz/subdir/foo') { |f| f.read }
652
+
653
+ # To a subdirectory of a directory that does not exist
654
+ assert_raises(Errno::ENOENT) do
655
+ FileUtils.cp_r('subdir', 'nope/something')
656
+ end
657
+ end
658
+
659
+ def test_cp_r_only_copies_into_directories
660
+ FileUtils.mkdir_p 'subdir'
661
+ Dir.chdir('subdir') { File.open('foo', 'w') { |f| f.write 'footext' } }
662
+
663
+ File.open('bar', 'w') { |f| f.write 'bartext' }
664
+
665
+ assert_raises(Errno::EEXIST) do
666
+ FileUtils.cp_r 'subdir', 'bar'
667
+ end
668
+
669
+ FileUtils.mkdir_p 'otherdir'
670
+ FileUtils.ln_s 'otherdir', 'symdir'
671
+
672
+ FileUtils.cp_r 'subdir', 'symdir'
673
+ assert_equal 'footext', File.open('symdir/subdir/foo') { |f| f.read }
674
+ end
675
+
676
+ def test_cp_r_sets_parent_correctly
677
+ FileUtils.mkdir_p '/path/foo'
678
+ File.open('/path/foo/bar', 'w') { |f| f.write 'foo' }
679
+ File.open('/path/foo/baz', 'w') { |f| f.write 'foo' }
680
+
681
+ FileUtils.cp_r '/path/foo', '/path/bar'
682
+
683
+ assert File.exists?('/path/bar/baz')
684
+ FileUtils.rm_rf '/path/bar/baz'
685
+ assert_equal %w( /path/bar/bar ), Dir['/path/bar/*']
686
+ end
687
+
688
+ def test_clone_clones_normal_files
689
+ RealFile.open(here('foo'), 'w') { |f| f.write 'bar' }
690
+ assert !File.exists?(here('foo'))
691
+ FileSystem.clone(here('foo'))
692
+ assert_equal 'bar', File.open(here('foo')) { |f| f.read }
693
+ ensure
694
+ RealFile.unlink(here('foo')) if RealFile.exists?(here('foo'))
695
+ end
696
+
697
+ def test_clone_clones_directories
698
+ RealFileUtils.mkdir_p(here('subdir'))
699
+
700
+ FileSystem.clone(here('subdir'))
701
+
702
+ assert File.exists?(here('subdir')), 'subdir was cloned'
703
+ assert File.directory?(here('subdir')), 'subdir is a directory'
704
+ ensure
705
+ RealFileUtils.rm_rf(here('subdir')) if RealFile.exists?(here('subdir'))
706
+ end
707
+
708
+ def test_clone_clones_dot_files_even_hard_to_find_ones
709
+ RealFileUtils.mkdir_p(here('subdir/.bar/baz/.quux/foo'))
710
+ assert !File.exists?(here('subdir'))
711
+
712
+ FileSystem.clone(here('subdir'))
713
+ assert_equal ['.bar'], FileSystem.find(here('subdir')).keys
714
+ assert_equal ['foo'], FileSystem.find(here('subdir/.bar/baz/.quux')).keys
715
+ ensure
716
+ RealFileUtils.rm_rf(here('subdir')) if RealFile.exists?(here('subdir'))
717
+ end
718
+
719
+ def test_putting_a_dot_at_end_copies_the_contents
720
+ FileUtils.mkdir_p 'subdir'
721
+ Dir.chdir('subdir') { File.open('foo', 'w') { |f| f.write 'footext' } }
722
+
723
+ FileUtils.mkdir_p 'newdir'
724
+ FileUtils.cp_r 'subdir/.', 'newdir'
725
+ assert_equal 'footext', File.open('newdir/foo') { |f| f.read }
726
+ end
727
+
728
+ def test_file_can_read_from_symlinks
729
+ File.open('first', 'w') { |f| f.write '1'}
730
+ FileUtils.ln_s 'first', 'one'
731
+ assert_equal '1', File.open('one') { |f| f.read }
732
+
733
+ FileUtils.mkdir_p 'subdir'
734
+ File.open('subdir/nother','w') { |f| f.write 'works' }
735
+ FileUtils.ln_s 'subdir', 'new'
736
+ assert_equal 'works', File.open('new/nother') { |f| f.read }
737
+ end
738
+
739
+ def test_can_symlink_through_file
740
+ FileUtils.touch("/foo")
741
+
742
+ File.symlink("/foo", "/bar")
743
+
744
+ assert File.symlink?("/bar")
745
+ end
746
+
747
+ def test_files_can_be_touched
748
+ FileUtils.touch('touched_file')
749
+ assert File.exists?('touched_file')
750
+ list = ['newfile', 'another']
751
+ FileUtils.touch(list)
752
+ list.each { |fp| assert(File.exists?(fp)) }
753
+ end
754
+
755
+ def test_touch_does_not_work_if_the_dir_path_cannot_be_found
756
+ assert_raises(Errno::ENOENT) do
757
+ FileUtils.touch('this/path/should/not/be/here')
758
+ end
759
+ FileUtils.mkdir_p('subdir')
760
+ list = ['subdir/foo', 'nosubdir/bar']
761
+
762
+ assert_raises(Errno::ENOENT) do
763
+ FileUtils.touch(list)
764
+ end
765
+ end
766
+
767
+ def test_extname
768
+ assert File.extname("test.doc") == ".doc"
769
+ end
770
+
771
+ # Directory tests
772
+ def test_new_directory
773
+ FileUtils.mkdir_p('/this/path/should/be/here')
774
+
775
+ assert_nothing_raised do
776
+ Dir.new('/this/path/should/be/here')
777
+ end
778
+ end
779
+
780
+ def test_new_directory_does_not_work_if_dir_path_cannot_be_found
781
+ assert_raises(Errno::ENOENT) do
782
+ Dir.new('/this/path/should/not/be/here')
783
+ end
784
+ end
785
+
786
+ def test_directory_close
787
+ FileUtils.mkdir_p('/this/path/should/be/here')
788
+ dir = Dir.new('/this/path/should/be/here')
789
+ assert dir.close.nil?
790
+
791
+ assert_raises(IOError) do
792
+ dir.each { |dir| dir }
793
+ end
794
+ end
795
+
796
+ def test_directory_each
797
+ test = ['.', '..', 'file_1', 'file_2', 'file_3', 'file_4', 'file_5' ]
798
+
799
+ FileUtils.mkdir_p('/this/path/should/be/here')
800
+
801
+ test.each do |f|
802
+ FileUtils.touch("/this/path/should/be/here/#{f}")
803
+ end
804
+
805
+ dir = Dir.new('/this/path/should/be/here')
806
+
807
+ yielded = []
808
+ dir.each do |dir|
809
+ yielded << dir
810
+ end
811
+
812
+ assert yielded.size == test.size
813
+ test.each { |t| assert yielded.include?(t) }
814
+ end
815
+
816
+ def test_directory_path
817
+ FileUtils.mkdir_p('/this/path/should/be/here')
818
+ good_path = '/this/path/should/be/here'
819
+ assert_equal good_path, Dir.new('/this/path/should/be/here').path
820
+ end
821
+
822
+ def test_directory_pos
823
+ test = ['.', '..', 'file_1', 'file_2', 'file_3', 'file_4', 'file_5' ]
824
+ FileUtils.mkdir_p('/this/path/should/be/here')
825
+ test.each do |f|
826
+ FileUtils.touch("/this/path/should/be/here/#{f}")
827
+ end
828
+
829
+ dir = Dir.new('/this/path/should/be/here')
830
+
831
+ assert dir.pos == 0
832
+ dir.read
833
+ assert dir.pos == 1
834
+ dir.read
835
+ assert dir.pos == 2
836
+ dir.read
837
+ assert dir.pos == 3
838
+ dir.read
839
+ assert dir.pos == 4
840
+ dir.read
841
+ assert dir.pos == 5
842
+ end
843
+
844
+ def test_directory_pos_assign
845
+ test = ['.', '..', 'file_1', 'file_2', 'file_3', 'file_4', 'file_5' ]
846
+
847
+ FileUtils.mkdir_p('/this/path/should/be/here')
848
+ test.each do |f|
849
+ FileUtils.touch("/this/path/should/be/here/#{f}")
850
+ end
851
+
852
+ dir = Dir.new('/this/path/should/be/here')
853
+
854
+ assert dir.pos == 0
855
+ dir.pos = 2
856
+ assert dir.pos == 2
857
+ end
858
+
859
+ def test_directory_read
860
+ test = ['.', '..', 'file_1', 'file_2', 'file_3', 'file_4', 'file_5' ]
861
+
862
+ FileUtils.mkdir_p('/this/path/should/be/here')
863
+ test.each do |f|
864
+ FileUtils.touch("/this/path/should/be/here/#{f}")
865
+ end
866
+
867
+ dir = Dir.new('/this/path/should/be/here')
868
+
869
+ assert dir.pos == 0
870
+ d = dir.read
871
+ assert dir.pos == 1
872
+ assert d == '.'
873
+
874
+ d = dir.read
875
+ assert dir.pos == 2
876
+ assert d == '..'
877
+ end
878
+
879
+ def test_directory_read_past_length
880
+ test = ['.', '..', 'file_1', 'file_2', 'file_3', 'file_4', 'file_5' ]
881
+
882
+ FileUtils.mkdir_p('/this/path/should/be/here')
883
+ test.each do |f|
884
+ FileUtils.touch("/this/path/should/be/here/#{f}")
885
+ end
886
+
887
+ dir = Dir.new('/this/path/should/be/here')
888
+
889
+ d = dir.read
890
+ assert_not_nil d
891
+ d = dir.read
892
+ assert_not_nil d
893
+ d = dir.read
894
+ assert_not_nil d
895
+ d = dir.read
896
+ assert_not_nil d
897
+ d = dir.read
898
+ assert_not_nil d
899
+ d = dir.read
900
+ assert_not_nil d
901
+ d = dir.read
902
+ assert_not_nil d
903
+ d = dir.read
904
+ assert_nil d
905
+ end
906
+
907
+ def test_directory_rewind
908
+ test = ['.', '..', 'file_1', 'file_2', 'file_3', 'file_4', 'file_5' ]
909
+
910
+ FileUtils.mkdir_p('/this/path/should/be/here')
911
+ test.each do |f|
912
+ FileUtils.touch("/this/path/should/be/here/#{f}")
913
+ end
914
+
915
+ dir = Dir.new('/this/path/should/be/here')
916
+
917
+ d = dir.read
918
+ d = dir.read
919
+ assert dir.pos == 2
920
+ dir.rewind
921
+ assert dir.pos == 0
922
+ end
923
+
924
+ def test_directory_seek
925
+ test = ['.', '..', 'file_1', 'file_2', 'file_3', 'file_4', 'file_5' ]
926
+
927
+ FileUtils.mkdir_p('/this/path/should/be/here')
928
+ test.each do |f|
929
+ FileUtils.touch("/this/path/should/be/here/#{f}")
930
+ end
931
+
932
+ dir = Dir.new('/this/path/should/be/here')
933
+
934
+ d = dir.seek 1
935
+ assert d == '..'
936
+ assert dir.pos == 1
937
+ end
938
+
939
+ def test_directory_class_delete
940
+ FileUtils.mkdir_p('/this/path/should/be/here')
941
+ Dir.delete('/this/path/should/be/here')
942
+ assert File.exists?('/this/path/should/be/here') == false
943
+ end
944
+
945
+ def test_directory_class_delete_does_not_act_on_non_empty_directory
946
+ test = ['.', '..', 'file_1', 'file_2', 'file_3', 'file_4', 'file_5' ]
947
+
948
+ FileUtils.mkdir_p('/this/path/should/be/here')
949
+ test.each do |f|
950
+ FileUtils.touch("/this/path/should/be/here/#{f}")
951
+ end
952
+
953
+ assert_raises(SystemCallError) do
954
+ Dir.delete('/this/path/should/be/here')
955
+ end
956
+ end
957
+
958
+ def test_directory_entries
959
+ test = ['.', '..', 'file_1', 'file_2', 'file_3', 'file_4', 'file_5' ]
960
+
961
+ FileUtils.mkdir_p('/this/path/should/be/here')
962
+
963
+ test.each do |f|
964
+ FileUtils.touch("/this/path/should/be/here/#{f}")
965
+ end
966
+
967
+ yielded = Dir.entries('/this/path/should/be/here')
968
+ assert yielded.size == test.size
969
+ test.each { |t| assert yielded.include?(t) }
970
+ end
971
+
972
+ def test_directory_entries_works_with_trailing_slash
973
+ test = ['.', '..', 'file_1', 'file_2', 'file_3', 'file_4', 'file_5' ]
974
+
975
+ FileUtils.mkdir_p('/this/path/should/be/here')
976
+
977
+ test.each do |f|
978
+ FileUtils.touch("/this/path/should/be/here/#{f}")
979
+ end
980
+
981
+ yielded = Dir.entries('/this/path/should/be/here/')
982
+ assert yielded.size == test.size
983
+ test.each { |t| assert yielded.include?(t) }
984
+ end
985
+
986
+ def test_directory_foreach
987
+ test = ['.', '..', 'file_1', 'file_2', 'file_3', 'file_4', 'file_5' ]
988
+
989
+ FileUtils.mkdir_p('/this/path/should/be/here')
990
+
991
+ test.each do |f|
992
+ FileUtils.touch("/this/path/should/be/here/#{f}")
993
+ end
994
+
995
+ yielded = []
996
+ Dir.foreach('/this/path/should/be/here') do |dir|
997
+ yielded << dir
998
+ end
999
+
1000
+ assert yielded.size == test.size
1001
+ test.each { |t| assert yielded.include?(t) }
1002
+ end
1003
+
1004
+ def test_directory_mkdir
1005
+ Dir.mkdir('/path')
1006
+ assert File.exists?('/path')
1007
+ end
1008
+
1009
+ def test_directory_mkdir_relative
1010
+ FileUtils.mkdir_p('/new/root')
1011
+ FileSystem.chdir('/new/root')
1012
+ Dir.mkdir('path')
1013
+ assert File.exists?('/new/root/path')
1014
+ end
1015
+
1016
+ def test_directory_mkdir_not_recursive
1017
+ assert_raises(Errno::ENOENT) do
1018
+ Dir.mkdir('/path/does/not/exist')
1019
+ end
1020
+ end
1021
+
1022
+ def test_directory_open
1023
+ test = ['.', '..', 'file_1', 'file_2', 'file_3', 'file_4', 'file_5' ]
1024
+
1025
+ FileUtils.mkdir_p('/this/path/should/be/here')
1026
+
1027
+ test.each do |f|
1028
+ FileUtils.touch("/this/path/should/be/here/#{f}")
1029
+ end
1030
+
1031
+ dir = Dir.open('/this/path/should/be/here')
1032
+ assert dir.path == '/this/path/should/be/here'
1033
+ end
1034
+
1035
+ def test_directory_open_block
1036
+ test = ['.', '..', 'file_1', 'file_2', 'file_3', 'file_4', 'file_5' ]
1037
+
1038
+ FileUtils.mkdir_p('/this/path/should/be/here')
1039
+
1040
+ test.each do |f|
1041
+ FileUtils.touch("/this/path/should/be/here/#{f}")
1042
+ end
1043
+
1044
+ yielded = []
1045
+ Dir.open('/this/path/should/be/here') do |dir|
1046
+ yielded << dir
1047
+ end
1048
+
1049
+ assert yielded.size == test.size
1050
+ test.each { |t| assert yielded.include?(t) }
1051
+ end
1052
+
1053
+ def test_tmpdir
1054
+ assert Dir.tmpdir == "/tmp"
1055
+ end
1056
+
1057
+ def test_hard_link_creates_file
1058
+ FileUtils.touch("/foo")
1059
+
1060
+ File.link("/foo", "/bar")
1061
+ assert File.exists?("/bar")
1062
+ end
1063
+
1064
+ def test_hard_link_with_missing_file_raises_error
1065
+ assert_raises(Errno::ENOENT) do
1066
+ File.link("/foo", "/bar")
1067
+ end
1068
+ end
1069
+
1070
+ def test_hard_link_with_existing_destination_file
1071
+ FileUtils.touch("/foo")
1072
+ FileUtils.touch("/bar")
1073
+
1074
+ assert_raises(Errno::EEXIST) do
1075
+ File.link("/foo", "/bar")
1076
+ end
1077
+ end
1078
+
1079
+ def test_hard_link_returns_0_when_successful
1080
+ FileUtils.touch("/foo")
1081
+
1082
+ assert_equal 0, File.link("/foo", "/bar")
1083
+ end
1084
+
1085
+ def test_hard_link_returns_duplicate_file
1086
+ File.open("/foo", "w") { |x| x << "some content" }
1087
+
1088
+ File.link("/foo", "/bar")
1089
+ assert_equal "some content", File.read("/bar")
1090
+ end
1091
+
1092
+ def test_hard_link_with_directory_raises_error
1093
+ Dir.mkdir "/foo"
1094
+
1095
+ assert_raises(Errno::EPERM) do
1096
+ File.link("/foo", "/bar")
1097
+ end
1098
+ end
1099
+
1100
+ def test_file_stat_returns_file_stat_object
1101
+ FileUtils.touch("/foo")
1102
+ assert_equal File::Stat, File.stat("/foo").class
1103
+ end
1104
+
1105
+ def test_can_delete_file_with_delete
1106
+ FileUtils.touch("/foo")
1107
+
1108
+ File.delete("/foo")
1109
+
1110
+ assert !File.exists?("/foo")
1111
+ end
1112
+
1113
+ def test_can_delete_multiple_files_with_delete
1114
+ FileUtils.touch("/foo")
1115
+ FileUtils.touch("/bar")
1116
+
1117
+ File.delete("/foo", "/bar")
1118
+
1119
+ assert !File.exists?("/foo")
1120
+ assert !File.exists?("/bar")
1121
+ end
1122
+
1123
+ def test_delete_raises_argument_error_with_no_filename_given
1124
+ assert_raises ArgumentError do
1125
+ File.delete
1126
+ end
1127
+ end
1128
+
1129
+ def test_delete_returns_number_one_when_given_one_arg
1130
+ FileUtils.touch("/foo")
1131
+
1132
+ assert_equal 1, File.delete("/foo")
1133
+ end
1134
+
1135
+ def test_delete_returns_number_two_when_given_two_args
1136
+ FileUtils.touch("/foo")
1137
+ FileUtils.touch("/bar")
1138
+
1139
+ assert_equal 2, File.delete("/foo", "/bar")
1140
+ end
1141
+
1142
+ def test_delete_raises_error_when_first_file_does_not_exist
1143
+ assert_raises Errno::ENOENT do
1144
+ File.delete("/foo")
1145
+ end
1146
+ end
1147
+
1148
+ def test_delete_does_not_raise_error_when_second_file_does_not_exist
1149
+ FileUtils.touch("/foo")
1150
+
1151
+ assert_nothing_raised do
1152
+ File.delete("/foo", "/bar")
1153
+ end
1154
+ end
1155
+
1156
+ def test_unlink_is_alias_for_delete
1157
+ assert_equal File.method(:unlink), File.method(:delete)
1158
+ end
1159
+
1160
+ def test_unlink_removes_only_one_file_content
1161
+ File.open("/foo", "w") { |f| f << "some_content" }
1162
+ File.link("/foo", "/bar")
1163
+
1164
+ File.unlink("/bar")
1165
+ File.read("/foo") == "some_content"
1166
+ end
1167
+
1168
+ def test_link_reports_correct_stat_info_after_unlinking
1169
+ File.open("/foo", "w") { |f| f << "some_content" }
1170
+ File.link("/foo", "/bar")
1171
+
1172
+ File.unlink("/bar")
1173
+ assert_equal 1, File.stat("/foo").nlink
1174
+ end
1175
+
1176
+ def test_delete_works_with_symlink
1177
+ FileUtils.touch("/foo")
1178
+ File.symlink("/foo", "/bar")
1179
+
1180
+ File.unlink("/bar")
1181
+
1182
+ assert File.exists?("/foo")
1183
+ assert !File.exists?("/bar")
1184
+ end
1185
+
1186
+ def test_delete_works_with_symlink_source
1187
+ FileUtils.touch("/foo")
1188
+ File.symlink("/foo", "/bar")
1189
+
1190
+ File.unlink("/foo")
1191
+
1192
+ assert !File.exists?("/foo")
1193
+ end
1194
+
1195
+ def test_file_seek_returns_0
1196
+ File.open("/foo", "w") do |f|
1197
+ f << "one\ntwo\nthree"
1198
+ end
1199
+
1200
+ file = File.open("/foo", "r")
1201
+
1202
+ assert_equal 0, file.seek(1)
1203
+ end
1204
+
1205
+ def test_file_seek_seeks_to_location
1206
+ File.open("/foo", "w") do |f|
1207
+ f << "123"
1208
+ end
1209
+
1210
+ file = File.open("/foo", "r")
1211
+ file.seek(1)
1212
+ assert_equal "23", file.read
1213
+ end
1214
+
1215
+ def test_file_seek_seeks_to_correct_location
1216
+ File.open("/foo", "w") do |f|
1217
+ f << "123"
1218
+ end
1219
+
1220
+ file = File.open("/foo", "r")
1221
+ file.seek(2)
1222
+ assert_equal "3", file.read
1223
+ end
1224
+
1225
+ def test_file_seek_can_take_negative_offset
1226
+ File.open("/foo", "w") do |f|
1227
+ f << "123456789"
1228
+ end
1229
+
1230
+ file = File.open("/foo", "r")
1231
+
1232
+ file.seek(-1, IO::SEEK_END)
1233
+ assert_equal "9", file.read
1234
+
1235
+ file.seek(-2, IO::SEEK_END)
1236
+ assert_equal "89", file.read
1237
+
1238
+ file.seek(-3, IO::SEEK_END)
1239
+ assert_equal "789", file.read
1240
+ end
1241
+
1242
+ def test_should_have_constants_inherited_from_descending_from_io
1243
+ assert_equal IO::SEEK_CUR, File::SEEK_CUR
1244
+ assert_equal IO::SEEK_END, File::SEEK_END
1245
+ assert_equal IO::SEEK_SET, File::SEEK_SET
1246
+ end
1247
+
1248
+ def here(fname)
1249
+ RealFile.expand_path(RealFile.dirname(__FILE__)+'/'+fname)
1250
+ end
1251
+ end