backports 3.0.3 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (487) hide show
  1. data/.gitignore +1 -1
  2. data/.gitmodules +3 -0
  3. data/.travis.yml +11 -2
  4. data/CHANGELOG.rdoc +6 -0
  5. data/Gemfile +20 -0
  6. data/Gemfile.lock +24 -0
  7. data/README.rdoc +39 -11
  8. data/Rakefile +98 -1
  9. data/default.mspec +9 -0
  10. data/lib/backports.rb +4 -4
  11. data/lib/backports/1.8.7.rb +2 -3
  12. data/lib/backports/1.8.7/argf.rb +2 -43
  13. data/lib/backports/1.8.7/argf/bytes.rb +1 -0
  14. data/lib/backports/1.8.7/argf/chars.rb +1 -0
  15. data/lib/backports/1.8.7/argf/each.rb +3 -0
  16. data/lib/backports/1.8.7/argf/each_byte.rb +9 -0
  17. data/lib/backports/1.8.7/argf/each_char.rb +35 -0
  18. data/lib/backports/1.8.7/argf/each_line.rb +3 -0
  19. data/lib/backports/1.8.7/argf/getbyte.rb +5 -0
  20. data/lib/backports/1.8.7/argf/lines.rb +5 -0
  21. data/lib/backports/1.8.7/argf/readbyte.rb +5 -0
  22. data/lib/backports/1.8.7/array.rb +2 -207
  23. data/lib/backports/1.8.7/array/collect.rb +3 -0
  24. data/lib/backports/1.8.7/array/combination.rb +24 -0
  25. data/lib/backports/1.8.7/array/cycle.rb +16 -0
  26. data/lib/backports/1.8.7/array/delete_if.rb +3 -0
  27. data/lib/backports/1.8.7/array/each.rb +3 -0
  28. data/lib/backports/1.8.7/array/each_index.rb +3 -0
  29. data/lib/backports/1.8.7/array/find_index.rb +1 -0
  30. data/lib/backports/1.8.7/array/flatten.rb +47 -0
  31. data/lib/backports/1.8.7/array/index.rb +15 -0
  32. data/lib/backports/1.8.7/array/map.rb +3 -0
  33. data/lib/backports/1.8.7/array/permutation.rb +30 -0
  34. data/lib/backports/1.8.7/array/pop.rb +15 -0
  35. data/lib/backports/1.8.7/array/product.rb +32 -0
  36. data/lib/backports/1.8.7/array/reject.rb +3 -0
  37. data/lib/backports/1.8.7/array/reverse_each.rb +3 -0
  38. data/lib/backports/1.8.7/array/rindex.rb +15 -0
  39. data/lib/backports/1.8.7/array/select.rb +3 -0
  40. data/lib/backports/1.8.7/array/shift.rb +13 -0
  41. data/lib/backports/1.8.7/array/shuffle.rb +17 -0
  42. data/lib/backports/1.8.7/binding.rb +3 -6
  43. data/lib/backports/1.8.7/binding/eval.rb +7 -0
  44. data/lib/backports/1.8.7/dir.rb +2 -57
  45. data/lib/backports/1.8.7/dir/each.rb +7 -0
  46. data/lib/backports/1.8.7/dir/foreach.rb +9 -0
  47. data/lib/backports/1.8.7/dir/mktmpdir.rb +44 -0
  48. data/lib/backports/1.8.7/enumerable.rb +2 -240
  49. data/lib/backports/1.8.7/enumerable/count.rb +17 -0
  50. data/lib/backports/1.8.7/enumerable/cycle.rb +24 -0
  51. data/lib/backports/1.8.7/enumerable/detect.rb +3 -0
  52. data/lib/backports/1.8.7/enumerable/drop.rb +13 -0
  53. data/lib/backports/1.8.7/enumerable/drop_while.rb +16 -0
  54. data/lib/backports/1.8.7/enumerable/each_cons.rb +4 -0
  55. data/lib/backports/1.8.7/enumerable/each_slice.rb +4 -0
  56. data/lib/backports/1.8.7/enumerable/each_with_index.rb +3 -0
  57. data/lib/backports/1.8.7/enumerable/entries.rb +11 -0
  58. data/lib/backports/1.8.7/enumerable/find.rb +3 -0
  59. data/lib/backports/1.8.7/enumerable/find_all.rb +3 -0
  60. data/lib/backports/1.8.7/enumerable/find_index.rb +21 -0
  61. data/lib/backports/1.8.7/enumerable/first.rb +21 -0
  62. data/lib/backports/1.8.7/enumerable/group_by.rb +14 -0
  63. data/lib/backports/1.8.7/enumerable/inject.rb +14 -0
  64. data/lib/backports/1.8.7/enumerable/max_by.rb +16 -0
  65. data/lib/backports/1.8.7/enumerable/min_by.rb +16 -0
  66. data/lib/backports/1.8.7/enumerable/minmax.rb +21 -0
  67. data/lib/backports/1.8.7/enumerable/minmax_by.rb +19 -0
  68. data/lib/backports/1.8.7/enumerable/none.rb +7 -0
  69. data/lib/backports/1.8.7/enumerable/one.rb +23 -0
  70. data/lib/backports/1.8.7/enumerable/partition.rb +3 -0
  71. data/lib/backports/1.8.7/enumerable/reduce.rb +1 -0
  72. data/lib/backports/1.8.7/enumerable/reject.rb +3 -0
  73. data/lib/backports/1.8.7/enumerable/reverse_each.rb +12 -0
  74. data/lib/backports/1.8.7/enumerable/select.rb +3 -0
  75. data/lib/backports/1.8.7/enumerable/sort_by.rb +3 -0
  76. data/lib/backports/1.8.7/enumerable/take.rb +9 -0
  77. data/lib/backports/1.8.7/enumerable/take_while.rb +14 -0
  78. data/lib/backports/1.8.7/enumerable/to_a.rb +12 -0
  79. data/lib/backports/1.8.7/enumerator.rb +2 -31
  80. data/lib/backports/1.8.7/enumerator/each.rb +6 -0
  81. data/lib/backports/1.8.7/enumerator/next.rb +15 -0
  82. data/lib/backports/1.8.7/enumerator/rewind.rb +13 -0
  83. data/lib/backports/1.8.7/enumerator/with_index.rb +14 -0
  84. data/lib/backports/1.8.7/env.rb +3 -3
  85. data/lib/backports/1.8.7/env/delete_if.rb +3 -0
  86. data/lib/backports/1.8.7/env/each.rb +3 -0
  87. data/lib/backports/1.8.7/env/each_key.rb +3 -0
  88. data/lib/backports/1.8.7/env/each_pair.rb +3 -0
  89. data/lib/backports/1.8.7/env/each_value.rb +3 -0
  90. data/lib/backports/1.8.7/env/reject.rb +4 -0
  91. data/lib/backports/1.8.7/env/select.rb +3 -0
  92. data/lib/backports/1.8.7/fixnum.rb +2 -10
  93. data/lib/backports/1.8.7/fixnum/div.rb +7 -0
  94. data/lib/backports/1.8.7/fixnum/fdiv.rb +7 -0
  95. data/lib/backports/1.8.7/float.rb +3 -4
  96. data/lib/backports/1.8.7/float/fdiv.rb +3 -0
  97. data/lib/backports/1.8.7/gc.rb +2 -10
  98. data/lib/backports/1.8.7/gc/stress.rb +9 -0
  99. data/lib/backports/1.8.7/hash.rb +2 -41
  100. data/lib/backports/1.8.7/hash/constructor.rb +25 -0
  101. data/lib/backports/1.8.7/hash/delete_if.rb +3 -0
  102. data/lib/backports/1.8.7/hash/each.rb +3 -0
  103. data/lib/backports/1.8.7/hash/each_key.rb +3 -0
  104. data/lib/backports/1.8.7/hash/each_pair.rb +3 -0
  105. data/lib/backports/1.8.7/hash/each_value.rb +3 -0
  106. data/lib/backports/1.8.7/hash/eql.rb +1 -0
  107. data/lib/backports/1.8.7/hash/hash.rb +17 -0
  108. data/lib/backports/1.8.7/hash/key.rb +3 -0
  109. data/lib/backports/1.8.7/hash/reject.rb +3 -0
  110. data/lib/backports/1.8.7/hash/select.rb +3 -0
  111. data/lib/backports/1.8.7/integer.rb +2 -23
  112. data/lib/backports/1.8.7/integer/downto.rb +3 -0
  113. data/lib/backports/1.8.7/integer/even.rb +7 -0
  114. data/lib/backports/1.8.7/integer/odd.rb +7 -0
  115. data/lib/backports/1.8.7/integer/ord.rb +7 -0
  116. data/lib/backports/1.8.7/integer/pred.rb +7 -0
  117. data/lib/backports/1.8.7/integer/times.rb +3 -0
  118. data/lib/backports/1.8.7/integer/upto.rb +3 -0
  119. data/lib/backports/1.8.7/io.rb +2 -42
  120. data/lib/backports/1.8.7/io/bytes.rb +1 -0
  121. data/lib/backports/1.8.7/io/chars.rb +1 -0
  122. data/lib/backports/1.8.7/io/each.rb +3 -0
  123. data/lib/backports/1.8.7/io/each_byte.rb +6 -0
  124. data/lib/backports/1.8.7/io/each_char.rb +34 -0
  125. data/lib/backports/1.8.7/io/each_line.rb +6 -0
  126. data/lib/backports/1.8.7/io/foreach.rb +7 -0
  127. data/lib/backports/1.8.7/io/getbyte.rb +3 -0
  128. data/lib/backports/1.8.7/io/lines.rb +1 -0
  129. data/lib/backports/1.8.7/io/readbyte.rb +3 -0
  130. data/lib/backports/1.8.7/kernel.rb +2 -35
  131. data/lib/backports/1.8.7/kernel/__method__.rb +8 -0
  132. data/lib/backports/1.8.7/kernel/instance_exec.rb +10 -0
  133. data/lib/backports/1.8.7/kernel/tap.rb +8 -0
  134. data/lib/backports/1.8.7/method.rb +2 -46
  135. data/lib/backports/1.8.7/method/name.rb +49 -0
  136. data/lib/backports/1.8.7/module.rb +3 -7
  137. data/lib/backports/1.8.7/module/class_exec.rb +1 -0
  138. data/lib/backports/1.8.7/module/module_exec.rb +11 -0
  139. data/lib/backports/1.8.7/numeric.rb +3 -3
  140. data/lib/backports/1.8.7/numeric/step.rb +3 -0
  141. data/lib/backports/1.8.7/object_space.rb +3 -5
  142. data/lib/backports/1.8.7/object_space/each_object.rb +5 -0
  143. data/lib/backports/1.8.7/proc.rb +3 -4
  144. data/lib/backports/1.8.7/proc/yield.rb +3 -0
  145. data/lib/backports/1.8.7/process.rb +3 -5
  146. data/lib/backports/1.8.7/process/exec.rb +3 -0
  147. data/lib/backports/1.8.7/range.rb +3 -4
  148. data/lib/backports/1.8.7/range/each.rb +3 -0
  149. data/lib/backports/1.8.7/range/step.rb +3 -0
  150. data/lib/backports/1.8.7/regexp.rb +3 -12
  151. data/lib/backports/1.8.7/regexp/union.rb +11 -0
  152. data/lib/backports/1.8.7/stop_iteration.rb +14 -0
  153. data/lib/backports/1.8.7/string.rb +2 -91
  154. data/lib/backports/1.8.7/string/bytes.rb +1 -0
  155. data/lib/backports/1.8.7/string/bytesize.rb +3 -0
  156. data/lib/backports/1.8.7/string/each.rb +3 -0
  157. data/lib/backports/1.8.7/string/each_byte.rb +5 -0
  158. data/lib/backports/1.8.7/string/each_char.rb +13 -0
  159. data/lib/backports/1.8.7/string/each_line.rb +5 -0
  160. data/lib/backports/1.8.7/string/end_with.rb +12 -0
  161. data/lib/backports/1.8.7/string/lines.rb +1 -0
  162. data/lib/backports/1.8.7/string/partition.rb +20 -0
  163. data/lib/backports/1.8.7/string/rpartition.rb +19 -0
  164. data/lib/backports/1.8.7/string/start_with.rb +12 -0
  165. data/lib/backports/1.8.7/string/upto.rb +15 -0
  166. data/lib/backports/1.8.7/struct.rb +3 -3
  167. data/lib/backports/1.8.7/struct/each.rb +3 -0
  168. data/lib/backports/1.8.7/struct/each_pair.rb +3 -0
  169. data/lib/backports/1.8.7/symbol.rb +3 -6
  170. data/lib/backports/1.8.7/symbol/to_proc.rb +8 -0
  171. data/lib/backports/1.8.8.rb +1 -3
  172. data/lib/backports/1.8.rb +1 -3
  173. data/lib/backports/1.9.1.rb +2 -4
  174. data/lib/backports/1.9.1/array.rb +3 -8
  175. data/lib/backports/1.9.1/array/sample.rb +19 -0
  176. data/lib/backports/1.9.1/array/try_convert.rb +7 -0
  177. data/lib/backports/1.9.1/dir.rb +3 -3
  178. data/lib/backports/1.9.1/dir/to_path.rb +3 -0
  179. data/lib/backports/1.9.1/enumerable.rb +2 -18
  180. data/lib/backports/1.9.1/enumerable/each_with_index.rb +14 -0
  181. data/lib/backports/1.9.1/enumerable/each_with_object.rb +9 -0
  182. data/lib/backports/1.9.1/enumerator.rb +2 -40
  183. data/lib/backports/1.9.1/enumerator/new.rb +40 -0
  184. data/lib/backports/1.9.1/enumerator/with_object.rb +6 -0
  185. data/lib/backports/1.9.1/env.rb +3 -3
  186. data/lib/backports/1.9.1/env/key.rb +5 -0
  187. data/lib/backports/1.9.1/file.rb +2 -43
  188. data/lib/backports/1.9.1/file/atime.rb +5 -0
  189. data/lib/backports/1.9.1/file/basename.rb +5 -0
  190. data/lib/backports/1.9.1/file/binary.rb +6 -0
  191. data/lib/backports/1.9.1/file/blockdev.rb +5 -0
  192. data/lib/backports/1.9.1/file/chardev.rb +5 -0
  193. data/lib/backports/1.9.1/file/chmod.rb +5 -0
  194. data/lib/backports/1.9.1/file/chown.rb +5 -0
  195. data/lib/backports/1.9.1/file/ctime.rb +5 -0
  196. data/lib/backports/1.9.1/file/delete.rb +5 -0
  197. data/lib/backports/1.9.1/file/directory.rb +5 -0
  198. data/lib/backports/1.9.1/file/dirname.rb +5 -0
  199. data/lib/backports/1.9.1/file/executable.rb +5 -0
  200. data/lib/backports/1.9.1/file/executable_real.rb +5 -0
  201. data/lib/backports/1.9.1/file/exist.rb +5 -0
  202. data/lib/backports/1.9.1/file/exists.rb +5 -0
  203. data/lib/backports/1.9.1/file/expand_path.rb +14 -0
  204. data/lib/backports/1.9.1/file/extname.rb +5 -0
  205. data/lib/backports/1.9.1/file/file.rb +5 -0
  206. data/lib/backports/1.9.1/file/ftype.rb +5 -0
  207. data/lib/backports/1.9.1/file/grpowned.rb +5 -0
  208. data/lib/backports/1.9.1/file/join.rb +5 -0
  209. data/lib/backports/1.9.1/file/lchmod.rb +5 -0
  210. data/lib/backports/1.9.1/file/lchown.rb +5 -0
  211. data/lib/backports/1.9.1/file/link.rb +5 -0
  212. data/lib/backports/1.9.1/file/lstat.rb +5 -0
  213. data/lib/backports/1.9.1/file/mtime.rb +5 -0
  214. data/lib/backports/1.9.1/file/new.rb +5 -0
  215. data/lib/backports/1.9.1/file/open.rb +23 -0
  216. data/lib/backports/1.9.1/file/owned.rb +5 -0
  217. data/lib/backports/1.9.1/file/pipe.rb +5 -0
  218. data/lib/backports/1.9.1/file/readable.rb +5 -0
  219. data/lib/backports/1.9.1/file/readable_real.rb +5 -0
  220. data/lib/backports/1.9.1/file/readlink.rb +5 -0
  221. data/lib/backports/1.9.1/file/rename.rb +5 -0
  222. data/lib/backports/1.9.1/file/setgid.rb +5 -0
  223. data/lib/backports/1.9.1/file/setuid.rb +5 -0
  224. data/lib/backports/1.9.1/file/size.rb +14 -0
  225. data/lib/backports/1.9.1/file/socket.rb +5 -0
  226. data/lib/backports/1.9.1/file/split.rb +5 -0
  227. data/lib/backports/1.9.1/file/stat.rb +5 -0
  228. data/lib/backports/1.9.1/file/sticky.rb +5 -0
  229. data/lib/backports/1.9.1/file/symlink.rb +6 -0
  230. data/lib/backports/1.9.1/file/to_path.rb +3 -0
  231. data/lib/backports/1.9.1/file/truncate.rb +5 -0
  232. data/lib/backports/1.9.1/file/unlink.rb +5 -0
  233. data/lib/backports/1.9.1/file/writable.rb +5 -0
  234. data/lib/backports/1.9.1/file/writable_real.rb +5 -0
  235. data/lib/backports/1.9.1/file/zero.rb +5 -0
  236. data/lib/backports/1.9.1/float.rb +3 -19
  237. data/lib/backports/1.9.1/float/round.rb +21 -0
  238. data/lib/backports/1.9.1/hash.rb +2 -35
  239. data/lib/backports/1.9.1/hash/assoc.rb +12 -0
  240. data/lib/backports/1.9.1/hash/default_proc.rb +14 -0
  241. data/lib/backports/1.9.1/hash/rassoc.rb +9 -0
  242. data/lib/backports/1.9.1/hash/try_convert.rb +7 -0
  243. data/lib/backports/1.9.1/integer.rb +2 -21
  244. data/lib/backports/1.9.1/integer/magnitude.rb +3 -0
  245. data/lib/backports/1.9.1/integer/round.rb +24 -0
  246. data/lib/backports/1.9.1/io.rb +2 -33
  247. data/lib/backports/1.9.1/io/binread.rb +10 -0
  248. data/lib/backports/1.9.1/io/open.rb +21 -0
  249. data/lib/backports/1.9.1/io/try_convert.rb +7 -0
  250. data/lib/backports/1.9.1/io/ungetbyte.rb +3 -0
  251. data/lib/backports/1.9.1/kernel.rb +2 -39
  252. data/lib/backports/1.9.1/kernel/__callee__.rb +7 -0
  253. data/lib/backports/1.9.1/kernel/define_singleton_method.rb +9 -0
  254. data/lib/backports/1.9.1/kernel/public_method.rb +11 -0
  255. data/lib/backports/1.9.1/kernel/public_send.rb +13 -0
  256. data/lib/backports/1.9.1/kernel/require_relative.rb +14 -0
  257. data/lib/backports/1.9.1/math.rb +2 -24
  258. data/lib/backports/1.9.1/math/log.rb +22 -0
  259. data/lib/backports/1.9.1/math/log2.rb +5 -0
  260. data/lib/backports/1.9.1/numeric.rb +3 -9
  261. data/lib/backports/1.9.1/numeric/round.rb +11 -0
  262. data/lib/backports/1.9.1/proc.rb +2 -53
  263. data/lib/backports/1.9.1/proc/case_compare.rb +6 -0
  264. data/lib/backports/1.9.1/proc/curry.rb +24 -0
  265. data/lib/backports/1.9.1/proc/lambda.rb +40 -0
  266. data/lib/backports/1.9.1/range.rb +3 -3
  267. data/lib/backports/1.9.1/range/cover.rb +3 -0
  268. data/lib/backports/1.9.1/regexp.rb +3 -8
  269. data/lib/backports/1.9.1/regexp/try_convert.rb +7 -0
  270. data/lib/backports/1.9.1/stdlib.rb +1 -1
  271. data/lib/backports/1.9.1/string.rb +2 -44
  272. data/lib/backports/1.9.1/string/ascii_only.rb +7 -0
  273. data/lib/backports/1.9.1/string/chr.rb +7 -0
  274. data/lib/backports/1.9.1/string/clear.rb +8 -0
  275. data/lib/backports/1.9.1/string/codepoints.rb +8 -0
  276. data/lib/backports/1.9.1/string/each_codepoint.rb +3 -0
  277. data/lib/backports/1.9.1/string/getbyte.rb +3 -0
  278. data/lib/backports/1.9.1/string/ord.rb +7 -0
  279. data/lib/backports/1.9.1/string/setbyte.rb +3 -0
  280. data/lib/backports/1.9.1/string/try_convert.rb +7 -0
  281. data/lib/backports/1.9.1/symbol.rb +2 -31
  282. data/lib/backports/1.9.1/symbol/capitalize.rb +7 -0
  283. data/lib/backports/1.9.1/symbol/casecmp.rb +8 -0
  284. data/lib/backports/1.9.1/symbol/comparable.rb +7 -0
  285. data/lib/backports/1.9.1/symbol/comparison.rb +8 -0
  286. data/lib/backports/1.9.1/symbol/downcase.rb +7 -0
  287. data/lib/backports/1.9.1/symbol/element_reference.rb +7 -0
  288. data/lib/backports/1.9.1/symbol/empty.rb +7 -0
  289. data/lib/backports/1.9.1/symbol/length.rb +7 -0
  290. data/lib/backports/1.9.1/symbol/match.rb +9 -0
  291. data/lib/backports/1.9.1/symbol/next.rb +1 -0
  292. data/lib/backports/1.9.1/symbol/size.rb +7 -0
  293. data/lib/backports/1.9.1/symbol/succ.rb +8 -0
  294. data/lib/backports/1.9.1/symbol/swapcase.rb +7 -0
  295. data/lib/backports/1.9.1/symbol/upcase.rb +7 -0
  296. data/lib/backports/1.9.2.rb +2 -4
  297. data/lib/backports/1.9.2/array.rb +2 -109
  298. data/lib/backports/1.9.2/array/keep_if.rb +8 -0
  299. data/lib/backports/1.9.2/array/product.rb +26 -0
  300. data/lib/backports/1.9.2/array/repeated_combination.rb +25 -0
  301. data/lib/backports/1.9.2/array/repeated_permutation.rb +26 -0
  302. data/lib/backports/1.9.2/array/rotate.rb +17 -0
  303. data/lib/backports/1.9.2/array/select.rb +8 -0
  304. data/lib/backports/1.9.2/array/sort_by.rb +9 -0
  305. data/lib/backports/1.9.2/array/uniq.rb +29 -0
  306. data/lib/backports/1.9.2/complex.rb +3 -6
  307. data/lib/backports/1.9.2/complex/to_r.rb +10 -0
  308. data/lib/backports/1.9.2/dir.rb +3 -5
  309. data/lib/backports/1.9.2/dir/home.rb +5 -0
  310. data/lib/backports/1.9.2/enumerable.rb +2 -73
  311. data/lib/backports/1.9.2/enumerable/chunk.rb +39 -0
  312. data/lib/backports/1.9.2/enumerable/collect_concat.rb +1 -0
  313. data/lib/backports/1.9.2/enumerable/each_entry.rb +11 -0
  314. data/lib/backports/1.9.2/enumerable/flat_map.rb +11 -0
  315. data/lib/backports/1.9.2/enumerable/slice_before.rb +30 -0
  316. data/lib/backports/1.9.2/float.rb +3 -4
  317. data/lib/backports/1.9.2/float/infinity.rb +3 -0
  318. data/lib/backports/1.9.2/float/nan.rb +3 -0
  319. data/lib/backports/1.9.2/hash.rb +2 -10
  320. data/lib/backports/1.9.2/hash/keep_if.rb +8 -0
  321. data/lib/backports/1.9.2/hash/select.rb +9 -0
  322. data/lib/backports/1.9.2/kernel.rb +3 -5
  323. data/lib/backports/1.9.2/kernel/singleton_class.rb +7 -0
  324. data/lib/backports/1.9.2/random.rb +1 -1
  325. data/lib/backports/1.9.2/stdlib.rb +1 -1
  326. data/lib/backports/1.9.2/stdlib/matrix.rb +9 -8
  327. data/lib/backports/1.9.2/stdlib/set.rb +1 -1
  328. data/lib/backports/1.9.3.rb +2 -4
  329. data/lib/backports/1.9.3/file.rb +3 -14
  330. data/lib/backports/1.9.3/file/null.rb +16 -0
  331. data/lib/backports/1.9.3/io.rb +2 -31
  332. data/lib/backports/1.9.3/io/advise.rb +24 -0
  333. data/lib/backports/1.9.3/io/binwrite.rb +7 -0
  334. data/lib/backports/1.9.3/io/write.rb +7 -0
  335. data/lib/backports/1.9.3/string.rb +2 -38
  336. data/lib/backports/1.9.3/string/byteslice.rb +36 -0
  337. data/lib/backports/1.9.3/string/prepend.rb +10 -0
  338. data/lib/backports/1.9.rb +1 -3
  339. data/lib/backports/2.0.0.rb +2 -4
  340. data/lib/backports/2.0.0/array.rb +2 -29
  341. data/lib/backports/2.0.0/array/bsearch.rb +32 -0
  342. data/lib/backports/2.0.0/enumerable.rb +2 -11
  343. data/lib/backports/2.0.0/enumerable/lazy.rb +216 -0
  344. data/lib/backports/2.0.0/enumerator.rb +3 -0
  345. data/lib/backports/2.0.0/enumerator/lazy.rb +1 -203
  346. data/lib/backports/2.0.0/env.rb +3 -0
  347. data/lib/backports/2.0.0/env/to_h.rb +5 -0
  348. data/lib/backports/2.0.0/hash.rb +2 -18
  349. data/lib/backports/2.0.0/hash/default_proc.rb +16 -0
  350. data/lib/backports/2.0.0/hash/to_h.rb +7 -0
  351. data/lib/backports/2.0.0/nil.rb +3 -0
  352. data/lib/backports/2.0.0/nil/to_h.rb +7 -0
  353. data/lib/backports/2.0.0/range.rb +2 -48
  354. data/lib/backports/2.0.0/range/bsearch.rb +49 -0
  355. data/lib/backports/2.0.0/stdlib/abbrev.rb +1 -0
  356. data/lib/backports/2.0.0/stdlib/fake_stdlib_lib.rb +1 -0
  357. data/lib/backports/2.0.0/stdlib/ostruct.rb +1 -1
  358. data/lib/backports/2.0.0/struct.rb +3 -7
  359. data/lib/backports/2.0.0/struct/to_h.rb +9 -0
  360. data/lib/backports/2.0.rb +1 -3
  361. data/lib/backports/basic_object.rb +29 -29
  362. data/lib/backports/{1.9.2 → extra}/random/MT19937.rb +2 -2
  363. data/lib/backports/{1.9.2 → extra}/random/bits_and_bytes.rb +1 -1
  364. data/lib/backports/{1.9.2 → extra}/random/implementation.rb +1 -1
  365. data/lib/backports/extra/random/load.rb +17 -0
  366. data/lib/backports/force/array_map.rb +1 -1
  367. data/lib/backports/force/enumerable_map.rb +1 -1
  368. data/lib/backports/force/hash_select.rb +1 -1
  369. data/lib/backports/force/string_size.rb +1 -1
  370. data/lib/backports/rails.rb +2 -2
  371. data/lib/backports/rails/enumerable.rb +1 -1
  372. data/lib/backports/rails/hash.rb +1 -1
  373. data/lib/backports/rails/kernel.rb +1 -1
  374. data/lib/backports/rails/module.rb +1 -1
  375. data/lib/backports/rails/string.rb +6 -6
  376. data/lib/backports/tools.rb +74 -64
  377. data/lib/backports/version.rb +1 -1
  378. data/set_version/1.8.7.rb +1 -0
  379. data/set_version/1.9.1.rb +1 -0
  380. data/set_version/1.9.2.rb +1 -0
  381. data/set_version/1.9.3.rb +1 -0
  382. data/set_version/2.0.0.rb +1 -0
  383. data/set_version/setter.rb +14 -0
  384. data/tags/1.8.6/core/array/rotate_spec.rb +2 -0
  385. data/tags/1.8.6/core/array/uniq_spec.rb +3 -0
  386. data/tags/1.8.6/core/complex/to_r_spec.rb +3 -0
  387. data/tags/1.8.6/core/enumerable/each_entry_spec.rb +1 -0
  388. data/tags/1.8.6/core/enumerator/next_spec.rb +1 -0
  389. data/tags/1.8.6/core/env/to_h_spec.rb +2 -0
  390. data/tags/1.8.6/core/file/join_spec.rb +3 -0
  391. data/tags/1.8.6/core/file/lchmod_spec.rb +2 -0
  392. data/tags/1.8.6/core/file/new_spec.rb +2 -0
  393. data/tags/1.8.6/core/file/open_spec.rb +10 -0
  394. data/tags/1.8.6/core/file/to_path_spec.rb +1 -0
  395. data/tags/1.8.6/core/fixnum/fdiv_spec.rb +1 -0
  396. data/tags/1.8.6/core/gc/stress_spec.rb +2 -0
  397. data/tags/1.8.6/core/hash/assoc_spec.rb +1 -0
  398. data/tags/1.8.6/core/hash/default_proc_spec.rb +2 -0
  399. data/tags/1.8.6/core/hash/eql_spec.rb +3 -0
  400. data/tags/1.8.6/core/hash/hash_spec.rb +3 -0
  401. data/tags/1.8.6/core/hash/keep_if_spec.rb +1 -0
  402. data/tags/1.8.6/core/hash/select_spec.rb +1 -0
  403. data/tags/1.8.6/core/integer/round_spec.rb +1 -0
  404. data/tags/1.8.6/core/io/binread_spec.rb +7 -0
  405. data/tags/1.8.6/core/io/chars_spec.rb +1 -0
  406. data/tags/1.8.6/core/io/each_char_spec.rb +1 -0
  407. data/tags/1.8.6/core/io/lines_spec.rb +1 -0
  408. data/tags/1.8.6/core/io/open_spec.rb +24 -0
  409. data/tags/1.8.6/core/io/ungetbyte_spec.rb +4 -0
  410. data/tags/1.8.6/core/io/write_spec.rb +3 -0
  411. data/tags/1.8.6/core/kernel/__callee___spec.rb +5 -0
  412. data/tags/1.8.6/core/kernel/__method___spec.rb +1 -0
  413. data/tags/1.8.6/core/kernel/define_singleton_method_spec.rb +2 -0
  414. data/tags/1.8.6/core/kernel/public_method_spec.rb +2 -0
  415. data/tags/1.8.6/core/math/log2_spec.rb +4 -0
  416. data/tags/1.8.6/core/math/log_spec.rb +3 -0
  417. data/tags/1.8.6/core/module/class_exec_spec.rb +2 -0
  418. data/tags/1.8.6/core/module/module_exec_spec.rb +2 -0
  419. data/tags/1.8.6/core/numeric/step_spec.rb +12 -0
  420. data/tags/1.8.6/core/proc/curry_spec.rb +4 -0
  421. data/tags/1.8.6/core/range/step_spec.rb +12 -0
  422. data/tags/1.8.6/core/string/getbyte_spec.rb +6 -0
  423. data/tags/1.8.6/core/string/partition_spec.rb +1 -0
  424. data/tags/1.8.6/core/string/prepend_spec.rb +1 -0
  425. data/tags/1.8.6/core/string/rpartition_spec.rb +1 -0
  426. data/tags/1.8.6/core/string/setbyte_spec.rb +5 -0
  427. data/tags/1.8.6/core/string/upto_spec.rb +1 -0
  428. data/tags/1.8.6/core/symbol/capitalize_spec.rb +3 -0
  429. data/tags/1.8.6/core/symbol/comparison_spec.rb +1 -0
  430. data/tags/1.8.6/core/symbol/downcase_spec.rb +2 -0
  431. data/tags/1.8.6/core/symbol/element_reference_spec.rb +2 -0
  432. data/tags/1.8.6/core/symbol/empty_spec.rb +1 -0
  433. data/tags/1.8.6/core/symbol/match_spec.rb +2 -0
  434. data/tags/1.8.6/core/symbol/swapcase_spec.rb +2 -0
  435. data/tags/1.8.6/core/symbol/upcase_spec.rb +1 -0
  436. data/tags/1.8.7/core/array/rotate_spec.rb +2 -0
  437. data/tags/1.8.7/core/array/uniq_spec.rb +3 -0
  438. data/tags/1.8.7/core/complex/to_r_spec.rb +3 -0
  439. data/tags/1.8.7/core/env/to_h_spec.rb +2 -0
  440. data/tags/1.8.7/core/file/lchmod_spec.rb +2 -0
  441. data/tags/1.8.7/core/file/new_spec.rb +1 -0
  442. data/tags/1.8.7/core/file/open_spec.rb +1 -0
  443. data/tags/1.8.7/core/file/readlink_spec.rb +6 -0
  444. data/tags/1.8.7/core/file/to_path_spec.rb +1 -0
  445. data/tags/1.8.7/core/hash/assoc_spec.rb +1 -0
  446. data/tags/1.8.7/core/hash/default_proc_spec.rb +2 -0
  447. data/tags/1.8.7/core/hash/keep_if_spec.rb +1 -0
  448. data/tags/1.8.7/core/hash/rassoc_spec.rb +1 -0
  449. data/tags/1.8.7/core/hash/select_spec.rb +1 -0
  450. data/tags/1.8.7/core/integer/round_spec.rb +1 -0
  451. data/tags/1.8.7/core/io/binread_spec.rb +7 -0
  452. data/tags/1.8.7/core/io/open_spec.rb +25 -0
  453. data/tags/1.8.7/core/io/ungetbyte_spec.rb +4 -0
  454. data/tags/1.8.7/core/io/write_spec.rb +3 -0
  455. data/tags/1.8.7/core/kernel/__callee___spec.rb +5 -0
  456. data/tags/1.8.7/core/kernel/define_singleton_method_spec.rb +2 -0
  457. data/tags/1.8.7/core/kernel/public_method_spec.rb +1 -0
  458. data/tags/1.8.7/core/math/log2_spec.rb +4 -0
  459. data/tags/1.8.7/core/math/log_spec.rb +3 -0
  460. data/tags/1.8.7/core/proc/curry_spec.rb +3 -0
  461. data/tags/1.8.7/core/string/getbyte_spec.rb +5 -0
  462. data/tags/1.8.7/core/string/prepend_spec.rb +1 -0
  463. data/tags/1.8.7/core/string/setbyte_spec.rb +5 -0
  464. data/tags/1.8.7/core/symbol/capitalize_spec.rb +3 -0
  465. data/tags/1.8.7/core/symbol/comparison_spec.rb +1 -0
  466. data/tags/1.8.7/core/symbol/downcase_spec.rb +2 -0
  467. data/tags/1.8.7/core/symbol/element_reference_spec.rb +2 -0
  468. data/tags/1.8.7/core/symbol/empty_spec.rb +1 -0
  469. data/tags/1.8.7/core/symbol/match_spec.rb +2 -0
  470. data/tags/1.8.7/core/symbol/swapcase_spec.rb +2 -0
  471. data/tags/1.8.7/core/symbol/upcase_spec.rb +1 -0
  472. data/tags/1.9.1/core/array/rotate_spec.rb +1 -0
  473. data/tags/1.9.1/core/env/to_h_spec.rb +2 -0
  474. data/tags/1.9.1/core/hash/default_proc_spec.rb +1 -0
  475. data/tags/1.9.1/core/io/write_spec.rb +2 -0
  476. data/tags/1.9.2/core/io/write_spec.rb +2 -0
  477. data/test/README +1 -1
  478. data/test/_backport_guards_test.rb +140 -0
  479. data/test/{test_lazy.rb → lazy_test.rb} +25 -20
  480. data/test/{test_socket_interaction.rb → socket_interaction_test.rb} +3 -3
  481. data/test/test_helper.rb +0 -4
  482. metadata +392 -16
  483. data/lib/backports/1.9.2/match_data.rb +0 -3
  484. data/lib/backports/1.9.2/random/load.rb +0 -16
  485. data/lib/backports/2.0.0/nil_class.rb +0 -5
  486. data/test/std_lib_loading_test.rb +0 -57
  487. data/test/test__me_first.rb +0 -51
