oso-oso 0.10.1 → 0.11.0
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 +4 -4
- data/Gemfile.lock +2 -2
- 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/errors.rb +15 -1
- data/lib/oso/version.rb +1 -1
- data/oso-oso.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 45f52887d6f3515e259c69df1d76ffcfbc730a37
|
|
4
|
+
data.tar.gz: 0dc601ceaa2816abdab11991b2e9225de50f1dd1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 15511b3092f37688e52bae8ce82fa43305e3817cb40d8b5975c8983ca996064d2bfe0fec7b0bf9905caebd25861fe502e79910f9feccf88fc4116d57be4d89b5
|
|
7
|
+
data.tar.gz: f224cf6f80af8c4f3a0c9c912081ee7d1acfe3cf92f7f8492fc36d076fa8e80886b45e7d8891008a24065a9cd9f705ad21646f2d80dd9f9d965cc4883fa87d66
|
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/errors.rb
CHANGED
|
@@ -41,7 +41,15 @@ module Oso
|
|
|
41
41
|
class InvalidIteratorError < PolarRuntimeError; end
|
|
42
42
|
class InvalidQueryTypeError < PolarRuntimeError; end
|
|
43
43
|
class NullByteInPolarFileError < PolarRuntimeError; end
|
|
44
|
-
class UnexpectedPolarTypeError < PolarRuntimeError;
|
|
44
|
+
class UnexpectedPolarTypeError < PolarRuntimeError; # rubocop:disable Style/Documentation
|
|
45
|
+
def initialize(tag)
|
|
46
|
+
if tag == 'Expression'
|
|
47
|
+
super(UNEXPECTED_EXPRESSION_MESSAGE)
|
|
48
|
+
else
|
|
49
|
+
super(tag)
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
45
53
|
class InlineQueryFailedError < PolarRuntimeError; # rubocop:disable Style/Documentation
|
|
46
54
|
# @param source [String]
|
|
47
55
|
def initialize(source)
|
|
@@ -91,5 +99,11 @@ module Oso
|
|
|
91
99
|
# Generic Polar API exception.
|
|
92
100
|
class ApiError < Error; end
|
|
93
101
|
class ParameterError < ApiError; end
|
|
102
|
+
|
|
103
|
+
UNEXPECTED_EXPRESSION_MESSAGE = <<~MSG
|
|
104
|
+
Recieved Expression from Polar VM. The Expression type is not yet supported in this language.
|
|
105
|
+
|
|
106
|
+
This may mean you performed an operation in your policy over an unbound variable.
|
|
107
|
+
MSG
|
|
94
108
|
end
|
|
95
109
|
end
|
data/lib/oso/version.rb
CHANGED
data/oso-oso.gemspec
CHANGED
|
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
|
8
8
|
spec.authors = ['Oso Security, Inc.']
|
|
9
9
|
spec.email = ['support@osohq.com']
|
|
10
10
|
spec.licenses = ['Apache-2.0']
|
|
11
|
-
spec.summary = '
|
|
11
|
+
spec.summary = 'Oso authorization library.'
|
|
12
12
|
spec.homepage = 'https://www.osohq.com/'
|
|
13
13
|
|
|
14
14
|
spec.required_ruby_version = Gem::Requirement.new('>= 2.4.0')
|
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.11.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-02-
|
|
11
|
+
date: 2021-02-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ffi
|
|
@@ -173,5 +173,5 @@ rubyforge_project:
|
|
|
173
173
|
rubygems_version: 2.6.14.4
|
|
174
174
|
signing_key:
|
|
175
175
|
specification_version: 4
|
|
176
|
-
summary:
|
|
176
|
+
summary: Oso authorization library.
|
|
177
177
|
test_files: []
|