asherah 0.4.10-arm64-darwin → 0.5.0-arm64-darwin

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
  SHA256:
3
- metadata.gz: a6d0c15cc6aa275db41a40014329e26e8bf78b0695f59d870a4caf434ed6d6f6
4
- data.tar.gz: 5b85f88d959107a4edc8fdeb801f6335dde9368821a4d7d2a5d2a41b01103f9c
3
+ metadata.gz: 744232046b8f60e29f5c2e89a795a160498dcccc3ed75e30b6dc9082e3fcc3b5
4
+ data.tar.gz: 588046e4e5bf10b5cfe4c7f866a68fe47c1bea97f10099fea2a59a226eb49264
5
5
  SHA512:
6
- metadata.gz: 92e5f2e2fda3fcf456cdfaca09a46c61b6e4c7a771113444b0d4ca485f4b20ba16331f06f237253ba3fc45cf44e78b2216cc0f340cf2e37a86af78d8b24304eb
7
- data.tar.gz: 21ab8ac14eedf162a9574305a323f8f3a3780ebd8b0233f4d38dd8c2df552f9118976d3583dbc29130abecdf289b1dd7a95d5ba3384f7004b2bc197d3798e378
6
+ metadata.gz: b7247982d0a70e0921ae045429357519cf0bfc209d2121b0755930f9df0bf7c8f2d06470e95aa9172dcd6b921e431d719f07f0cd48f9934d2a03e6f42530e9f1
7
+ data.tar.gz: 7f3dfd08fe4766014466d2320b766cec121f2a5f9ecec4837d80e1352df7ab6320b86e76f2391bcd5d8c5603a0cf4e97df8174eb4681a0d78c109f78ab4ca6c9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.5.0] - 2023-10-16
4
+
5
+ - Upgrade to use asherah-cobhan v0.4.30
6
+ - Expose `test-debug-static` kms type and `test-debug-memory` metastore type to skip warnings in tests
7
+ - Check initialized flag on setup/shutdown and raise appropriate errors
8
+
3
9
  ## [0.4.10] - 2023-08-10
4
10
 
5
11
  - Upgrade to use asherah-cobhan v0.4.25
data/README.md CHANGED
@@ -45,6 +45,8 @@ Asherah.configure do |config|
45
45
  end
46
46
  ```
47
47
 
48
+ See [config.rb](lib/asherah/config.rb) for all evailable configuration options.
49
+
48
50
  Encrypt some data for a `partition_id`
49
51
 
50
52
  ```ruby
@@ -1,5 +1,5 @@
1
- version: v0.4.25
2
- libasherah-arm64.so: 573d4ac89dc54be952b428e4caa52f00861d67fdd94baf2deb0b37a1e40ea5d1
3
- libasherah-x64.so: 9a976b425edcaa27be84314414747c3d4abc22571c9ae8170f476822c2380716
4
- libasherah-arm64.dylib: 73f60860303af81de5f042d50ef755bbac34bae9f966d654036a259161e03f81
5
- libasherah-x64.dylib: a0e0c5c69278602cd19889df9b86795baf957cdaa4635c413c81d06b59572ec4
1
+ version: v0.4.30
2
+ libasherah-arm64.so: cb0985cd8f5d2c2ceac0e874e3f5b1276a9b2145c6274f9c7ccf80ddd7a5f469
3
+ libasherah-x64.so: a91d0703a569941a38c3fdd6c1320904b47e3592fa9b9164f43704e5f4a1dda9
4
+ libasherah-arm64.dylib: 8bac6d3a2a255553e7d1460f9e56a81d4ee7055e7f44f8f1a65cb6d584eabf6e
5
+ libasherah-x64.dylib: b264dc01ac6ac4ae6ae9dad8cab1f69ed887cca3e4ea0798ea572b444578e2c8
@@ -43,8 +43,8 @@ module Asherah
43
43
  verbose: :Verbose
44
44
  }.freeze
45
45
 
46
- KMS_TYPES = ['static', 'aws'].freeze
47
- METASTORE_TYPES = ['rdbms', 'dynamodb', 'memory'].freeze
46
+ KMS_TYPES = ['static', 'aws', 'test-debug-static'].freeze
47
+ METASTORE_TYPES = ['rdbms', 'dynamodb', 'memory', 'test-debug-memory'].freeze
48
48
 
49
49
  attr_accessor(*MAPPING.keys)
50
50
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Asherah
4
- VERSION = '0.4.10'
4
+ VERSION = '0.5.0'
5
5
  end
data/lib/asherah.rb CHANGED
@@ -44,6 +44,8 @@ module Asherah
44
44
  # @yield [Config]
45
45
  # @return [void]
46
46
  def configure
47
+ raise Asherah::Error::AlreadyInitialized if @initialized
48
+
47
49
  config = Config.new
48
50
  yield config
49
51
  config.validate!
@@ -53,6 +55,7 @@ module Asherah
53
55
 
54
56
  result = SetupJson(config_buffer)
55
57
  Error.check_result!(result, 'SetupJson failed')
58
+ @initialized = true
56
59
  end
57
60
 
58
61
  # Encrypts data for a given partition_id and returns DataRowRecord in JSON format.
@@ -104,7 +107,10 @@ module Asherah
104
107
 
105
108
  # Stop the Asherah instance
106
109
  def shutdown
110
+ raise Asherah::Error::NotInitialized unless @initialized
111
+
107
112
  Shutdown()
113
+ @initialized = false
108
114
  end
109
115
 
110
116
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asherah
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.10
4
+ version: 0.5.0
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - GoDaddy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-10 00:00:00.000000000 Z
11
+ date: 2023-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cobhan