polyfill 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/.travis.yml +3 -2
- data/CHANGELOG.md +26 -10
- data/CONTRIBUTING.md +0 -2
- data/README.md +107 -28
- data/lib/polyfill.rb +168 -74
- data/lib/polyfill/utils.rb +8 -3
- data/lib/polyfill/v2_2.rb +9 -0
- data/lib/polyfill/v2_2/enumerable.rb +34 -0
- data/lib/polyfill/v2_2/kernel.rb +9 -0
- data/lib/polyfill/v2_3.rb +2 -0
- data/lib/polyfill/v2_3/array.rb +22 -3
- data/lib/polyfill/v2_3/enumerable.rb +48 -3
- data/lib/polyfill/v2_3/enumerator/lazy.rb +7 -3
- data/lib/polyfill/v2_3/hash.rb +39 -3
- data/lib/polyfill/v2_3/kernel.rb +17 -0
- data/lib/polyfill/v2_3/string.rb +23 -5
- data/lib/polyfill/v2_3/struct.rb +22 -3
- data/lib/polyfill/v2_4/array.rb +25 -3
- data/lib/polyfill/v2_4/comparable.rb +9 -3
- data/lib/polyfill/v2_4/dir.rb +5 -3
- data/lib/polyfill/v2_4/enumerable.rb +28 -3
- data/lib/polyfill/v2_4/enumerator/lazy.rb +15 -3
- data/lib/polyfill/v2_4/file.rb +5 -3
- data/lib/polyfill/v2_4/float.rb +38 -3
- data/lib/polyfill/v2_4/hash.rb +35 -3
- data/lib/polyfill/v2_4/i_p_addr.rb +11 -3
- data/lib/polyfill/v2_4/integer.rb +53 -3
- data/lib/polyfill/v2_4/io.rb +166 -4
- data/lib/polyfill/v2_4/match_data.rb +11 -3
- data/lib/polyfill/v2_4/numeric.rb +15 -3
- data/lib/polyfill/v2_4/object.rb +9 -3
- data/lib/polyfill/v2_4/pathname.rb +7 -3
- data/lib/polyfill/v2_4/regexp.rb +3 -3
- data/lib/polyfill/v2_4/string.rb +110 -4
- data/lib/polyfill/v2_4/string_io.rb +166 -2
- data/lib/polyfill/v2_4/symbol.rb +17 -3
- data/lib/polyfill/version.rb +1 -1
- data/polyfill.gemspec +1 -1
- metadata +7 -98
- data/lib/polyfill/v2_3/array/instance.rb +0 -11
- data/lib/polyfill/v2_3/array/instance/dig.rb +0 -42
- data/lib/polyfill/v2_3/enumerable/instance.rb +0 -15
- data/lib/polyfill/v2_3/enumerable/instance/chunk_while.rb +0 -70
- data/lib/polyfill/v2_3/enumerable/instance/grep_v.rb +0 -48
- data/lib/polyfill/v2_3/enumerable/instance/slice_before.rb +0 -48
- data/lib/polyfill/v2_3/enumerator/lazy/instance.rb +0 -13
- data/lib/polyfill/v2_3/enumerator/lazy/instance/grep_v.rb +0 -31
- data/lib/polyfill/v2_3/hash/instance.rb +0 -15
- data/lib/polyfill/v2_3/hash/instance/dig.rb +0 -17
- data/lib/polyfill/v2_3/hash/instance/fetch_values.rb +0 -32
- data/lib/polyfill/v2_3/hash/instance/to_proc.rb +0 -23
- data/lib/polyfill/v2_3/string/class.rb +0 -11
- data/lib/polyfill/v2_3/string/class/new.rb +0 -33
- data/lib/polyfill/v2_3/string/instance.rb +0 -13
- data/lib/polyfill/v2_3/string/instance/minus_unary.rb +0 -23
- data/lib/polyfill/v2_3/string/instance/plus_unary.rb +0 -23
- data/lib/polyfill/v2_3/struct/instance.rb +0 -11
- data/lib/polyfill/v2_3/struct/instance/dig.rb +0 -17
- data/lib/polyfill/v2_4/array/instance.rb +0 -13
- data/lib/polyfill/v2_4/array/instance/concat.rb +0 -30
- data/lib/polyfill/v2_4/array/instance/sum.rb +0 -17
- data/lib/polyfill/v2_4/comparable/instance.rb +0 -11
- data/lib/polyfill/v2_4/comparable/instance/clamp.rb +0 -35
- data/lib/polyfill/v2_4/dir/class.rb +0 -11
- data/lib/polyfill/v2_4/dir/class/empty_q.rb +0 -23
- data/lib/polyfill/v2_4/enumerable/instance.rb +0 -15
- data/lib/polyfill/v2_4/enumerable/instance/chunk.rb +0 -48
- data/lib/polyfill/v2_4/enumerable/instance/sum.rb +0 -52
- data/lib/polyfill/v2_4/enumerable/instance/uniq.rb +0 -45
- data/lib/polyfill/v2_4/enumerator/lazy/instance.rb +0 -15
- data/lib/polyfill/v2_4/enumerator/lazy/instance/chunk_while.rb +0 -29
- data/lib/polyfill/v2_4/enumerator/lazy/instance/uniq.rb +0 -33
- data/lib/polyfill/v2_4/file/class.rb +0 -11
- data/lib/polyfill/v2_4/file/class/empty_q.rb +0 -23
- data/lib/polyfill/v2_4/float/instance.rb +0 -15
- data/lib/polyfill/v2_4/float/instance/ceil.rb +0 -32
- data/lib/polyfill/v2_4/float/instance/floor.rb +0 -32
- data/lib/polyfill/v2_4/float/instance/truncate.rb +0 -32
- data/lib/polyfill/v2_4/hash/instance.rb +0 -17
- data/lib/polyfill/v2_4/hash/instance/compact.rb +0 -23
- data/lib/polyfill/v2_4/hash/instance/compact_e.rb +0 -23
- data/lib/polyfill/v2_4/hash/instance/transform_values.rb +0 -33
- data/lib/polyfill/v2_4/hash/instance/transform_values_e.rb +0 -33
- data/lib/polyfill/v2_4/i_p_addr/instance.rb +0 -13
- data/lib/polyfill/v2_4/i_p_addr/instance/equalequal.rb +0 -27
- data/lib/polyfill/v2_4/i_p_addr/instance/lessthanequalgreaterthan.rb +0 -27
- data/lib/polyfill/v2_4/integer/instance.rb +0 -19
- data/lib/polyfill/v2_4/integer/instance/ceil.rb +0 -28
- data/lib/polyfill/v2_4/integer/instance/digits.rb +0 -34
- data/lib/polyfill/v2_4/integer/instance/floor.rb +0 -28
- data/lib/polyfill/v2_4/integer/instance/round.rb +0 -31
- data/lib/polyfill/v2_4/integer/instance/truncate.rb +0 -28
- data/lib/polyfill/v2_4/io/class.rb +0 -13
- data/lib/polyfill/v2_4/io/class/foreach.rb +0 -55
- data/lib/polyfill/v2_4/io/class/readlines.rb +0 -37
- data/lib/polyfill/v2_4/io/instance.rb +0 -19
- data/lib/polyfill/v2_4/io/instance/each_line.rb +0 -54
- data/lib/polyfill/v2_4/io/instance/gets.rb +0 -37
- data/lib/polyfill/v2_4/io/instance/lines.rb +0 -54
- data/lib/polyfill/v2_4/io/instance/readline.rb +0 -37
- data/lib/polyfill/v2_4/io/instance/readlines.rb +0 -37
- data/lib/polyfill/v2_4/match_data/instance.rb +0 -13
- data/lib/polyfill/v2_4/match_data/instance/named_captures.rb +0 -25
- data/lib/polyfill/v2_4/match_data/instance/values_at.rb +0 -25
- data/lib/polyfill/v2_4/numeric/instance.rb +0 -17
- data/lib/polyfill/v2_4/numeric/instance/clone.rb +0 -23
- data/lib/polyfill/v2_4/numeric/instance/dup.rb +0 -23
- data/lib/polyfill/v2_4/numeric/instance/finite_q.rb +0 -23
- data/lib/polyfill/v2_4/numeric/instance/infinite_q.rb +0 -23
- data/lib/polyfill/v2_4/object/instance.rb +0 -11
- data/lib/polyfill/v2_4/object/instance/clone.rb +0 -29
- data/lib/polyfill/v2_4/pathname/instance.rb +0 -11
- data/lib/polyfill/v2_4/pathname/instance/empty_q.rb +0 -29
- data/lib/polyfill/v2_4/regexp/instance.rb +0 -11
- data/lib/polyfill/v2_4/regexp/instance/match_q.rb +0 -23
- data/lib/polyfill/v2_4/string/class.rb +0 -11
- data/lib/polyfill/v2_4/string/class/new.rb +0 -26
- data/lib/polyfill/v2_4/string/instance.rb +0 -23
- data/lib/polyfill/v2_4/string/instance/casecmp_q.rb +0 -23
- data/lib/polyfill/v2_4/string/instance/concat.rb +0 -30
- data/lib/polyfill/v2_4/string/instance/each_line.rb +0 -17
- data/lib/polyfill/v2_4/string/instance/lines.rb +0 -55
- data/lib/polyfill/v2_4/string/instance/match_q.rb +0 -23
- data/lib/polyfill/v2_4/string/instance/prepend.rb +0 -30
- data/lib/polyfill/v2_4/string/instance/unpack1.rb +0 -23
- data/lib/polyfill/v2_4/string_io/instance.rb +0 -17
- data/lib/polyfill/v2_4/string_io/instance/each_line.rb +0 -17
- data/lib/polyfill/v2_4/string_io/instance/gets.rb +0 -17
- data/lib/polyfill/v2_4/string_io/instance/readline.rb +0 -17
- data/lib/polyfill/v2_4/string_io/instance/readlines.rb +0 -17
- data/lib/polyfill/v2_4/symbol/instance.rb +0 -15
- data/lib/polyfill/v2_4/symbol/instance/casecmp_q.rb +0 -25
- data/lib/polyfill/v2_4/symbol/instance/match.rb +0 -27
- data/lib/polyfill/v2_4/symbol/instance/match_q.rb +0 -17
data/lib/polyfill/v2_4/regexp.rb
CHANGED
data/lib/polyfill/v2_4/string.rb
CHANGED
@@ -1,11 +1,117 @@
|
|
1
|
-
|
2
|
-
require_relative 'string/instance'
|
1
|
+
require 'English'
|
3
2
|
|
4
3
|
module Polyfill
|
5
4
|
module V2_4
|
6
5
|
module String
|
7
|
-
|
8
|
-
|
6
|
+
module ClassMethods
|
7
|
+
def new(*args)
|
8
|
+
hash = args.find { |arg| arg.is_a?(::Hash) }
|
9
|
+
hash && hash.delete(:capacity) if hash
|
10
|
+
|
11
|
+
super(*args)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def casecmp?(other)
|
16
|
+
casecmp(other.to_str) == 0
|
17
|
+
end
|
18
|
+
|
19
|
+
def concat(*others)
|
20
|
+
return super if others.length == 1
|
21
|
+
|
22
|
+
acc = '' << self
|
23
|
+
others.each do |other|
|
24
|
+
acc << other
|
25
|
+
end
|
26
|
+
|
27
|
+
replace(acc)
|
28
|
+
end
|
29
|
+
|
30
|
+
def each_line(*args)
|
31
|
+
hash, others = args.partition { |arg| arg.is_a?(::Hash) }
|
32
|
+
chomps = hash[0] && hash[0][:chomp]
|
33
|
+
|
34
|
+
unless block_given?
|
35
|
+
return super(*others) unless chomps
|
36
|
+
|
37
|
+
separator = others.find do |other|
|
38
|
+
other.respond_to?(:to_str)
|
39
|
+
end || $INPUT_RECORD_SEPARATOR
|
40
|
+
return ::Enumerator.new do |yielder|
|
41
|
+
super(*others) do |line|
|
42
|
+
yielder.yield(line.chomp(separator))
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
block =
|
48
|
+
if chomps
|
49
|
+
separator = others.find do |other|
|
50
|
+
other.respond_to?(:to_str)
|
51
|
+
end || $INPUT_RECORD_SEPARATOR
|
52
|
+
|
53
|
+
proc do |line|
|
54
|
+
yield(line.chomp(separator))
|
55
|
+
end
|
56
|
+
else
|
57
|
+
::Proc.new
|
58
|
+
end
|
59
|
+
|
60
|
+
super(*others, &block)
|
61
|
+
end
|
62
|
+
|
63
|
+
def lines(*args)
|
64
|
+
hash, others = args.partition { |arg| arg.is_a?(::Hash) }
|
65
|
+
chomps = hash[0] && hash[0][:chomp]
|
66
|
+
|
67
|
+
unless block_given?
|
68
|
+
lines = super(*others)
|
69
|
+
|
70
|
+
if chomps
|
71
|
+
separator = others.find do |other|
|
72
|
+
other.respond_to?(:to_str)
|
73
|
+
end || $INPUT_RECORD_SEPARATOR
|
74
|
+
|
75
|
+
lines.each { |line| line.chomp!(separator) }
|
76
|
+
end
|
77
|
+
|
78
|
+
return lines
|
79
|
+
end
|
80
|
+
|
81
|
+
block =
|
82
|
+
if chomps
|
83
|
+
separator = others.find do |other|
|
84
|
+
other.respond_to?(:to_str)
|
85
|
+
end || $INPUT_RECORD_SEPARATOR
|
86
|
+
|
87
|
+
proc do |line|
|
88
|
+
yield(line.chomp(separator))
|
89
|
+
end
|
90
|
+
else
|
91
|
+
::Proc.new
|
92
|
+
end
|
93
|
+
|
94
|
+
super(*others, &block)
|
95
|
+
end
|
96
|
+
|
97
|
+
def match?(pattern, position = 0)
|
98
|
+
!!(self[position..-1] =~ pattern)
|
99
|
+
end
|
100
|
+
|
101
|
+
def prepend(*others)
|
102
|
+
return super if others.length == 1
|
103
|
+
|
104
|
+
acc = '' << self
|
105
|
+
others.reverse_each do |other|
|
106
|
+
acc.prepend(other)
|
107
|
+
end
|
108
|
+
|
109
|
+
replace(acc)
|
110
|
+
end
|
111
|
+
|
112
|
+
def unpack1(*args)
|
113
|
+
unpack(*args).first
|
114
|
+
end
|
9
115
|
end
|
10
116
|
end
|
11
117
|
end
|
@@ -1,9 +1,173 @@
|
|
1
|
-
|
1
|
+
require 'English'
|
2
2
|
|
3
3
|
module Polyfill
|
4
4
|
module V2_4
|
5
5
|
module StringIO
|
6
|
-
|
6
|
+
module ClassMethods
|
7
|
+
def foreach(name, *args)
|
8
|
+
hash, others = args.partition { |arg| arg.is_a?(::Hash) }
|
9
|
+
chomps = hash[0] && hash[0][:chomp]
|
10
|
+
|
11
|
+
unless block_given?
|
12
|
+
return super(name, *others) unless chomps
|
13
|
+
|
14
|
+
separator = others.find do |other|
|
15
|
+
other.respond_to?(:to_str)
|
16
|
+
end || $INPUT_RECORD_SEPARATOR
|
17
|
+
|
18
|
+
return ::Enumerator.new do |yielder|
|
19
|
+
super(name, *others) do |line|
|
20
|
+
yielder.yield(line.chomp(separator))
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
block =
|
26
|
+
if chomps
|
27
|
+
separator = others.find do |other|
|
28
|
+
other.respond_to?(:to_str)
|
29
|
+
end || $INPUT_RECORD_SEPARATOR
|
30
|
+
|
31
|
+
proc do |line|
|
32
|
+
yield(line.chomp(separator))
|
33
|
+
end
|
34
|
+
else
|
35
|
+
::Proc.new
|
36
|
+
end
|
37
|
+
|
38
|
+
super(name, *others, &block)
|
39
|
+
end
|
40
|
+
|
41
|
+
def readlines(file_name, *args)
|
42
|
+
hash, others = args.partition { |arg| arg.is_a?(::Hash) }
|
43
|
+
|
44
|
+
inputs = super(file_name, *others)
|
45
|
+
|
46
|
+
if hash[0] && hash[0][:chomp]
|
47
|
+
separator = others.find do |other|
|
48
|
+
other.respond_to?(:to_str)
|
49
|
+
end || $INPUT_RECORD_SEPARATOR
|
50
|
+
|
51
|
+
inputs.each { |input| input.chomp!(separator) }
|
52
|
+
end
|
53
|
+
|
54
|
+
inputs
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
def each_line(*args)
|
59
|
+
hash, others = args.partition { |arg| arg.is_a?(::Hash) }
|
60
|
+
chomps = hash[0] && hash[0][:chomp]
|
61
|
+
|
62
|
+
unless block_given?
|
63
|
+
return super(*others) unless chomps
|
64
|
+
|
65
|
+
separator = others.find do |other|
|
66
|
+
other.respond_to?(:to_str)
|
67
|
+
end || $INPUT_RECORD_SEPARATOR
|
68
|
+
return ::Enumerator.new do |yielder|
|
69
|
+
super(*others) do |line|
|
70
|
+
yielder.yield(line.chomp(separator))
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
block =
|
76
|
+
if chomps
|
77
|
+
separator = others.find do |other|
|
78
|
+
other.respond_to?(:to_str)
|
79
|
+
end || $INPUT_RECORD_SEPARATOR
|
80
|
+
|
81
|
+
proc do |line|
|
82
|
+
yield(line.chomp(separator))
|
83
|
+
end
|
84
|
+
else
|
85
|
+
::Proc.new
|
86
|
+
end
|
87
|
+
|
88
|
+
super(*others, &block)
|
89
|
+
end
|
90
|
+
|
91
|
+
def gets(*args)
|
92
|
+
hash, others = args.partition { |arg| arg.is_a?(::Hash) }
|
93
|
+
|
94
|
+
input = super(*others)
|
95
|
+
|
96
|
+
if !input.nil? && hash[0] && hash[0][:chomp]
|
97
|
+
separator = others.find do |other|
|
98
|
+
other.respond_to?(:to_str)
|
99
|
+
end || $INPUT_RECORD_SEPARATOR
|
100
|
+
|
101
|
+
input.chomp!(separator)
|
102
|
+
end
|
103
|
+
|
104
|
+
input
|
105
|
+
end
|
106
|
+
|
107
|
+
def lines(*args)
|
108
|
+
hash, others = args.partition { |arg| arg.is_a?(::Hash) }
|
109
|
+
chomps = hash[0] && hash[0][:chomp]
|
110
|
+
|
111
|
+
unless block_given?
|
112
|
+
return super(*others) unless chomps
|
113
|
+
|
114
|
+
separator = others.find do |other|
|
115
|
+
other.respond_to?(:to_str)
|
116
|
+
end || $INPUT_RECORD_SEPARATOR
|
117
|
+
return ::Enumerator.new do |yielder|
|
118
|
+
super(*others) do |line|
|
119
|
+
yielder.yield(line.chomp(separator))
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
block =
|
125
|
+
if chomps
|
126
|
+
separator = others.find do |other|
|
127
|
+
other.respond_to?(:to_str)
|
128
|
+
end || $INPUT_RECORD_SEPARATOR
|
129
|
+
|
130
|
+
proc do |line|
|
131
|
+
yield(line.chomp(separator))
|
132
|
+
end
|
133
|
+
else
|
134
|
+
::Proc.new
|
135
|
+
end
|
136
|
+
|
137
|
+
super(*others, &block)
|
138
|
+
end
|
139
|
+
|
140
|
+
def readline(*args)
|
141
|
+
hash, others = args.partition { |arg| arg.is_a?(::Hash) }
|
142
|
+
|
143
|
+
input = super(*others)
|
144
|
+
|
145
|
+
if hash[0] && hash[0][:chomp]
|
146
|
+
separator = others.find do |other|
|
147
|
+
other.respond_to?(:to_str)
|
148
|
+
end || $INPUT_RECORD_SEPARATOR
|
149
|
+
|
150
|
+
input.chomp!(separator)
|
151
|
+
end
|
152
|
+
|
153
|
+
input
|
154
|
+
end
|
155
|
+
|
156
|
+
def readlines(*args)
|
157
|
+
hash, others = args.partition { |arg| arg.is_a?(::Hash) }
|
158
|
+
|
159
|
+
inputs = super(*others)
|
160
|
+
|
161
|
+
if hash[0] && hash[0][:chomp]
|
162
|
+
separator = others.find do |other|
|
163
|
+
other.respond_to?(:to_str)
|
164
|
+
end || $INPUT_RECORD_SEPARATOR
|
165
|
+
|
166
|
+
inputs.each { |input| input.chomp!(separator) }
|
167
|
+
end
|
168
|
+
|
169
|
+
inputs
|
170
|
+
end
|
7
171
|
end
|
8
172
|
end
|
9
173
|
end
|
data/lib/polyfill/v2_4/symbol.rb
CHANGED
@@ -1,9 +1,23 @@
|
|
1
|
-
require_relative 'symbol/instance'
|
2
|
-
|
3
1
|
module Polyfill
|
4
2
|
module V2_4
|
5
3
|
module Symbol
|
6
|
-
|
4
|
+
def casecmp?(other)
|
5
|
+
return nil unless other.is_a?(::Symbol)
|
6
|
+
|
7
|
+
casecmp(other) == 0
|
8
|
+
end
|
9
|
+
|
10
|
+
def match(*args)
|
11
|
+
if block_given?
|
12
|
+
to_s.match(*args, &::Proc.new)
|
13
|
+
else
|
14
|
+
to_s.match(*args)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def match?(pattern, position = 0)
|
19
|
+
!!(self[position..-1] =~ pattern)
|
20
|
+
end
|
7
21
|
end
|
8
22
|
end
|
9
23
|
end
|
data/lib/polyfill/version.rb
CHANGED
data/polyfill.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.homepage = ''
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
|
-
spec.required_ruby_version = '>= 2.
|
16
|
+
spec.required_ruby_version = '>= 2.1'
|
17
17
|
|
18
18
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
19
19
|
f.match(%r{^(test|spec|features)/})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polyfill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Lasseigne
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -87,128 +87,37 @@ files:
|
|
87
87
|
- bin/setup
|
88
88
|
- lib/polyfill.rb
|
89
89
|
- lib/polyfill/utils.rb
|
90
|
+
- lib/polyfill/v2_2.rb
|
91
|
+
- lib/polyfill/v2_2/enumerable.rb
|
92
|
+
- lib/polyfill/v2_2/kernel.rb
|
90
93
|
- lib/polyfill/v2_3.rb
|
91
94
|
- lib/polyfill/v2_3/array.rb
|
92
|
-
- lib/polyfill/v2_3/array/instance.rb
|
93
|
-
- lib/polyfill/v2_3/array/instance/dig.rb
|
94
95
|
- lib/polyfill/v2_3/enumerable.rb
|
95
|
-
- lib/polyfill/v2_3/enumerable/instance.rb
|
96
|
-
- lib/polyfill/v2_3/enumerable/instance/chunk_while.rb
|
97
|
-
- lib/polyfill/v2_3/enumerable/instance/grep_v.rb
|
98
|
-
- lib/polyfill/v2_3/enumerable/instance/slice_before.rb
|
99
96
|
- lib/polyfill/v2_3/enumerator/lazy.rb
|
100
|
-
- lib/polyfill/v2_3/enumerator/lazy/instance.rb
|
101
|
-
- lib/polyfill/v2_3/enumerator/lazy/instance/grep_v.rb
|
102
97
|
- lib/polyfill/v2_3/hash.rb
|
103
|
-
- lib/polyfill/v2_3/
|
104
|
-
- lib/polyfill/v2_3/hash/instance/dig.rb
|
105
|
-
- lib/polyfill/v2_3/hash/instance/fetch_values.rb
|
106
|
-
- lib/polyfill/v2_3/hash/instance/to_proc.rb
|
98
|
+
- lib/polyfill/v2_3/kernel.rb
|
107
99
|
- lib/polyfill/v2_3/string.rb
|
108
|
-
- lib/polyfill/v2_3/string/class.rb
|
109
|
-
- lib/polyfill/v2_3/string/class/new.rb
|
110
|
-
- lib/polyfill/v2_3/string/instance.rb
|
111
|
-
- lib/polyfill/v2_3/string/instance/minus_unary.rb
|
112
|
-
- lib/polyfill/v2_3/string/instance/plus_unary.rb
|
113
100
|
- lib/polyfill/v2_3/struct.rb
|
114
|
-
- lib/polyfill/v2_3/struct/instance.rb
|
115
|
-
- lib/polyfill/v2_3/struct/instance/dig.rb
|
116
101
|
- lib/polyfill/v2_4.rb
|
117
102
|
- lib/polyfill/v2_4/array.rb
|
118
|
-
- lib/polyfill/v2_4/array/instance.rb
|
119
|
-
- lib/polyfill/v2_4/array/instance/concat.rb
|
120
|
-
- lib/polyfill/v2_4/array/instance/sum.rb
|
121
103
|
- lib/polyfill/v2_4/comparable.rb
|
122
|
-
- lib/polyfill/v2_4/comparable/instance.rb
|
123
|
-
- lib/polyfill/v2_4/comparable/instance/clamp.rb
|
124
104
|
- lib/polyfill/v2_4/dir.rb
|
125
|
-
- lib/polyfill/v2_4/dir/class.rb
|
126
|
-
- lib/polyfill/v2_4/dir/class/empty_q.rb
|
127
105
|
- lib/polyfill/v2_4/enumerable.rb
|
128
|
-
- lib/polyfill/v2_4/enumerable/instance.rb
|
129
|
-
- lib/polyfill/v2_4/enumerable/instance/chunk.rb
|
130
|
-
- lib/polyfill/v2_4/enumerable/instance/sum.rb
|
131
|
-
- lib/polyfill/v2_4/enumerable/instance/uniq.rb
|
132
106
|
- lib/polyfill/v2_4/enumerator/lazy.rb
|
133
|
-
- lib/polyfill/v2_4/enumerator/lazy/instance.rb
|
134
|
-
- lib/polyfill/v2_4/enumerator/lazy/instance/chunk_while.rb
|
135
|
-
- lib/polyfill/v2_4/enumerator/lazy/instance/uniq.rb
|
136
107
|
- lib/polyfill/v2_4/file.rb
|
137
|
-
- lib/polyfill/v2_4/file/class.rb
|
138
|
-
- lib/polyfill/v2_4/file/class/empty_q.rb
|
139
108
|
- lib/polyfill/v2_4/float.rb
|
140
|
-
- lib/polyfill/v2_4/float/instance.rb
|
141
|
-
- lib/polyfill/v2_4/float/instance/ceil.rb
|
142
|
-
- lib/polyfill/v2_4/float/instance/floor.rb
|
143
|
-
- lib/polyfill/v2_4/float/instance/truncate.rb
|
144
109
|
- lib/polyfill/v2_4/hash.rb
|
145
|
-
- lib/polyfill/v2_4/hash/instance.rb
|
146
|
-
- lib/polyfill/v2_4/hash/instance/compact.rb
|
147
|
-
- lib/polyfill/v2_4/hash/instance/compact_e.rb
|
148
|
-
- lib/polyfill/v2_4/hash/instance/transform_values.rb
|
149
|
-
- lib/polyfill/v2_4/hash/instance/transform_values_e.rb
|
150
110
|
- lib/polyfill/v2_4/i_p_addr.rb
|
151
|
-
- lib/polyfill/v2_4/i_p_addr/instance.rb
|
152
|
-
- lib/polyfill/v2_4/i_p_addr/instance/equalequal.rb
|
153
|
-
- lib/polyfill/v2_4/i_p_addr/instance/lessthanequalgreaterthan.rb
|
154
111
|
- lib/polyfill/v2_4/integer.rb
|
155
|
-
- lib/polyfill/v2_4/integer/instance.rb
|
156
|
-
- lib/polyfill/v2_4/integer/instance/ceil.rb
|
157
|
-
- lib/polyfill/v2_4/integer/instance/digits.rb
|
158
|
-
- lib/polyfill/v2_4/integer/instance/floor.rb
|
159
|
-
- lib/polyfill/v2_4/integer/instance/round.rb
|
160
|
-
- lib/polyfill/v2_4/integer/instance/truncate.rb
|
161
112
|
- lib/polyfill/v2_4/io.rb
|
162
|
-
- lib/polyfill/v2_4/io/class.rb
|
163
|
-
- lib/polyfill/v2_4/io/class/foreach.rb
|
164
|
-
- lib/polyfill/v2_4/io/class/readlines.rb
|
165
|
-
- lib/polyfill/v2_4/io/instance.rb
|
166
|
-
- lib/polyfill/v2_4/io/instance/each_line.rb
|
167
|
-
- lib/polyfill/v2_4/io/instance/gets.rb
|
168
|
-
- lib/polyfill/v2_4/io/instance/lines.rb
|
169
|
-
- lib/polyfill/v2_4/io/instance/readline.rb
|
170
|
-
- lib/polyfill/v2_4/io/instance/readlines.rb
|
171
113
|
- lib/polyfill/v2_4/match_data.rb
|
172
|
-
- lib/polyfill/v2_4/match_data/instance.rb
|
173
|
-
- lib/polyfill/v2_4/match_data/instance/named_captures.rb
|
174
|
-
- lib/polyfill/v2_4/match_data/instance/values_at.rb
|
175
114
|
- lib/polyfill/v2_4/numeric.rb
|
176
|
-
- lib/polyfill/v2_4/numeric/instance.rb
|
177
|
-
- lib/polyfill/v2_4/numeric/instance/clone.rb
|
178
|
-
- lib/polyfill/v2_4/numeric/instance/dup.rb
|
179
|
-
- lib/polyfill/v2_4/numeric/instance/finite_q.rb
|
180
|
-
- lib/polyfill/v2_4/numeric/instance/infinite_q.rb
|
181
115
|
- lib/polyfill/v2_4/object.rb
|
182
|
-
- lib/polyfill/v2_4/object/instance.rb
|
183
|
-
- lib/polyfill/v2_4/object/instance/clone.rb
|
184
116
|
- lib/polyfill/v2_4/pathname.rb
|
185
|
-
- lib/polyfill/v2_4/pathname/instance.rb
|
186
|
-
- lib/polyfill/v2_4/pathname/instance/empty_q.rb
|
187
117
|
- lib/polyfill/v2_4/regexp.rb
|
188
|
-
- lib/polyfill/v2_4/regexp/instance.rb
|
189
|
-
- lib/polyfill/v2_4/regexp/instance/match_q.rb
|
190
118
|
- lib/polyfill/v2_4/string.rb
|
191
|
-
- lib/polyfill/v2_4/string/class.rb
|
192
|
-
- lib/polyfill/v2_4/string/class/new.rb
|
193
|
-
- lib/polyfill/v2_4/string/instance.rb
|
194
|
-
- lib/polyfill/v2_4/string/instance/casecmp_q.rb
|
195
|
-
- lib/polyfill/v2_4/string/instance/concat.rb
|
196
|
-
- lib/polyfill/v2_4/string/instance/each_line.rb
|
197
|
-
- lib/polyfill/v2_4/string/instance/lines.rb
|
198
|
-
- lib/polyfill/v2_4/string/instance/match_q.rb
|
199
|
-
- lib/polyfill/v2_4/string/instance/prepend.rb
|
200
|
-
- lib/polyfill/v2_4/string/instance/unpack1.rb
|
201
119
|
- lib/polyfill/v2_4/string_io.rb
|
202
|
-
- lib/polyfill/v2_4/string_io/instance.rb
|
203
|
-
- lib/polyfill/v2_4/string_io/instance/each_line.rb
|
204
|
-
- lib/polyfill/v2_4/string_io/instance/gets.rb
|
205
|
-
- lib/polyfill/v2_4/string_io/instance/readline.rb
|
206
|
-
- lib/polyfill/v2_4/string_io/instance/readlines.rb
|
207
120
|
- lib/polyfill/v2_4/symbol.rb
|
208
|
-
- lib/polyfill/v2_4/symbol/instance.rb
|
209
|
-
- lib/polyfill/v2_4/symbol/instance/casecmp_q.rb
|
210
|
-
- lib/polyfill/v2_4/symbol/instance/match.rb
|
211
|
-
- lib/polyfill/v2_4/symbol/instance/match_q.rb
|
212
121
|
- lib/polyfill/version.rb
|
213
122
|
- polyfill.gemspec
|
214
123
|
homepage: ''
|
@@ -223,7 +132,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
223
132
|
requirements:
|
224
133
|
- - ">="
|
225
134
|
- !ruby/object:Gem::Version
|
226
|
-
version: '2.
|
135
|
+
version: '2.1'
|
227
136
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
228
137
|
requirements:
|
229
138
|
- - ">="
|