@@ -1,9 +1,13 @@
1
1
  # This is copied & modified from MRI
2
- require 'test/unit'
3
- #require_relative 'envutil'
4
- require './lib/backports'
2
+ require './test/test_helper'
5
3
 
6
4
  class TestLazyEnumerator < Test::Unit::TestCase
5
+ def setup
6
+ require "backports/2.0.0/enumerable/lazy"
7
+ require "backports/1.8.7/enumerable"
8
+ require "backports/1.8.7/io/each"
9
+ end
10
+
7
11
  class Step
8
12
  include Enumerable
9
13
  attr_reader :current, :args
@@ -84,8 +88,7 @@ class TestLazyEnumerator < Test::Unit::TestCase
84
88
  yielder.yield(i, i.to_s)
85
89
  end
86
90
  }
87
- assert_equal([[2, "2"], [4, "4"]],
88
- e.select {|x| x[0] % 2 == 0})
91
+ ### Backport: non lazy version differs on JRuby and MRI
89
92
  assert_equal([[2, "2"], [4, "4"]],
90
93
  e.lazy.select {|x| x[0] % 2 == 0}.force)
91
94
  end
@@ -104,7 +107,7 @@ class TestLazyEnumerator < Test::Unit::TestCase
104
107
  assert_equal(3, a.current)
