backports 3.6.8 → 3.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +13 -5
  2. data/.gitmodules +4 -1
  3. data/.travis.yml +4 -1
  4. data/Gemfile +1 -1
  5. data/Gemfile.lock +3 -8
  6. data/README.rdoc +16 -2
  7. data/Rakefile +60 -20
  8. data/frozen_old_spec/tags/1.8.6/core/argf/each_line_spec.rb +6 -0
  9. data/frozen_old_spec/tags/1.8.6/core/argf/each_spec.rb +6 -0
  10. data/frozen_old_spec/tags/1.8.6/core/argf/lines_spec.rb +6 -0
  11. data/frozen_old_spec/tags/1.8.6/core/array/collect_spec.rb +7 -0
  12. data/frozen_old_spec/tags/1.8.6/core/array/rotate_spec.rb +2 -0
  13. data/frozen_old_spec/tags/1.8.6/core/array/uniq_spec.rb +3 -0
  14. data/frozen_old_spec/tags/1.8.6/core/complex/to_r_spec.rb +3 -0
  15. data/frozen_old_spec/tags/1.8.6/core/enumerable/each_entry_spec.rb +1 -0
  16. data/frozen_old_spec/tags/1.8.6/core/enumerator/next_spec.rb +1 -0
  17. data/frozen_old_spec/tags/1.8.6/core/env/to_h_spec.rb +2 -0
  18. data/frozen_old_spec/tags/1.8.6/core/file/join_spec.rb +3 -0
  19. data/frozen_old_spec/tags/1.8.6/core/file/lchmod_spec.rb +2 -0
  20. data/frozen_old_spec/tags/1.8.6/core/file/new_spec.rb +2 -0
  21. data/frozen_old_spec/tags/1.8.6/core/file/open_spec.rb +13 -0
  22. data/frozen_old_spec/tags/1.8.6/core/file/to_path_spec.rb +1 -0
  23. data/frozen_old_spec/tags/1.8.6/core/fixnum/fdiv_spec.rb +1 -0
  24. data/frozen_old_spec/tags/1.8.6/core/gc/stress_spec.rb +2 -0
  25. data/frozen_old_spec/tags/1.8.6/core/hash/assoc_spec.rb +1 -0
  26. data/frozen_old_spec/tags/1.8.6/core/hash/constructor_spec.rb +3 -0
  27. data/frozen_old_spec/tags/1.8.6/core/hash/default_proc_spec.rb +3 -0
  28. data/frozen_old_spec/tags/1.8.6/core/hash/delete_if_spec.rb +1 -0
  29. data/frozen_old_spec/tags/1.8.6/core/hash/each_pair_spec.rb +1 -0
  30. data/frozen_old_spec/tags/1.8.6/core/hash/eql_spec.rb +3 -0
  31. data/frozen_old_spec/tags/1.8.6/core/hash/hash_spec.rb +3 -0
  32. data/frozen_old_spec/tags/1.8.6/core/hash/keep_if_spec.rb +2 -0
  33. data/frozen_old_spec/tags/1.8.6/core/hash/rassoc_spec.rb +1 -0
  34. data/frozen_old_spec/tags/1.8.6/core/hash/reject_spec.rb +2 -0
  35. data/frozen_old_spec/tags/1.8.6/core/hash/select_spec.rb +8 -0
  36. data/frozen_old_spec/tags/1.8.6/core/integer/round_spec.rb +2 -0
  37. data/frozen_old_spec/tags/1.8.6/core/io/binread_spec.rb +7 -0
  38. data/frozen_old_spec/tags/1.8.6/core/io/chars_spec.rb +1 -0
  39. data/frozen_old_spec/tags/1.8.6/core/io/each_char_spec.rb +1 -0
  40. data/frozen_old_spec/tags/1.8.6/core/io/lines_spec.rb +1 -0
  41. data/frozen_old_spec/tags/1.8.6/core/io/open_spec.rb +24 -0
  42. data/frozen_old_spec/tags/1.8.6/core/io/ungetbyte_spec.rb +4 -0
  43. data/frozen_old_spec/tags/1.8.6/core/io/write_spec.rb +5 -0
  44. data/frozen_old_spec/tags/1.8.6/core/kernel/__callee___spec.rb +6 -0
  45. data/frozen_old_spec/tags/1.8.6/core/kernel/__method___spec.rb +1 -0
  46. data/frozen_old_spec/tags/1.8.6/core/kernel/define_singleton_method_spec.rb +2 -0
  47. data/frozen_old_spec/tags/1.8.6/core/kernel/public_method_spec.rb +2 -0
  48. data/frozen_old_spec/tags/1.8.6/core/kernel/require_relative_spec.rb +3 -0
  49. data/frozen_old_spec/tags/1.8.6/core/math/log2_spec.rb +6 -0
  50. data/frozen_old_spec/tags/1.8.6/core/math/log_spec.rb +3 -0
  51. data/frozen_old_spec/tags/1.8.6/core/module/class_exec_spec.rb +2 -0
  52. data/frozen_old_spec/tags/1.8.6/core/module/module_exec_spec.rb +2 -0
  53. data/frozen_old_spec/tags/1.8.6/core/numeric/step_spec.rb +12 -0
  54. data/frozen_old_spec/tags/1.8.6/core/proc/curry_spec.rb +4 -0
  55. data/frozen_old_spec/tags/1.8.6/core/range/step_spec.rb +12 -0
  56. data/frozen_old_spec/tags/1.8.6/core/string/getbyte_spec.rb +6 -0
  57. data/frozen_old_spec/tags/1.8.6/core/string/partition_spec.rb +1 -0
  58. data/frozen_old_spec/tags/1.8.6/core/string/prepend_spec.rb +1 -0
  59. data/frozen_old_spec/tags/1.8.6/core/string/rpartition_spec.rb +1 -0
  60. data/frozen_old_spec/tags/1.8.6/core/string/setbyte_spec.rb +5 -0
  61. data/frozen_old_spec/tags/1.8.6/core/string/upto_spec.rb +1 -0
  62. data/frozen_old_spec/tags/1.8.6/core/symbol/capitalize_spec.rb +3 -0
  63. data/frozen_old_spec/tags/1.8.6/core/symbol/comparison_spec.rb +1 -0
  64. data/frozen_old_spec/tags/1.8.6/core/symbol/downcase_spec.rb +2 -0
  65. data/frozen_old_spec/tags/1.8.6/core/symbol/element_reference_spec.rb +4 -0
  66. data/frozen_old_spec/tags/1.8.6/core/symbol/empty_spec.rb +1 -0
  67. data/frozen_old_spec/tags/1.8.6/core/symbol/match_spec.rb +2 -0
  68. data/frozen_old_spec/tags/1.8.6/core/symbol/swapcase_spec.rb +2 -0
  69. data/frozen_old_spec/tags/1.8.6/core/symbol/to_proc_spec.rb +1 -0
  70. data/frozen_old_spec/tags/1.8.6/core/symbol/upcase_spec.rb +1 -0
  71. data/frozen_old_spec/tags/1.8.7/core/array/keep_if_spec.rb +2 -0
  72. data/frozen_old_spec/tags/1.8.7/core/array/rotate_spec.rb +2 -0
  73. data/frozen_old_spec/tags/1.8.7/core/array/select_spec.rb +2 -0
  74. data/frozen_old_spec/tags/1.8.7/core/array/uniq_spec.rb +3 -0
  75. data/frozen_old_spec/tags/1.8.7/core/complex/to_r_spec.rb +3 -0
  76. data/frozen_old_spec/tags/1.8.7/core/enumerable/collect_concat_spec.rb +1 -0
  77. data/frozen_old_spec/tags/1.8.7/core/enumerable/flat_map_spec.rb +1 -0
  78. data/frozen_old_spec/tags/1.8.7/core/env/to_h_spec.rb +2 -0
  79. data/frozen_old_spec/tags/1.8.7/core/file/lchmod_spec.rb +2 -0
  80. data/frozen_old_spec/tags/1.8.7/core/file/new_spec.rb +1 -0
  81. data/frozen_old_spec/tags/1.8.7/core/file/open_spec.rb +5 -0
  82. data/frozen_old_spec/tags/1.8.7/core/file/readlink_spec.rb +6 -0
  83. data/frozen_old_spec/tags/1.8.7/core/file/to_path_spec.rb +1 -0
  84. data/frozen_old_spec/tags/1.8.7/core/hash/assoc_spec.rb +1 -0
  85. data/frozen_old_spec/tags/1.8.7/core/hash/default_proc_spec.rb +3 -0
  86. data/frozen_old_spec/tags/1.8.7/core/hash/keep_if_spec.rb +2 -0
  87. data/frozen_old_spec/tags/1.8.7/core/hash/rassoc_spec.rb +1 -0
  88. data/frozen_old_spec/tags/1.8.7/core/hash/select_spec.rb +1 -0
  89. data/frozen_old_spec/tags/1.8.7/core/integer/round_spec.rb +2 -0
  90. data/frozen_old_spec/tags/1.8.7/core/io/binread_spec.rb +7 -0
  91. data/frozen_old_spec/tags/1.8.7/core/io/open_spec.rb +32 -0
  92. data/frozen_old_spec/tags/1.8.7/core/io/ungetbyte_spec.rb +4 -0
  93. data/frozen_old_spec/tags/1.8.7/core/io/write_spec.rb +5 -0
  94. data/frozen_old_spec/tags/1.8.7/core/kernel/__callee___spec.rb +6 -0
  95. data/frozen_old_spec/tags/1.8.7/core/kernel/define_singleton_method_spec.rb +2 -0
  96. data/frozen_old_spec/tags/1.8.7/core/kernel/public_method_spec.rb +1 -0
  97. data/frozen_old_spec/tags/1.8.7/core/kernel/require_relative_spec.rb +3 -0
  98. data/frozen_old_spec/tags/1.8.7/core/math/log2_spec.rb +6 -0
  99. data/frozen_old_spec/tags/1.8.7/core/math/log_spec.rb +3 -0
  100. data/frozen_old_spec/tags/1.8.7/core/module/include_spec.rb +3 -0
  101. data/frozen_old_spec/tags/1.8.7/core/proc/curry_spec.rb +3 -0
  102. data/frozen_old_spec/tags/1.8.7/core/proc/yield_spec.rb +4 -0
  103. data/frozen_old_spec/tags/1.8.7/core/range/size_spec.rb +1 -0
  104. data/frozen_old_spec/tags/1.8.7/core/string/getbyte_spec.rb +5 -0
  105. data/frozen_old_spec/tags/1.8.7/core/string/prepend_spec.rb +1 -0
  106. data/frozen_old_spec/tags/1.8.7/core/string/setbyte_spec.rb +5 -0
  107. data/frozen_old_spec/tags/1.8.7/core/symbol/capitalize_spec.rb +3 -0
  108. data/frozen_old_spec/tags/1.8.7/core/symbol/comparison_spec.rb +1 -0
  109. data/frozen_old_spec/tags/1.8.7/core/symbol/downcase_spec.rb +2 -0
  110. data/frozen_old_spec/tags/1.8.7/core/symbol/element_reference_spec.rb +4 -0
  111. data/frozen_old_spec/tags/1.8.7/core/symbol/empty_spec.rb +1 -0
  112. data/frozen_old_spec/tags/1.8.7/core/symbol/match_spec.rb +2 -0
  113. data/frozen_old_spec/tags/1.8.7/core/symbol/swapcase_spec.rb +2 -0
  114. data/frozen_old_spec/tags/1.8.7/core/symbol/upcase_spec.rb +1 -0
  115. data/frozen_old_spec/tags/1.9.1/core/array/rotate_spec.rb +1 -0
  116. data/frozen_old_spec/tags/1.9.1/core/env/to_h_spec.rb +2 -0
  117. data/frozen_old_spec/tags/1.9.1/core/hash/default_proc_spec.rb +1 -0
  118. data/frozen_old_spec/tags/1.9.1/core/io/write_spec.rb +2 -0
  119. data/frozen_old_spec/tags/1.9.2/core/io/write_spec.rb +3 -0
  120. data/lib/backports/1.8.7/fixnum/div.rb +1 -1
  121. data/lib/backports/1.8.7/fixnum/fdiv.rb +1 -1
  122. data/lib/backports/1.9.2/stdlib/matrix.rb +3 -3
  123. data/lib/backports/2.0.0/range/bsearch.rb +5 -7
  124. data/lib/backports/2.1.0/bignum/bit_length.rb +1 -1
  125. data/lib/backports/2.1.0/fixnum/bit_length.rb +1 -1
  126. data/lib/backports/2.2.0.rb +3 -0
  127. data/lib/backports/2.2.0/enumerable.rb +3 -0
  128. data/lib/backports/2.2.0/enumerable/slice_after.rb +25 -0
  129. data/lib/backports/2.2.0/enumerable/slice_when.rb +27 -0
  130. data/lib/backports/2.2.0/float.rb +3 -0
  131. data/lib/backports/2.2.0/float/next_float.rb +11 -0
  132. data/lib/backports/2.2.0/float/prev_float.rb +11 -0
  133. data/lib/backports/2.2.rb +2 -0
  134. data/lib/backports/2.3.0.rb +3 -0
  135. data/lib/backports/2.3.0/.git_keep +0 -0
  136. data/lib/backports/2.3.rb +2 -0
  137. data/lib/backports/2.4.0.rb +3 -0
  138. data/lib/backports/2.4.0/comparable.rb +3 -0
  139. data/lib/backports/2.4.0/comparable/clamp.rb +20 -0
  140. data/lib/backports/2.4.rb +2 -0
  141. data/lib/backports/tools/extreme_object.rb +2 -2
  142. data/lib/backports/tools/float_integer_conversion.rb +17 -0
  143. data/lib/backports/version.rb +1 -1
  144. data/set_version/2.2.0.rb +1 -0
  145. data/set_version/2.3.0.rb +1 -0
  146. data/set_version/2.4.0.rb +1 -0
  147. metadata +141 -10
@@ -1,4 +1,6 @@
1
1
  unless Range.method_defined? :bsearch
2
+ require 'backports/tools/float_integer_conversion'
3
+
2
4
  class Range
3
5
  def bsearch
4
6
  return to_enum(:bsearch) unless block_given?
@@ -12,13 +14,9 @@ unless Range.method_defined? :bsearch
12
14
  if from.is_a?(Integer) && to.is_a?(Integer)
13
15
  convert = Proc.new{ midpoint }
14
16
  else
15
- map = Proc.new do |pk, unpk, nb|
16
- result, = [nb.abs].pack(pk).unpack(unpk)
17
- nb < 0 ? -result : result
18
- end
19
- from = map['D', 'q', from.to_f]
20
- to = map['D', 'q', to.to_f]
21
- convert = Proc.new{ map['q', 'D', midpoint] }
17
+ from = Backports.float_to_integer(from.to_f)
18
+ to = Backports.float_to_integer(to.to_f)
19
+ convert = Proc.new{ Backport.integer_to_float(midpoint) }
22
20
  end
23
21
  to -= 1 if exclude_end?
24
22
  satisfied = nil
@@ -1,4 +1,4 @@
1
- unless Bignum.method_defined? :bit_length
1
+ unless Integer.method_defined?(:bit_length) || Bignum.method_defined?(:bit_length)
2
2
  require 'backports/2.0.0/range/bsearch'
