contrast-agent-lib 0.1.1 → 0.1.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: c11ea8c56731ecddea31d1a313c89d255a29d92b6402eb9b8bafb87d4e99eb1e
4
- data.tar.gz: 8061ccf26b37af4f38b31c7dfa0de84140cacde4b93aa5021ae26619c5d9b00f
3
+ metadata.gz: b925fd5f5ea122270a496c35bd2f42a79e52649a3225951c2b15c759acfeabc2
4
+ data.tar.gz: 483c20b4c47eeb729437d1a13e68de51f79d56addbcc67b46770464f07d7a191
5
5
  SHA512:
6
- metadata.gz: e14c613abf66b81c95016f6b51ac3910007acc22d374678e9c06577c05cab0e15751a00aad2beea990d220532def48b45ee69b52cb15ce02ba30e3f9cb91d89b
7
- data.tar.gz: d8daefc635c0e5fc4c655235e5e9a999610a755f5d542151cc85e06056c7d4f8e2fa89fdd2ee54f61a0fb055e5f2e87f1b234d4389dba4725b6f210daec32478
6
+ metadata.gz: 330f34fd95c3aa406c5d362f6ab560df495cd865f615a9665f7a413ae7b57ca397d8feaa4b6454792305a2a5fa40740fa07165fabe5fab08ded465b0b4d6b1e5
7
+ data.tar.gz: 434401f7eedcc6152b379046c8623d93a4baefafdbd6c8874c68fff0e5cdcbedce233b4c40bc7d0bf924a70cc74e6b1245a0cbf31cbfac99353de8ef7d54020e
data/lib/utils/os.rb CHANGED
@@ -26,11 +26,10 @@ module ContrastAgentLib
26
26
  end
27
27
 
28
28
  def alpine?
29
- os_release = File.open("./etc/os-release")
30
- linux? && os_release.include?("alpine")
31
- rescue
29
+ return true if File.exist?("/etc/alpine-release")
30
+
32
31
  false
33
32
  end
34
33
  end
35
34
  end
36
- end
35
+ end
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contrast-agent-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - teodor.raychev@contrastsecurity.com
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2022-07-14 00:00:00.000000000 Z
15
+ date: 2022-07-20 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: ffi