File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
concurrent/atomic_reference Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 4
4
begin
5
5
require 'concurrent_ruby_ext'
6
6
rescue LoadError
7
- # may be a Windows cross-compiled native gem
8
- require "#{ RUBY_VERSION [ 0 ..2 ] } /concurrent_ruby_ext"
7
+ begin
8
+ # may be a Windows cross-compiled native gem
9
+ require "#{ RUBY_VERSION [ 0 ..2 ] } /concurrent_ruby_ext"
10
+ rescue LoadError
11
+ warn 'Attempted to load C extensions on unsupported platform. Continuing with pure-Ruby.'
12
+ end
9
13
end
10
14
end
11
15
Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ def self.allow_c_native_class?(clazz)
16
16
def self . safe_require_c_extensions
17
17
require 'concurrent_ruby_ext' if allow_c_extensions?
18
18
rescue LoadError
19
- warn 'Attempted to load C extensions on unsupported platform. Continuing with pure-Ruby.'
19
+ # warn 'Attempted to load C extensions on unsupported platform. Continuing with pure-Ruby.'
20
20
end
21
21
22
22
# @!visibility private
23
23
def self . safe_require_java_extensions
24
24
require 'concurrent_ruby_ext' if RUBY_PLATFORM == 'java'
25
25
rescue LoadError
26
- warn 'Attempted to load Java extensions on unsupported platform. Continuing with pure-Ruby.'
26
+ # warn 'Attempted to load Java extensions on unsupported platform. Continuing with pure-Ruby.'
27
27
end
28
28
end
You can’t perform that action at this time.
0 commit comments