3
3
  class Bignum
4
4
  def bit_length
@@ -1,4 +1,4 @@
1
- unless Fixnum.method_defined? :bit_length
1
+ unless Integer.method_defined?(:bit_length) || Fixnum.method_defined?(:bit_length)
2
2
  require 'backports/2.0.0/range/bsearch'
3
3
  class Fixnum
4
4
  def bit_length
@@ -0,0 +1,3 @@
1
+ # require this file to load all the backports up to Ruby 2.2
2
+ require 'backports/2.1'
3
+ Backports.require_relative_dir
@@ -0,0 +1,3 @@
1
+ require 'backports/tools/require_relative_dir'
2
+
3
+ Backports.require_relative_dir
@@ -0,0 +1,25 @@
1
+ unless Enumerable.method_defined? :slice_after
2
+ require 'backports/tools/arguments'
3
+ require 'backports/1.9.1/enumerator/new'
4
+
5
+ module Enumerable
6
+ def slice_after(pattern = Backports::Undefined, &block)
7
+ raise ArgumentError, 'both pattern and block are given' if pattern != Backports::Undefined && block
8
+ raise ArgumentError, 'wrong number of arguments (given 0, expected 1)' if pattern == Backports::Undefined && !block
9
+ enum = self
10
+ block ||= Proc.new{|elem| pattern === elem}
11
+ Enumerator.new do |y|
12
+ acc = []
13
+ enum.each do |*elem|
14
+ elem = elem.first if elem.length == 1
15
+ acc << elem
16
+ if block.call(elem)
17
+ y.yield acc
18
+ acc = []
19
+ end
20
+ end
21
+ y.yield acc unless acc.empty?
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,27 @@
1
+ unless Enumerable.method_defined? :slice_when
2
+ require 'backports/tools/arguments'
3
+ require 'backports/1.9.1/enumerator/new'
4
+
5
+ module Enumerable
6
+ def slice_when(&block)
7
+ raise ArgumentError, 'tried to create Proc object without a block' unless block
8
+ enum = self
9
+ Enumerator.new do |y|
10
+ acc = []
11
+ prev = Backports::Undefined
12
+ enum.each do |*elem|
13
+ elem = elem.first if elem.length == 1
14
+ unless prev == Backports::Undefined
15
+ if block.call(prev, elem)
16
+ y.yield acc
17
+ acc = []
18
+ end
19
+ end
20
+ acc << elem
21
+ prev = elem
22
+ end
23
+ y.yield acc unless acc.empty?
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,3 @@
1
+ require 'backports/tools/require_relative_dir'
2
+
3
+ Backports.require_relative_dir
@@ -0,0 +1,11 @@
1
+ unless Float.method_defined? :next_float
2
+ require 'backports/tools/float_integer_conversion'
3
+
4
+ class Float
5
+ def next_float
6
+ return Float::INFINITY if self == Float::INFINITY
7
+ r = Backports.integer_to_float(Backports.float_to_integer(self)+1)
8
+ r == 0 ? -0.0 : r # Map +0.0 to -0.0
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ unless Float.method_defined? :prev_float
2
+ require 'backports/tools/float_integer_conversion'
3
+ require 'backports/1.9.2/float/infinity'
4
+
5
+ class Float
6
+ def prev_float
7
+ return -Float::INFINITY if self == -Float::INFINITY
8
+ Backports.integer_to_float(Backports.float_to_integer(self)-1)
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,2 @@
1
+ # require this file to load all the backports of Ruby 2.2 and below
2
+ require 'backports/2.2.0'
@@ -0,0 +1,3 @@
1
+ # require this file to load all the backports up to Ruby 2.3
2
+ require 'backports/2.2'
3
+ Backports.require_relative_dir
File without changes
@@ -0,0 +1,2 @@
1
+ # require this file to load all the backports of Ruby 2.3 and below
2
+ require 'backports/2.3.0'
@@ -0,0 +1,3 @@
1
+ # require this file to load all the backports up to Ruby 2.4
2
+ require 'backports/2.3'
3
+ Backports.require_relative_dir
@@ -0,0 +1,3 @@
1
+ require 'backports/tools/require_relative_dir'
2
+
3
+ Backports.require_relative_dir
@@ -0,0 +1,20 @@
1
+ unless Comparable.method_defined? :clamp
2
+ require 'backports/tools/arguments'
3
+
4
+ module Comparable
5
+ def clamp(min, max)
6
+ if Backports.coerce_to_comparison(min, max) > 0
7
+ raise ArgumentError, "min argument must be smaller than max argument"
8
+ end
9
+ c = self <=> min
10
+ case Backports.coerce_to_comparison(self, min)
11
+ when 0
12
+ self
13
+ when -1
14
+ min
15
+ else
16
+ self > max ? max : self
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,2 @@
1
+ # require this file to load all the backports of Ruby 2.4 and below
2
+ require 'backports/2.4.0'
@@ -1,11 +1,11 @@
1
1
  module Backports
