oso-oso 0.2.2 → 0.2.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: ec2b2b33a484c1770041164811415985e0e6c135a3fb03688d40813d0b332772
4
- data.tar.gz: 960bcf13f984e19b359da8da1ac6478702c48d68f1ed9f1150250d0d4d0d1df4
2
+ SHA1:
3
+ metadata.gz: 9e511f86c5a330c1bb071824398085362def8ba7
4
+ data.tar.gz: da3baaad23fb6e28c8ef0558bbf1deb659c03700
5
5
  SHA512:
6
- metadata.gz: 9b49f6a116fb1e542674a19047c16484f8f08a54dda51f83918644abfca808e164e628c164fcfd6ad0b2497549c3192a5a194264b138b018c01adbbea8b38cd7
7
- data.tar.gz: 30d9fe7a3c625c1245140415c010066c21a388f79b5edce8b6376631712f33ca1bfc82f208e10244c6094b671588e6d1448e241bc11377e2b58c5a154b1afa66
6
+ metadata.gz: 9d55c689e8ffc0e3f7b533f54d3e622f77bd7f563182fc7b9dfc047a7a9b1554ed02711fbb8326f55fed76529dde2040d6f829bd4439a63773c9bb58ffb8c8a3
7
+ data.tar.gz: 60b1c8f83803656373a108a64159636292bc91c1840292e7c01ea0c74961533d076ceaa6576010ecdf9dc062bc60c6b112e9900b726db227a322aa52c41f40e0
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oso-oso (0.2.2)
4
+ oso-oso (0.2.5)
5
5
  ffi (~> 1.0)
6
6
 
7
7
  GEM
data/Makefile CHANGED
@@ -1,15 +1,9 @@
1
- CARGO_FLAGS := $(shell [ -z $${RELEASE} ] && echo "" || echo "--all-features --release")
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
- .PHONY: install rust-build test
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-build
6
+ install: rust
13
7
  bundle install
14
8
 
15
9
  test: install
Binary file
Binary file
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Oso
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.5'
5
5
  end
@@ -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.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-17 00:00:00.000000000 Z
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
- rubygems_version: 3.1.4
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.