oso-oso 0.2.2 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile.lock +1 -1
- data/Makefile +3 -9
- 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/ffi.rb +2 -0
- data/lib/oso/version.rb +1 -1
- data/oso-oso.gemspec +3 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9e511f86c5a330c1bb071824398085362def8ba7
|
4
|
+
data.tar.gz: da3baaad23fb6e28c8ef0558bbf1deb659c03700
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d55c689e8ffc0e3f7b533f54d3e622f77bd7f563182fc7b9dfc047a7a9b1554ed02711fbb8326f55fed76529dde2040d6f829bd4439a63773c9bb58ffb8c8a3
|
7
|
+
data.tar.gz: 60b1c8f83803656373a108a64159636292bc91c1840292e7c01ea0c74961533d076ceaa6576010ecdf9dc062bc60c6b112e9900b726db227a322aa52c41f40e0
|
data/Gemfile.lock
CHANGED
data/Makefile
CHANGED
@@ -1,15 +1,9 @@
|
|
1
|
-
|
2
|
-
export CARGO_FLAGS
|
3
|
-
TARGET_DIR := $(shell [ -z $${RELEASE} ] && echo "debug" || echo "release")
|
4
|
-
LIB_EXT := $(shell [ $$(uname) = "Linux" ] && echo "so" || echo "dylib")
|
1
|
+
.PHONY: install rust test
|
5
2
|
|
6
|
-
|
7
|
-
|
8
|
-
rust-build:
|
3
|
+
rust:
|
9
4
|
$(MAKE) -C ../.. rust-build
|
10
|
-
cp ../../target/$(TARGET_DIR)/libpolar.$(LIB_EXT) ext/oso-oso/lib/libpolar.$(LIB_EXT)
|
11
5
|
|
12
|
-
install: rust
|
6
|
+
install: rust
|
13
7
|
bundle install
|
14
8
|
|
15
9
|
test: install
|
Binary file
|
data/ext/oso-oso/lib/libpolar.so
CHANGED
Binary file
|
Binary file
|
data/lib/oso/polar/ffi.rb
CHANGED
@@ -7,6 +7,8 @@ module Oso
|
|
7
7
|
module FFI
|
8
8
|
LIB = ::FFI::Platform::LIBPREFIX + 'polar.' + ::FFI::Platform::LIBSUFFIX
|
9
9
|
LIB_PATH = File.expand_path(File.join(__dir__, "../../../ext/oso-oso/lib/#{LIB}"))
|
10
|
+
# @TODO: Fall back to this if there's no release build libs. Easier for dev.
|
11
|
+
# LIB_PATH = File.expand_path(File.join(__dir__, "../../../../../target/debug/#{LIB}"))
|
10
12
|
|
11
13
|
# Wrapper classes defined upfront to fix Ruby loading issues. Actual
|
12
14
|
# implementations live in the sibling `ffi/` directory and are `require`d
|
data/lib/oso/version.rb
CHANGED
data/oso-oso.gemspec
CHANGED
@@ -17,8 +17,10 @@ Gem::Specification.new do |spec|
|
|
17
17
|
# Specify which files should be added to the gem when it is released.
|
18
18
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
19
19
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
20
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
|
+
files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
|
+
files += Dir['ext/oso-oso/lib/*']
|
21
22
|
end
|
23
|
+
|
22
24
|
spec.bindir = 'exe'
|
23
25
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
26
|
spec.require_paths = ['lib']
|
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.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oso Security
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -113,6 +113,7 @@ files:
|
|
113
113
|
- bin/setup
|
114
114
|
- ext/oso-oso/lib/libpolar.dylib
|
115
115
|
- ext/oso-oso/lib/libpolar.so
|
116
|
+
- ext/oso-oso/lib/polar.dll
|
116
117
|
- lib/oso.rb
|
117
118
|
- lib/oso/http.rb
|
118
119
|
- lib/oso/oso.rb
|
@@ -150,7 +151,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
151
|
- !ruby/object:Gem::Version
|
151
152
|
version: '0'
|
152
153
|
requirements: []
|
153
|
-
|
154
|
+
rubyforge_project:
|
155
|
+
rubygems_version: 2.6.14.4
|
154
156
|
signing_key:
|
155
157
|
specification_version: 4
|
156
158
|
summary: Oso authorization API.
|