2
2
  MOST_EXTREME_OBJECT_EVER = Object.new # :nodoc:
3
3
  class << MOST_EXTREME_OBJECT_EVER
4
- def < (whatever)
4
+ def <(whatever)
5
5
  true
6
6
  end
7
7
 
8
- def > (whatever)
8
+ def >(whatever)
9
9
  true
10
10
  end
11
11
  end
@@ -0,0 +1,17 @@
1
+ module Backports
2
+ class << self
3
+ def float_to_integer(float)
4
+ map_via_packing(float, 'D', 'q')
5
+ end
6
+
7
+ def integer_to_float(int)
8
+ map_via_packing(int, 'q', 'D')
9
+ end
10
+
11
+ private
12
+ def map_via_packing(nb, pack, unpack)
13
+ result, = [nb.abs].pack(pack).unpack(unpack)
14
+ nb < 0 ? -result : result
15
+ end
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module Backports
2
- VERSION = "3.6.8" unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
2
+ VERSION = "3.7.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")
@@ -0,0 +1 @@
1
+ require File.expand_path(File.dirname(__FILE__) + "/setter")
@@ -0,0 +1 @@
1
+ require File.expand_path(File.dirname(__FILE__) + "/setter")
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.6.8
4
+ version: 3.7.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: 2016-02-09 00:00:00.000000000 Z
11
+ date: 2017-03-28 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
  - Gemfile.lock
