oso-oso 0.15.0 → 0.20.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/oso/polar.rb CHANGED
@@ -10,6 +10,7 @@ require 'oso/polar/predicate'
10
10
  require 'oso/polar/query'
11
11
  require 'oso/polar/query_event'
12
12
  require 'oso/polar/variable'
13
+ require 'oso/polar/data_filtering'
13
14
 
14
15
  module Oso
15
16
  # Top-level namespace for Polar language library.
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.15.0'
4
+ VERSION = '0.20.1'
5
5
  end
data/lib/oso.rb CHANGED
@@ -1,12 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'oso/oso'
4
+ require 'oso/errors'
4
5
  require 'oso/polar'
5
6
  require 'oso/version'
6
7
 
7
- # Top-level namespace for oso authorization library.
8
+ # Top-level namespace for Oso authorization library.
8
9
  module Oso
9
- def self.new
10
- ::Oso::Oso.new
10
+ def self.new(not_found_error: NotFoundError, forbidden_error: ForbiddenError, read_action: 'read')
11
+ ::Oso::Oso.new(not_found_error: not_found_error, forbidden_error: forbidden_error, read_action: read_action)
11
12
  end
12
13
  end
data/oso-oso.gemspec CHANGED
@@ -31,10 +31,12 @@ Gem::Specification.new do |spec|
31
31
  spec.add_runtime_dependency 'ffi', '~> 1.0'
32
32
 
33
33
  # Development dependencies
34
+ spec.add_development_dependency 'activerecord'
34
35
  spec.add_development_dependency 'pry-byebug', '~> 3.9.0'
35
36
  spec.add_development_dependency 'rake', '~> 12.0'
36
37
  spec.add_development_dependency 'rspec', '~> 3.0'
37
38
  spec.add_development_dependency 'rubocop', '~> 0.89.1'
38
39
  spec.add_development_dependency 'solargraph', '~> 0.39.14'
40
+ spec.add_development_dependency 'sqlite3'
39
41
  spec.add_development_dependency 'yard', '~> 0.9.25'
40
42
  end
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.15.0
4
+ version: 0.20.1
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-08-13 00:00:00.000000000 Z
11
+ date: 2021-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activerecord
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: pry-byebug
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +108,20 @@ dependencies:
94
108
  - - "~>"
95
109
  - !ruby/object:Gem::Version
96
110
  version: 0.39.14
111
+ - !ruby/object:Gem::Dependency
112
+ name: sqlite3
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
97
125
  - !ruby/object:Gem::Dependency
98
126
  name: yard
99
127
  requirement: !ruby/object:Gem::Requirement
@@ -130,8 +158,10 @@ files:
130
158
  - ext/oso-oso/lib/libpolar.so
131
159
  - ext/oso-oso/lib/polar.dll
132
160
  - lib/oso.rb
161
+ - lib/oso/errors.rb
133
162
  - lib/oso/oso.rb
134
163
  - lib/oso/polar.rb
164
+ - lib/oso/polar/data_filtering.rb
135
165
  - lib/oso/polar/errors.rb
136
166
  - lib/oso/polar/expression.rb
137
167
  - lib/oso/polar/ffi.rb