easy_io 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d46961a39a7863a0280667c35b02284d8ca3b7bcd735f88e44c3dffb8b2b15c4
4
- data.tar.gz: b3a4cead726774f3a652e752e82557fc46c495d09d7ba6d61c0edd5e334367f5
3
+ metadata.gz: 2c000857d73c6af588e9628d5d650f05228bd4dc1a4f6345c4f49b2554aea9f1
4
+ data.tar.gz: 30083c8699ece00b37669210f78abd9509134bcfc58a084d88d8356205bc5140
5
5
  SHA512:
6
- metadata.gz: 748cf34c8bb70f806f59d73699002f926038bd3a4329d400969d3c4a90627101ba0c95eb44d6a2269eab22b3b880676eebad782fc72a0ed906284fe91cd0ee47
7
- data.tar.gz: 9b256811b2114bf57c8001a9d65e9ea4988d9ac242ca49a128017fe3c000bae3026611236d72657b7472a79fee043e0b27051ee55d51aace8595068afab76e8c
6
+ metadata.gz: 595515c0bc933c1a5f6634f7bec878e574998c0ecef0b409666170eeedfc35b1bfa82661ec1ff9087b293c02bfaa512db56cf8fd77dfdf0f4dccdd8be2607998
7
+ data.tar.gz: ee65e5a8b3208f99b645515db88e82ae634dfa68e2cb905b9ac237a7fe3ae9a6ebfd6abaf222f035b1bdcd3dcf51da01830e5ece4c49a72ddca0d33381f2dd09
@@ -7,7 +7,7 @@ module EasyIO
7
7
  end
8
8
 
9
9
  def key_exists?(path)
10
- Win32::Registry::HKEY_LOCAL_MACHINE.open(path, ::Win32::Registry::KEY_READ)
10
+ ::Win32::Registry::HKEY_LOCAL_MACHINE.open(path, ::Win32::Registry::KEY_READ)
11
11
  true
12
12
  rescue
13
13
  false
data/lib/easy_io.rb CHANGED
@@ -24,9 +24,7 @@ require 'tmpdir'
24
24
  require 'os'
25
25
  require 'digest'
26
26
  require 'sys/filesystem'
27
- if OS.windows?
28
- require 'win32/registry'
29
- end
27
+ require 'win32/registry' if OS.windows? && !defined?(::Win32::Registry)
30
28
 
31
29
  require_relative 'easy_io/config'
32
30
  require_relative 'easy_io/disk'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_io
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Munoz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-06 00:00:00.000000000 Z
11
+ date: 2022-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: easy_format