@@ -31,6 +31,118 @@ files:
31
31
  - Rakefile
32
32
  - backports.gemspec
33
33
  - default.mspec
34
+ - frozen_old_spec/tags/1.8.6/core/argf/each_line_spec.rb
35
+ - frozen_old_spec/tags/1.8.6/core/argf/each_spec.rb
36
+ - frozen_old_spec/tags/1.8.6/core/argf/lines_spec.rb
37
+ - frozen_old_spec/tags/1.8.6/core/array/collect_spec.rb
38
+ - frozen_old_spec/tags/1.8.6/core/array/rotate_spec.rb
39
+ - frozen_old_spec/tags/1.8.6/core/array/uniq_spec.rb
40
+ - frozen_old_spec/tags/1.8.6/core/complex/to_r_spec.rb
41
+ - frozen_old_spec/tags/1.8.6/core/enumerable/each_entry_spec.rb
42
+ - frozen_old_spec/tags/1.8.6/core/enumerator/next_spec.rb
43
+ - frozen_old_spec/tags/1.8.6/core/env/to_h_spec.rb
44
+ - frozen_old_spec/tags/1.8.6/core/file/join_spec.rb
45
+ - frozen_old_spec/tags/1.8.6/core/file/lchmod_spec.rb
46
+ - frozen_old_spec/tags/1.8.6/core/file/new_spec.rb
47
+ - frozen_old_spec/tags/1.8.6/core/file/open_spec.rb
48
+ - frozen_old_spec/tags/1.8.6/core/file/to_path_spec.rb
49
+ - frozen_old_spec/tags/1.8.6/core/fixnum/fdiv_spec.rb
50
+ - frozen_old_spec/tags/1.8.6/core/gc/stress_spec.rb
51
+ - frozen_old_spec/tags/1.8.6/core/hash/assoc_spec.rb
52
+ - frozen_old_spec/tags/1.8.6/core/hash/constructor_spec.rb
53
+ - frozen_old_spec/tags/1.8.6/core/hash/default_proc_spec.rb
54
+ - frozen_old_spec/tags/1.8.6/core/hash/delete_if_spec.rb
55
+ - frozen_old_spec/tags/1.8.6/core/hash/each_pair_spec.rb
56
+ - frozen_old_spec/tags/1.8.6/core/hash/eql_spec.rb
57
+ - frozen_old_spec/tags/1.8.6/core/hash/hash_spec.rb
58
+ - frozen_old_spec/tags/1.8.6/core/hash/keep_if_spec.rb
59
+ - frozen_old_spec/tags/1.8.6/core/hash/rassoc_spec.rb
60
+ - frozen_old_spec/tags/1.8.6/core/hash/reject_spec.rb
61
+ - frozen_old_spec/tags/1.8.6/core/hash/select_spec.rb
62
+ - frozen_old_spec/tags/1.8.6/core/integer/round_spec.rb
63
+ - frozen_old_spec/tags/1.8.6/core/io/binread_spec.rb
64
+ - frozen_old_spec/tags/1.8.6/core/io/chars_spec.rb
65
+ - frozen_old_spec/tags/1.8.6/core/io/each_char_spec.rb
66
+ - frozen_old_spec/tags/1.8.6/core/io/lines_spec.rb
67
+ - frozen_old_spec/tags/1.8.6/core/io/open_spec.rb
68
+ - frozen_old_spec/tags/1.8.6/core/io/ungetbyte_spec.rb
69
+ - frozen_old_spec/tags/1.8.6/core/io/write_spec.rb
70
+ - frozen_old_spec/tags/1.8.6/core/kernel/__callee___spec.rb
71
+ - frozen_old_spec/tags/1.8.6/core/kernel/__method___spec.rb
72
+ - frozen_old_spec/tags/1.8.6/core/kernel/define_singleton_method_spec.rb
73
+ - frozen_old_spec/tags/1.8.6/core/kernel/public_method_spec.rb
74
+ - frozen_old_spec/tags/1.8.6/core/kernel/require_relative_spec.rb
75
+ - frozen_old_spec/tags/1.8.6/core/math/log2_spec.rb
76
+ - frozen_old_spec/tags/1.8.6/core/math/log_spec.rb
77
+ - frozen_old_spec/tags/1.8.6/core/module/class_exec_spec.rb
78
+ - frozen_old_spec/tags/1.8.6/core/module/module_exec_spec.rb
79
+ - frozen_old_spec/tags/1.8.6/core/numeric/step_spec.rb
80
+ - frozen_old_spec/tags/1.8.6/core/proc/curry_spec.rb
81
+ - frozen_old_spec/tags/1.8.6/core/range/step_spec.rb
82
+ - frozen_old_spec/tags/1.8.6/core/string/getbyte_spec.rb
83
+ - frozen_old_spec/tags/1.8.6/core/string/partition_spec.rb
84
+ - frozen_old_spec/tags/1.8.6/core/string/prepend_spec.rb
85
+ - frozen_old_spec/tags/1.8.6/core/string/rpartition_spec.rb
86
+ - frozen_old_spec/tags/1.8.6/core/string/setbyte_spec.rb
87
+ - frozen_old_spec/tags/1.8.6/core/string/upto_spec.rb
88
+ - frozen_old_spec/tags/1.8.6/core/symbol/capitalize_spec.rb
89
+ - frozen_old_spec/tags/1.8.6/core/symbol/comparison_spec.rb
90
+ - frozen_old_spec/tags/1.8.6/core/symbol/downcase_spec.rb
91
+ - frozen_old_spec/tags/1.8.6/core/symbol/element_reference_spec.rb
92
+ - frozen_old_spec/tags/1.8.6/core/symbol/empty_spec.rb
93
+ - frozen_old_spec/tags/1.8.6/core/symbol/match_spec.rb
94
+ - frozen_old_spec/tags/1.8.6/core/symbol/swapcase_spec.rb
95
+ - frozen_old_spec/tags/1.8.6/core/symbol/to_proc_spec.rb
96
+ - frozen_old_spec/tags/1.8.6/core/symbol/upcase_spec.rb
97
+ - frozen_old_spec/tags/1.8.7/core/array/keep_if_spec.rb
98
+ - frozen_old_spec/tags/1.8.7/core/array/rotate_spec.rb
99
+ - frozen_old_spec/tags/1.8.7/core/array/select_spec.rb
100
+ - frozen_old_spec/tags/1.8.7/core/array/uniq_spec.rb
101
+ - frozen_old_spec/tags/1.8.7/core/complex/to_r_spec.rb
102
+ - frozen_old_spec/tags/1.8.7/core/enumerable/collect_concat_spec.rb
103
+ - frozen_old_spec/tags/1.8.7/core/enumerable/flat_map_spec.rb
104
+ - frozen_old_spec/tags/1.8.7/core/env/to_h_spec.rb
105
+ - frozen_old_spec/tags/1.8.7/core/file/lchmod_spec.rb
106
+ - frozen_old_spec/tags/1.8.7/core/file/new_spec.rb
107
+ - frozen_old_spec/tags/1.8.7/core/file/open_spec.rb
108
+ - frozen_old_spec/tags/1.8.7/core/file/readlink_spec.rb
109
+ - frozen_old_spec/tags/1.8.7/core/file/to_path_spec.rb
110
+ - frozen_old_spec/tags/1.8.7/core/hash/assoc_spec.rb
111
+ - frozen_old_spec/tags/1.8.7/core/hash/default_proc_spec.rb
112
+ - frozen_old_spec/tags/1.8.7/core/hash/keep_if_spec.rb
113
+ - frozen_old_spec/tags/1.8.7/core/hash/rassoc_spec.rb
114
+ - frozen_old_spec/tags/1.8.7/core/hash/select_spec.rb
115
+ - frozen_old_spec/tags/1.8.7/core/integer/round_spec.rb
116
+ - frozen_old_spec/tags/1.8.7/core/io/binread_spec.rb
117
+ - frozen_old_spec/tags/1.8.7/core/io/open_spec.rb
118
+ - frozen_old_spec/tags/1.8.7/core/io/ungetbyte_spec.rb
119
+ - frozen_old_spec/tags/1.8.7/core/io/write_spec.rb
120
+ - frozen_old_spec/tags/1.8.7/core/kernel/__callee___spec.rb
121
+ - frozen_old_spec/tags/1.8.7/core/kernel/define_singleton_method_spec.rb
122
+ - frozen_old_spec/tags/1.8.7/core/kernel/public_method_spec.rb
123
+ - frozen_old_spec/tags/1.8.7/core/kernel/require_relative_spec.rb
124
+ - frozen_old_spec/tags/1.8.7/core/math/log2_spec.rb
125
+ - frozen_old_spec/tags/1.8.7/core/math/log_spec.rb
126
+ - frozen_old_spec/tags/1.8.7/core/module/include_spec.rb
127
+ - frozen_old_spec/tags/1.8.7/core/proc/curry_spec.rb
128
+ - frozen_old_spec/tags/1.8.7/core/proc/yield_spec.rb
129
+ - frozen_old_spec/tags/1.8.7/core/range/size_spec.rb
130
+ - frozen_old_spec/tags/1.8.7/core/string/getbyte_spec.rb
131
+ - frozen_old_spec/tags/1.8.7/core/string/prepend_spec.rb
132
+ - frozen_old_spec/tags/1.8.7/core/string/setbyte_spec.rb
133
+ - frozen_old_spec/tags/1.8.7/core/symbol/capitalize_spec.rb
134
+ - frozen_old_spec/tags/1.8.7/core/symbol/comparison_spec.rb
135
+ - frozen_old_spec/tags/1.8.7/core/symbol/downcase_spec.rb
136
+ - frozen_old_spec/tags/1.8.7/core/symbol/element_reference_spec.rb
137
+ - frozen_old_spec/tags/1.8.7/core/symbol/empty_spec.rb
138
+ - frozen_old_spec/tags/1.8.7/core/symbol/match_spec.rb
139
+ - frozen_old_spec/tags/1.8.7/core/symbol/swapcase_spec.rb
140
+ - frozen_old_spec/tags/1.8.7/core/symbol/upcase_spec.rb
141
+ - frozen_old_spec/tags/1.9.1/core/array/rotate_spec.rb
142
+ - frozen_old_spec/tags/1.9.1/core/env/to_h_spec.rb
143
+ - frozen_old_spec/tags/1.9.1/core/hash/default_proc_spec.rb
144
+ - frozen_old_spec/tags/1.9.1/core/io/write_spec.rb
145
+ - frozen_old_spec/tags/1.9.2/core/io/write_spec.rb
34
146
  - lib/backports.rb