105
108
  assert_equal(2, a.lazy.flat_map {|x| [x * 2]}.first)
106
109
  assert_equal(1, a.current)
107
- end
110
+ end if [].respond_to?(:flat_map)
108
111
 
109
112
  def test_flat_map_nested
110
113
  a = Step.new(1..3)
@@ -114,7 +117,7 @@ class TestLazyEnumerator < Test::Unit::TestCase
114
117
  assert_equal([1, "a"],
115
118
  a.lazy.flat_map {|x| ("a".."c").lazy.map {|y| [x, y]}}.first)
116
119
  assert_equal(1, a.current)
117
- end
120
+ end if [].respond_to?(:flat_map)
118
121
 
119
122
  def test_flat_map_to_ary
120
123
  to_ary = Class.new {
@@ -130,17 +133,17 @@ class TestLazyEnumerator < Test::Unit::TestCase
130
133
  [1, 2, 3].flat_map {|x| to_ary.new(x)})
131
134
  assert_equal([:to_ary, 1, :to_ary, 2, :to_ary, 3],
132
135
  [1, 2, 3].lazy.flat_map {|x| to_ary.new(x)}.force)
133
- end
136
+ end if [].respond_to?(:flat_map)
134
137
 
135
138
  def test_flat_map_non_array
136
139
  assert_equal(["1", "2", "3"], [1, 2, 3].flat_map {|x| x.to_s})
