win32-registry 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -6
- data/lib/win32/registry.rb +3 -3
- data/win32-registry.gemspec +29 -0
- metadata +6 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1396ebc5ba526e5867f258135cd598509f4d2cb36485b9f23754e720473c325e
|
|
4
|
+
data.tar.gz: 0fd1e2c9aa77f1a90384470ef57f87495a19f90f76fa83974f05eb4603374426
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a067e81077ffa91c31890cb4aabebc6181da27573cca9efcd2249b345743a840fc9a020318160d6f5776075a8cf6fc00d84dedbcd3072be4d3713c78217d40eb
|
|
7
|
+
data.tar.gz: dfb871c7e4ca6f5d52fca6b5ed60a548a55bfa253c32453836b827f16af8be20caedbf9a6c2efe60e4c9e1e70d28869b4307b15f0c005770292bd1aa875ef2a3
|
data/README.md
CHANGED
|
@@ -10,11 +10,15 @@ Other versions of the gem can be installed in addition like so:
|
|
|
10
10
|
|
|
11
11
|
Install the gem and add to the application's Gemfile by executing:
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
```bash
|
|
14
|
+
bundle add win32-registry
|
|
15
|
+
```
|
|
14
16
|
|
|
15
17
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
```bash
|
|
20
|
+
gem install win32-registry
|
|
21
|
+
```
|
|
18
22
|
|
|
19
23
|
## Usage
|
|
20
24
|
|
|
@@ -38,10 +42,8 @@ If bundler is not being used to manage dependencies, install the gem by executin
|
|
|
38
42
|
end
|
|
39
43
|
```
|
|
40
44
|
|
|
41
|
-
Be sure to use
|
|
42
|
-
|
|
43
|
-
This is in contrast to file paths, which accept forward and backward slashs at will on Windows.
|
|
44
|
-
|
|
45
|
+
Be sure to use backslashes "\\" as the path separator. Forward slashes "/" will not work.
|
|
46
|
+
This is in contrast to file paths, which accept forward and backward slashes at will on Windows.
|
|
45
47
|
|
|
46
48
|
## Development
|
|
47
49
|
|
data/lib/win32/registry.rb
CHANGED
|
@@ -372,7 +372,7 @@ For detail, see the MSDN[http://msdn.microsoft.com/library/en-us/sysinfo/base/pr
|
|
|
372
372
|
# Replace %\w+% into the environment value of what is contained between the %'s
|
|
373
373
|
# This method is used for REG_EXPAND_SZ.
|
|
374
374
|
#
|
|
375
|
-
# For detail, see expandEnvironmentStrings[
|
|
375
|
+
# For detail, see expandEnvironmentStrings[https://learn.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-expandenvironmentstringsa] \Win32 \API.
|
|
376
376
|
#
|
|
377
377
|
def self.expand_environ(str)
|
|
378
378
|
str.gsub(Regexp.compile("%([^%]+)%".encode(str.encoding))) {
|
|
@@ -487,7 +487,7 @@ For detail, see the MSDN[http://msdn.microsoft.com/library/en-us/sysinfo/base/pr
|
|
|
487
487
|
ObjectSpace.define_finalizer self, @@final.call(@hkeyfinal)
|
|
488
488
|
end
|
|
489
489
|
|
|
490
|
-
# Win32::Registry object of parent key, or nil if
|
|
490
|
+
# Win32::Registry object of parent key, or nil if predefined key.
|
|
491
491
|
attr_reader :parent
|
|
492
492
|
# Same as subkey value of Registry.open or
|
|
493
493
|
# Registry.create method.
|
|
@@ -571,7 +571,7 @@ For detail, see the MSDN[http://msdn.microsoft.com/library/en-us/sysinfo/base/pr
|
|
|
571
571
|
# For each value it yields key, type and data.
|
|
572
572
|
#
|
|
573
573
|
# key is a String which contains name of key.
|
|
574
|
-
# type is a type
|
|
574
|
+
# type is a type constant kind of Win32::Registry::REG_*
|
|
575
575
|
# data is the value of this key.
|
|
576
576
|
#
|
|
577
577
|
def each_value
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
Gem::Specification.new do |spec|
|
|
3
|
+
spec.name = "win32-registry"
|
|
4
|
+
spec.version = "0.1.1"
|
|
5
|
+
spec.authors = ["U.Nakamura"]
|
|
6
|
+
spec.email = ["usa@garbagecollect.jp"]
|
|
7
|
+
|
|
8
|
+
spec.summary = %q{Provides an interface to the Windows Registry in Ruby}
|
|
9
|
+
spec.description = spec.summary
|
|
10
|
+
spec.homepage = "https://github.com/ruby/win32-registry"
|
|
11
|
+
spec.required_ruby_version = ">= 2.6.0"
|
|
12
|
+
|
|
13
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
14
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
|
15
|
+
|
|
16
|
+
# Specify which files should be added to the gem when it is released.
|
|
17
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
18
|
+
excludes = %w[
|
|
19
|
+
bin/ test/ spec/ features/ rakelib/
|
|
20
|
+
.git* .mailmap appveyor Rakefile Gemfile
|
|
21
|
+
]
|
|
22
|
+
git_files = %w[git ls-files -z --] + excludes.map {|x| ":^/#{x}"}
|
|
23
|
+
spec.files = IO.popen(git_files, chdir: __dir__, &:read).split("\x0")
|
|
24
|
+
spec.bindir = "exe"
|
|
25
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
|
26
|
+
spec.require_paths = ["lib"]
|
|
27
|
+
|
|
28
|
+
spec.add_dependency "fiddle", "~> 1.0"
|
|
29
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: win32-registry
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- U.Nakamura
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-10-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fiddle
|
|
@@ -36,12 +36,13 @@ files:
|
|
|
36
36
|
- README.md
|
|
37
37
|
- lib/win32/registry.rb
|
|
38
38
|
- sig/win32/registry.rbs
|
|
39
|
+
- win32-registry.gemspec
|
|
39
40
|
homepage: https://github.com/ruby/win32-registry
|
|
40
41
|
licenses: []
|
|
41
42
|
metadata:
|
|
42
43
|
homepage_uri: https://github.com/ruby/win32-registry
|
|
43
44
|
source_code_uri: https://github.com/ruby/win32-registry
|
|
44
|
-
post_install_message:
|
|
45
|
+
post_install_message:
|
|
45
46
|
rdoc_options: []
|
|
46
47
|
require_paths:
|
|
47
48
|
- lib
|
|
@@ -57,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
57
58
|
version: '0'
|
|
58
59
|
requirements: []
|
|
59
60
|
rubygems_version: 3.5.11
|
|
60
|
-
signing_key:
|
|
61
|
+
signing_key:
|
|
61
62
|
specification_version: 4
|
|
62
63
|
summary: Provides an interface to the Windows Registry in Ruby
|
|
63
64
|
test_files: []
|