35
147
  - lib/backports/1.8.7.rb
36
148
  - lib/backports/1.8.7/argf.rb
@@ -399,6 +511,21 @@ files:
399
511
  - lib/backports/2.1.0/module.rb
400
512
  - lib/backports/2.1.0/module/include.rb
401
513
  - lib/backports/2.1.rb
514
+ - lib/backports/2.2.0.rb
515
+ - lib/backports/2.2.0/enumerable.rb
516
+ - lib/backports/2.2.0/enumerable/slice_after.rb
517
+ - lib/backports/2.2.0/enumerable/slice_when.rb
518
+ - lib/backports/2.2.0/float.rb
519
+ - lib/backports/2.2.0/float/next_float.rb
520
+ - lib/backports/2.2.0/float/prev_float.rb
521
+ - lib/backports/2.2.rb
522
+ - lib/backports/2.3.0.rb
523
+ - lib/backports/2.3.0/.git_keep
524
+ - lib/backports/2.3.rb
525
+ - lib/backports/2.4.0.rb
526
+ - lib/backports/2.4.0/comparable.rb
527
+ - lib/backports/2.4.0/comparable/clamp.rb
528
+ - lib/backports/2.4.rb
402
529
  - lib/backports/basic_object.rb
403
530
  - lib/backports/force/array_map.rb