137
140
  assert_equal(["1", "2", "3"], [1, 2, 3].lazy.flat_map {|x| x.to_s}.force)
138
- end
141
+ end if [].respond_to?(:flat_map)
139
142
 
140
143
  def test_flat_map_hash
141
144
  assert_equal([{?a=>97}, {?b=>98}, {?c=>99}], [?a, ?b, ?c].flat_map {|x| {x=>x.ord}})
142
145
  assert_equal([{?a=>97}, {?b=>98}, {?c=>99}], [?a, ?b, ?c].lazy.flat_map {|x| {x=>x.ord}}.force)
143
- end
146
+ end if [].respond_to?(:flat_map)
144
147
 
145
148
  def test_reject
146
149
  a = Step.new(1..6)
@@ -162,8 +165,7 @@ class TestLazyEnumerator < Test::Unit::TestCase
162
165
  yielder.yield(i, i.to_s)
163
166
  end
164
167
  }
165
- assert_equal([[2, "2"], [4, "4"]],
166
- e.reject {|x| x[0] % 2 != 0})
168
+ ### Backport: non lazy version differs on JRuby and MRI
167
169
  assert_equal([[2, "2"], [4, "4"]],
168
170
  e.lazy.reject {|x| x[0] % 2 != 0}.force)
169
171
  end
