Actions
Feature #17267
closedRemove Win32API at Ruby 3.0
Description
https://github.com/ruby/ruby/blob/master/ext/win32/lib/Win32API.rb#L5 says "Win32API is deprecated after Ruby 1.9.1; use fiddle directly instead".
We have enough time to deprecate for this module.
Can we remove it from our repo?
Updated by hsbt (Hiroshi SHIBATA) about 4 years ago
- Tracker changed from Bug to Feature
- Backport deleted (
2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN)
Updated by hsbt (Hiroshi SHIBATA) about 4 years ago
The following gems still used win32api.rb.
hsbt@aluminium:~$ gem-codesearch "require \"win32api\""
/srv/gems/rinderon-0.0.0.1/lib/rinderon/window.rb:require "win32api"
hsbt@aluminium:~$ gem-codesearch "require 'win32api'"
/srv/gems/audio_player-1.0.2/lib/audio_player.rb:require 'win32api'
/srv/gems/easy_io-0.4.2/lib/easy_io.rb: require 'win32api'
/srv/gems/external_api-1.0.3/lib/external_api.rb:require 'win32api'
/srv/gems/gap50-0.1.1/lib/gap50/preload.rb: require 'win32api'
/srv/gems/green_shoes-1.1.374/lib/plugins/video.rb: require 'win32api'
/srv/gems/iegrip-0.1.7/lib/iegrip.rb:require 'win32api'
/srv/gems/mini_term-0.1.3/lib/mini_term/windows.rb: require 'win32api'
/srv/gems/reline-0.1.5/lib/reline/windows.rb: require 'win32api'
/srv/gems/rubyinstaller-build-0.1.0/resources/files/reline/windows.rb: require 'win32api'
/srv/gems/u3d-1.2.3/lib/u3d/utils.rb: require 'win32api'
/srv/gems/ua-0.0.2/test/test5.rb:require 'win32api'
/srv/gems/undll32-0.3.3/README.md:Notice: it uses `require 'win32api'`, which may not work on your Linux or MacOS systems.
Updated by shyouhei (Shyouhei Urabe) about 4 years ago
+1 for removal.
Updated by Eregon (Benoit Daloze) about 4 years ago
I think it's fine as long as it's moved to a gem, so it can still be used when desired.
Updated by duerst (Martin Dürst) about 4 years ago
Eregon (Benoit Daloze) wrote in #note-4:
I think it's fine as long as it's moved to a gem, so it can still be used when desired.
I agree with Benoit.
Updated by hsbt (Hiroshi SHIBATA) about 4 years ago
- Status changed from Open to Closed
- Assignee set to hsbt (Hiroshi SHIBATA)
Updated by Eregon (Benoit Daloze) about 4 years ago
@hsbt (Hiroshi SHIBATA) Was it extracted to a gem?
BTW:
$ gem-codesearch "require.+Win32API" | wc -l
339
$ gem-codesearch -i "require.+win32api" | wc -l
355
Actions
Like0
Like0Like0Like0Like0Like0Like0Like0Like0