vgs_api_client 0.0.1.alpha202204222331 → 0.0.1.alpha202204230059
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 +4 -4
- data/lib/openapi_client/api_client.rb +1 -1
- data/lib/openapi_client/version.rb +1 -1
- data/lib/version.rb +1 -1
- data/scripts/assemble/run.sh +1 -1
- data/scripts/test/run.sh +1 -1
- data/scripts/test-e2e/Dockerfile +0 -7
- data/scripts/test-e2e/run.sh +0 -3
- data/spec/Gemfile +3 -0
- data/spec/test.gemspec +17 -0
- data/vgs_api_client.gemspec +1 -1
- metadata +6 -3
- data/openapi_client.gemspec +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9322b2307877e5b2c648d8fc95d081cbac9fc17e86c62973b2edb49fe9fcc57
|
4
|
+
data.tar.gz: 75e6a51cf7ec3c546dbc67d1fdc3ebc9e950610b7313015c15649b9118cdd695
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 159d3454542e34d8b32a08946d19df48f3b07e15fdc2cbc49b29c194d7cf7cf17a01b96c0e781b9e5ad18c791a29665569ac7dfab58cb51928b196f3e1d7acca
|
7
|
+
data.tar.gz: c2afeb211e4a41504c55c842936f6bac217d31182c052019a26e7570c1626e13e945793ff75daca4c076a1a31827a36c50dda769edb7c2fdb18dbb6c1e2d4c1f
|
@@ -31,7 +31,7 @@ module VgsApiClient
|
|
31
31
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
32
32
|
def initialize(config = Configuration.default)
|
33
33
|
@config = config
|
34
|
-
@user_agent = "vgs-api-client/0.0.1.
|
34
|
+
@user_agent = "vgs-api-client/0.0.1.alpha202204230059/ruby"
|
35
35
|
@default_headers = {
|
36
36
|
'Content-Type' => 'application/json',
|
37
37
|
'User-Agent' => @user_agent
|
data/lib/version.rb
CHANGED
data/scripts/assemble/run.sh
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
LIB_VERSION=${LIB_VERSION:-0.0.1.alpha$(date "+%Y%m%d%H%M")}
|
4
4
|
|
5
5
|
# fix version
|
6
|
-
grep -rl 0.0.1.
|
6
|
+
grep -rl 0.0.1.alpha202204230059 . | xargs sed -i "s/0.0.1.alpha202204230059/${LIB_VERSION}/g"
|
7
7
|
|
8
8
|
# build
|
9
9
|
gem build vgs_api_client.gemspec
|
data/scripts/test/run.sh
CHANGED
@@ -5,7 +5,7 @@ set -e
|
|
5
5
|
echo "Installing lib from local sources"
|
6
6
|
# fix version
|
7
7
|
VERSION=0.0.1.alpha$(date "+%Y%m%d%H%M")
|
8
|
-
grep -rl 0.0.1.
|
8
|
+
grep -rl 0.0.1.alpha202204230059 . | xargs sed -i "s/0.0.1.alpha202204230059/$VERSION/g"
|
9
9
|
|
10
10
|
bundle install
|
11
11
|
|
data/scripts/test-e2e/Dockerfile
CHANGED
@@ -7,16 +7,9 @@ RUN apk update && \
|
|
7
7
|
gem install bundler && \
|
8
8
|
gem install rspec-support
|
9
9
|
|
10
|
-
RUN mkdir -p /vgs-api-client/ && \
|
11
|
-
mkdir -p /vgs-api-client/tmp
|
12
|
-
|
13
10
|
ADD ./scripts/test-e2e /vgs-api-client/scripts
|
14
11
|
ADD ./spec /vgs-api-client/spec
|
15
12
|
|
16
|
-
# Temporarily copying gem files to tmp/ dir
|
17
|
-
ADD ./vgs_api_client.gemspec /vgs-api-client/tmp/vgs_api_client.gemspec
|
18
|
-
ADD ./Gemfile /vgs-api-client/tmp/Gemfile
|
19
|
-
|
20
13
|
WORKDIR /vgs-api-client/
|
21
14
|
|
22
15
|
ENTRYPOINT ["bash", "./scripts/run.sh"]
|
data/scripts/test-e2e/run.sh
CHANGED
data/spec/Gemfile
ADDED
data/spec/test.gemspec
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = "vgs_api_client_test"
|
5
|
+
s.version = "0.0.1"
|
6
|
+
s.platform = Gem::Platform::RUBY
|
7
|
+
s.summary = "Tests"
|
8
|
+
s.authors = "Very Good Security"
|
9
|
+
s.required_ruby_version = ">= 2.6"
|
10
|
+
|
11
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
12
|
+
|
13
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
14
|
+
s.test_files = `find spec/*`.split("\n")
|
15
|
+
s.executables = []
|
16
|
+
s.require_paths = ["lib"]
|
17
|
+
end
|
data/vgs_api_client.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.homepage = "https://github.com/verygoodsecurity/vgs-api-client-ruby"
|
12
12
|
s.summary = "VGS API Client"
|
13
13
|
s.description = "This gem maps to VGS Vault API"
|
14
|
-
s.license = "BSD
|
14
|
+
s.license = "BSD-3-Clause"
|
15
15
|
s.required_ruby_version = ">= 2.6"
|
16
16
|
|
17
17
|
s.metadata = {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vgs_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.alpha202204230059
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Very Good Security
|
@@ -85,7 +85,6 @@ files:
|
|
85
85
|
- lib/openapi_client/version.rb
|
86
86
|
- lib/version.rb
|
87
87
|
- lib/vgs_api_client.rb
|
88
|
-
- openapi_client.gemspec
|
89
88
|
- scripts/assemble/Dockerfile
|
90
89
|
- scripts/assemble/run.sh
|
91
90
|
- scripts/publish.sh
|
@@ -97,14 +96,16 @@ files:
|
|
97
96
|
- scripts/test-e2e/run.sh
|
98
97
|
- scripts/test/Dockerfile
|
99
98
|
- scripts/test/run.sh
|
99
|
+
- spec/Gemfile
|
100
100
|
- spec/api_client_spec.rb
|
101
101
|
- spec/configuration_spec.rb
|
102
102
|
- spec/spec_helper.rb
|
103
|
+
- spec/test.gemspec
|
103
104
|
- spec/test_aliases_api_spec.rb
|
104
105
|
- vgs_api_client.gemspec
|
105
106
|
homepage: https://github.com/verygoodsecurity/vgs-api-client-ruby
|
106
107
|
licenses:
|
107
|
-
- BSD
|
108
|
+
- BSD-3-Clause
|
108
109
|
metadata:
|
109
110
|
homepage_uri: https://www.verygoodsecurity.com
|
110
111
|
bug_tracker_uri: https://github.com/verygoodsecurity/vgs-api-client-ruby/issues
|
@@ -130,7 +131,9 @@ signing_key:
|
|
130
131
|
specification_version: 4
|
131
132
|
summary: VGS API Client
|
132
133
|
test_files:
|
134
|
+
- spec/Gemfile
|
133
135
|
- spec/api_client_spec.rb
|
134
136
|
- spec/configuration_spec.rb
|
135
137
|
- spec/spec_helper.rb
|
138
|
+
- spec/test.gemspec
|
136
139
|
- spec/test_aliases_api_spec.rb
|
data/openapi_client.gemspec
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
=begin
|
4
|
-
#Vault HTTP API
|
5
|
-
|
6
|
-
#The VGS Vault HTTP API is used for storing, retrieving, and managing sensitive data (aka Tokenization) within a VGS Vault. The VGS API is organized around REST. Our API is built with a predictable resource-oriented structure, uses JSON-encoded requests and responses, follows standard HTTP verbs/responses, and uses industry standard authentication. ## What is VGS Storing sensitive data on your company’s infrastructure often comes with a heavy compliance burden. For instance, storing payments data yourself greatly increases the amount of work needed to become PCI compliant. It also increases your security risk in general. To combat this, companies will minimize the amount of sensitive information they have to handle or store. VGS provides multiple methods for minimizing the sensitive information that needs to be stored which allows customers to secure any type of data for any use-case. **Tokenization** is a method that focuses on securing the storage of data. This is the quickest way to get started and is free. [Get started with Tokenization](https://www.verygoodsecurity.com/docs/tokenization/getting-started). **Zero Data** is a unique method invented by VGS in 2016 that securely stores data like Tokenization, however it also removes the customer’s environment from PCI scope completely providing maximum security, and minimum compliance scope. [Get started with Zero Data](https://www.verygoodsecurity.com/docs/getting-started/before-you-start). Additionally, for scenarios where neither technology is a complete solution, for instance with legacy systems, VGS provides a compliance product which guarantees customers are able to meet their compliance needs no matter what may happen. [Get started with Control](https://www.verygoodsecurity.com/docs/control). ## Learn about Tokenization - [Create an Account for Free Tokenization](https://dashboard.verygoodsecurity.com/tokenization) - [Try a Tokenization Demo](https://www.verygoodsecurity.com/docs/tokenization/getting-started) - [Install a Tokenization SDK](https://www.verygoodsecurity.com/docs/tokenization/client-libraries) ### Authentication This API uses `Basic` authentication. Credentials to access the API can be generated on the [dashboard](https://dashboard.verygoodsecurity.com) by going to the Settings section of the vault of your choosing. [Docs » Guides » Access credentials](https://www.verygoodsecurity.com/docs/settings/access-credentials) ## Resource Limits ### Data Limits This API allows storing data up to 32MB in size. ### Rate Limiting The API allows up to 3,000 requests per minute. Requests are associated with the vault, regardless of the access credentials used to authenticate the request. Your current rate limit is included as HTTP headers in every API response: | Header Name | Description | |-------------------------|----------------------------------------------------------| | `x-ratelimit-remaining` | The number of requests remaining in the 1-minute window. | If you exceed the rate limit, the API will reject the request with HTTP [429 Too Many Requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429). ### Errors The API uses standard HTTP status codes to indicate whether the request succeeded or not. In case of failure, the response body will be JSON in a predefined format. For example, trying to create too many aliases at once results in the following response: ```json { \"errors\": [ { \"status\": 400, \"title\": \"Bad request\", \"detail\": \"Too many values (limit: 20)\", \"href\": \"https://api.sandbox.verygoodvault.com/aliases\" } ] } ```
|
7
|
-
|
8
|
-
The version of the OpenAPI document: 1.0.0
|
9
|
-
Contact: support@verygoodsecurity.com
|
10
|
-
Generated by: https://openapi-generator.tech
|
11
|
-
OpenAPI Generator version: 5.4.0
|
12
|
-
|
13
|
-
=end
|
14
|
-
|
15
|
-
$:.push File.expand_path("../lib", __FILE__)
|
16
|
-
require "openapi_client/version"
|
17
|
-
|
18
|
-
Gem::Specification.new do |s|
|
19
|
-
s.name = "openapi_client"
|
20
|
-
s.version = VgsApiClient::VERSION
|
21
|
-
s.platform = Gem::Platform::RUBY
|
22
|
-
s.authors = ["Very Good Security"]
|
23
|
-
s.email = ["support@verygoodsecurity.com"]
|
24
|
-
s.homepage = "https://openapi-generator.tech"
|
25
|
-
s.summary = "VGS Vault API"
|
26
|
-
s.description = "This gem maps to VGS Vault API"
|
27
|
-
s.license = "Unlicense"
|
28
|
-
s.required_ruby_version = ">= 2.4"
|
29
|
-
|
30
|
-
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
-
|
32
|
-
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
33
|
-
|
34
|
-
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
35
|
-
s.test_files = `find spec/*`.split("\n")
|
36
|
-
s.executables = []
|
37
|
-
s.require_paths = ["lib"]
|
38
|
-
end
|