@@ -190,7 +192,7 @@ class TestLazyEnumerator < Test::Unit::TestCase
190
192
  yielder.yield(i, i.to_s)
191
193
  }
192
194
  }
193
- assert_equal([[2, "2"]], e.grep(proc {|x| x == [2, "2"]}))
195
+ ### Backport: non lazy version differs on JRuby and MRI
194
196
  assert_equal([[2, "2"]], e.lazy.grep(proc {|x| x == [2, "2"]}).force)
195
197
  assert_equal(["22"],
196
198
  e.lazy.grep(proc {|x| x == [2, "2"]}, &:join).force)
@@ -207,14 +209,16 @@ class TestLazyEnumerator < Test::Unit::TestCase
207
209
  def test_zip_short_arg
208
210
  a = Step.new(1..5)
209
211
  assert_equal([5, nil], a.zip("a".."c").last)
210
- assert_equal([5, nil], a.lazy.zip("a".."c").force.last)
212
+ enum = [42].to_enum.next
213
+ assert_equal([5, nil], a.lazy.zip("a".."d").force.last) ### Backport: modified to avoid fact that 1.8.x's Enumerator auto-rewind
211
214
  end
212
215
 
213
216
  def test_zip_without_arg
214
217
  a = Step.new(1..3)
215
218
  assert_equal([1], a.zip.first)
216
219
  assert_equal(3, a.current)
217
- assert_equal([1], a.lazy.zip.first)
220
+ avoid_bug_on_jruby = Enumerator.new{|y| y << [1]}.first ### Backport: see https://jira.codehaus.org/browse/JRUBY-7108
221
+ assert_equal(avoid_bug_on_jruby, a.lazy.zip.first)
218
222
  assert_equal(1, a.current)
219
223
  end
220
224
 
@@ -334,14 +338,14 @@ class TestLazyEnumerator < Test::Unit::TestCase
334
338
  end
335
339
 
336
340
  def test_drop_and_take
337
- assert_equal([4, 5], (1..Float::INFINITY).lazy.drop(3).take(2).to_a)
341
+ assert_equal([4, 5], (1..(1.0/0)).lazy.drop(3).take(2).to_a) # Backports: don't rely on INFINITY
338
342
  end
339
343
 
340
344
  def test_cycle
341
345
  a = Step.new(1..3)
342
- assert_equal("1", a.cycle(2).map(&:to_s).first)
346
+ assert_equal("1", a.cycle(2).map{|x| x.to_s}.first)
343
347
  assert_equal(3, a.current)
344
- assert_equal("1", a.lazy.cycle(2).map(&:to_s).first)
348
+ assert_equal("1", a.lazy.cycle(2).map{|x| x.to_s}.first)
345
349
  assert_equal(1, a.current)
346
350
  end
347
351
 
@@ -366,6 +370,7 @@ class TestLazyEnumerator < Test::Unit::TestCase
366
370
  end
367
371
 
368
372
  def test_inspect
373
+ return unless Enumerator.to_s == "Enumerator"
369
374
  assert_equal("#<Enumerator::Lazy: 1..10>", (1..10).lazy.inspect)
370
375
  assert_equal('#<Enumerator::Lazy: #<Enumerator: "foo":each_char>>',
371
376
  "foo".each_char.lazy.inspect)
@@ -388,7 +393,7 @@ class TestLazyEnumerator < Test::Unit::TestCase
388
393
  assert_equal(<<EOS.chomp, l.inspect)
389
394
  #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator::Lazy: 1..10>:map>:map>:flat_map>:flat_map>:select>:select>:reject>:grep(1)>:zip("a".."c")>:take(10)>:take_while>:drop(3)>:drop_while>:cycle(3)>
390
395
  EOS
391
- end
396
+ end if [].respond_to?(:flat_map)
392
397
 
393
398
  def test_lazy_to_enum
394
399
  lazy = [1, 2, 3].lazy
@@ -465,7 +470,7 @@ EOS
465
470
  :each_entry => [],
466
471
  :each_cons => 42,
467
472
  }.each do |method, arg|
468
- assert_equal Enumerator::Lazy, [].lazy.send(method, *arg).class, bug7507
473
+ assert_equal Enumerator::Lazy, [].lazy.send(method, *arg).class, method if [].respond_to?(method)
469
474
  end
470
475
  assert_equal Enumerator::Lazy, [].lazy.chunk{}.class, bug7507
471
476
  end
@@ -1,9 +1,9 @@
1
- require 'test/unit'
2
- require 'socket'
3
- require './lib/backports'
1
+ require './test/test_helper'
4
2
 
5
3
  class TestSocketInteraction < Test::Unit::TestCase
6
4
  def test_interaction # Issue #67
5
+ require 'backports'
6
+ require 'socket'
7
7
  assert_equal nil, UDPSocket.open{}
8
8
  end
9
9
  end
@@ -1,5 +1 @@
1
1
  require 'test/unit'
2
- require File.expand_path(File.dirname(__FILE__) + "/../lib/backports")
3
-
4
- # class Test::Unit::TestCase
5
- # end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backports
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-25 00:00:00.000000000 Z
12
+ date: 2013-03-05 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Essential backports that enable many of the nice features of Ruby 1.8.7
15
15
  up to 2.0.0 for earlier versions.
@@ -21,77 +21,333 @@ extra_rdoc_files: []
21
21
  files:
22
22
  - .document
23
23
  - .gitignore
24
+ - .gitmodules
24
25
  - .irbrc
25
26
  - .travis.yml
26
27
  - CHANGELOG.rdoc
28
+ - Gemfile
29
+ - Gemfile.lock
27
30
  - LICENSE.txt
28
31
  - README.rdoc
29
32
  - Rakefile
30
33
  - backports.gemspec
34
+ - default.mspec
31
35
  - lib/backports.rb
32
36
  - lib/backports/1.8.7.rb
33
37
  - lib/backports/1.8.7/argf.rb
38
+ - lib/backports/1.8.7/argf/bytes.rb
39
+ - lib/backports/1.8.7/argf/chars.rb
40
+ - lib/backports/1.8.7/argf/each.rb
41
+ - lib/backports/1.8.7/argf/each_byte.rb
42
+ - lib/backports/1.8.7/argf/each_char.rb
43
+ - lib/backports/1.8.7/argf/each_line.rb
44
+ - lib/backports/1.8.7/argf/getbyte.rb
45
+ - lib/backports/1.8.7/argf/lines.rb
46
+ - lib/backports/1.8.7/argf/readbyte.rb
34
47
  - lib/backports/1.8.7/array.rb
48
+ - lib/backports/1.8.7/array/collect.rb
49
+ - lib/backports/1.8.7/array/combination.rb
50
+ - lib/backports/1.8.7/array/cycle.rb
51
+ - lib/backports/1.8.7/array/delete_if.rb
52
+ - lib/backports/1.8.7/array/each.rb
53
+ - lib/backports/1.8.7/array/each_index.rb
54
+ - lib/backports/1.8.7/array/find_index.rb
55
+ - lib/backports/1.8.7/array/flatten.rb
56
+ - lib/backports/1.8.7/array/index.rb
57
+ - lib/backports/1.8.7/array/map.rb
58
+ - lib/backports/1.8.7/array/permutation.rb
59
+ - lib/backports/1.8.7/array/pop.rb
60
+ - lib/backports/1.8.7/array/product.rb
61
+ - lib/backports/1.8.7/array/reject.rb
62
+ - lib/backports/1.8.7/array/reverse_each.rb
63
+ - lib/backports/1.8.7/array/rindex.rb
64
+ - lib/backports/1.8.7/array/select.rb
65
+ - lib/backports/1.8.7/array/shift.rb
66
+ - lib/backports/1.8.7/array/shuffle.rb
35
67
  - lib/backports/1.8.7/binding.rb
68
+ - lib/backports/1.8.7/binding/eval.rb
36
69
  - lib/backports/1.8.7/dir.rb
70
+ - lib/backports/1.8.7/dir/each.rb
71
+ - lib/backports/1.8.7/dir/foreach.rb
72
+ - lib/backports/1.8.7/dir/mktmpdir.rb
37
73
  - lib/backports/1.8.7/enumerable.rb
