evervault 1.2.0 → 1.3.1

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: 55a549b875f2600cd9de284bdb68f304f4eb89648f133a8cbdbe1a939e074e47
4
- data.tar.gz: b9513f5951c014666e2084002cdb980dfb6d3f9f53053b4423802c2d1454e513
3
+ metadata.gz: 291427781e97ac0ab65b8613c8e0f5255244c72ec826fb7cb0dc787c0931624f
4
+ data.tar.gz: bc8bae94e62c9ffb65bb81bd14e1d3bc576c6f083e37c4f23bb6a0bf20ef1d4b
5
5
  SHA512:
6
- metadata.gz: 9debf55ef13bc0960edd10b5560fec41ef31b81aa442e4639e78ea2e00c07af024a95b554e972f7cbc17fe00b5c22c5a1ed53fc7a769685f388eb945439fc36c
7
- data.tar.gz: 3dc9c66c55e519156c7c5d046027f5b0a6273494c72d0a644242d518b7b9140b2c6fab16754d8eaec9612087669f9bd2db26436f3af432e75a91ce493833f95e
6
+ metadata.gz: 913ed8d651d680952deff0d635f4b3fc304b1154100093b7f8c40a8314fbcbfae4a1a5b1ae575cbc4e01f144917adf989601b45d81544835c9d28344ea66cac6
7
+ data.tar.gz: 658289523da203f6b7cac915bc410efe6e107b736badf548367bc05183c89dd3a2c0d7f168f14842bc298b833bfd831efe0ae3bfebbc43821c52607f37d8deff
@@ -46,7 +46,7 @@ module Evervault
46
46
  end
47
47
  end
48
48
 
49
- def create_run_token(function_name, data)
49
+ def create_run_token(function_name, data = {})
50
50
  @request_handler.post("v2/functions/#{function_name}/run-token", data)
51
51
  end
52
52
  end
@@ -1,4 +1,4 @@
1
1
  module Evervault
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.1"
3
3
  EV_VERSION = {"prime256v1" => "NOC", "secp256k1" => "DUB"}
4
4
  end
data/lib/evervault.rb CHANGED
@@ -6,8 +6,20 @@ module Evervault
6
6
  class << self
7
7
  attr_accessor :api_key
8
8
 
9
- def method_missing(method, *args, &block)
10
- client.send(method, *args, &block)
9
+ def encrypt(data)
10
+ client.encrypt(data)
11
+ end
12
+
13
+ def run(function_name, encrypted_data, options = {})
14
+ client.run(function_name, encrypted_data, options)
15
+ end
16
+
17
+ def enable_outbound_relay(decryption_domains = nil)
18
+ client.enable_outbound_relay(decryption_domains)
19
+ end
20
+
21
+ def create_run_token(function_name, data = {})
22
+ client.create_run_token(function_name, data)
11
23
  end
12
24
 
13
25
  private def client
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evervault
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonny O'Mahony
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-08 00:00:00.000000000 Z
11
+ date: 2023-03-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: