Project

General

Profile

Actions

Feature #8601

closed

Win32API.rb long life plan

Feature #8601: Win32API.rb long life plan

Added by arton (Akio Tajima) over 12 years ago. Updated almost 4 years ago.

Status:
Closed
Assignee:
Target version:
-
[ruby-core:55797]

Description

Win32API.rb sits on ext/dl/win32/lib in the source tree.
But DL is deprecated on Ruby 2.0.1, so I'd like to move it from ext/dl/win32/lib to ext/win32/lib because the library is fundamental for Win32 platform.
Also it's required to fit Fiddler.

Attachment is the patched version of Win32API.rb for both DL and Fiddle based on mirich (http://d.hatena.ne.jp/mirichi/20130629/p1).


Files

Win32API.rb (1.53 KB) Win32API.rb arton (Akio Tajima), 07/05/2013 03:29 AM

Related issues 1 (0 open1 closed)

Related to Ruby - Feature #5458: DL should be removed Closedtenderlovemaking (Aaron Patterson)Actions

Updated by vo.x (Vit Ondruch) over 12 years ago Actions #1 [ruby-core:55798]

Wouldn't it be better to move it out of StdLib into separate gem?

Updated by arton (Akio Tajima) over 12 years ago Actions #2 [ruby-core:55800]

No. Many of Windows users use ruby on enterprise environment that is disconnected from the network. So pre-installed library is required especially fundamentals such as Win32API.

Updated by nobu (Nobuyoshi Nakada) over 12 years ago Actions #3 [ruby-core:55801]

And lib/rubygems/user_interaction.rb and lib/securerandom.rb depend on it.

Updated by nobu (Nobuyoshi Nakada) over 12 years ago Actions #4 [ruby-core:55802]

lib/rubygems/user_interaction.rb has code to use io/console already.

# Bad habit branching by the version string...

Updated by luislavena (Luis Lavena) over 12 years ago Actions #5 [ruby-core:55820]

  • Category set to lib
  • Status changed from Open to Assigned
  • Assignee set to usa (Usaku NAKAMURA)
  • Target version set to 2.1.0

Hello Arton,

In rb-readline project we used DL be able to access Windows API due the warning/removal of Win32API.rb after 2.0

Park Heesob wrote some wrapper on top of DL, and a few days ago we received a pull request that uses Fiddle:

https://github.com/luislavena/rb-readline/pull/90

I would love get this sorted out in Ruby itself so we don't have to fake it.

Assigning to Usa for final decision.

Thank you.

Updated by usa (Usaku NAKAMURA) over 12 years ago Actions #6 [ruby-core:56059]

Win32API.rb should be removed at 2.1.0.

Updated by luislavena (Luis Lavena) about 12 years ago Actions #7 [ruby-core:56211]

usa (Usaku NAKAMURA) wrote:

Win32API.rb should be removed at 2.1.0.

Hello usa,

This doesn't go against what nobu and arton said?

I can modify both RubyGems and SecureRandom to use Fiddle (for newer versions) but not sure about the enterprise environments that have no access to gems.

Thank you.

Updated by hsbt (Hiroshi SHIBATA) over 11 years ago Actions #8 [ruby-core:60302]

  • Target version changed from 2.1.0 to 2.2.0

Updated by ngoto (Naohisa Goto) over 11 years ago Actions #9 [ruby-core:63469]

Updated by usa (Usaku NAKAMURA) about 8 years ago Actions #10 [ruby-core:83476]

  • Assignee changed from usa (Usaku NAKAMURA) to windows

Updated by naruse (Yui NARUSE) almost 8 years ago Actions #11

  • Target version deleted (2.2.0)

Updated by hsbt (Hiroshi SHIBATA) almost 4 years ago Actions #12 [ruby-core:106339]

  • Status changed from Assigned to Closed

Win32API.rb was removed from Ruby repo since Ruby 3.0 release.

The canonical repo is here: https://github.com/ruby/win32api.

Actions

Also available in: PDF Atom