74
+ - lib/backports/1.8.7/enumerable/count.rb
75
+ - lib/backports/1.8.7/enumerable/cycle.rb
76
+ - lib/backports/1.8.7/enumerable/detect.rb
77
+ - lib/backports/1.8.7/enumerable/drop.rb
78
+ - lib/backports/1.8.7/enumerable/drop_while.rb
79
+ - lib/backports/1.8.7/enumerable/each_cons.rb
80
+ - lib/backports/1.8.7/enumerable/each_slice.rb
81
+ - lib/backports/1.8.7/enumerable/each_with_index.rb
82
+ - lib/backports/1.8.7/enumerable/entries.rb
83
+ - lib/backports/1.8.7/enumerable/find.rb
84
+ - lib/backports/1.8.7/enumerable/find_all.rb
85
+ - lib/backports/1.8.7/enumerable/find_index.rb
86
+ - lib/backports/1.8.7/enumerable/first.rb
87
+ - lib/backports/1.8.7/enumerable/group_by.rb
88
+ - lib/backports/1.8.7/enumerable/inject.rb
89
+ - lib/backports/1.8.7/enumerable/max_by.rb
90
+ - lib/backports/1.8.7/enumerable/min_by.rb
91
+ - lib/backports/1.8.7/enumerable/minmax.rb
92
+ - lib/backports/1.8.7/enumerable/minmax_by.rb
93
+ - lib/backports/1.8.7/enumerable/none.rb
94
+ - lib/backports/1.8.7/enumerable/one.rb
95
+ - lib/backports/1.8.7/enumerable/partition.rb
96
+ - lib/backports/1.8.7/enumerable/reduce.rb
97
+ - lib/backports/1.8.7/enumerable/reject.rb
98
+ - lib/backports/1.8.7/enumerable/reverse_each.rb
99
+ - lib/backports/1.8.7/enumerable/select.rb
100
+ - lib/backports/1.8.7/enumerable/sort_by.rb
101
+ - lib/backports/1.8.7/enumerable/take.rb
102
+ - lib/backports/1.8.7/enumerable/take_while.rb
103
+ - lib/backports/1.8.7/enumerable/to_a.rb
38
104
  - lib/backports/1.8.7/enumerator.rb
105
+ - lib/backports/1.8.7/enumerator/each.rb
106
+ - lib/backports/1.8.7/enumerator/next.rb
107
+ - lib/backports/1.8.7/enumerator/rewind.rb
108
+ - lib/backports/1.8.7/enumerator/with_index.rb
39
109
  - lib/backports/1.8.7/env.rb
110
+ - lib/backports/1.8.7/env/delete_if.rb
111
+ - lib/backports/1.8.7/env/each.rb
112
+ - lib/backports/1.8.7/env/each_key.rb
113
+ - lib/backports/1.8.7/env/each_pair.rb
114
+ - lib/backports/1.8.7/env/each_value.rb
115
+ - lib/backports/1.8.7/env/reject.rb
116
+ - lib/backports/1.8.7/env/select.rb
40
117
  - lib/backports/1.8.7/fixnum.rb
118
+ - lib/backports/1.8.7/fixnum/div.rb
119
+ - lib/backports/1.8.7/fixnum/fdiv.rb
41
120
  - lib/backports/1.8.7/float.rb
121
+ - lib/backports/1.8.7/float/fdiv.rb
42
122
  - lib/backports/1.8.7/gc.rb
123
+ - lib/backports/1.8.7/gc/stress.rb
43
124
  - lib/backports/1.8.7/hash.rb
125
+ - lib/backports/1.8.7/hash/constructor.rb
126
+ - lib/backports/1.8.7/hash/delete_if.rb
127
+ - lib/backports/1.8.7/hash/each.rb
128
+ - lib/backports/1.8.7/hash/each_key.rb
129
+ - lib/backports/1.8.7/hash/each_pair.rb
130
+ - lib/backports/1.8.7/hash/each_value.rb
131
+ - lib/backports/1.8.7/hash/eql.rb
132
+ - lib/backports/1.8.7/hash/hash.rb
133
+ - lib/backports/1.8.7/hash/key.rb
134
+ - lib/backports/1.8.7/hash/reject.rb
135
+ - lib/backports/1.8.7/hash/select.rb
44
136
  - lib/backports/1.8.7/integer.rb
137
+ - lib/backports/1.8.7/integer/downto.rb
138
+ - lib/backports/1.8.7/integer/even.rb
139
+ - lib/backports/1.8.7/integer/odd.rb
140
+ - lib/backports/1.8.7/integer/ord.rb
141
+ - lib/backports/1.8.7/integer/pred.rb
142
+ - lib/backports/1.8.7/integer/times.rb
143
+ - lib/backports/1.8.7/integer/upto.rb
45
144
  - lib/backports/1.8.7/io.rb
145
+ - lib/backports/1.8.7/io/bytes.rb
146
+ - lib/backports/1.8.7/io/chars.rb
147
+ - lib/backports/1.8.7/io/each.rb
148
+ - lib/backports/1.8.7/io/each_byte.rb
149
+ - lib/backports/1.8.7/io/each_char.rb
150
+ - lib/backports/1.8.7/io/each_line.rb
151
+ - lib/backports/1.8.7/io/foreach.rb
152
+ - lib/backports/1.8.7/io/getbyte.rb
153
+ - lib/backports/1.8.7/io/lines.rb
154
+ - lib/backports/1.8.7/io/readbyte.rb
46
155
  - lib/backports/1.8.7/kernel.rb
156
+ - lib/backports/1.8.7/kernel/__method__.rb
157
+ - lib/backports/1.8.7/kernel/instance_exec.rb
158
+ - lib/backports/1.8.7/kernel/tap.rb
47
159
  - lib/backports/1.8.7/method.rb
160
+ - lib/backports/1.8.7/method/name.rb
48
161
  - lib/backports/1.8.7/module.rb
162
+ - lib/backports/1.8.7/module/class_exec.rb
163
+ - lib/backports/1.8.7/module/module_exec.rb
49
164
  - lib/backports/1.8.7/numeric.rb
165
+ - lib/backports/1.8.7/numeric/step.rb
50
166
  - lib/backports/1.8.7/object_space.rb
167
+ - lib/backports/1.8.7/object_space/each_object.rb
51
168
  - lib/backports/1.8.7/proc.rb
169
+ - lib/backports/1.8.7/proc/yield.rb
52
170
  - lib/backports/1.8.7/process.rb
171
+ - lib/backports/1.8.7/process/exec.rb
53
172
  - lib/backports/1.8.7/range.rb
173
+ - lib/backports/1.8.7/range/each.rb
174
+ - lib/backports/1.8.7/range/step.rb
54
175
  - lib/backports/1.8.7/regexp.rb
176
+ - lib/backports/1.8.7/regexp/union.rb
177
+ - lib/backports/1.8.7/stop_iteration.rb
55
178
  - lib/backports/1.8.7/string.rb
179
+ - lib/backports/1.8.7/string/bytes.rb
180
+ - lib/backports/1.8.7/string/bytesize.rb
181
+ - lib/backports/1.8.7/string/each.rb
182
+ - lib/backports/1.8.7/string/each_byte.rb
183
+ - lib/backports/1.8.7/string/each_char.rb
184
+ - lib/backports/1.8.7/string/each_line.rb
185
+ - lib/backports/1.8.7/string/end_with.rb
186
+ - lib/backports/1.8.7/string/lines.rb
187
+ - lib/backports/1.8.7/string/partition.rb
188
+ - lib/backports/1.8.7/string/rpartition.rb
189
+ - lib/backports/1.8.7/string/start_with.rb
190
+ - lib/backports/1.8.7/string/upto.rb
56
191
  - lib/backports/1.8.7/struct.rb
192
+ - lib/backports/1.8.7/struct/each.rb
193
+ - lib/backports/1.8.7/struct/each_pair.rb
57
194
  - lib/backports/1.8.7/symbol.rb
195
+ - lib/backports/1.8.7/symbol/to_proc.rb
58
196
  - lib/backports/1.8.8.rb
59
197
  - lib/backports/1.8.rb
60
198
  - lib/backports/1.9.1.rb
61
199
  - lib/backports/1.9.1/array.rb
200
+ - lib/backports/1.9.1/array/sample.rb
201
+ - lib/backports/1.9.1/array/try_convert.rb
62
202
  - lib/backports/1.9.1/dir.rb
203
+ - lib/backports/1.9.1/dir/to_path.rb
63
204
  - lib/backports/1.9.1/enumerable.rb
205
+ - lib/backports/1.9.1/enumerable/each_with_index.rb
206
+ - lib/backports/1.9.1/enumerable/each_with_object.rb
64
207
  - lib/backports/1.9.1/enumerator.rb
208
+ - lib/backports/1.9.1/enumerator/new.rb
209
+ - lib/backports/1.9.1/enumerator/with_object.rb
65
210
  - lib/backports/1.9.1/env.rb
211
+ - lib/backports/1.9.1/env/key.rb
66
212
  - lib/backports/1.9.1/file.rb
