onboardbase 1.0.0 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +34 -0
- data/lib/onboardbase/version.rb +1 -1
- data/lib/onboardbase.rb +2 -2
- data/onboardbase.gemspec +3 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ba0587592df36963e2d4251a5bd2a1f31d5171b1b25437349748ba2dad7aa7d
|
4
|
+
data.tar.gz: 6002616abc9fe68b96094695ea59f00a70ab69c9bc4846f45b0d298a3417815b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 265af313ce19d48d5e248fd28664101f7430cb407f574214b5240129e7a54d2699b119f051718031dffb8b57e7ea6d7104fcd84ac5337058e9138f7afc6484b0
|
7
|
+
data.tar.gz: 6963b025ee1ca12871e8a47346179f22e248b07506e23bad30e59834ff7038e52fd2b9804b0b59c7de561a0866e4695ca057e19514133e39b72c547d532cb62a
|
data/README.md
CHANGED
@@ -0,0 +1,34 @@
|
|
1
|
+
# Onboardbase Ruby SDK
|
2
|
+
|
3
|
+
## Install
|
4
|
+
|
5
|
+
```bash
|
6
|
+
gem install onboardbase
|
7
|
+
```
|
8
|
+
|
9
|
+
## Requirements
|
10
|
+
Ensure that you have onboardbase.yaml at the root of your project.
|
11
|
+
With the api_key and passcode field being set.
|
12
|
+
```yaml
|
13
|
+
api_key: ********************** # Generate from onboardbase
|
14
|
+
passcode: ******** # Generate from onboardbase
|
15
|
+
setup:
|
16
|
+
project: **** # onboardbase project
|
17
|
+
environment: **** # Onboardbase environment
|
18
|
+
secrets:
|
19
|
+
local:
|
20
|
+
PORT: 3000
|
21
|
+
|
22
|
+
```
|
23
|
+
|
24
|
+
## Basic Usage
|
25
|
+
```ruby
|
26
|
+
require "onboardbase"
|
27
|
+
|
28
|
+
Onboardbase.config do |c|
|
29
|
+
c.loadSecrets
|
30
|
+
end
|
31
|
+
|
32
|
+
p ENV["SECRET_ONBOARDBASE"]
|
33
|
+
|
34
|
+
```
|
data/lib/onboardbase/version.rb
CHANGED
data/lib/onboardbase.rb
CHANGED
@@ -185,8 +185,8 @@ module Onboardbase
|
|
185
185
|
salt = secret[8..15]
|
186
186
|
key_iv = bytes_to_key(self.configuration["passcode"], salt, 48)
|
187
187
|
key = key_iv[0..31]
|
188
|
-
iv = key_iv[32..]
|
189
|
-
parsedSecret = aes256_cbc_decrypt(key, secret[16..], iv)
|
188
|
+
iv = key_iv[32..key_iv.length-1]
|
189
|
+
parsedSecret = aes256_cbc_decrypt(key, secret[16..secret.length-1], iv)
|
190
190
|
secrets[i] = JSON.parse(parsedSecret)
|
191
191
|
end
|
192
192
|
secrets
|
data/onboardbase.gemspec
CHANGED
@@ -4,10 +4,10 @@ Gem::Specification.new do |spec|
|
|
4
4
|
spec.name = 'onboardbase'
|
5
5
|
spec.version = Onboardbase::VERSION
|
6
6
|
spec.authors = ['Onboardbase']
|
7
|
-
spec.email = ['admin@
|
8
|
-
spec.description = "
|
7
|
+
spec.email = ['admin@onboardbase.com']
|
8
|
+
spec.description = "Use Onboardbase in your Ruby projects"
|
9
9
|
spec.summary = "Use Onboardbase in your Ruby projects"
|
10
|
-
spec.homepage= 'https://
|
10
|
+
spec.homepage= 'https://gitlab.com/repools/onboardbase-rubysdk/'
|
11
11
|
spec.license = 'MIT'
|
12
12
|
spec.platform = Gem::Platform::RUBY
|
13
13
|
spec.required_ruby_version = '>= 2.5.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onboardbase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Onboardbase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
@@ -136,9 +136,9 @@ dependencies:
|
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '1.37'
|
139
|
-
description:
|
139
|
+
description: Use Onboardbase in your Ruby projects
|
140
140
|
email:
|
141
|
-
- admin@
|
141
|
+
- admin@onboardbase.com
|
142
142
|
executables: []
|
143
143
|
extensions: []
|
144
144
|
extra_rdoc_files:
|
@@ -152,7 +152,7 @@ files:
|
|
152
152
|
- lib/onboardbase.rb
|
153
153
|
- lib/onboardbase/version.rb
|
154
154
|
- onboardbase.gemspec
|
155
|
-
homepage: https://
|
155
|
+
homepage: https://gitlab.com/repools/onboardbase-rubysdk/
|
156
156
|
licenses:
|
157
157
|
- MIT
|
158
158
|
metadata: {}
|