backports 3.10.3 → 3.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (217) hide show
  1. checksums.yaml +13 -5
  2. data/.travis.yml +3 -3
  3. data/README.rdoc +47 -13
  4. data/Rakefile +10 -0
  5. data/frozen_old_spec/tags/1.8.6/core/array/append_spec.rb +1 -0
  6. data/frozen_old_spec/tags/1.8.6/core/enumerable/all_spec.rb +1 -0
  7. data/frozen_old_spec/tags/1.8.6/core/enumerable/any_spec.rb +2 -0
  8. data/frozen_old_spec/tags/1.8.6/core/enumerable/none_spec.rb +1 -0
  9. data/frozen_old_spec/tags/1.8.6/core/enumerable/one_spec.rb +1 -0
  10. data/frozen_old_spec/tags/1.8.6/core/module/alias_method_spec.rb +1 -0
  11. data/frozen_old_spec/tags/1.8.6/core/module/attr_accessor_spec.rb +2 -0
  12. data/frozen_old_spec/tags/1.8.6/core/module/attr_reader_spec.rb +2 -0
  13. data/frozen_old_spec/tags/1.8.6/core/module/attr_spec.rb +1 -0
  14. data/frozen_old_spec/tags/1.8.6/core/module/attr_writer_spec.rb +2 -0
  15. data/frozen_old_spec/tags/1.8.6/core/module/define_method_spec.rb +1 -0
  16. data/frozen_old_spec/tags/1.8.6/core/module/remove_method_spec.rb +1 -0
  17. data/frozen_old_spec/tags/1.8.6/core/module/undef_method_spec.rb +1 -0
  18. data/frozen_old_spec/tags/1.8.7/core/array/append_spec.rb +1 -0
  19. data/frozen_old_spec/tags/1.8.7/core/enumerable/all_spec.rb +1 -0
  20. data/frozen_old_spec/tags/1.8.7/core/enumerable/any_spec.rb +2 -0
  21. data/frozen_old_spec/tags/1.8.7/core/enumerable/none_spec.rb +1 -0
  22. data/frozen_old_spec/tags/1.8.7/core/enumerable/one_spec.rb +1 -0
  23. data/frozen_old_spec/tags/1.8.7/core/module/alias_method_spec.rb +7 -0
  24. data/frozen_old_spec/tags/1.8.7/core/module/attr_accessor_spec.rb +2 -0
  25. data/frozen_old_spec/tags/1.8.7/core/module/attr_reader_spec.rb +2 -0
  26. data/frozen_old_spec/tags/1.8.7/core/module/attr_spec.rb +2 -0
  27. data/frozen_old_spec/tags/1.8.7/core/module/attr_writer_spec.rb +2 -0
  28. data/frozen_old_spec/tags/1.8.7/core/module/define_method_spec.rb +1 -0
  29. data/frozen_old_spec/tags/1.8.7/core/module/remove_method_spec.rb +3 -0
  30. data/frozen_old_spec/tags/1.8.7/core/module/undef_method_spec.rb +3 -0
  31. data/frozen_old_spec/tags/1.8.7/core/struct/new_spec.rb +3 -0
  32. data/frozen_old_spec/tags/1.9.1/core/array/append_spec.rb +1 -0
  33. data/frozen_old_spec/tags/1.9.1/core/enumerable/all_spec.rb +1 -0
  34. data/frozen_old_spec/tags/1.9.1/core/enumerable/any_spec.rb +2 -0
  35. data/frozen_old_spec/tags/1.9.1/core/enumerable/none_spec.rb +1 -0
  36. data/frozen_old_spec/tags/1.9.1/core/enumerable/one_spec.rb +1 -0
  37. data/frozen_old_spec/tags/1.9.1/core/module/alias_method_spec.rb +4 -0
  38. data/frozen_old_spec/tags/1.9.1/core/module/attr_accessor_spec.rb +2 -0
  39. data/frozen_old_spec/tags/1.9.1/core/module/attr_reader_spec.rb +2 -0
  40. data/frozen_old_spec/tags/1.9.1/core/module/attr_spec.rb +1 -0
  41. data/frozen_old_spec/tags/1.9.1/core/module/attr_writer_spec.rb +2 -0
  42. data/frozen_old_spec/tags/1.9.1/core/module/define_method_spec.rb +3 -0
  43. data/frozen_old_spec/tags/1.9.1/core/module/remove_method_spec.rb +1 -0
  44. data/frozen_old_spec/tags/1.9.1/core/module/undef_method_spec.rb +1 -0
  45. data/frozen_old_spec/tags/1.9.2/core/array/append_spec.rb +1 -0
  46. data/frozen_old_spec/tags/1.9.2/core/enumerable/all_spec.rb +1 -0
  47. data/frozen_old_spec/tags/1.9.2/core/enumerable/any_spec.rb +2 -0
  48. data/frozen_old_spec/tags/1.9.2/core/enumerable/none_spec.rb +1 -0
  49. data/frozen_old_spec/tags/1.9.2/core/enumerable/one_spec.rb +1 -0
  50. data/frozen_old_spec/tags/1.9.2/core/module/alias_method_spec.rb +4 -0
  51. data/frozen_old_spec/tags/1.9.2/core/module/attr_accessor_spec.rb +2 -0
  52. data/frozen_old_spec/tags/1.9.2/core/module/attr_reader_spec.rb +2 -0
  53. data/frozen_old_spec/tags/1.9.2/core/module/attr_spec.rb +1 -0
  54. data/frozen_old_spec/tags/1.9.2/core/module/attr_writer_spec.rb +2 -0
  55. data/frozen_old_spec/tags/1.9.2/core/module/define_method_spec.rb +3 -0
  56. data/frozen_old_spec/tags/1.9.2/core/module/remove_method_spec.rb +1 -0
  57. data/frozen_old_spec/tags/1.9.2/core/module/undef_method_spec.rb +1 -0
  58. data/frozen_old_spec/tags/1.9.3/core/enumerable/any_spec.rb +1 -0
  59. data/frozen_old_spec/tags/1.9.3/core/module/alias_method_spec.rb +4 -0
  60. data/frozen_old_spec/tags/1.9.3/core/module/attr_accessor_spec.rb +1 -0
  61. data/frozen_old_spec/tags/1.9.3/core/module/attr_reader_spec.rb +1 -0
  62. data/frozen_old_spec/tags/1.9.3/core/module/attr_spec.rb +1 -0
  63. data/frozen_old_spec/tags/1.9.3/core/module/attr_writer_spec.rb +1 -0
  64. data/frozen_old_spec/tags/1.9.3/core/module/define_method_spec.rb +3 -0
  65. data/frozen_old_spec/tags/1.9.3/core/module/remove_method_spec.rb +1 -0
  66. data/frozen_old_spec/tags/1.9.3/core/module/undef_method_spec.rb +1 -0
  67. data/frozen_old_spec/tags/2.0.0/core/enumerable/any_spec.rb +1 -0
  68. data/frozen_old_spec/tags/2.0.0/core/module/alias_method_spec.rb +1 -0
  69. data/frozen_old_spec/tags/2.0.0/core/module/attr_accessor_spec.rb +2 -0
  70. data/frozen_old_spec/tags/2.0.0/core/module/attr_reader_spec.rb +2 -0
  71. data/frozen_old_spec/tags/2.0.0/core/module/attr_spec.rb +1 -0
  72. data/frozen_old_spec/tags/2.0.0/core/module/attr_writer_spec.rb +2 -0
  73. data/frozen_old_spec/tags/2.0.0/core/module/define_method_spec.rb +2 -0
  74. data/frozen_old_spec/tags/2.0.0/core/module/remove_method_spec.rb +1 -0
  75. data/frozen_old_spec/tags/2.0.0/core/module/undef_method_spec.rb +1 -0
  76. data/frozen_old_spec/tags/2.0.0/core/struct/new_spec.rb +1 -0
  77. data/frozen_old_spec/tags/2.1.0/core/enumerable/any_spec.rb +1 -0
  78. data/frozen_old_spec/tags/2.1.0/core/module/alias_method_spec.rb +1 -0
  79. data/frozen_old_spec/tags/2.1.0/core/module/attr_accessor_spec.rb +2 -0
  80. data/frozen_old_spec/tags/2.1.0/core/module/attr_reader_spec.rb +2 -0
  81. data/frozen_old_spec/tags/2.1.0/core/module/attr_spec.rb +1 -0
  82. data/frozen_old_spec/tags/2.1.0/core/module/attr_writer_spec.rb +2 -0
  83. data/frozen_old_spec/tags/2.1.0/core/module/define_method_spec.rb +2 -0
  84. data/frozen_old_spec/tags/2.1.0/core/module/remove_method_spec.rb +1 -0
  85. data/frozen_old_spec/tags/2.1.0/core/module/undef_method_spec.rb +1 -0
  86. data/frozen_old_spec/tags/2.1.0/core/struct/new_spec.rb +1 -0
  87. data/frozen_old_spec/tags/2.2.0/core/enumerable/any_spec.rb +1 -0
  88. data/frozen_old_spec/tags/2.2.0/core/module/alias_method_spec.rb +1 -0
  89. data/frozen_old_spec/tags/2.2.0/core/module/attr_accessor_spec.rb +2 -0
  90. data/frozen_old_spec/tags/2.2.0/core/module/attr_reader_spec.rb +2 -0
  91. data/frozen_old_spec/tags/2.2.0/core/module/attr_spec.rb +1 -0
  92. data/frozen_old_spec/tags/2.2.0/core/module/attr_writer_spec.rb +2 -0
  93. data/frozen_old_spec/tags/2.2.0/core/module/define_method_spec.rb +1 -0
  94. data/frozen_old_spec/tags/2.2.0/core/module/remove_method_spec.rb +1 -0
  95. data/frozen_old_spec/tags/2.2.0/core/module/undef_method_spec.rb +1 -0
  96. data/frozen_old_spec/tags/2.2.0/core/struct/new_spec.rb +1 -0
  97. data/frozen_old_spec/tags/2.3.0/core/enumerable/any_spec.rb +1 -0
  98. data/frozen_old_spec/tags/2.3.0/core/module/alias_method_spec.rb +1 -0
  99. data/frozen_old_spec/tags/2.3.0/core/module/attr_accessor_spec.rb +2 -0
  100. data/frozen_old_spec/tags/2.3.0/core/module/attr_reader_spec.rb +2 -0
  101. data/frozen_old_spec/tags/2.3.0/core/module/attr_spec.rb +1 -0
  102. data/frozen_old_spec/tags/2.3.0/core/module/attr_writer_spec.rb +2 -0
  103. data/frozen_old_spec/tags/2.3.0/core/module/define_method_spec.rb +1 -0
  104. data/frozen_old_spec/tags/2.3.0/core/module/remove_method_spec.rb +1 -0
  105. data/frozen_old_spec/tags/2.3.0/core/module/undef_method_spec.rb +1 -0
  106. data/frozen_old_spec/tags/2.3.0/core/struct/new_spec.rb +1 -0
  107. data/frozen_old_spec/tags/2.3.5/core/struct/new_spec.rb +1 -0
  108. data/frozen_old_spec/tags/2.4.0/core/enumerable/any_spec.rb +1 -0
  109. data/frozen_old_spec/tags/2.4.0/core/module/alias_method_spec.rb +1 -0
  110. data/frozen_old_spec/tags/2.4.0/core/module/attr_accessor_spec.rb +2 -0
  111. data/frozen_old_spec/tags/2.4.0/core/module/attr_reader_spec.rb +2 -0
  112. data/frozen_old_spec/tags/2.4.0/core/module/attr_spec.rb +1 -0
  113. data/frozen_old_spec/tags/2.4.0/core/module/attr_writer_spec.rb +2 -0
  114. data/frozen_old_spec/tags/2.4.0/core/module/define_method_spec.rb +1 -0
  115. data/frozen_old_spec/tags/2.4.0/core/module/remove_method_spec.rb +1 -0
  116. data/frozen_old_spec/tags/2.4.0/core/module/undef_method_spec.rb +1 -0
  117. data/frozen_old_spec/tags/2.4.0/core/struct/new_spec.rb +1 -0
  118. data/frozen_old_spec/tags/2.5.0/core/enumerable/any_spec.rb +1 -0
  119. data/frozen_old_spec/tags/2.5.0/core/module/alias_method_spec.rb +1 -0
  120. data/frozen_old_spec/tags/2.5.0/core/module/attr_accessor_spec.rb +2 -0
  121. data/frozen_old_spec/tags/2.5.0/core/module/attr_reader_spec.rb +2 -0
  122. data/frozen_old_spec/tags/2.5.0/core/module/attr_spec.rb +1 -0
  123. data/frozen_old_spec/tags/2.5.0/core/module/attr_writer_spec.rb +2 -0
  124. data/frozen_old_spec/tags/2.5.0/core/module/define_method_spec.rb +1 -0
  125. data/frozen_old_spec/tags/2.5.0/core/module/remove_method_spec.rb +1 -0
  126. data/frozen_old_spec/tags/2.5.0/core/module/undef_method_spec.rb +1 -0
  127. data/frozen_old_spec/tags/2.5.0/core/nil/dup_spec.rb +1 -0
  128. data/frozen_old_spec/tags/2.5.0/core/struct/new_spec.rb +1 -0
  129. data/lib/backports/2.5.0.rb +3 -0
  130. data/lib/backports/2.5.0/array.rb +3 -0
  131. data/lib/backports/2.5.0/array/append.rb +3 -0
  132. data/lib/backports/2.5.0/array/prepend.rb +3 -0
  133. data/lib/backports/2.5.0/dir.rb +3 -0
  134. data/lib/backports/2.5.0/dir/children.rb +6 -0
  135. data/lib/backports/2.5.0/dir/each_child.rb +7 -0
  136. data/lib/backports/2.5.0/enumerable.rb +3 -0
  137. data/lib/backports/2.5.0/enumerable/all.rb +13 -0
  138. data/lib/backports/2.5.0/enumerable/any.rb +42 -0
  139. data/lib/backports/2.5.0/enumerable/none.rb +15 -0
  140. data/lib/backports/2.5.0/enumerable/one.rb +21 -0
  141. data/lib/backports/2.5.0/hash.rb +3 -0
  142. data/lib/backports/2.5.0/hash/slice.rb +7 -0
  143. data/lib/backports/2.5.0/hash/transform_keys.rb +19 -0
  144. data/lib/backports/2.5.0/integer.rb +3 -0
  145. data/lib/backports/2.5.0/integer/allbits.rb +8 -0
  146. data/lib/backports/2.5.0/integer/anybits.rb +8 -0
  147. data/lib/backports/2.5.0/integer/nobits.rb +8 -0
  148. data/lib/backports/2.5.0/integer/sqrt.rb +18 -0
  149. data/lib/backports/2.5.0/kernel.rb +3 -0
  150. data/lib/backports/2.5.0/kernel/yield_self.rb +6 -0
  151. data/lib/backports/2.5.0/module.rb +3 -0
  152. data/lib/backports/2.5.0/module/alias_method.rb +4 -0
  153. data/lib/backports/2.5.0/module/attr.rb +3 -0
  154. data/lib/backports/2.5.0/module/attr_accessor.rb +3 -0
  155. data/lib/backports/2.5.0/module/attr_reader.rb +3 -0
  156. data/lib/backports/2.5.0/module/attr_writer.rb +3 -0
  157. data/lib/backports/2.5.0/module/define_method.rb +3 -0
  158. data/lib/backports/2.5.0/module/remove_method.rb +3 -0
  159. data/lib/backports/2.5.0/module/undef_method.rb +3 -0
  160. data/lib/backports/2.5.0/string.rb +3 -0
  161. data/lib/backports/2.5.0/string/delete_prefix.rb +32 -0
  162. data/lib/backports/2.5.0/string/delete_suffix.rb +33 -0
  163. data/lib/backports/2.5.0/struct.rb +3 -0
  164. data/lib/backports/2.5.0/struct/new.rb +24 -0
  165. data/lib/backports/2.5.rb +2 -0
  166. data/lib/backports/latest.rb +2 -0
  167. data/lib/backports/version.rb +1 -1
  168. data/set_version/2.5.0.rb +1 -0
  169. data/set_version/setter.rb +8 -0
  170. data/spec/tags/1.9.1/core/dir/each_child_spec.rb +1 -0
  171. data/spec/tags/1.9.1/core/hash/transform_keys_spec.rb +2 -0
  172. data/spec/tags/1.9.1/core/io/write_spec.rb +1 -0
  173. data/spec/tags/1.9.1/core/kernel/yield_self_spec.rb +1 -0
  174. data/spec/tags/1.9.1/core/method/curry_spec.rb +1 -0
  175. data/spec/tags/1.9.1/core/module/alias_method_spec.rb +3 -0
  176. data/spec/tags/1.9.1/core/module/attr_accessor_spec.rb +1 -0
  177. data/spec/tags/1.9.1/core/module/attr_reader_spec.rb +1 -0
  178. data/spec/tags/1.9.1/core/module/attr_writer_spec.rb +1 -0
  179. data/spec/tags/1.9.1/core/module/define_method_spec.rb +7 -0
  180. data/spec/tags/1.9.1/core/struct/new_spec.rb +2 -0
  181. data/spec/tags/1.9.2/core/dir/each_child_spec.rb +1 -0
  182. data/spec/tags/1.9.2/core/hash/transform_keys_spec.rb +2 -0
  183. data/spec/tags/1.9.2/core/kernel/yield_self_spec.rb +1 -0
  184. data/spec/tags/1.9.2/core/module/alias_method_spec.rb +3 -0
  185. data/spec/tags/1.9.2/core/module/attr_accessor_spec.rb +1 -0
  186. data/spec/tags/1.9.2/core/module/attr_reader_spec.rb +1 -0
  187. data/spec/tags/1.9.2/core/module/attr_writer_spec.rb +1 -0
  188. data/spec/tags/1.9.2/core/module/define_method_spec.rb +7 -0
  189. data/spec/tags/1.9.2/core/struct/new_spec.rb +2 -0
  190. data/spec/tags/1.9.3/core/dir/each_child_spec.rb +1 -0
  191. data/spec/tags/1.9.3/core/hash/transform_keys_spec.rb +2 -0
  192. data/spec/tags/1.9.3/core/hash/transform_values_spec.rb +2 -0
  193. data/spec/tags/1.9.3/core/kernel/yield_self_spec.rb +1 -0
  194. data/spec/tags/1.9.3/core/module/alias_method_spec.rb +3 -0
  195. data/spec/tags/1.9.3/core/module/attr_accessor_spec.rb +1 -0
  196. data/spec/tags/1.9.3/core/module/attr_reader_spec.rb +1 -0
  197. data/spec/tags/1.9.3/core/module/attr_writer_spec.rb +1 -0
  198. data/spec/tags/1.9.3/core/module/define_method_spec.rb +7 -0
  199. data/spec/tags/1.9.3/core/struct/new_spec.rb +2 -0
  200. data/spec/tags/2.0.0/core/module/attr_accessor_spec.rb +1 -0
  201. data/spec/tags/2.0.0/core/module/attr_reader_spec.rb +1 -0
  202. data/spec/tags/2.0.0/core/module/attr_writer_spec.rb +1 -0
  203. data/spec/tags/2.0.0/core/module/define_method_spec.rb +4 -0
  204. data/spec/tags/2.0.0/core/struct/new_spec.rb +1 -0
  205. data/spec/tags/2.1.0/core/module/attr_accessor_spec.rb +1 -0
  206. data/spec/tags/2.1.0/core/module/attr_reader_spec.rb +1 -0
  207. data/spec/tags/2.1.0/core/module/attr_writer_spec.rb +1 -0
  208. data/spec/tags/2.1.0/core/module/define_method_spec.rb +4 -0
  209. data/spec/tags/2.1.0/core/struct/new_spec.rb +1 -0
  210. data/spec/tags/2.2.0/core/module/attr_accessor_spec.rb +1 -0
  211. data/spec/tags/2.2.0/core/module/attr_reader_spec.rb +1 -0
  212. data/spec/tags/2.2.0/core/module/attr_writer_spec.rb +1 -0
  213. data/spec/tags/2.2.0/core/module/define_method_spec.rb +4 -0
  214. data/spec/tags/2.2.0/core/struct/new_spec.rb +1 -0
  215. data/spec/tags/2.3.0/core/struct/new_spec.rb +1 -0
  216. data/spec/tags/2.4.0/core/struct/new_spec.rb +1 -0
  217. metadata +265 -10
