multiple_files_gzip_reader 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
- metadata.gz: 51ebbdfa204f9eed82b79a504bac66179eaab0f6
4
- data.tar.gz: fdef4efafde59cb7889998c0a53c70c43769d9e8
3
+ metadata.gz: 8f3fec00fed7d69f6ac7db513978ed7d158f0a3f
4
+ data.tar.gz: 32fd43068f83628eb468ffa58c0ebb0bd10cefc9
5
5
  SHA512:
6
- metadata.gz: 8290a0b8eb09aa884b6228e3428296aa3aec373fcdbb9e78598d3665fc49720afa2c2b403ada2b398521ae6e61674a3d087cb7696a99c846f29c7e072b458b07
7
- data.tar.gz: 125ab7eabf5e83da29dc2509be26b009f64c40ee99b38ed86db230e38cb488fdae3430d055c4248ff98615ffff797f89460a0baa994e2a0f04b921ff299f1738
6
+ metadata.gz: 42c23df5cbd9e03c542b4dfd4817ceec0d839bd587f1a2ccfe109a3b1ff1d738fbf923649349c051ca8e9093878a3826d34fab1412c49840cde7d5452d46d052
7
+ data.tar.gz: 5e684a3c84949e77576e9083a1583eb30a1a0cf644535b7a869be54d13cebf49589f8119841a6708b080f43f2343e72c8e9ce6dd8ee1c613be68e4af89997561
@@ -1,7 +1,7 @@
1
- require "multiple_files_gzip_reader/version"
2
1
  require "zlib"
2
+ require "multiple_files_gzip_reader/version"
3
3
 
4
- class MultipleFilesGzipReader
4
+ class MultipleFilesGzipReader < Zlib::GzipReader
5
5
  include Enumerable
6
6
 
7
7
  def initialize(io, options = {})
@@ -34,7 +34,7 @@ class MultipleFilesGzipReader
34
34
  end
35
35
 
36
36
  def read
37
- inject("") { |result, line| result << line }
37
+ readlines.join
38
38
  end
39
39
 
40
40
  private
@@ -1,3 +1,3 @@
1
- class MultipleFilesGzipReader
2
- VERSION = "0.3.0"
1
+ class MultipleFilesGzipReader < Zlib::GzipReader
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multiple_files_gzip_reader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeny Li