machineid 1.0.1 → 1.0.2

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: 1f8693bea98f4a9a11e79255e60da77722375fe6b5c8a05295a8086436e76844
4
- data.tar.gz: c7812e9414d17c373ea5c52dee877a803e7e2760eca63497c62c1984346119bc
3
+ metadata.gz: 857b85b7caca14b7a095ec98c9928dad56137e77da3301ce15df68b415e4b23d
4
+ data.tar.gz: b71d8a1dfc4f70639f0a8d97a9b19eb99f00d4db866a987ce962b3f04a2ef49d
5
5
  SHA512:
6
- metadata.gz: c803dc7ba5157153f52ecb09f09c3578059ddb4f88196592b0427c92e5c6fcd8eb64f22854b6e9bae855f8c33bd6e393199faf6ee6147994b3d37907619c3ae6
7
- data.tar.gz: 0e8c09a9ba9c5fd456a421e3a44b446f8ffe3d2fb1422e5c4b9bc055541f751a0f6f3f17200b8d7011d96821f46e729107009616b5761fac42b2aa66956043fc
6
+ metadata.gz: 331461a4d41a000138cb5c898bcaac3b17bd968efab5d1e8faaa79d0a3adec98b40784624124cf61291b26cf6c2f3a80c099ee4499de2036b2db95673f31cc6d
7
+ data.tar.gz: '048d352970ffa67f1477e6ffe6d803fab22139167d0a13c52effc17b80509865e9ffd103663448a3ac2d9e260b00e2d6c1d8d84821ac35a63f6c7e919b1f2269'
@@ -1,3 +1,3 @@
1
1
  module MachineID
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
data/lib/machineid.rb CHANGED
@@ -58,11 +58,11 @@ module MachineID
58
58
  if self.mac?
59
59
  result.split('IOPlatformUUID')[1].split("\n")[0].gsub(/\=|\s+|\"/i, '')
60
60
  elsif self.windows?
61
- result.split('REG_SZ')[1].replace(/\r+|\n+|\s+/i, '')
61
+ result.split('REG_SZ')[1].gsub(/\r+|\n+|\s+/i, '')
62
62
  elsif self.linux?
63
- result.replace(/\r+|\n+|\s+/i, '')
63
+ result.gsub(/\r+|\n+|\s+/i, '')
64
64
  elsif self.bsd?
65
- result.replace(/\r+|\n+|\s+/i, '')
65
+ result.gsub(/\r+|\n+|\s+/i, '')
66
66
  else
67
67
  'Platform not supported. Please report your platform and architecture in a new Github issue'
68
68
  exit(1)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: machineid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleem Isiaka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-16 00:00:00.000000000 Z
11
+ date: 2022-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip