Skip to content

Commit e8fca80

Browse files
committed
Correct an Opal 1.3 compatibility issue
1 parent cd54f3e commit e8fca80

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Gemfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gem 'rack'
77
gem 'sinatra'
88
gem 'sinatra-websocket'
99
# For opal-rspec, a release is needed
10-
gem 'opal-rspec', github: 'opal/opal-rspec', submodules: true # '>= 0.8.0.alpha1'
10+
gem 'opal-rspec', github: 'hmdne/opal-rspec', branch: 'opal-1.3', submodules: true # '>= 0.8.0.alpha1'
1111
gem 'opal-sprockets'
1212
# Force build of eventmachine on Windows
1313
gem 'eventmachine', github: 'eventmachine/eventmachine' if RUBY_PLATFORM =~ /mingw/
@@ -16,7 +16,7 @@ gem 'eventmachine', github: 'eventmachine/eventmachine' if RUBY_PLATFORM =~ /min
1616
# runner
1717
gem 'selenium-webdriver', require: false
1818
gem 'rest-client', require: false
19-
gem 'webdrivers', github: 'hmdne/webdrivers', require: false
19+
gem 'webdrivers', require: false
2020
gem 'rexml', require: false
2121

2222
# browser

opal/browser/socket.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ module Browser
44
# connection.
55
#
66
# @see https://developer.mozilla.org/en-US/docs/Web/API/WebSocket
7-
class Socket
7+
class Socket < IO
88
def self.supported?
99
Browser.supports? :WebSocket
1010
end
1111

1212
include Native::Wrapper
13-
include IO::Writable
13+
include IO::Writable if defined? IO::Writable
1414
include Event::Target
1515

1616
target {|value|

0 commit comments

Comments
 (0)