backports 3.6.8 → 3.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/.gitmodules +4 -1
- data/.travis.yml +4 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +3 -8
- data/README.rdoc +16 -2
- data/Rakefile +60 -20
- data/frozen_old_spec/tags/1.8.6/core/argf/each_line_spec.rb +6 -0
- data/frozen_old_spec/tags/1.8.6/core/argf/each_spec.rb +6 -0
- data/frozen_old_spec/tags/1.8.6/core/argf/lines_spec.rb +6 -0
- data/frozen_old_spec/tags/1.8.6/core/array/collect_spec.rb +7 -0
- data/frozen_old_spec/tags/1.8.6/core/array/rotate_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.6/core/array/uniq_spec.rb +3 -0
- data/frozen_old_spec/tags/1.8.6/core/complex/to_r_spec.rb +3 -0
- data/frozen_old_spec/tags/1.8.6/core/enumerable/each_entry_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.6/core/enumerator/next_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.6/core/env/to_h_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.6/core/file/join_spec.rb +3 -0
- data/frozen_old_spec/tags/1.8.6/core/file/lchmod_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.6/core/file/new_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.6/core/file/open_spec.rb +13 -0
- data/frozen_old_spec/tags/1.8.6/core/file/to_path_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.6/core/fixnum/fdiv_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.6/core/gc/stress_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.6/core/hash/assoc_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.6/core/hash/constructor_spec.rb +3 -0
- data/frozen_old_spec/tags/1.8.6/core/hash/default_proc_spec.rb +3 -0
- data/frozen_old_spec/tags/1.8.6/core/hash/delete_if_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.6/core/hash/each_pair_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.6/core/hash/eql_spec.rb +3 -0
- data/frozen_old_spec/tags/1.8.6/core/hash/hash_spec.rb +3 -0
- data/frozen_old_spec/tags/1.8.6/core/hash/keep_if_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.6/core/hash/rassoc_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.6/core/hash/reject_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.6/core/hash/select_spec.rb +8 -0
- data/frozen_old_spec/tags/1.8.6/core/integer/round_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.6/core/io/binread_spec.rb +7 -0
- data/frozen_old_spec/tags/1.8.6/core/io/chars_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.6/core/io/each_char_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.6/core/io/lines_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.6/core/io/open_spec.rb +24 -0
- data/frozen_old_spec/tags/1.8.6/core/io/ungetbyte_spec.rb +4 -0
- data/frozen_old_spec/tags/1.8.6/core/io/write_spec.rb +5 -0
- data/frozen_old_spec/tags/1.8.6/core/kernel/__callee___spec.rb +6 -0
- data/frozen_old_spec/tags/1.8.6/core/kernel/__method___spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.6/core/kernel/define_singleton_method_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.6/core/kernel/public_method_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.6/core/kernel/require_relative_spec.rb +3 -0
- data/frozen_old_spec/tags/1.8.6/core/math/log2_spec.rb +6 -0
- data/frozen_old_spec/tags/1.8.6/core/math/log_spec.rb +3 -0
- data/frozen_old_spec/tags/1.8.6/core/module/class_exec_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.6/core/module/module_exec_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.6/core/numeric/step_spec.rb +12 -0
- data/frozen_old_spec/tags/1.8.6/core/proc/curry_spec.rb +4 -0
- data/frozen_old_spec/tags/1.8.6/core/range/step_spec.rb +12 -0
- data/frozen_old_spec/tags/1.8.6/core/string/getbyte_spec.rb +6 -0
- data/frozen_old_spec/tags/1.8.6/core/string/partition_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.6/core/string/prepend_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.6/core/string/rpartition_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.6/core/string/setbyte_spec.rb +5 -0
- data/frozen_old_spec/tags/1.8.6/core/string/upto_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.6/core/symbol/capitalize_spec.rb +3 -0
- data/frozen_old_spec/tags/1.8.6/core/symbol/comparison_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.6/core/symbol/downcase_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.6/core/symbol/element_reference_spec.rb +4 -0
- data/frozen_old_spec/tags/1.8.6/core/symbol/empty_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.6/core/symbol/match_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.6/core/symbol/swapcase_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.6/core/symbol/to_proc_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.6/core/symbol/upcase_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.7/core/array/keep_if_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.7/core/array/rotate_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.7/core/array/select_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.7/core/array/uniq_spec.rb +3 -0
- data/frozen_old_spec/tags/1.8.7/core/complex/to_r_spec.rb +3 -0
- data/frozen_old_spec/tags/1.8.7/core/enumerable/collect_concat_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.7/core/enumerable/flat_map_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.7/core/env/to_h_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.7/core/file/lchmod_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.7/core/file/new_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.7/core/file/open_spec.rb +5 -0
- data/frozen_old_spec/tags/1.8.7/core/file/readlink_spec.rb +6 -0
- data/frozen_old_spec/tags/1.8.7/core/file/to_path_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.7/core/hash/assoc_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.7/core/hash/default_proc_spec.rb +3 -0
- data/frozen_old_spec/tags/1.8.7/core/hash/keep_if_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.7/core/hash/rassoc_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.7/core/hash/select_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.7/core/integer/round_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.7/core/io/binread_spec.rb +7 -0
- data/frozen_old_spec/tags/1.8.7/core/io/open_spec.rb +32 -0
- data/frozen_old_spec/tags/1.8.7/core/io/ungetbyte_spec.rb +4 -0
- data/frozen_old_spec/tags/1.8.7/core/io/write_spec.rb +5 -0
- data/frozen_old_spec/tags/1.8.7/core/kernel/__callee___spec.rb +6 -0
- data/frozen_old_spec/tags/1.8.7/core/kernel/define_singleton_method_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.7/core/kernel/public_method_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.7/core/kernel/require_relative_spec.rb +3 -0
- data/frozen_old_spec/tags/1.8.7/core/math/log2_spec.rb +6 -0
- data/frozen_old_spec/tags/1.8.7/core/math/log_spec.rb +3 -0
- data/frozen_old_spec/tags/1.8.7/core/module/include_spec.rb +3 -0
- data/frozen_old_spec/tags/1.8.7/core/proc/curry_spec.rb +3 -0
- data/frozen_old_spec/tags/1.8.7/core/proc/yield_spec.rb +4 -0
- data/frozen_old_spec/tags/1.8.7/core/range/size_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.7/core/string/getbyte_spec.rb +5 -0
- data/frozen_old_spec/tags/1.8.7/core/string/prepend_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.7/core/string/setbyte_spec.rb +5 -0
- data/frozen_old_spec/tags/1.8.7/core/symbol/capitalize_spec.rb +3 -0
- data/frozen_old_spec/tags/1.8.7/core/symbol/comparison_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.7/core/symbol/downcase_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.7/core/symbol/element_reference_spec.rb +4 -0
- data/frozen_old_spec/tags/1.8.7/core/symbol/empty_spec.rb +1 -0
- data/frozen_old_spec/tags/1.8.7/core/symbol/match_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.7/core/symbol/swapcase_spec.rb +2 -0
- data/frozen_old_spec/tags/1.8.7/core/symbol/upcase_spec.rb +1 -0
- data/frozen_old_spec/tags/1.9.1/core/array/rotate_spec.rb +1 -0
- data/frozen_old_spec/tags/1.9.1/core/env/to_h_spec.rb +2 -0
- data/frozen_old_spec/tags/1.9.1/core/hash/default_proc_spec.rb +1 -0
- data/frozen_old_spec/tags/1.9.1/core/io/write_spec.rb +2 -0
- data/frozen_old_spec/tags/1.9.2/core/io/write_spec.rb +3 -0
- data/lib/backports/1.8.7/fixnum/div.rb +1 -1
- data/lib/backports/1.8.7/fixnum/fdiv.rb +1 -1
- data/lib/backports/1.9.2/stdlib/matrix.rb +3 -3
- data/lib/backports/2.0.0/range/bsearch.rb +5 -7
- data/lib/backports/2.1.0/bignum/bit_length.rb +1 -1
- data/lib/backports/2.1.0/fixnum/bit_length.rb +1 -1
- data/lib/backports/2.2.0.rb +3 -0
- data/lib/backports/2.2.0/enumerable.rb +3 -0
- data/lib/backports/2.2.0/enumerable/slice_after.rb +25 -0
- data/lib/backports/2.2.0/enumerable/slice_when.rb +27 -0
- data/lib/backports/2.2.0/float.rb +3 -0
- data/lib/backports/2.2.0/float/next_float.rb +11 -0
- data/lib/backports/2.2.0/float/prev_float.rb +11 -0
- data/lib/backports/2.2.rb +2 -0
- data/lib/backports/2.3.0.rb +3 -0
- data/lib/backports/2.3.0/.git_keep +0 -0
- data/lib/backports/2.3.rb +2 -0
- data/lib/backports/2.4.0.rb +3 -0
- data/lib/backports/2.4.0/comparable.rb +3 -0
- data/lib/backports/2.4.0/comparable/clamp.rb +20 -0
- data/lib/backports/2.4.rb +2 -0
- data/lib/backports/tools/extreme_object.rb +2 -2
- data/lib/backports/tools/float_integer_conversion.rb +17 -0
- data/lib/backports/version.rb +1 -1
- data/set_version/2.2.0.rb +1 -0
- data/set_version/2.3.0.rb +1 -0
- data/set_version/2.4.0.rb +1 -0
- 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
|
-
|
16
|
-
|
17
|
-
|
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
|
@@ -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,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
|
File without changes
|
@@ -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,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
|
data/lib/backports/version.rb
CHANGED
@@ -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.
|
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:
|
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
|
-
-
|
22
|
-
-
|
23
|
-
-
|
24
|
-
-
|
25
|
-
-
|
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.
|
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.
|