epitools 0.5.109 → 0.5.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/epitools/autoloads.rb +2 -0
- data/lib/epitools/core_ext/misc.rb +15 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3577b73c4506ea3c81d562a63ea60bc8289cf4c2b7b28bde2ca11cfc350e9124
|
|
4
|
+
data.tar.gz: c191915dcda3fac5127e74189cf3132a25a99c791efed58834b891a6f5115765
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 94fec59563b243fb37e6ef14e53b311fee02bc6445136d04ce53fc40e8d851d00e242a5a517bb7ae5b9120ee772c4d0e6b5f9aaa3bad30e2366bf852a71de07f
|
|
7
|
+
data.tar.gz: 41e29174f1b776d06931292ee8820e902865d5a360ad2ee949165f3ee8495668d3e668b6328f49c741297feffac00d0ff58a5635a5f9664927f60f0ec4ce4d8d
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.
|
|
1
|
+
0.5.110
|
data/lib/epitools/autoloads.rb
CHANGED
|
@@ -150,10 +150,10 @@ end
|
|
|
150
150
|
|
|
151
151
|
|
|
152
152
|
|
|
153
|
-
unless IO.respond_to? :copy_stream
|
|
154
153
|
|
|
155
|
-
|
|
154
|
+
class IO
|
|
156
155
|
|
|
156
|
+
unless IO.respond_to? :copy_stream
|
|
157
157
|
#
|
|
158
158
|
# IO.copy_stream backport
|
|
159
159
|
#
|
|
@@ -162,13 +162,25 @@ unless IO.respond_to? :copy_stream
|
|
|
162
162
|
output.write(chunk)
|
|
163
163
|
end
|
|
164
164
|
end
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
#
|
|
168
|
+
# Iterate over each line of the stream, yielding the line and the byte offset of the start of the line in the file
|
|
169
|
+
#
|
|
170
|
+
def each_line_with_offset
|
|
171
|
+
return to_enum(:each_line_with_offset) unless block_given?
|
|
165
172
|
|
|
173
|
+
offset = 0
|
|
174
|
+
|
|
175
|
+
each_line do |line|
|
|
176
|
+
yield line, offset
|
|
177
|
+
offset += line.size
|
|
178
|
+
end
|
|
166
179
|
end
|
|
167
180
|
|
|
168
181
|
end
|
|
169
182
|
|
|
170
183
|
|
|
171
|
-
|
|
172
184
|
class Struct
|
|
173
185
|
|
|
174
186
|
#
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: epitools
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.110
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- epitron
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-04-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|