213
+ - lib/backports/1.9.1/file/atime.rb
214
+ - lib/backports/1.9.1/file/basename.rb
215
+ - lib/backports/1.9.1/file/binary.rb
216
+ - lib/backports/1.9.1/file/blockdev.rb
217
+ - lib/backports/1.9.1/file/chardev.rb
218
+ - lib/backports/1.9.1/file/chmod.rb
219
+ - lib/backports/1.9.1/file/chown.rb
220
+ - lib/backports/1.9.1/file/ctime.rb
221
+ - lib/backports/1.9.1/file/delete.rb
222
+ - lib/backports/1.9.1/file/directory.rb
223
+ - lib/backports/1.9.1/file/dirname.rb
224
+ - lib/backports/1.9.1/file/executable.rb
225
+ - lib/backports/1.9.1/file/executable_real.rb
226
+ - lib/backports/1.9.1/file/exist.rb
227
+ - lib/backports/1.9.1/file/exists.rb
228
+ - lib/backports/1.9.1/file/expand_path.rb
229
+ - lib/backports/1.9.1/file/extname.rb
230
+ - lib/backports/1.9.1/file/file.rb
231
+ - lib/backports/1.9.1/file/ftype.rb
232
+ - lib/backports/1.9.1/file/grpowned.rb
233
+ - lib/backports/1.9.1/file/join.rb
234
+ - lib/backports/1.9.1/file/lchmod.rb
235
+ - lib/backports/1.9.1/file/lchown.rb
236
+ - lib/backports/1.9.1/file/link.rb
237
+ - lib/backports/1.9.1/file/lstat.rb
238
+ - lib/backports/1.9.1/file/mtime.rb
239
+ - lib/backports/1.9.1/file/new.rb
240
+ - lib/backports/1.9.1/file/open.rb
241
+ - lib/backports/1.9.1/file/owned.rb
242
+ - lib/backports/1.9.1/file/pipe.rb
243
+ - lib/backports/1.9.1/file/readable.rb
244
+ - lib/backports/1.9.1/file/readable_real.rb
245
+ - lib/backports/1.9.1/file/readlink.rb
246
+ - lib/backports/1.9.1/file/rename.rb
247
+ - lib/backports/1.9.1/file/setgid.rb
248
+ - lib/backports/1.9.1/file/setuid.rb
249
+ - lib/backports/1.9.1/file/size.rb
250
+ - lib/backports/1.9.1/file/socket.rb
251
+ - lib/backports/1.9.1/file/split.rb
252
+ - lib/backports/1.9.1/file/stat.rb
253
+ - lib/backports/1.9.1/file/sticky.rb
254
+ - lib/backports/1.9.1/file/symlink.rb
255
+ - lib/backports/1.9.1/file/to_path.rb
256
+ - lib/backports/1.9.1/file/truncate.rb
257
+ - lib/backports/1.9.1/file/unlink.rb
258
+ - lib/backports/1.9.1/file/writable.rb
259
+ - lib/backports/1.9.1/file/writable_real.rb
260
+ - lib/backports/1.9.1/file/zero.rb
67
261
  - lib/backports/1.9.1/float.rb
262
+ - lib/backports/1.9.1/float/round.rb
68
263
  - lib/backports/1.9.1/hash.rb
264
+ - lib/backports/1.9.1/hash/assoc.rb
265
+ - lib/backports/1.9.1/hash/default_proc.rb
266
+ - lib/backports/1.9.1/hash/rassoc.rb
267
+ - lib/backports/1.9.1/hash/try_convert.rb
69
268
  - lib/backports/1.9.1/integer.rb
269
+ - lib/backports/1.9.1/integer/magnitude.rb
270
+ - lib/backports/1.9.1/integer/round.rb
70
271
  - lib/backports/1.9.1/io.rb
272
+ - lib/backports/1.9.1/io/binread.rb
273
+ - lib/backports/1.9.1/io/open.rb
274
+ - lib/backports/1.9.1/io/try_convert.rb
275
+ - lib/backports/1.9.1/io/ungetbyte.rb
71
276
  - lib/backports/1.9.1/kernel.rb
277
+ - lib/backports/1.9.1/kernel/__callee__.rb
278
+ - lib/backports/1.9.1/kernel/define_singleton_method.rb
279
+ - lib/backports/1.9.1/kernel/public_method.rb
280
+ - lib/backports/1.9.1/kernel/public_send.rb
281
+ - lib/backports/1.9.1/kernel/require_relative.rb
72
282
  - lib/backports/1.9.1/math.rb
283
+ - lib/backports/1.9.1/math/log.rb
284
+ - lib/backports/1.9.1/math/log2.rb
73
285
  - lib/backports/1.9.1/numeric.rb
286
+ - lib/backports/1.9.1/numeric/round.rb
74
287
  - lib/backports/1.9.1/proc.rb
288
+ - lib/backports/1.9.1/proc/case_compare.rb
289
+ - lib/backports/1.9.1/proc/curry.rb
290
+ - lib/backports/1.9.1/proc/lambda.rb
75
291
  - lib/backports/1.9.1/range.rb
292
+ - lib/backports/1.9.1/range/cover.rb
76
293
  - lib/backports/1.9.1/regexp.rb
294
+ - lib/backports/1.9.1/regexp/try_convert.rb
77
295
  - lib/backports/1.9.1/stdlib.rb
78
296
  - lib/backports/1.9.1/stdlib/prime.rb
79
297
  - lib/backports/1.9.1/string.rb
298
+ - lib/backports/1.9.1/string/ascii_only.rb
299
+ - lib/backports/1.9.1/string/chr.rb
300
+ - lib/backports/1.9.1/string/clear.rb
301
+ - lib/backports/1.9.1/string/codepoints.rb
302
+ - lib/backports/1.9.1/string/each_codepoint.rb
303
+ - lib/backports/1.9.1/string/getbyte.rb
304
+ - lib/backports/1.9.1/string/ord.rb
305
+ - lib/backports/1.9.1/string/setbyte.rb
306
+ - lib/backports/1.9.1/string/try_convert.rb
80
307
  - lib/backports/1.9.1/symbol.rb
308
+ - lib/backports/1.9.1/symbol/capitalize.rb
309
+ - lib/backports/1.9.1/symbol/casecmp.rb
310
+ - lib/backports/1.9.1/symbol/comparable.rb
311
+ - lib/backports/1.9.1/symbol/comparison.rb
312
+ - lib/backports/1.9.1/symbol/downcase.rb
313
+ - lib/backports/1.9.1/symbol/element_reference.rb
314
+ - lib/backports/1.9.1/symbol/empty.rb
315
+ - lib/backports/1.9.1/symbol/length.rb
316
+ - lib/backports/1.9.1/symbol/match.rb
317
+ - lib/backports/1.9.1/symbol/next.rb
318
+ - lib/backports/1.9.1/symbol/size.rb
319
+ - lib/backports/1.9.1/symbol/succ.rb
320
+ - lib/backports/1.9.1/symbol/swapcase.rb
321
+ - lib/backports/1.9.1/symbol/upcase.rb
81
322
  - lib/backports/1.9.2.rb
82
323
  - lib/backports/1.9.2/array.rb
324
+ - lib/backports/1.9.2/array/keep_if.rb
325
+ - lib/backports/1.9.2/array/product.rb
326
+ - lib/backports/1.9.2/array/repeated_combination.rb
327
+ - lib/backports/1.9.2/array/repeated_permutation.rb
328
+ - lib/backports/1.9.2/array/rotate.rb
329
+ - lib/backports/1.9.2/array/select.rb
330
+ - lib/backports/1.9.2/array/sort_by.rb
331
+ - lib/backports/1.9.2/array/uniq.rb
83
332
  - lib/backports/1.9.2/complex.rb
333
+ - lib/backports/1.9.2/complex/to_r.rb
84
334
  - lib/backports/1.9.2/dir.rb
335
+ - lib/backports/1.9.2/dir/home.rb
85
336
  - lib/backports/1.9.2/enumerable.rb
337
+ - lib/backports/1.9.2/enumerable/chunk.rb
338
+ - lib/backports/1.9.2/enumerable/collect_concat.rb
339
+ - lib/backports/1.9.2/enumerable/each_entry.rb
340
+ - lib/backports/1.9.2/enumerable/flat_map.rb
341
+ - lib/backports/1.9.2/enumerable/slice_before.rb
86
342
  - lib/backports/1.9.2/float.rb
343
+ - lib/backports/1.9.2/float/infinity.rb
344
+ - lib/backports/1.9.2/float/nan.rb
87
345
  - lib/backports/1.9.2/hash.rb
346
+ - lib/backports/1.9.2/hash/keep_if.rb
347
+ - lib/backports/1.9.2/hash/select.rb
88
348
  - lib/backports/1.9.2/kernel.rb
89
- - lib/backports/1.9.2/match_data.rb
349
+ - lib/backports/1.9.2/kernel/singleton_class.rb
90
350
  - lib/backports/1.9.2/random.rb
91
- - lib/backports/1.9.2/random/MT19937.rb
92
- - lib/backports/1.9.2/random/bits_and_bytes.rb
93
- - lib/backports/1.9.2/random/implementation.rb
94
- - lib/backports/1.9.2/random/load.rb
95
351
  - lib/backports/1.9.2/stdlib.rb
96
352
  - lib/backports/1.9.2/stdlib/matrix.rb
97
353
  - lib/backports/1.9.2/stdlib/matrix/eigenvalue_decomposition.rb
@@ -99,21 +355,43 @@ files:
99
355
  - lib/backports/1.9.2/stdlib/set.rb
100
356
  - lib/backports/1.9.3.rb
101
357
  - lib/backports/1.9.3/file.rb
358
+ - lib/backports/1.9.3/file/null.rb
102
359
  - lib/backports/1.9.3/io.rb
360
+ - lib/backports/1.9.3/io/advise.rb
361
+ - lib/backports/1.9.3/io/binwrite.rb
362
+ - lib/backports/1.9.3/io/write.rb
103
363
  - lib/backports/1.9.3/string.rb
364
+ - lib/backports/1.9.3/string/byteslice.rb
365
+ - lib/backports/1.9.3/string/prepend.rb
104
366
  - lib/backports/1.9.rb
105
367
  - lib/backports/2.0.0.rb
106
368
  - lib/backports/2.0.0/array.rb
369
+ - lib/backports/2.0.0/array/bsearch.rb
107
370
  - lib/backports/2.0.0/enumerable.rb
