evervault 0.1.0 → 0.1.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: 0e83fca85d13b65463d59ce895338341fc504f961f148bb674df43412896f621
4
- data.tar.gz: 7737c63198b95422dde627271577ec1b16428604b680751b016062cd6cee8b7c
3
+ metadata.gz: e94804544d442e809f5a381a6e650091afd686aea080f54edf50c10ed0c3751b
4
+ data.tar.gz: 2aa82fb3c03cdd1424b13392165c135d3607401c9f8b2532c4fa1d12044f4046
5
5
  SHA512:
6
- metadata.gz: e3d1977f9f8350c320ec115311f42671c00b360dd9623a3a2e8f3e769ed7b1b6576eeb5db5b0b7140557a627927e542a3cb6c3375ecad813a1515dd2b4ec2646
7
- data.tar.gz: c5b31592a06d3dacb5cc1225cfc69fba44d88757e8c28f0209787a9641a0c0b6b99f6bf5b45b01031bbe91e823ae8bebda340f871b476ad498094f0229dab11d
6
+ metadata.gz: b84446fc0f2e3a2e0f9b5505934060d4483bf1e0452b0e0b14cb1befc871a43ba1835d4fe985e7144bda8be5162914e334e2fc425e7b1d77a80a3b7c98e7b725
7
+ data.tar.gz: 4891c7eb1bd66ff1677fa56a403b60763bfce49c7e4e10e5bae56a5828132d831ac51972c0e4a43877bbca4c483c674e4ac0456ee2449b04429218666acde9da
@@ -0,0 +1,20 @@
1
+ name: Publish Gem
2
+
3
+ on: [push]
4
+
5
+
6
+ jobs:
7
+
8
+ build:
9
+ runs-on: ubuntu-latest
10
+
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+ - uses: ruby/setup-ruby@v1
14
+ with:
15
+ ruby-version: 2.7
16
+ - name: Release Gem
17
+ run: ./scripts/release.sh
18
+ env:
19
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
20
+ RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
@@ -1,9 +1,5 @@
1
- name: Run test matrix
2
- on:
3
- push:
4
- branches:
5
- - "**"
6
- - "!master"
1
+ name: evervault-unit-tests
2
+ on: [push]
7
3
 
8
4
  jobs:
9
5
  test:
data/Gemfile CHANGED
@@ -8,3 +8,4 @@ gem "rspec", "~> 3.0"
8
8
  gem "pry"
9
9
  gem "typhoeus"
10
10
  gem "webmock"
