oso-oso 0.24.0 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/ext/oso-oso/lib/libpolar.dylib +0 -0
- data/ext/oso-oso/lib/libpolar.so +0 -0
- data/ext/oso-oso/lib/polar.dll +0 -0
- data/lib/oso/polar/data/adapter/active_record_adapter.rb +2 -1
- data/lib/oso/polar/host.rb +12 -1
- data/lib/oso/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c65ea3a330a9a56b2ac4e58594e379409f6a4617
|
4
|
+
data.tar.gz: 51cbba24a5b9f529df29a059f1cfe0230c50d36a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 324927c416971e4a1b8baa5eebb19b1c155b0f66607277ca416482d1e2e588ed44efe8a05824cf939fe85bb13b8bbf400769c1f979b0bdf5865b8630123c4d53
|
7
|
+
data.tar.gz: 4437ddc46fbcf28ade62f9537fcdb180cea4b7ceb11c065bb94ed9e3868c61276dbd9e9e107d7d61a4dc25e40d7ef52551bdb493a36b7a27f63e9a2c70dc157f
|
data/Gemfile.lock
CHANGED
Binary file
|
data/ext/oso-oso/lib/libpolar.so
CHANGED
Binary file
|
data/ext/oso-oso/lib/polar.dll
CHANGED
Binary file
|
data/lib/oso/polar/host.rb
CHANGED
@@ -320,7 +320,18 @@ module Oso
|
|
320
320
|
else
|
321
321
|
instance_id = nil
|
322
322
|
instance_id = types[value].id if value.is_a?(Class) && types.key?(value)
|
323
|
-
|
323
|
+
|
324
|
+
# only pass class_repr for registered types
|
325
|
+
class_repr = nil
|
326
|
+
class_repr = value.class.to_s if types.key?(value.class)
|
327
|
+
|
328
|
+
{
|
329
|
+
'ExternalInstance' => {
|
330
|
+
'instance_id' => cache_instance(value, id: instance_id),
|
331
|
+
'repr' => nil,
|
332
|
+
'class_repr' => class_repr
|
333
|
+
}
|
334
|
+
}
|
324
335
|
end
|
325
336
|
{ 'value' => value }
|
326
337
|
end
|
data/lib/oso/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oso-oso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.25.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oso Security, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|