@@ -0,0 +1,32 @@
1
+ unless String.method_defined? :delete_prefix
2
+ require 'backports/tools/arguments'
3
+
4
+ class String
5
+ def delete_prefix(prefix)
6
+ prefix = Backports.coerce_to_str(prefix)
7
+ if rindex(prefix, 0)
8
+ self[prefix.length..-1]
9
+ else
10
+ dup
11
+ end
12
+ end
13
+ end
14
+ end
15
+
16
+ unless String.method_defined? :delete_prefix!
17
+ require 'backports/tools/arguments'
18
+
19
+ class String
20
+ def delete_prefix!(prefix)
21
+ prefix = Backports.coerce_to_str(prefix)
22
+ chomp! if frozen?
23
+ len = prefix.length
24
+ if len > 0 && rindex(prefix, 0)
25
+ self[0...prefix.length] = ''
26
+ self
27
+ else
28
+ nil
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,33 @@
1
+ unless String.method_defined? :delete_suffix
2
+ require 'backports/tools/arguments'
3
+
4
+ class String
5
+ def delete_suffix(suffix)
6
+ suffix = Backports.coerce_to_str(suffix)
7
+ len = suffix.length
8
+ if len > 0 && index(suffix, -len)
9
+ self[0...-len]
10
+ else
11
+ dup
12
+ end
13
+ end
14
+ end
15
+ end
16
+
17
+ unless String.method_defined? :delete_suffix!
18
+ require 'backports/tools/arguments'
19
+
20
+ class String
21
+ def delete_suffix!(suffix)
22
+ suffix = Backports.coerce_to_str(suffix)
23
+ chomp! if frozen?
24
+ len = suffix.length
25
+ if len > 0 && index(suffix, -len)
26
+ self[-len..-1] = ''
27
+ self
28
+ else
29
+ nil
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,3 @@
1
+ require 'backports/tools/require_relative_dir'
2
+
3
+ Backports.require_relative_dir
@@ -0,0 +1,24 @@
1
+ puts "asdasd"
2
+ if RUBY_VERSION >= '2.0.0' && (Struct.new(:a, :keyword_init => true) && false rescue true)
3
+ require 'backports/tools/alias_method_chain'
4
+ eval %q[
5
+ class << Struct
6
+ def new_with_keyword_init(*members, keyword_init: false, &block)
7
+ klass = new_without_keyword_init(*members)
8
+ if keyword_init
9
+ members.shift unless members.first.is_a?(Symbol)
10
+ arg_list = members.map { |m| "#{m}: nil"}.join(', ')
11
+ setter = members.map { |m| "self.#{m} = #{m} " }.join("\n")
12
+ klass.class_eval <<-RUBY, __FILE__, __LINE__ + 1
13
+ def initialize(#{arg_list})
14
+ #{setter}
15
+ end
16
+ RUBY
17
+ end
18
+ klass.class_eval(&block) if block
19
+ klass
20
+ end
21
+ Backports.alias_method_chain(self, :new, :keyword_init)
22
+ end
23
+ ]
24
+ end
@@ -0,0 +1,2 @@
1
+ # require this file to load all the backports of Ruby 2.4 and below
2
+ require 'backports/2.5.0'
@@ -0,0 +1,2 @@
1
+ # require this file to load all the backports
2
+ require 'backports/2.5.0'
@@ -1,3 +1,3 @@
1
1
  module Backports
2
- VERSION = "3.10.3" unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
2
+ VERSION = "3.11.0" unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
3
3
  end
@@ -0,0 +1 @@
1
+ require File.expand_path(File.dirname(__FILE__) + "/setter")
@@ -12,3 +12,11 @@ if RUBY_VERSION < Backports::TARGET_VERSION && Backports::TARGET_VERSION >= '1.9
12
12
  require 'backports/1.9.2/float/infinity.rb' # Used in many specs...
13
13
  require 'backports/1.9.2/float/nan.rb' # Used in many specs...
14
14
  end
15
+
16
+ def frozen_error_class
17
+ begin
18
+ [1].freeze.pop
19
+ rescue Exception => e
20
+ e.class
21
+ end
22
+ end
@@ -0,0 +1 @@
1
+ fails:Dir.each_child when no block is given returned Enumerator size should return nil
@@ -0,0 +1,2 @@
1
+ fails:Hash#transform_keys when no block is given returns a sized Enumerator
2
+ fails:Hash#transform_keys! when no block is given returns a sized Enumerator
@@ -1,2 +1,3 @@
1
1
  fails:IO.write uses encoding from given options, if provided
2
2
  fails:IO.write uses an :open_args option
3
+ fails:IO.write uses the given encoding and returns the number of bytes written
@@ -0,0 +1 @@
1
+ fails:Kernel#yield_self returns a sized Enumerator when no block given
@@ -0,0 +1 @@
1
+ fails:Method#curry with optional arity argument raises ArgumentError when the method requires less arguments than the given arity
@@ -0,0 +1,3 @@
1
+ fails:Module#alias_method aliasing special methods keeps initialize_clone private when aliasing
2
+ fails:Module#alias_method aliasing special methods keeps initialize_dup private when aliasing
3
+ fails:Module#alias_method aliasing special methods keeps respond_to_missing? private when aliasing
@@ -0,0 +1 @@
1
+ fails:Module#attr_accessor not allows creating an attr_accessor on an immediate class
@@ -0,0 +1 @@
1
+ fails:Module#attr_reader not allows for adding an attr_reader to an immediate
@@ -0,0 +1 @@
1
+ fails:Module#attr_writer not allows for adding an attr_writer to an immediate
@@ -0,0 +1,7 @@
1
+ fails:Module#define_method when name is not a special private name given an UnboundMethod and called from the target module sets the visibility of the method to the current visibility
2
+ fails:Module#define_method when name is not a special private name given an UnboundMethod and called from another module sets the visibility of the method to public
3
+ fails:Module#define_method when name is not a special private name passed a block and called from the target module sets the visibility of the method to the current visibility
4
+ fails:Module#define_method does not use the caller block when no block is given
5
+ fails:Module#define_method returns its symbol
6
+ fails:Module#define_method allows an UnboundMethod from a module to be defined on a class
7
+ fails:Module#define_method allows an UnboundMethod from a module to be defined on another unrelated module
@@ -0,0 +1,2 @@
1
+ fails:Struct.new raises a ArgumentError if passed a Hash with an unknown key
2
+ fails:Struct.new keyword_init: false option behaves like it does without :keyword_init option
@@ -0,0 +1 @@
1
+ fails:Dir.each_child when no block is given returned Enumerator size should return nil
@@ -0,0 +1,2 @@
1
+ fails:Hash#transform_keys when no block is given returns a sized Enumerator
2
+ fails:Hash#transform_keys! when no block is given returns a sized Enumerator
@@ -0,0 +1 @@
1
+ fails:Kernel#yield_self returns a sized Enumerator when no block given
@@ -0,0 +1,3 @@
1
+ fails:Module#alias_method aliasing special methods keeps initialize_clone private when aliasing
2
+ fails:Module#alias_method aliasing special methods keeps initialize_dup private when aliasing
3
+ fails:Module#alias_method aliasing special methods keeps respond_to_missing? private when aliasing
@@ -0,0 +1 @@
1
+ fails:Module#attr_accessor not allows creating an attr_accessor on an immediate class
@@ -0,0 +1 @@
1
+ fails:Module#attr_reader not allows for adding an attr_reader to an immediate
@@ -0,0 +1 @@
1
+ fails:Module#attr_writer not allows for adding an attr_writer to an immediate
@@ -0,0 +1,7 @@
1
+ fails:Module#define_method when name is not a special private name given an UnboundMethod and called from the target module sets the visibility of the method to the current visibility
2
+ fails:Module#define_method when name is not a special private name given an UnboundMethod and called from another module sets the visibility of the method to public
3
+ fails:Module#define_method when name is not a special private name passed a block and called from the target module sets the visibility of the method to the current visibility
4
+ fails:Module#define_method does not use the caller block when no block is given
5
+ fails:Module#define_method returns its symbol
6
+ fails:Module#define_method allows an UnboundMethod from a module to be defined on a class
7
+ fails:Module#define_method allows an UnboundMethod from a module to be defined on another unrelated module
@@ -0,0 +1,2 @@
1
+ fails:Struct.new raises a ArgumentError if passed a Hash with an unknown key
2
+ fails:Struct.new keyword_init: false option behaves like it does without :keyword_init option
@@ -0,0 +1 @@
1
+ fails:Dir.each_child when no block is given returned Enumerator size should return nil
@@ -0,0 +1,2 @@
1
+ fails:Hash#transform_keys when no block is given returns a sized Enumerator
2
+ fails:Hash#transform_keys! when no block is given returns a sized Enumerator
@@ -0,0 +1,2 @@
1
+ fails:Hash#transform_values when no block is given returns a sized Enumerator
2
+ fails:Hash#transform_values! when no block is given returns a sized Enumerator
@@ -0,0 +1 @@
1
+ fails:Kernel#yield_self returns a sized Enumerator when no block given
@@ -0,0 +1,3 @@
1
+ fails:Module#alias_method aliasing special methods keeps initialize_clone private when aliasing
2
+ fails:Module#alias_method aliasing special methods keeps initialize_dup private when aliasing
3
+ fails:Module#alias_method aliasing special methods keeps respond_to_missing? private when aliasing
@@ -0,0 +1 @@
1
+ fails:Module#attr_accessor not allows creating an attr_accessor on an immediate class
@@ -0,0 +1 @@
1
+ fails:Module#attr_reader not allows for adding an attr_reader to an immediate
@@ -0,0 +1 @@
1
+ fails:Module#attr_writer not allows for adding an attr_writer to an immediate
@@ -0,0 +1,7 @@
1
+ fails:Module#define_method when name is not a special private name given an UnboundMethod and called from the target module sets the visibility of the method to the current visibility
2
+ fails:Module#define_method when name is not a special private name given an UnboundMethod and called from another module sets the visibility of the method to public
3
+ fails:Module#define_method when name is not a special private name passed a block and called from the target module sets the visibility of the method to the current visibility
4
+ fails:Module#define_method does not use the caller block when no block is given
5
+ fails:Module#define_method returns its symbol
6
+ fails:Module#define_method allows an UnboundMethod from a module to be defined on a class
7
+ fails:Module#define_method allows an UnboundMethod from a module to be defined on another unrelated module
@@ -0,0 +1,2 @@
1
+ fails:Struct.new raises a ArgumentError if passed a Hash with an unknown key
2
+ fails:Struct.new keyword_init: false option behaves like it does without :keyword_init option
@@ -0,0 +1 @@
1
+ fails:Module#attr_accessor not allows creating an attr_accessor on an immediate class
@@ -0,0 +1 @@
1
+ fails:Module#attr_reader not allows for adding an attr_reader to an immediate
@@ -0,0 +1 @@
1
+ fails:Module#attr_writer not allows for adding an attr_writer to an immediate
@@ -0,0 +1,4 @@
1
+ fails:Module#define_method when name is not a special private name given an UnboundMethod and called from the target module sets the visibility of the method to the current visibility
2
+ fails:Module#define_method when name is not a special private name passed a block and called from the target module sets the visibility of the method to the current visibility
3
+ fails:Module#define_method does not use the caller block when no block is given
4
+ fails:Module#define_method returns its symbol
@@ -0,0 +1 @@
1
+ fails:Struct.new keyword_init: true option new class instantiation raises ArgumentError when passed not declared keyword argument
@@ -0,0 +1 @@
1
+ fails:Module#attr_accessor not allows creating an attr_accessor on an immediate class
@@ -0,0 +1 @@
1
+ fails:Module#attr_reader not allows for adding an attr_reader to an immediate
@@ -0,0 +1 @@
1
+ fails:Module#attr_writer not allows for adding an attr_writer to an immediate
@@ -0,0 +1,4 @@
1
+ fails:Module#define_method when name is not a special private name given an UnboundMethod and called from the target module sets the visibility of the method to the current visibility
2
+ fails:Module#define_method when name is not a special private name passed a block and called from the target module sets the visibility of the method to the current visibility
3
+ fails:Module#define_method does not use the caller block when no block is given
4
+ fails:Module#define_method returns its symbol
@@ -0,0 +1 @@
1
+ fails:Struct.new keyword_init: true option new class instantiation raises ArgumentError when passed not declared keyword argument
@@ -0,0 +1 @@
1
+ fails:Module#attr_accessor not allows creating an attr_accessor on an immediate class
@@ -0,0 +1 @@
1
+ fails:Module#attr_reader not allows for adding an attr_reader to an immediate
@@ -0,0 +1 @@
1
+ fails:Module#attr_writer not allows for adding an attr_writer to an immediate
@@ -0,0 +1,4 @@
1
+ fails:Module#define_method when name is not a special private name given an UnboundMethod and called from the target module sets the visibility of the method to the current visibility
2
+ fails:Module#define_method when name is not a special private name passed a block and called from the target module sets the visibility of the method to the current visibility
3
+ fails:Module#define_method does not use the caller block when no block is given
4
+ fails:Module#define_method returns its symbol
@@ -0,0 +1 @@
1
+ fails:Struct.new keyword_init: true option new class instantiation raises ArgumentError when passed not declared keyword argument
@@ -0,0 +1 @@
1
+ fails:Struct.new keyword_init: true option new class instantiation raises ArgumentError when passed not declared keyword argument
@@ -0,0 +1 @@
1
+ fails:Struct.new keyword_init: true option new class instantiation raises ArgumentError when passed not declared keyword argument
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backports
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.10.3
4
+ version: 3.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc-André Lafortune
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-17 00:00:00.000000000 Z
11
+ date: 2017-12-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Essential backports that enable many of the nice features of Ruby 1.8.7
14
14
  up to 2.1.0 for earlier versions.
@@ -18,11 +18,11 @@ executables: []
18
18
  extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
- - ".document"
22
- - ".gitignore"
23
- - ".gitmodules"
24
- - ".irbrc"
25
- - ".travis.yml"
21
+ - .document
22
+ - .gitignore
23
+ - .gitmodules
24
+ - .irbrc
25
+ - .travis.yml
26
26
  - CHANGELOG.rdoc
27
27
  - Gemfile
28
28
  - LICENSE.txt
@@ -33,11 +33,16 @@ files:
33
33
  - frozen_old_spec/tags/1.8.6/core/argf/each_line_spec.rb
34
34
  - frozen_old_spec/tags/1.8.6/core/argf/each_spec.rb
35
35
  - frozen_old_spec/tags/1.8.6/core/argf/lines_spec.rb
36
+ - frozen_old_spec/tags/1.8.6/core/array/append_spec.rb
36
37
  - frozen_old_spec/tags/1.8.6/core/array/collect_spec.rb
37
38
  - frozen_old_spec/tags/1.8.6/core/array/rotate_spec.rb
38
39
  - frozen_old_spec/tags/1.8.6/core/array/uniq_spec.rb
39
40
  - frozen_old_spec/tags/1.8.6/core/complex/to_r_spec.rb
41
+ - frozen_old_spec/tags/1.8.6/core/enumerable/all_spec.rb
42
+ - frozen_old_spec/tags/1.8.6/core/enumerable/any_spec.rb
40
43
  - frozen_old_spec/tags/1.8.6/core/enumerable/each_entry_spec.rb
44
+ - frozen_old_spec/tags/1.8.6/core/enumerable/none_spec.rb
45
+ - frozen_old_spec/tags/1.8.6/core/enumerable/one_spec.rb
41
46
  - frozen_old_spec/tags/1.8.6/core/enumerator/next_spec.rb
42
47
  - frozen_old_spec/tags/1.8.6/core/env/to_h_spec.rb
43
48
  - frozen_old_spec/tags/1.8.6/core/file/join_spec.rb
@@ -73,8 +78,16 @@ files:
73
78
  - frozen_old_spec/tags/1.8.6/core/kernel/require_relative_spec.rb
74
79
  - frozen_old_spec/tags/1.8.6/core/math/log2_spec.rb
75
80
  - frozen_old_spec/tags/1.8.6/core/math/log_spec.rb
81
+ - frozen_old_spec/tags/1.8.6/core/module/alias_method_spec.rb
82
+ - frozen_old_spec/tags/1.8.6/core/module/attr_accessor_spec.rb
83
+ - frozen_old_spec/tags/1.8.6/core/module/attr_reader_spec.rb
84
+ - frozen_old_spec/tags/1.8.6/core/module/attr_spec.rb
85
+ - frozen_old_spec/tags/1.8.6/core/module/attr_writer_spec.rb
76
86
  - frozen_old_spec/tags/1.8.6/core/module/class_exec_spec.rb
87
+ - frozen_old_spec/tags/1.8.6/core/module/define_method_spec.rb
77
88
  - frozen_old_spec/tags/1.8.6/core/module/module_exec_spec.rb
89
+ - frozen_old_spec/tags/1.8.6/core/module/remove_method_spec.rb
90
+ - frozen_old_spec/tags/1.8.6/core/module/undef_method_spec.rb
78
91
  - frozen_old_spec/tags/1.8.6/core/nil/dup_spec.rb
79
92
  - frozen_old_spec/tags/1.8.6/core/numeric/step_spec.rb
80
93
  - frozen_old_spec/tags/1.8.6/core/proc/curry_spec.rb
@@ -94,13 +107,18 @@ files:
94
107
  - frozen_old_spec/tags/1.8.6/core/symbol/swapcase_spec.rb
95
108
  - frozen_old_spec/tags/1.8.6/core/symbol/to_proc_spec.rb
96
109
  - frozen_old_spec/tags/1.8.6/core/symbol/upcase_spec.rb
110
+ - frozen_old_spec/tags/1.8.7/core/array/append_spec.rb
97
111
  - frozen_old_spec/tags/1.8.7/core/array/keep_if_spec.rb
98
112
  - frozen_old_spec/tags/1.8.7/core/array/rotate_spec.rb
99
113
  - frozen_old_spec/tags/1.8.7/core/array/select_spec.rb
100
114
  - frozen_old_spec/tags/1.8.7/core/array/uniq_spec.rb
101
115
  - frozen_old_spec/tags/1.8.7/core/complex/to_r_spec.rb
116
+ - frozen_old_spec/tags/1.8.7/core/enumerable/all_spec.rb
117
+ - frozen_old_spec/tags/1.8.7/core/enumerable/any_spec.rb
102
118
  - frozen_old_spec/tags/1.8.7/core/enumerable/collect_concat_spec.rb
103
119
  - frozen_old_spec/tags/1.8.7/core/enumerable/flat_map_spec.rb
120
+ - frozen_old_spec/tags/1.8.7/core/enumerable/none_spec.rb
121
+ - frozen_old_spec/tags/1.8.7/core/enumerable/one_spec.rb
104
122
  - frozen_old_spec/tags/1.8.7/core/env/to_h_spec.rb
105
123
  - frozen_old_spec/tags/1.8.7/core/file/lchmod_spec.rb
106
124
  - frozen_old_spec/tags/1.8.7/core/file/new_spec.rb
@@ -123,7 +141,15 @@ files:
123
141
  - frozen_old_spec/tags/1.8.7/core/kernel/require_relative_spec.rb
124
142
  - frozen_old_spec/tags/1.8.7/core/math/log2_spec.rb
125
143
  - frozen_old_spec/tags/1.8.7/core/math/log_spec.rb
144
+ - frozen_old_spec/tags/1.8.7/core/module/alias_method_spec.rb
145
+ - frozen_old_spec/tags/1.8.7/core/module/attr_accessor_spec.rb
146
+ - frozen_old_spec/tags/1.8.7/core/module/attr_reader_spec.rb
147
+ - frozen_old_spec/tags/1.8.7/core/module/attr_spec.rb
148
+ - frozen_old_spec/tags/1.8.7/core/module/attr_writer_spec.rb
149
+ - frozen_old_spec/tags/1.8.7/core/module/define_method_spec.rb
126
150
  - frozen_old_spec/tags/1.8.7/core/module/include_spec.rb
151
+ - frozen_old_spec/tags/1.8.7/core/module/remove_method_spec.rb
152
+ - frozen_old_spec/tags/1.8.7/core/module/undef_method_spec.rb
127
153
  - frozen_old_spec/tags/1.8.7/core/nil/dup_spec.rb
128
154
  - frozen_old_spec/tags/1.8.7/core/proc/curry_spec.rb
129
155
  - frozen_old_spec/tags/1.8.7/core/proc/yield_spec.rb
@@ -131,6 +157,7 @@ files:
131
157
  - frozen_old_spec/tags/1.8.7/core/string/getbyte_spec.rb
132
158
  - frozen_old_spec/tags/1.8.7/core/string/prepend_spec.rb
133
159
  - frozen_old_spec/tags/1.8.7/core/string/setbyte_spec.rb
160
+ - frozen_old_spec/tags/1.8.7/core/struct/new_spec.rb
134
161
  - frozen_old_spec/tags/1.8.7/core/symbol/capitalize_spec.rb
135
162
  - frozen_old_spec/tags/1.8.7/core/symbol/comparison_spec.rb
136
163
  - frozen_old_spec/tags/1.8.7/core/symbol/downcase_spec.rb
@@ -139,18 +166,115 @@ files:
139
166
  - frozen_old_spec/tags/1.8.7/core/symbol/match_spec.rb
140
167
  - frozen_old_spec/tags/1.8.7/core/symbol/swapcase_spec.rb
141
168
  - frozen_old_spec/tags/1.8.7/core/symbol/upcase_spec.rb
169
+ - frozen_old_spec/tags/1.9.1/core/array/append_spec.rb
142
170
  - frozen_old_spec/tags/1.9.1/core/array/rotate_spec.rb
171
+ - frozen_old_spec/tags/1.9.1/core/enumerable/all_spec.rb
172
+ - frozen_old_spec/tags/1.9.1/core/enumerable/any_spec.rb
173
+ - frozen_old_spec/tags/1.9.1/core/enumerable/none_spec.rb
174
+ - frozen_old_spec/tags/1.9.1/core/enumerable/one_spec.rb
143
175
  - frozen_old_spec/tags/1.9.1/core/env/to_h_spec.rb
144
176
  - frozen_old_spec/tags/1.9.1/core/hash/default_proc_spec.rb
145
177
  - frozen_old_spec/tags/1.9.1/core/io/write_spec.rb
178
+ - frozen_old_spec/tags/1.9.1/core/module/alias_method_spec.rb
179
+ - frozen_old_spec/tags/1.9.1/core/module/attr_accessor_spec.rb
180
+ - frozen_old_spec/tags/1.9.1/core/module/attr_reader_spec.rb
181
+ - frozen_old_spec/tags/1.9.1/core/module/attr_spec.rb
182
+ - frozen_old_spec/tags/1.9.1/core/module/attr_writer_spec.rb
183
+ - frozen_old_spec/tags/1.9.1/core/module/define_method_spec.rb
184
+ - frozen_old_spec/tags/1.9.1/core/module/remove_method_spec.rb
185
+ - frozen_old_spec/tags/1.9.1/core/module/undef_method_spec.rb
146
186
  - frozen_old_spec/tags/1.9.1/core/nil/dup_spec.rb
187
+ - frozen_old_spec/tags/1.9.2/core/array/append_spec.rb
188
+ - frozen_old_spec/tags/1.9.2/core/enumerable/all_spec.rb
189
+ - frozen_old_spec/tags/1.9.2/core/enumerable/any_spec.rb
190
+ - frozen_old_spec/tags/1.9.2/core/enumerable/none_spec.rb
191
+ - frozen_old_spec/tags/1.9.2/core/enumerable/one_spec.rb
147
192
  - frozen_old_spec/tags/1.9.2/core/io/write_spec.rb
193
+ - frozen_old_spec/tags/1.9.2/core/module/alias_method_spec.rb
194
+ - frozen_old_spec/tags/1.9.2/core/module/attr_accessor_spec.rb
195
+ - frozen_old_spec/tags/1.9.2/core/module/attr_reader_spec.rb
196
+ - frozen_old_spec/tags/1.9.2/core/module/attr_spec.rb
197
+ - frozen_old_spec/tags/1.9.2/core/module/attr_writer_spec.rb
198
+ - frozen_old_spec/tags/1.9.2/core/module/define_method_spec.rb
199
+ - frozen_old_spec/tags/1.9.2/core/module/remove_method_spec.rb
200
+ - frozen_old_spec/tags/1.9.2/core/module/undef_method_spec.rb
148
201
  - frozen_old_spec/tags/1.9.2/core/nil/dup_spec.rb
202
+ - frozen_old_spec/tags/1.9.3/core/enumerable/any_spec.rb
203
+ - frozen_old_spec/tags/1.9.3/core/module/alias_method_spec.rb
204
+ - frozen_old_spec/tags/1.9.3/core/module/attr_accessor_spec.rb
205
+ - frozen_old_spec/tags/1.9.3/core/module/attr_reader_spec.rb
206
+ - frozen_old_spec/tags/1.9.3/core/module/attr_spec.rb
207
+ - frozen_old_spec/tags/1.9.3/core/module/attr_writer_spec.rb
208
+ - frozen_old_spec/tags/1.9.3/core/module/define_method_spec.rb
209
+ - frozen_old_spec/tags/1.9.3/core/module/remove_method_spec.rb
210
+ - frozen_old_spec/tags/1.9.3/core/module/undef_method_spec.rb
211
+ - frozen_old_spec/tags/2.0.0/core/enumerable/any_spec.rb
212
+ - frozen_old_spec/tags/2.0.0/core/module/alias_method_spec.rb
213
+ - frozen_old_spec/tags/2.0.0/core/module/attr_accessor_spec.rb
214
+ - frozen_old_spec/tags/2.0.0/core/module/attr_reader_spec.rb
215
+ - frozen_old_spec/tags/2.0.0/core/module/attr_spec.rb
216
+ - frozen_old_spec/tags/2.0.0/core/module/attr_writer_spec.rb
217
+ - frozen_old_spec/tags/2.0.0/core/module/define_method_spec.rb
218
+ - frozen_old_spec/tags/2.0.0/core/module/remove_method_spec.rb
219
+ - frozen_old_spec/tags/2.0.0/core/module/undef_method_spec.rb
149
220
  - frozen_old_spec/tags/2.0.0/core/nil/dup_spec.rb
221
+ - frozen_old_spec/tags/2.0.0/core/struct/new_spec.rb
222
+ - frozen_old_spec/tags/2.1.0/core/enumerable/any_spec.rb
223
+ - frozen_old_spec/tags/2.1.0/core/module/alias_method_spec.rb
224
+ - frozen_old_spec/tags/2.1.0/core/module/attr_accessor_spec.rb
225
+ - frozen_old_spec/tags/2.1.0/core/module/attr_reader_spec.rb
226
+ - frozen_old_spec/tags/2.1.0/core/module/attr_spec.rb
227
+ - frozen_old_spec/tags/2.1.0/core/module/attr_writer_spec.rb
228
+ - frozen_old_spec/tags/2.1.0/core/module/define_method_spec.rb
229
+ - frozen_old_spec/tags/2.1.0/core/module/remove_method_spec.rb
230
+ - frozen_old_spec/tags/2.1.0/core/module/undef_method_spec.rb
150
231
  - frozen_old_spec/tags/2.1.0/core/nil/dup_spec.rb
232
+ - frozen_old_spec/tags/2.1.0/core/struct/new_spec.rb
233
+ - frozen_old_spec/tags/2.2.0/core/enumerable/any_spec.rb
234
+ - frozen_old_spec/tags/2.2.0/core/module/alias_method_spec.rb
235
+ - frozen_old_spec/tags/2.2.0/core/module/attr_accessor_spec.rb
236
+ - frozen_old_spec/tags/2.2.0/core/module/attr_reader_spec.rb
237
+ - frozen_old_spec/tags/2.2.0/core/module/attr_spec.rb
238
+ - frozen_old_spec/tags/2.2.0/core/module/attr_writer_spec.rb
239
+ - frozen_old_spec/tags/2.2.0/core/module/define_method_spec.rb
240
+ - frozen_old_spec/tags/2.2.0/core/module/remove_method_spec.rb
241
+ - frozen_old_spec/tags/2.2.0/core/module/undef_method_spec.rb
151
242
  - frozen_old_spec/tags/2.2.0/core/nil/dup_spec.rb
243
+ - frozen_old_spec/tags/2.2.0/core/struct/new_spec.rb
244
+ - frozen_old_spec/tags/2.3.0/core/enumerable/any_spec.rb
245
+ - frozen_old_spec/tags/2.3.0/core/module/alias_method_spec.rb
246
+ - frozen_old_spec/tags/2.3.0/core/module/attr_accessor_spec.rb
247
+ - frozen_old_spec/tags/2.3.0/core/module/attr_reader_spec.rb
248
+ - frozen_old_spec/tags/2.3.0/core/module/attr_spec.rb
249
+ - frozen_old_spec/tags/2.3.0/core/module/attr_writer_spec.rb
250
+ - frozen_old_spec/tags/2.3.0/core/module/define_method_spec.rb
251
+ - frozen_old_spec/tags/2.3.0/core/module/remove_method_spec.rb
252
+ - frozen_old_spec/tags/2.3.0/core/module/undef_method_spec.rb
152
253
  - frozen_old_spec/tags/2.3.0/core/nil/dup_spec.rb
254
+ - frozen_old_spec/tags/2.3.0/core/struct/new_spec.rb
255
+ - frozen_old_spec/tags/2.3.5/core/struct/new_spec.rb
256
+ - frozen_old_spec/tags/2.4.0/core/enumerable/any_spec.rb
257
+ - frozen_old_spec/tags/2.4.0/core/module/alias_method_spec.rb
258
+ - frozen_old_spec/tags/2.4.0/core/module/attr_accessor_spec.rb
259
+ - frozen_old_spec/tags/2.4.0/core/module/attr_reader_spec.rb
260
+ - frozen_old_spec/tags/2.4.0/core/module/attr_spec.rb
261
+ - frozen_old_spec/tags/2.4.0/core/module/attr_writer_spec.rb
262
+ - frozen_old_spec/tags/2.4.0/core/module/define_method_spec.rb
263
+ - frozen_old_spec/tags/2.4.0/core/module/remove_method_spec.rb
264
+ - frozen_old_spec/tags/2.4.0/core/module/undef_method_spec.rb
153
265
  - frozen_old_spec/tags/2.4.0/core/nil/dup_spec.rb
266
+ - frozen_old_spec/tags/2.4.0/core/struct/new_spec.rb
267
+ - frozen_old_spec/tags/2.5.0/core/enumerable/any_spec.rb
268
+ - frozen_old_spec/tags/2.5.0/core/module/alias_method_spec.rb
269
+ - frozen_old_spec/tags/2.5.0/core/module/attr_accessor_spec.rb
270
+ - frozen_old_spec/tags/2.5.0/core/module/attr_reader_spec.rb
271
+ - frozen_old_spec/tags/2.5.0/core/module/attr_spec.rb
272
+ - frozen_old_spec/tags/2.5.0/core/module/attr_writer_spec.rb
273
+ - frozen_old_spec/tags/2.5.0/core/module/define_method_spec.rb
274
+ - frozen_old_spec/tags/2.5.0/core/module/remove_method_spec.rb
275
+ - frozen_old_spec/tags/2.5.0/core/module/undef_method_spec.rb
276
+ - frozen_old_spec/tags/2.5.0/core/nil/dup_spec.rb
277
+ - frozen_old_spec/tags/2.5.0/core/struct/new_spec.rb
154
278
  - lib/backports.rb
155
279
  - lib/backports/1.8.7.rb
156
280
  - lib/backports/1.8.7/argf.rb
@@ -581,12 +705,50 @@ files:
581
705
  - lib/backports/2.4.0/true_class.rb
582
706
  - lib/backports/2.4.0/true_class/dup.rb
583
707
  - lib/backports/2.4.rb
708
+ - lib/backports/2.5.0.rb
709
+ - lib/backports/2.5.0/array.rb
710
+ - lib/backports/2.5.0/array/append.rb
711
+ - lib/backports/2.5.0/array/prepend.rb
712
+ - lib/backports/2.5.0/dir.rb
713
+ - lib/backports/2.5.0/dir/children.rb
714
+ - lib/backports/2.5.0/dir/each_child.rb
715
+ - lib/backports/2.5.0/enumerable.rb
716
+ - lib/backports/2.5.0/enumerable/all.rb
717
+ - lib/backports/2.5.0/enumerable/any.rb
718
+ - lib/backports/2.5.0/enumerable/none.rb
719
+ - lib/backports/2.5.0/enumerable/one.rb
720
+ - lib/backports/2.5.0/hash.rb
721
+ - lib/backports/2.5.0/hash/slice.rb
722
+ - lib/backports/2.5.0/hash/transform_keys.rb
723
+ - lib/backports/2.5.0/integer.rb
724
+ - lib/backports/2.5.0/integer/allbits.rb
725
+ - lib/backports/2.5.0/integer/anybits.rb
726
+ - lib/backports/2.5.0/integer/nobits.rb
727
+ - lib/backports/2.5.0/integer/sqrt.rb
728
+ - lib/backports/2.5.0/kernel.rb
729
+ - lib/backports/2.5.0/kernel/yield_self.rb
730
+ - lib/backports/2.5.0/module.rb
731
+ - lib/backports/2.5.0/module/alias_method.rb
732
+ - lib/backports/2.5.0/module/attr.rb
733
+ - lib/backports/2.5.0/module/attr_accessor.rb
734
+ - lib/backports/2.5.0/module/attr_reader.rb
735
+ - lib/backports/2.5.0/module/attr_writer.rb
736
+ - lib/backports/2.5.0/module/define_method.rb
737
+ - lib/backports/2.5.0/module/remove_method.rb
738
+ - lib/backports/2.5.0/module/undef_method.rb
739
+ - lib/backports/2.5.0/string.rb
740
+ - lib/backports/2.5.0/string/delete_prefix.rb
741
+ - lib/backports/2.5.0/string/delete_suffix.rb
742
+ - lib/backports/2.5.0/struct.rb
743
+ - lib/backports/2.5.0/struct/new.rb
744
+ - lib/backports/2.5.rb
584
745
  - lib/backports/basic_object.rb
585
746
  - lib/backports/force/array_map.rb
586
747
  - lib/backports/force/enumerable_map.rb
587
748
  - lib/backports/force/hash_select.rb
588
749
  - lib/backports/force/string_length.rb
589
750
  - lib/backports/force/string_size.rb
751
+ - lib/backports/latest.rb
590
752
  - lib/backports/rails.rb
591
753
  - lib/backports/rails/array.rb
592
754
  - lib/backports/rails/enumerable.rb
@@ -622,6 +784,7 @@ files:
622
784
  - set_version/2.2.0.rb
623
785
  - set_version/2.3.0.rb
624
786
  - set_version/2.4.0.rb
787
+ - set_version/2.5.0.rb
625
788
  - set_version/setter.rb
626
789
  - spec/tags/1.8.6/core/argf/each_line_spec.rb
627
790
  - spec/tags/1.8.6/core/argf/each_spec.rb
@@ -738,24 +901,70 @@ files:
738
901
  - spec/tags/1.8.7/core/symbol/upcase_spec.rb
739
902
  - spec/tags/1.9.1/core/array/bsearch_index_spec.rb
740
903
  - spec/tags/1.9.1/core/array/rotate_spec.rb
904
+ - spec/tags/1.9.1/core/dir/each_child_spec.rb
741
905
  - spec/tags/1.9.1/core/env/to_h_spec.rb
742
906
  - spec/tags/1.9.1/core/hash/default_proc_spec.rb
907
+ - spec/tags/1.9.1/core/hash/transform_keys_spec.rb
743
908
  - spec/tags/1.9.1/core/hash/transform_values_spec.rb
744
909
  - spec/tags/1.9.1/core/io/write_spec.rb
910
+ - spec/tags/1.9.1/core/kernel/yield_self_spec.rb
911
+ - spec/tags/1.9.1/core/method/curry_spec.rb
912
+ - spec/tags/1.9.1/core/module/alias_method_spec.rb
913
+ - spec/tags/1.9.1/core/module/attr_accessor_spec.rb
914
+ - spec/tags/1.9.1/core/module/attr_reader_spec.rb
915
+ - spec/tags/1.9.1/core/module/attr_writer_spec.rb
916
+ - spec/tags/1.9.1/core/module/define_method_spec.rb
745
917
  - spec/tags/1.9.1/core/string/uplus_spec.rb
918
+ - spec/tags/1.9.1/core/struct/new_spec.rb
746
919
  - spec/tags/1.9.2/core/array/bsearch_index_spec.rb
920
+ - spec/tags/1.9.2/core/dir/each_child_spec.rb
921
+ - spec/tags/1.9.2/core/hash/transform_keys_spec.rb
747
922
  - spec/tags/1.9.2/core/hash/transform_values_spec.rb
748
923
  - spec/tags/1.9.2/core/io/write_spec.rb
924
+ - spec/tags/1.9.2/core/kernel/yield_self_spec.rb
749
925
  - spec/tags/1.9.2/core/method/curry_spec.rb
926
+ - spec/tags/1.9.2/core/module/alias_method_spec.rb
927
+ - spec/tags/1.9.2/core/module/attr_accessor_spec.rb
928
+ - spec/tags/1.9.2/core/module/attr_reader_spec.rb
929
+ - spec/tags/1.9.2/core/module/attr_writer_spec.rb
930
+ - spec/tags/1.9.2/core/module/define_method_spec.rb
750
931
  - spec/tags/1.9.2/core/string/uplus_spec.rb
932
+ - spec/tags/1.9.2/core/struct/new_spec.rb
751
933
  - spec/tags/1.9.3/core/array/bsearch_index_spec.rb
934
+ - spec/tags/1.9.3/core/dir/each_child_spec.rb
935
+ - spec/tags/1.9.3/core/hash/transform_keys_spec.rb
936
+ - spec/tags/1.9.3/core/hash/transform_values_spec.rb
752
937
  - spec/tags/1.9.3/core/io/write_spec.rb
938
+ - spec/tags/1.9.3/core/kernel/yield_self_spec.rb
753
939
  - spec/tags/1.9.3/core/method/curry_spec.rb
940
+ - spec/tags/1.9.3/core/module/alias_method_spec.rb
941
+ - spec/tags/1.9.3/core/module/attr_accessor_spec.rb
942
+ - spec/tags/1.9.3/core/module/attr_reader_spec.rb
943
+ - spec/tags/1.9.3/core/module/attr_writer_spec.rb
944
+ - spec/tags/1.9.3/core/module/define_method_spec.rb
754
945
  - spec/tags/1.9.3/core/string/uplus_spec.rb
946
+ - spec/tags/1.9.3/core/struct/new_spec.rb
947
+ - spec/tags/2.0.0/core/module/attr_accessor_spec.rb
948
+ - spec/tags/2.0.0/core/module/attr_reader_spec.rb
949
+ - spec/tags/2.0.0/core/module/attr_writer_spec.rb
950
+ - spec/tags/2.0.0/core/module/define_method_spec.rb
755
951
  - spec/tags/2.0.0/core/string/uplus_spec.rb
952
+ - spec/tags/2.0.0/core/struct/new_spec.rb
953
+ - spec/tags/2.1.0/core/module/attr_accessor_spec.rb
954
+ - spec/tags/2.1.0/core/module/attr_reader_spec.rb
955
+ - spec/tags/2.1.0/core/module/attr_writer_spec.rb
956
+ - spec/tags/2.1.0/core/module/define_method_spec.rb
756
957
  - spec/tags/2.1.0/core/string/uplus_spec.rb
958
+ - spec/tags/2.1.0/core/struct/new_spec.rb
959
+ - spec/tags/2.2.0/core/module/attr_accessor_spec.rb
960
+ - spec/tags/2.2.0/core/module/attr_reader_spec.rb
961
+ - spec/tags/2.2.0/core/module/attr_writer_spec.rb
962
+ - spec/tags/2.2.0/core/module/define_method_spec.rb
757
963
  - spec/tags/2.2.0/core/string/uplus_spec.rb
964
+ - spec/tags/2.2.0/core/struct/new_spec.rb
758
965
  - spec/tags/2.3.0/core/string/uplus_spec.rb
966
+ - spec/tags/2.3.0/core/struct/new_spec.rb
967
+ - spec/tags/2.4.0/core/struct/new_spec.rb
759
968
  - test/README
760
969
  - test/_backport_guards_test.rb
761
970
  - test/bit_length_test.rb
@@ -772,17 +981,17 @@ require_paths:
772
981
  - lib
773
982
  required_ruby_version: !ruby/object:Gem::Requirement
774
983
  requirements:
775
- - - ">="
984
+ - - ! '>='
776
985
  - !ruby/object:Gem::Version
777
986
  version: '0'
778
987
  required_rubygems_version: !ruby/object:Gem::Requirement
779
988
  requirements:
780
- - - ">="
989
+ - - ! '>='
781
990
  - !ruby/object:Gem::Version
782
991
  version: '0'
783
992
  requirements: []
784
993
  rubyforge_project:
785
- rubygems_version: 2.6.13
994
+ rubygems_version: 2.4.8
786
995
  signing_key:
787
996
  specification_version: 4
788
997
  summary: Backports of Ruby features for older Ruby.
@@ -902,24 +1111,70 @@ test_files:
902
1111
  - spec/tags/1.8.7/core/symbol/upcase_spec.rb
903
1112
  - spec/tags/1.9.1/core/array/bsearch_index_spec.rb
904
1113
  - spec/tags/1.9.1/core/array/rotate_spec.rb
1114
+ - spec/tags/1.9.1/core/dir/each_child_spec.rb
905
1115
  - spec/tags/1.9.1/core/env/to_h_spec.rb
906
1116
  - spec/tags/1.9.1/core/hash/default_proc_spec.rb
1117
+ - spec/tags/1.9.1/core/hash/transform_keys_spec.rb
907
1118
  - spec/tags/1.9.1/core/hash/transform_values_spec.rb
908
1119
  - spec/tags/1.9.1/core/io/write_spec.rb
1120
+ - spec/tags/1.9.1/core/kernel/yield_self_spec.rb
1121
+ - spec/tags/1.9.1/core/method/curry_spec.rb
1122
+ - spec/tags/1.9.1/core/module/alias_method_spec.rb
1123
+ - spec/tags/1.9.1/core/module/attr_accessor_spec.rb
1124
+ - spec/tags/1.9.1/core/module/attr_reader_spec.rb
1125
+ - spec/tags/1.9.1/core/module/attr_writer_spec.rb
1126
+ - spec/tags/1.9.1/core/module/define_method_spec.rb
909
1127
  - spec/tags/1.9.1/core/string/uplus_spec.rb
1128
+ - spec/tags/1.9.1/core/struct/new_spec.rb
910
1129
  - spec/tags/1.9.2/core/array/bsearch_index_spec.rb
1130
+ - spec/tags/1.9.2/core/dir/each_child_spec.rb
1131
+ - spec/tags/1.9.2/core/hash/transform_keys_spec.rb
911
1132
  - spec/tags/1.9.2/core/hash/transform_values_spec.rb
912
1133
  - spec/tags/1.9.2/core/io/write_spec.rb
1134
+ - spec/tags/1.9.2/core/kernel/yield_self_spec.rb
913
1135
  - spec/tags/1.9.2/core/method/curry_spec.rb
1136
+ - spec/tags/1.9.2/core/module/alias_method_spec.rb
1137
+ - spec/tags/1.9.2/core/module/attr_accessor_spec.rb
1138
+ - spec/tags/1.9.2/core/module/attr_reader_spec.rb
1139
+ - spec/tags/1.9.2/core/module/attr_writer_spec.rb
1140
+ - spec/tags/1.9.2/core/module/define_method_spec.rb
914
1141
  - spec/tags/1.9.2/core/string/uplus_spec.rb
1142
+ - spec/tags/1.9.2/core/struct/new_spec.rb
915
1143
  - spec/tags/1.9.3/core/array/bsearch_index_spec.rb
1144
+ - spec/tags/1.9.3/core/dir/each_child_spec.rb
1145
+ - spec/tags/1.9.3/core/hash/transform_keys_spec.rb
1146
+ - spec/tags/1.9.3/core/hash/transform_values_spec.rb
916
1147
  - spec/tags/1.9.3/core/io/write_spec.rb
1148
+ - spec/tags/1.9.3/core/kernel/yield_self_spec.rb
917
1149
  - spec/tags/1.9.3/core/method/curry_spec.rb
1150
+ - spec/tags/1.9.3/core/module/alias_method_spec.rb
1151
+ - spec/tags/1.9.3/core/module/attr_accessor_spec.rb
1152
+ - spec/tags/1.9.3/core/module/attr_reader_spec.rb
1153
+ - spec/tags/1.9.3/core/module/attr_writer_spec.rb
1154
+ - spec/tags/1.9.3/core/module/define_method_spec.rb
918
1155
  - spec/tags/1.9.3/core/string/uplus_spec.rb
1156
+ - spec/tags/1.9.3/core/struct/new_spec.rb
1157
+ - spec/tags/2.0.0/core/module/attr_accessor_spec.rb
1158
+ - spec/tags/2.0.0/core/module/attr_reader_spec.rb
1159
+ - spec/tags/2.0.0/core/module/attr_writer_spec.rb
1160
+ - spec/tags/2.0.0/core/module/define_method_spec.rb
919
1161
  - spec/tags/2.0.0/core/string/uplus_spec.rb
1162
+ - spec/tags/2.0.0/core/struct/new_spec.rb
1163
+ - spec/tags/2.1.0/core/module/attr_accessor_spec.rb
1164
+ - spec/tags/2.1.0/core/module/attr_reader_spec.rb
1165
+ - spec/tags/2.1.0/core/module/attr_writer_spec.rb
1166
+ - spec/tags/2.1.0/core/module/define_method_spec.rb
920
1167
  - spec/tags/2.1.0/core/string/uplus_spec.rb
1168
+ - spec/tags/2.1.0/core/struct/new_spec.rb
1169
+ - spec/tags/2.2.0/core/module/attr_accessor_spec.rb
1170
+ - spec/tags/2.2.0/core/module/attr_reader_spec.rb
1171
+ - spec/tags/2.2.0/core/module/attr_writer_spec.rb
1172
+ - spec/tags/2.2.0/core/module/define_method_spec.rb
921
1173
  - spec/tags/2.2.0/core/string/uplus_spec.rb
1174
+ - spec/tags/2.2.0/core/struct/new_spec.rb
922
1175
  - spec/tags/2.3.0/core/string/uplus_spec.rb
1176
+ - spec/tags/2.3.0/core/struct/new_spec.rb
1177
+ - spec/tags/2.4.0/core/struct/new_spec.rb
923
1178
  - test/README
924
1179
  - test/_backport_guards_test.rb
925
1180
  - test/bit_length_test.rb