Project

General

Profile

Feature #17267

Remove Win32API at Ruby 3.0

Added by hsbt (Hiroshi SHIBATA) about 1 month ago. Updated 18 days ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:100434]

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?

#1

Updated by hsbt (Hiroshi SHIBATA) about 1 month ago

  • Backport deleted (2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN)
  • Tracker changed from Bug to Feature

Updated by hsbt (Hiroshi SHIBATA) about 1 month 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 Eregon (Benoit Daloze) about 1 month 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 1 month 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) 19 days ago

  • Assignee set to hsbt (Hiroshi SHIBATA)
  • Status changed from Open to Closed

Updated by Eregon (Benoit Daloze) 18 days 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

Also available in: Atom PDF