404
531
  - lib/backports/force/enumerable_map.rb
@@ -422,6 +549,7 @@ files:
422
549
  - lib/backports/tools/alias_method_chain.rb
423
550
  - lib/backports/tools/arguments.rb
424
551
  - lib/backports/tools/extreme_object.rb
552
+ - lib/backports/tools/float_integer_conversion.rb
425
553
  - lib/backports/tools/io.rb
426
554
  - lib/backports/tools/make_block_optional.rb
427
555
  - lib/backports/tools/path.rb
@@ -435,6 +563,9 @@ files:
435
563
  - set_version/1.9.3.rb
436
564
  - set_version/2.0.0.rb
437
565
  - set_version/2.1.0.rb
566
+ - set_version/2.2.0.rb
567
+ - set_version/2.3.0.rb
568
+ - set_version/2.4.0.rb
438
569
  - set_version/setter.rb
439
570
  - spec/tags/1.8.6/core/argf/each_line_spec.rb
440
571
  - spec/tags/1.8.6/core/argf/each_spec.rb
@@ -564,17 +695,17 @@ require_paths:
564
695
  - lib
565
696
  required_ruby_version: !ruby/object:Gem::Requirement
566
697
  requirements:
567
- - - ">="
698
+ - - ! '>='
568
699
  - !ruby/object:Gem::Version
569
700
  version: '0'
570
701
  required_rubygems_version: !ruby/object:Gem::Requirement
571
702
  requirements:
572
- - - ">="
703
+ - - ! '>='
573
704
  - !ruby/object:Gem::Version
574
705
  version: '0'
575
706
  requirements: []
576
707
  rubyforge_project:
577
- rubygems_version: 2.2.2
708
+ rubygems_version: 2.4.8
578
709
  signing_key:
579
710
  specification_version: 4
580
711
  summary: Backports of Ruby features for older Ruby.