Project

General

Profile

Actions

Bug #2751

closed

Win32::Registry#inspect fails

Added by rogerdpack (Roger Pack) about 14 years ago. Updated about 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-mingw32]
Backport:
[ruby-core:28192]

Description

=begin

Win32::Registry::HKEY_LOCAL_MACHINE.create "Software\classes\#{name}\shell\open_with_redcar"
NoMethodError: undefined method +' for :HKEY_LOCAL_MACHINE:Symbol from E:/installs/ruby191p376/lib/ruby/1.9.1/win32/registry.rb:590:in name'
from E:/installs/ruby191p376/lib/ruby/1.9.1/win32/registry.rb:596:in inspect' from E:/installs/ruby191p376/bin/irb:12:in '

my attempted fix:

Index: ext/dl/win32/lib/win32/registry.rb

--- ext/dl/win32/lib/win32/registry.rb (revision 26655)
+++ ext/dl/win32/lib/win32/registry.rb (working copy)
@@ -473,7 +473,7 @@
parent = self
name = @keyname
while parent = parent.parent

  •    name = parent.keyname + '\\' + name
    
  •    name = parent.keyname.to_s + '\\' + name
     end
     name
    
    end
    =end
Actions #1

Updated by usa (Usaku NAKAMURA) about 14 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r27418.
Roger, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Actions

Also available in: Atom PDF

Like0
Like0