oso-oso 0.10.1 → 0.12.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
  SHA1:
3
- metadata.gz: 7231b9947d6b0b1b11f169d3350125de20549015
4
- data.tar.gz: 1b56294720405d47d539b27da23f3de49f213970
3
+ metadata.gz: 43b8fcb1b6f7b5f30fb8d4bd217140b06789d99b
4
+ data.tar.gz: f536f2974f2459dff0344164ebd6a79f0e76cdc1
5
5
  SHA512:
6
- metadata.gz: 15e4248ede8037bf1803abd40025e8e01aedce22cedc2f0a3bcae66ee0c1d013471a5a985d3a005325a9a1cbad31bdeb6378b60d5cb422a292621859b0576f71
7
- data.tar.gz: 385e8f5b942c48bcb172afe63d44251bb258ebd67c0bad5885165de7244542e9706f306e515d92548de5a0a7dae50b4b2a72bd6a77a12cac3fab871254d59f5d
6
+ metadata.gz: 263e4d22682b348fa76fa20c1c9d6a13d35a3b1105aa8eaf500bc8043a1657bf30008c29810e60e2ee9789afd5eef462a12b3ac439ce264b1713c5e9cf0859e0
7
+ data.tar.gz: e08be138351f848f6d8874e17cef1f609185c45e7b34a1b5e736f9c9a20588a6fddb38e477de35f8ebc936c043d50bb1ba88fb84d22c5367378f6a294cb62ada
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oso-oso (0.10.1)
4
+ oso-oso (0.12.0)
5
5
  ffi (~> 1.0)
6
6
 
7
7
  GEM
@@ -14,7 +14,7 @@ GEM
14
14
  coderay (1.1.3)
15
15
  diff-lcs (1.4.4)
16
16
  e2mmap (0.1.0)
17
- ffi (1.14.2)
17
+ ffi (1.15.0)
18
18
  jaro_winkler (1.5.4)
19
19
  maruku (0.7.3)
20
20
  method_source (1.0.0)
@@ -93,4 +93,4 @@ DEPENDENCIES
93
93
  yard (~> 0.9.25)
94
94
 
95
95
  BUNDLED WITH
96
- 2.1.4
96
+ 2.2.4
Binary file
Binary file
Binary file
@@ -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; end
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Oso
4
- VERSION = '0.10.1'
4
+ VERSION = '0.12.0'
5
5
  end
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 = 'oso authorization library.'
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.10.1
4
+ version: 0.12.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-02 00:00:00.000000000 Z
11
+ date: 2021-04-14 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: oso authorization library.
176
+ summary: Oso authorization library.
177
177
  test_files: []