11
+ gem "gem-release"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- evervault (0.1.0)
4
+ evervault (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -14,6 +14,7 @@ GEM
14
14
  ethon (0.12.0)
15
15
  ffi (>= 1.3.0)
16
16
  ffi (1.13.1)
17
+ gem-release (2.2.0)
17
18
  hashdiff (1.0.1)
18
19
  method_source (1.0.0)
19
20
  pry (0.13.1)
@@ -46,6 +47,7 @@ PLATFORMS
46
47
 
47
48
  DEPENDENCIES
48
49
  evervault!
50
+ gem-release
49
51
  pry
50
52
  rake (~> 12.0)
51
53
  rspec (~> 3.0)
data/README.md CHANGED
@@ -1,12 +1,18 @@
1
1
  # Evervault
2
+ <p align="center">
3
+ <img src="res/logo.svg">
4
+ </p>
2
5
 
3
- Ruby SDK for [Evervault](https://evervault.com)
6
+ <p align="center">
7
+ <a href="https://github.com/evervault/evervault-ruby/actions?query=workflow%3Aevervault-unit-tests"><img alt="Evervault unit tests status" src="https://github.com/evervault/evervault-ruby/workflows/evervault-unit-tests/badge.svg"></a>
8
+ </p>
4
9
 
5
- ## Getting Started
6
10
 
11
+ ## Getting Started
12
+ Ruby SDK for [Evervault](https://evervault.com)
7
13
  ### Prerequisites
8
14
 
9
- To get started with the Evervault Python SDK, you will need to have created a team on the evervault dashboard.
15
+ To get started with the Evervault Ruby SDK, you will need to have created a team on the evervault dashboard.
10
16
 
11
17
  We are currently in invite-only early access. You can apply for early access [here](https://evervault.com).
12
18
 
@@ -55,7 +61,7 @@ result = evervault.encrypt_and_run(<CAGE-NAME>, { hello: 'World!' })
55
61
 
56
62
  ## API Reference
57
63
 
58
- ### evervault.encrypt
64
+ ### Evervault.encrypt
59
65
 
60
66
  Encrypt lets you encrypt data for use in any of your evervault cages. You can use it to store encrypted data to be used in a cage at another time.
61
67
 
@@ -67,7 +73,7 @@ Evervault.encrypt(data = Hash | String)
67
73
  | --------- | ---- | ----------- |
68
74
  | data | Hash or String | Data to be encrypted |
69
75
 
70
- ### evervault.run
76
+ ### Evervault.run
71
77
 
72
78
  Run lets you invoke your evervault cages with a given payload.
73
79
 
@@ -80,7 +86,7 @@ Evervault.run(cage_name = String, data = Hash)
80
86
  | cageName | String | Name of the cage to be run |
81
87
  | data | Hash | Payload for the cage |
82
88
 
83
- ### evervault.encryptAndRun
89
+ ### Evervault.encrypt_and_run
84
90
 
85
91
  Encrypt your data and use it as the payload to invoke the cage.
86
92
 
@@ -93,7 +99,7 @@ Evervault.encrypt_and_run(cage_name = String, data = Hash)
93
99
  | cageName | String | Name of the cage to be run |
94
100
  | data | dict | Data to be encrypted |
95
101
 
96
- ### evervault.cages
102
+ ### Evervault.cages
97
103
 
98
104
  Return a hash of your team's Cage objects in hash format, with cage-name as keys
99
105
 
@@ -121,7 +127,7 @@ Evervault.cages
121
127
  @uuid="55986772-4db7-4695-ba44-1b807290ddea">}
122
128
  ```
123
129
 
124
- ### evervault.cage_list
130
+ ### Evervault.cage_list
125
131
 
126
132
  Return a `CageList` object, containing a list of your team's cages
127
133
 
@@ -35,6 +35,7 @@ module Evervault
35
35
  end
36
36
 
37
37
  def execute(method, url, params)
38
+ Typhoeus::Config.user_agent = "evervault-ruby/#{VERSION}"
38
39
  req =
39
40
  Typhoeus::Request.new(
40
41
  url,
@@ -57,7 +58,6 @@ module Evervault
57
58
 
58
59
  private def build_headers
59
60
  {
60
- "User-Agent": "evervault-ruby/#{VERSION}",
61
61
  "AcceptEncoding": "gzip, deflate",
62
62
  "Accept": "application/json",
63
63
  "Content-Type": "application/json",
@@ -1,3 +1,3 @@
1
1
  module Evervault
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -0,0 +1,7 @@
1
+ <svg width="198" height="48" viewBox="0 0 198 48" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M58.249 15.7406C65.5095 15.7406 66.9162 21.5054 66.9162 24.592C66.9162 25.8597 66.9162 27.3798 65.2954 27.4907L65.1011 27.4971H51.8507C51.8507 31.9909 54.4372 34.896 58.7028 34.896C61.3347 34.896 62.8775 33.8974 64.1481 32.9442C64.4204 32.7626 64.6019 32.6718 64.9649 32.6718C65.691 32.6718 66.2809 33.2619 66.2809 33.9882C66.2809 34.4875 66.054 34.7598 65.7817 35.0322C65.1011 35.7131 62.7414 37.5741 58.7028 37.5741C52.6675 37.5741 48.9011 34.2605 48.9011 26.6347C48.9011 19.6443 52.3498 15.7406 58.249 15.7406ZM94.7329 15.7406C101.993 15.7406 103.4 21.5054 103.4 24.592C103.4 25.8597 103.4 27.3798 101.779 27.4907L101.585 27.4971H88.3346C88.3346 31.9909 90.9211 34.896 95.1867 34.896C97.8186 34.896 99.3614 33.8974 100.632 32.9442C100.904 32.7626 101.086 32.6718 101.449 32.6718C102.175 32.6718 102.765 33.2619 102.765 33.9882C102.765 34.4875 102.538 34.7598 102.266 35.0322C101.585 35.7131 99.2253 37.5741 95.1867 37.5741C89.1514 37.5741 85.385 34.2605 85.385 26.6347C85.385 19.6443 88.8337 15.7406 94.7329 15.7406ZM144.149 15.7406C149.301 15.7406 152.193 18.6973 152.314 23.1638L152.318 23.4572V35.94C152.318 36.7117 151.682 37.3472 150.911 37.3472C150.188 37.3472 149.584 36.7886 149.511 36.083L149.504 35.94V34.3059C148.37 36.4393 145.738 37.5741 143.015 37.5741C138.205 37.5741 135.165 35.2592 135.165 31.0831C135.165 27.1794 138.068 24.793 142.775 24.6865L143.106 24.6828H149.504V23.4572C149.504 20.3706 147.462 18.4641 144.149 18.4641C141.744 18.4641 140.292 19.1904 138.886 20.7791C138.432 21.2784 138.114 21.4146 137.706 21.4146C136.98 21.4146 136.39 20.8245 136.39 20.0982C136.39 19.7805 136.481 19.5535 136.617 19.3266C137.887 17.3293 140.338 15.7406 144.149 15.7406ZM170.514 16.013C171.237 16.013 171.841 16.5715 171.914 17.3145L171.921 17.4655V29.3128C171.921 33.625 170.514 37.5741 163.481 37.5741C156.617 37.5741 155.094 33.7648 155.042 29.5435L155.04 29.3128V17.4655C155.04 16.6485 155.676 16.013 156.492 16.013C157.216 16.013 157.859 16.5715 157.937 17.3145L157.944 17.4655V29.3128C157.944 32.2633 158.897 34.8052 163.481 34.8052C167.96 34.8052 168.971 32.3775 169.015 29.5133L169.017 29.3128V17.4655C169.017 16.6485 169.697 16.013 170.514 16.013ZM83.8875 16.013C84.7043 16.013 85.3396 16.6485 85.3396 17.4655C85.3396 17.7303 85.2766 17.9005 85.2293 18.0287L85.2035 18.101L77.4893 36.4393C77.217 37.0294 76.7178 37.3472 76.1279 37.3472C75.5916 37.3472 75.1303 37.0846 74.8463 36.5935L74.7666 36.4393L67.0523 18.101C67.0069 17.9648 66.9162 17.7833 66.9162 17.4655C66.9162 16.6485 67.5515 16.013 68.3683 16.013C69.1223 16.013 69.4896 16.4384 69.6844 16.8609L69.7296 16.9662L76.1279 32.6264L82.5262 16.9662C82.7077 16.5123 83.0707 16.013 83.8875 16.013ZM114.835 15.8314C115.607 15.8314 116.242 16.4669 116.242 17.2385C116.242 18.0102 115.607 18.6457 114.835 18.6457C110.758 18.6457 108.628 21.4172 108.531 25.4376L108.528 25.7268V35.8946C108.528 36.7117 107.892 37.3472 107.076 37.3472C106.31 37.3472 105.704 36.7886 105.631 36.0456L105.624 35.8946V17.4655C105.624 16.6485 106.259 16.013 107.076 16.013C107.841 16.013 108.448 16.5715 108.52 17.3145L108.528 17.4655V19.4628C109.435 17.3747 111.704 15.8314 114.835 15.8314ZM134.15 16.013C134.967 16.013 135.602 16.6485 135.602 17.4655C135.602 17.7303 135.539 17.9005 135.492 18.0287L135.466 18.101L127.752 36.4393C127.48 37.0294 126.981 37.3472 126.391 37.3472C125.854 37.3472 125.393 37.0846 125.109 36.5935L125.029 36.4393L117.315 18.101C117.27 17.9648 117.179 17.7833 117.179 17.4655C117.179 16.6485 117.814 16.013 118.631 16.013C119.385 16.013 119.752 16.4384 119.947 16.8609L119.992 16.9662L126.391 32.6264L132.789 16.9662C132.97 16.5123 133.333 16.013 134.15 16.013ZM176.549 4.66498C177.315 4.66498 177.921 5.26341 177.994 5.97404L178.001 6.11752V32.0363C178.001 33.852 178.591 34.6237 179.817 34.6237C180.543 34.6237 181.178 35.2138 181.178 35.9854C181.178 36.7571 180.543 37.3472 179.817 37.3472C176.868 37.3472 175.2 35.6399 175.102 32.3494L175.097 32.0363V6.11752C175.097 5.34586 175.778 4.66498 176.549 4.66498ZM185.353 10.1574C186.118 10.1574 186.725 10.7558 186.797 11.4665L186.805 11.6099V16.3761H189.754C190.526 16.3761 191.116 16.9662 191.116 17.7379C191.116 18.4581 190.602 19.0201 189.906 19.0919L189.754 19.0996H186.805V31.6278C186.805 33.5797 187.894 34.6237 189.437 34.6237C190.208 34.6237 190.843 35.2138 190.843 35.9854C190.843 36.7571 190.208 37.3472 189.437 37.3472C185.951 37.3472 184.01 35.0732 183.905 31.9018L183.901 31.6278V19.0996H182.131C181.359 19.0996 180.77 18.5095 180.77 17.7379C180.77 17.0176 181.283 16.4556 181.979 16.3838L182.131 16.3761H183.901V11.6099C183.901 10.8383 184.581 10.1574 185.353 10.1574ZM149.504 27.2248H143.106C140.156 27.2248 138.114 28.4504 138.114 31.0831C138.114 33.4435 139.748 34.9414 143.287 34.9414C146.382 34.9414 149.348 33.0884 149.498 29.4243L149.504 29.1312V27.2248ZM58.249 18.3733C54.4023 18.3733 52.2358 20.7866 51.8754 24.6474L51.8507 24.9552H64.0574C64.0574 21.687 62.9229 18.3733 58.249 18.3733ZM94.7329 18.3733C90.8862 18.3733 88.7197 20.7866 88.3593 24.6474L88.3346 24.9552H100.541C100.541 21.687 99.4068 18.3733 94.7329 18.3733Z" fill="#6633EE"/>
3
+ <path d="M32.4625 39.2328C30.273 40.9105 27.4789 42.75 24 42.75C13.2 42.75 9 31.5 9 25.5V13.809C9 13.6196 9.107 13.4465 9.27639 13.3618L23.7764 6.1118C23.9172 6.04142 24.0828 6.04142 24.2236 6.1118L38.7236 13.3618C38.893 13.4465 39 13.6196 39 13.809V25.5C39 27.9802 38.2824 31.2293 36.6775 34.1878" stroke="#6633EE" stroke-width="3" stroke-linecap="round"/>
4
+ <circle cx="16.5" cy="19.5" r="2.25" fill="#6633EE"/>
5
+ <circle cx="31.5" cy="19.5" r="2.25" fill="#6633EE"/>
6
+ <path d="M16.5 31.5L22.1336 36.4294C22.3375 36.6078 22.6465 36.5913 22.8302 36.3922L31.5 27" stroke="#6633EE" stroke-width="3" stroke-linecap="round"/>
7
+ </svg>
Binary file
@@ -0,0 +1,18 @@
1
+ echo "Setting up gem credentials..."
2
+ set +x
3
+ mkdir -p ~/.gem
4
+
5
+ cat << EOF > ~/.gem/credentials
6
+ ---
7
+ :github: Bearer ${GITHUB_TOKEN}
8
+ :rubygems_api_key: ${RUBYGEMS_API_KEY}
9
+ EOF
10
+
11
+ chmod 0600 ~/.gem/credentials
12
+ set -x
13
+
14
+ echo "Installing dependencies..."
15
+ bundle install
16
+
17
+ echo "Running gem release task..."
18
+ gem release evervault -k rubygems
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: 0.1.0
4
+ version: 0.1.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: 2020-10-22 00:00:00.000000000 Z
11
+ date: 2020-10-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -17,6 +17,7 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - ".github/workflows/release.yml"
20
21
  - ".github/workflows/run-tests.yml"
21
22
  - ".gitignore"
22
23
  - ".rspec"
@@ -38,6 +39,9 @@ files:
38
39
  - lib/evervault/models/cage.rb
39
40
  - lib/evervault/models/cage_list.rb
40
41
  - lib/evervault/version.rb
42
+ - res/logo.svg
43
+ - res/logo512.png
44
+ - scripts/release.sh
41
45
  homepage: https://evervault.com
42
46
  licenses:
43
47
  - MIT
@@ -59,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
63
  - !ruby/object:Gem::Version
60
64
  version: '0'
61
65
  requirements: []
62
- rubygems_version: 3.1.2
66
+ rubygems_version: 3.1.4
63
67
  signing_key:
64
68
  specification_version: 4
65
69
  summary: Ruby SDK to run Evervault Cages