summaryrefslogtreecommitdiff
path: root/ext/win32
AgeCommit message (Collapse)Author
4 days[ruby/win32-registry] Minor readme improvements and typo fixesTim Smith
- Put shell commands in code blocks so they can easily be copied from the GitHub UI directly - Fix a few typos - Fix a dead link to MSDN Signed-off-by: Tim Smith <[email protected]> https://github.com/ruby/win32-registry/commit/61a4672df7
2025-04-17[ruby/resolv] quote registry value name properlyYO4
'NV Domain' needs to be quoted. https://github.com/ruby/resolv/commit/332a16dcc0
2025-02-05Integrate read_s and read_s_expand with get_item_property for Win32::RegistryHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12616
2025-02-05Added get_item_property and use it for Win32::Registry and Get-ItemPropertyHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12616
2025-02-05Use powershell for retrieving value from registry if fiddle is not availableHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12616
2025-02-05Don't use nested registry open for rewriting powershell versionHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12616
2025-02-05Handle failing case to load win32/registryHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12616
2025-01-30[ruby/resolv] `w32error_raise` never returnsNobuyoshi Nakada
https://github.com/ruby/resolv/commit/d00e86f7e4
2024-12-10[ruby/resolv] Build the extension library only when CRuby (FixNobuyoshi Nakada
https://github.com/ruby/resolv/pull/69) On JRuby no C compiler is available and this call results in a runtime error. https://github.com/ruby/resolv/commit/33105bc504
2024-11-08[ruby/win32-registry] Bump up v0.1.0Hiroshi SHIBATA
https://github.com/ruby/win32-registry/commit/a87076ee42
2024-10-17[ruby/win32-registry] Exclude rake files from packages [ci skip]Nobuyoshi Nakada
https://github.com/ruby/win32-registry/commit/e7b2eeb885
2024-10-17[ruby/win32-registry] Exclude mailmap from packages [ci skip]Nobuyoshi Nakada
https://github.com/ruby/win32-registry/commit/521f93af9e
2024-10-17[ruby/win32-registry] Fix compatibility with JRubyLars Kanis
JRuby's fiddle implementation has quite some shortcomings compared with the CRuby impl. Add JRuby tests in CI. https://github.com/ruby/win32-registry/commit/7f34184c2e
2024-10-09Sync from ruby/win32-registryHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/11791
2024-10-08Extract ext/win32/lib/win32/sspi.rb to ruby/win32-sspiHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/11829
2024-09-29win32/sspi: Use `start_with?` to see prefixNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/11722
2024-09-29win32/sspi: Rafactor pack/unpackNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/11722
2024-09-29win32/sspi: For Ractor use a constant instead of a class variableNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/11722
2024-09-29win32/sspi: Fix missing A suffix in an API constant nameNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/11722
2024-09-29win32/sspi: Fix Win32::SSPI::SSPIResult#== with IntegerNobuyoshi Nakada
The values of `@@map` are `Symbol`s and `@value` should be an `Integer` since unpacked as unsigned long, so this comparison should be false always. Probably comparison with `Symbol` was intended. Notes: Merged: https://github.com/ruby/ruby/pull/11722
2024-09-29win32/sspi: Already Fixnum has been removed years agoNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/11722
2024-09-25[win32/registry] Fallback to UTF-8 for unknown codepagesJosh Cooper
There are some codepages like cp708 for which no ruby encoding exists: $ ruby -e "Encoding.find('cp708')" Traceback (most recent call last): 1: from -e:1:in `<main>' -e:1:in `find': unknown encoding name - cp708 (ArgumentError) win32/registry uses ENCODING to transcode error messages and expand environment variables from UTF-16LE, so using UTF-8 seems like the best choice and is better than a hard failure. This should resolve [Bug #13831] Notes: Merged: https://github.com/ruby/ruby/pull/7366
2024-09-10[ruby/resolv] Add spec extensionsNobuyoshi Nakada
https://github.com/ruby/resolv/commit/3189d16b69
2024-05-03win32/registry: Shorten with safe navigation operatorNobuyoshi Nakada
2024-05-03win32/registry: Make frozen_string_literal trueNobuyoshi Nakada
2024-05-03win32/registry: Refine pack/unpackNobuyoshi Nakada
* Use 'J' for HANDLE. * Use 'Q' for QWORD. * Define template constants. * Supply zero bytes in `unpackqw` as well as `unpackdw`. * Use `String#unpack1`.
2024-04-26Enable Ruby to run on Windows with frozen string literalsSam Aaron
2023-12-28Fix memory overread in registry.rbKJ Tsanaktsidis
The terminator is not actually getting filled in; we're simply passing (two) bytes of empty memory as the NUL terminator. This can lead to garbage characters getting written to registry values. Fix this by explicitly putting a WCHAR_NUL character into the string to be sent to the registry API, like we do in the MULTI_SZ case. [Bug #20096]
2022-07-21Expand tabs [ci skip]Takashi Kokubun
[Misc #18891] Notes: Merged: https://github.com/ruby/ruby/pull/6094
2021-04-26Fix some typos by spell checkerRyuta Kamizono
Notes: Merged: https://github.com/ruby/ruby/pull/4414
2021-01-05[DOC] Fix grammar: "is same as" -> "is the same as"Marcus Stollsteimer
2020-11-11Use Fiddle::Importer directlyHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/3712
2020-11-11Removed win32/resolv.rb for 32bit envHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/3712
2020-11-11Removed win32apiHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/3712
2020-11-10Use fiddle (win32/importer) instead of Win32APINAKAMURA Usaku
- ext/win32/lib/win32/sspi.rb: Use fiddle (win32/importer) instead of Win32API
2019-07-14Include ruby/assert.h in ruby/ruby.h so that assertions can be thereNobuyoshi Nakada
2019-07-14Added depend filesNobuyoshi Nakada
2019-06-07win32/registry.rb: fix potential infinite loopNobuyoshi Nakada
* ext/win32/lib/win32/registry.rb (Win32::Registry#each_value): advance the index even if an error occurred in #read.
2018-04-02Win32API.rb: use uplevel option to warnnobu
Also warns always regardless $VERBOSE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-01-18win32/resolv.rb: call rb_w32_osidnobu
* ext/win32/lib/win32/resolv.rb: call rb_w32_osid instead of direct GetVersionExA API. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-10-22Fixed misspelling words.hsbt
These are detected by https://github.com/client9/misspell git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-10-21Treat REG_NONE just like REG_BINARYusa
* ext/win32/lib/win32/registry.rb (read, write): treat REG_NONE just like REG_BINARY when reading and writing. cf. [Bug #7526] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-02-14resolv9x.rb: fix typonobu
* ext/win32/lib/win32/resolv9x.rb (WsControl): fix missing close parenthesis at r22724. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-01-04win32/registry.rb: registry type namesnobu
* ext/win32/lib/win32/registry.rb (Win32::Registry#read): show registry type names instead of numeric values. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-01-04win32/resolv.rb: ad hoc workaroundnobu
* ext/win32/lib/win32/resolv.rb (Win32::Resolv::SZ): an ad hoc workaround for broken registry. SearchList and other registry values must be REG_SZ, or Windows ignores anything in those values otherwise. [ruby-dev:49924] [Bug #13081] https://github.com/rubygems/rubygems/issues/1700 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-18extmk.rb: removed compiled? method [ci skip]nobu
* ext/extmk.rb (compiled?): removed. * ext/win32/extconf.rb: try to install libraries regardless fiddle. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-08-10win32/resolv: fix for cygwinnobu
* ext/win32/resolv/resolv.c: needs windows.h for iphlpapi.h on cygwin. [ruby-core:76791] [Bug #12663] * ext/win32/resolv/resolv.c (w32error_make_error): use Win32::Resolv::Error, an alias of Win32::Registry::Error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-08-10win32/resolv: fix for cygwinnobu
* ext/win32/resolv/resolv.c: needs windows.h for iphlpapi.h on cygwin. [ruby-core:76791] [Bug #12663] * ext/win32/resolv/resolv.c (w32error_make_error): use Win32::Resolv::Error, an alias of Win32::Registry::Error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-07-31resolv.c: fix commit missnobu
* ext/win32/resolv/resolv.c (Init_resolv): remove dead code. [Bug #12604] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-07-31win32/resolv: get_dns_server_listnobu
* ext/win32/resolv/resolv.c (get_dns_server_list): [Win32] get DNS servers only for connected network devices by GetNetworkParams API. [Bug #12604] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e