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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44e39c00b1357fb4ad7ca2643d0e37afdc639ffc2f25593b5d3559f45ad8d71d
4
- data.tar.gz: 883c6117d6ffb389500110875c9ee401ef2a51c056619140ed51acdcc2c97243
3
+ metadata.gz: 1396ebc5ba526e5867f258135cd598509f4d2cb36485b9f23754e720473c325e
4
+ data.tar.gz: 0fd1e2c9aa77f1a90384470ef57f87495a19f90f76fa83974f05eb4603374426
5
5
  SHA512:
6
- metadata.gz: 5588f4e9a212c0eb6a33a97e5ce3c9a9acb56affadd3d3d27e006b153afeb6d8b7c1190989eae371706d9237f45c27b142c269109d6fb042e8bd425fc85eab14
7
- data.tar.gz: 0d2219bc22c02867e133a075351d59f039d96fd5a7b57e380dffdfafde9995de1c5ff0aca75675797b66b3f22ac69249d214ff3a68c53810d0ca89e4a856735a
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
- $ bundle add win32-registry
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
- $ gem install win32-registry
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 backslashs "\\" as path separator.
42
- Forward slashs "/" will not work.
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
 
@@ -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[http://msdn.microsoft.com/library/en-us/sysinfo/base/expandenvironmentstrings.asp] \Win32 \API.
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 predefeined key.
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 contant kind of Win32::Registry::REG_*
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.0
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: 2024-11-08 00:00:00.000000000 Z
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: []