371
+ - lib/backports/2.0.0/enumerable/lazy.rb
372
+ - lib/backports/2.0.0/enumerator.rb
108
373
  - lib/backports/2.0.0/enumerator/lazy.rb
374
+ - lib/backports/2.0.0/env.rb
375
+ - lib/backports/2.0.0/env/to_h.rb
109
376
  - lib/backports/2.0.0/hash.rb
110
- - lib/backports/2.0.0/nil_class.rb
377
+ - lib/backports/2.0.0/hash/default_proc.rb
378
+ - lib/backports/2.0.0/hash/to_h.rb
379
+ - lib/backports/2.0.0/nil.rb
380
+ - lib/backports/2.0.0/nil/to_h.rb
111
381
  - lib/backports/2.0.0/range.rb
382
+ - lib/backports/2.0.0/range/bsearch.rb
112
383
  - lib/backports/2.0.0/stdlib.rb
384
+ - lib/backports/2.0.0/stdlib/abbrev.rb
385
+ - lib/backports/2.0.0/stdlib/fake_stdlib_lib.rb
113
386
  - lib/backports/2.0.0/stdlib/ostruct.rb
114
387
  - lib/backports/2.0.0/struct.rb
388
+ - lib/backports/2.0.0/struct/to_h.rb
115
389
  - lib/backports/2.0.rb
116
390
  - lib/backports/basic_object.rb
391
+ - lib/backports/extra/random/MT19937.rb
392
+ - lib/backports/extra/random/bits_and_bytes.rb
393
+ - lib/backports/extra/random/implementation.rb
394
+ - lib/backports/extra/random/load.rb
117
395
  - lib/backports/force/array_map.rb
118
396
  - lib/backports/force/enumerable_map.rb
119
397
  - lib/backports/force/hash_select.rb
@@ -128,12 +406,110 @@ files:
128
406
  - lib/backports/rails/string.rb
129
407
  - lib/backports/tools.rb
130
408
  - lib/backports/version.rb
409
+ - set_version/1.8.7.rb
410
+ - set_version/1.9.1.rb
411
+ - set_version/1.9.2.rb
412
+ - set_version/1.9.3.rb
413
+ - set_version/2.0.0.rb
414
+ - set_version/setter.rb
415
+ - tags/1.8.6/core/array/rotate_spec.rb
416
+ - tags/1.8.6/core/array/uniq_spec.rb
417
+ - tags/1.8.6/core/complex/to_r_spec.rb
418
+ - tags/1.8.6/core/enumerable/each_entry_spec.rb
419
+ - tags/1.8.6/core/enumerator/next_spec.rb
420
+ - tags/1.8.6/core/env/to_h_spec.rb
421
+ - tags/1.8.6/core/file/join_spec.rb
422
+ - tags/1.8.6/core/file/lchmod_spec.rb
423
+ - tags/1.8.6/core/file/new_spec.rb
424
+ - tags/1.8.6/core/file/open_spec.rb
425
+ - tags/1.8.6/core/file/to_path_spec.rb
426
+ - tags/1.8.6/core/fixnum/fdiv_spec.rb
427
+ - tags/1.8.6/core/gc/stress_spec.rb
428
+ - tags/1.8.6/core/hash/assoc_spec.rb
429
+ - tags/1.8.6/core/hash/default_proc_spec.rb
430
+ - tags/1.8.6/core/hash/eql_spec.rb
431
+ - tags/1.8.6/core/hash/hash_spec.rb
432
+ - tags/1.8.6/core/hash/keep_if_spec.rb
433
+ - tags/1.8.6/core/hash/select_spec.rb
434
+ - tags/1.8.6/core/integer/round_spec.rb
435
+ - tags/1.8.6/core/io/binread_spec.rb
436
+ - tags/1.8.6/core/io/chars_spec.rb
437
+ - tags/1.8.6/core/io/each_char_spec.rb
438
+ - tags/1.8.6/core/io/lines_spec.rb
439
+ - tags/1.8.6/core/io/open_spec.rb
440
+ - tags/1.8.6/core/io/ungetbyte_spec.rb
441
+ - tags/1.8.6/core/io/write_spec.rb
442
+ - tags/1.8.6/core/kernel/__callee___spec.rb
443
+ - tags/1.8.6/core/kernel/__method___spec.rb
444
+ - tags/1.8.6/core/kernel/define_singleton_method_spec.rb
445
+ - tags/1.8.6/core/kernel/public_method_spec.rb
446
+ - tags/1.8.6/core/math/log2_spec.rb
447
+ - tags/1.8.6/core/math/log_spec.rb
448
+ - tags/1.8.6/core/module/class_exec_spec.rb
449
+ - tags/1.8.6/core/module/module_exec_spec.rb
450
+ - tags/1.8.6/core/numeric/step_spec.rb
451
+ - tags/1.8.6/core/proc/curry_spec.rb
452
+ - tags/1.8.6/core/range/step_spec.rb
453
+ - tags/1.8.6/core/string/getbyte_spec.rb
454
+ - tags/1.8.6/core/string/partition_spec.rb
455
+ - tags/1.8.6/core/string/prepend_spec.rb
456
+ - tags/1.8.6/core/string/rpartition_spec.rb
457
+ - tags/1.8.6/core/string/setbyte_spec.rb
458
+ - tags/1.8.6/core/string/upto_spec.rb
459
+ - tags/1.8.6/core/symbol/capitalize_spec.rb
460
+ - tags/1.8.6/core/symbol/comparison_spec.rb
461
+ - tags/1.8.6/core/symbol/downcase_spec.rb
462
+ - tags/1.8.6/core/symbol/element_reference_spec.rb
463
+ - tags/1.8.6/core/symbol/empty_spec.rb
464
+ - tags/1.8.6/core/symbol/match_spec.rb
465
+ - tags/1.8.6/core/symbol/swapcase_spec.rb
466
+ - tags/1.8.6/core/symbol/upcase_spec.rb
467
+ - tags/1.8.7/core/array/rotate_spec.rb
468
+ - tags/1.8.7/core/array/uniq_spec.rb
469
+ - tags/1.8.7/core/complex/to_r_spec.rb
470
+ - tags/1.8.7/core/env/to_h_spec.rb
471
+ - tags/1.8.7/core/file/lchmod_spec.rb
472
+ - tags/1.8.7/core/file/new_spec.rb
473
+ - tags/1.8.7/core/file/open_spec.rb
474
+ - tags/1.8.7/core/file/readlink_spec.rb
475
+ - tags/1.8.7/core/file/to_path_spec.rb
476
+ - tags/1.8.7/core/hash/assoc_spec.rb
477
+ - tags/1.8.7/core/hash/default_proc_spec.rb
478
+ - tags/1.8.7/core/hash/keep_if_spec.rb
479
+ - tags/1.8.7/core/hash/rassoc_spec.rb
480
+ - tags/1.8.7/core/hash/select_spec.rb
481
+ - tags/1.8.7/core/integer/round_spec.rb
482
+ - tags/1.8.7/core/io/binread_spec.rb
483
+ - tags/1.8.7/core/io/open_spec.rb
484
+ - tags/1.8.7/core/io/ungetbyte_spec.rb
485
+ - tags/1.8.7/core/io/write_spec.rb
486
+ - tags/1.8.7/core/kernel/__callee___spec.rb
487
+ - tags/1.8.7/core/kernel/define_singleton_method_spec.rb
488
+ - tags/1.8.7/core/kernel/public_method_spec.rb
489
+ - tags/1.8.7/core/math/log2_spec.rb
490
+ - tags/1.8.7/core/math/log_spec.rb
491
+ - tags/1.8.7/core/proc/curry_spec.rb
492
+ - tags/1.8.7/core/string/getbyte_spec.rb
493
+ - tags/1.8.7/core/string/prepend_spec.rb
494
+ - tags/1.8.7/core/string/setbyte_spec.rb
495
+ - tags/1.8.7/core/symbol/capitalize_spec.rb
496
+ - tags/1.8.7/core/symbol/comparison_spec.rb
497
+ - tags/1.8.7/core/symbol/downcase_spec.rb
498
+ - tags/1.8.7/core/symbol/element_reference_spec.rb
499
+ - tags/1.8.7/core/symbol/empty_spec.rb
500
+ - tags/1.8.7/core/symbol/match_spec.rb
501
+ - tags/1.8.7/core/symbol/swapcase_spec.rb
502
+ - tags/1.8.7/core/symbol/upcase_spec.rb
503
+ - tags/1.9.1/core/array/rotate_spec.rb
504
+ - tags/1.9.1/core/env/to_h_spec.rb
505
+ - tags/1.9.1/core/hash/default_proc_spec.rb
506
+ - tags/1.9.1/core/io/write_spec.rb
507
+ - tags/1.9.2/core/io/write_spec.rb
131
508
  - test/README
132
- - test/std_lib_loading_test.rb
133
- - test/test__me_first.rb
509
+ - test/_backport_guards_test.rb
510
+ - test/lazy_test.rb
511
+ - test/socket_interaction_test.rb
134
512
  - test/test_helper.rb
135
- - test/test_lazy.rb
136
- - test/test_socket_interaction.rb
137
513
  homepage: http://github.com/marcandre/backports
138
514
  licenses: []
139
515
  post_install_message:
@@ -160,8 +536,8 @@ specification_version: 3
160
536
  summary: Backports of Ruby features for older Ruby.
161
537
  test_files:
162
538
  - test/README
163
- - test/std_lib_loading_test.rb
164
- - test/test__me_first.rb
539
+ - test/_backport_guards_test.rb
540
+ - test/lazy_test.rb
541
+ - test/socket_interaction_test.rb
165
542
  - test/test_helper.rb
166
- - test/test_lazy.rb
167
- - test/test_socket_interaction.rb
543
+ has_rdoc: