Skip to content

Commit 8c0c918

Browse files
authored
Merge pull request #60 from voxik/ruby24
Fix Ruby 2.4 compatibility.
2 parents ed73759 + c06a74c commit 8c0c918

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ rvm:
55
- 2.1.0
66
- 2.2.0
77
- 2.3.0
8+
- 2.4.0
9+
- ruby-head
810
- jruby-head
911
- rbx-2
1012

test/common.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def assert_progress_reported_put(offset, data, expect={})
7070

7171
def assert_progress_reported_get(offset, data, expect={})
7272
assert_equal offset, current_event[3] if offset
73-
if data.is_a?(Fixnum)
73+
if data.is_a?(0.class)
7474
assert_equal data, current_event[4].length
7575
elsif data
7676
assert_equal data, current_event[4]

0 commit comments

Comments
 (0)