Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit f0b24e2

Browse files
Fix jruby-9.1.x compatibility (#79)
* Run tests against jruby-9.1.12.0 * Fix compatibility * Run tests against latest jruby-9.1.x version * Add jruby 9.2 for good measure Co-authored-by: Thomas Hu <thomasrockhu@users.noreply.github.com>
1 parent 627ce66 commit f0b24e2

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ rvm:
99
- 2.6
1010
- 2.7
1111
- jruby
12+
- jruby-9.1
13+
- jruby-9.2

lib/codecov.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,12 @@ def create_report(report)
315315
def gzip_report(report)
316316
puts ['==>'.green, 'Gzipping contents'].join(' ')
317317

318-
gzip = Zlib::GzipWriter.new(StringIO.new)
318+
io = StringIO.new
319+
gzip = Zlib::GzipWriter.new(io)
319320
gzip << report
321+
gzip.close
320322

321-
gzip.close.string
323+
io.string
322324
end
323325

324326
def upload_to_codecov(ci, report)

0 commit comments

Comments
 (0)