vgs_api_client 0.0.1.alpha202206030618 → 0.0.1.alpha202206031534
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
- checksums.yaml.gz.sig +0 -0
- data/VERSION +1 -1
- data/docker-compose.yaml +1 -0
- 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 +24 -15
- data/scripts/test/run.sh +1 -1
- data/vgs_api_client_local_build.gemspec +32 -0
- data.tar.gz.sig +0 -0
- metadata +2 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89532666780a93658b152932ca38b5eda61c749199660d5976e7e30033cfc251
|
4
|
+
data.tar.gz: 93821b4530b451e19a1e7ecb910775bdd7e090cd2df79d1d29cb0d853f6aa5d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8bcb4e80b13cce8a8f355fd01862217a66b0839b2d8116f8e473be9c0f9debfefc5db959d475d13ae6c491af4e19b19d639326c889d4d49345d0d1572356a43
|
7
|
+
data.tar.gz: f59ca52b2f3ec0c1acf1c51cc5858527e604bed1b0031de91bad0991a221481cf8dd565aef7b9b67e276eed25a40051739f7603f84f445114de37166ec25141d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.1.
|
1
|
+
0.0.1.alpha202206031534
|
data/docker-compose.yaml
CHANGED
@@ -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.alpha202206031534/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
@@ -2,24 +2,33 @@
|
|
2
2
|
|
3
3
|
set -e
|
4
4
|
|
5
|
-
usage() { echo "Required env var '$1' is missing"; exit 1; }
|
6
|
-
|
7
|
-
[ -z "${RUBY_SIGNING_KEY}" ] && usage "RUBY_SIGNING_KEY" ;
|
8
|
-
[ -z "${RUBY_PUBLIC_CERT}" ] && usage "RUBY_PUBLIC_CERT" ;
|
9
|
-
[ -z "${RUBY_PEM_PASSPHRASE}" ] && usage "RUBY_PEM_PASSPHRASE" ;
|
10
|
-
|
11
5
|
LIB_VERSION=${LIB_VERSION:-0.0.1.alpha$(date "+%Y%m%d%H%M")}
|
12
6
|
|
13
7
|
# fix version
|
14
|
-
grep -rl 0.0.1.
|
8
|
+
grep -rl 0.0.1.alpha202206031534 . | xargs sed -i "s/0.0.1.alpha202206031534/${LIB_VERSION}/g"
|
9
|
+
|
10
|
+
# sign the gem if build through CI
|
11
|
+
if [[ ${CI_BUILD} == "true" ]]
|
12
|
+
then
|
13
|
+
usage() { echo "Required env var '$1' is missing"; exit 1; }
|
14
|
+
|
15
|
+
[ -z "${RUBY_SIGNING_KEY}" ] && usage "RUBY_SIGNING_KEY" ;
|
16
|
+
[ -z "${RUBY_PUBLIC_CERT}" ] && usage "RUBY_PUBLIC_CERT" ;
|
17
|
+
[ -z "${RUBY_PEM_PASSPHRASE}" ] && usage "RUBY_PEM_PASSPHRASE" ;
|
18
|
+
|
19
|
+
# prepare certificate files
|
20
|
+
cat <<< ${RUBY_SIGNING_KEY} | base64 -d > gem-private_key.pem
|
21
|
+
cat <<< ${RUBY_PUBLIC_CERT} | base64 -d > gem-public_cert.pem
|
15
22
|
|
16
|
-
#
|
17
|
-
|
18
|
-
cat <<< ${RUBY_PUBLIC_CERT} | base64 -d > gem-public_cert.pem
|
23
|
+
# build gem with expect to handle PEM passphrase prompt
|
24
|
+
/usr/bin/expect -d scripts/assemble/gem_build.exp ${RUBY_PEM_PASSPHRASE}
|
19
25
|
|
20
|
-
#
|
21
|
-
|
26
|
+
# clean-up certificate files
|
27
|
+
rm gem-private_key.pem
|
28
|
+
rm gem-public_cert.pem
|
22
29
|
|
23
|
-
#
|
24
|
-
|
25
|
-
|
30
|
+
# Local build so don't sign the gem
|
31
|
+
else
|
32
|
+
# build
|
33
|
+
gem build vgs_api_client_local_build.gemspec
|
34
|
+
fi
|
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.alpha202206031534 . | xargs sed -i "s/0.0.1.alpha202206031534/$VERSION/g"
|
9
9
|
|
10
10
|
bundle install
|
11
11
|
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
require_relative "lib/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "vgs_api_client"
|
7
|
+
s.version = VGS::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Very Good Security"]
|
10
|
+
s.email = ["support@verygoodsecurity.com"]
|
11
|
+
s.homepage = "https://github.com/verygoodsecurity/vgs-api-client-ruby"
|
12
|
+
s.summary = "Very Good Security API Client"
|
13
|
+
s.description = "Very Good Security API Client library. More details on https://www.verygoodsecurity.com/"
|
14
|
+
s.license = "BSD-3-Clause"
|
15
|
+
s.required_ruby_version = ">= 2.6"
|
16
|
+
|
17
|
+
s.metadata = {
|
18
|
+
"homepage_uri" => "https://www.verygoodsecurity.com",
|
19
|
+
"bug_tracker_uri" => "https://github.com/verygoodsecurity/vgs-api-client-ruby/issues",
|
20
|
+
"documentation_uri" => "https://www.verygoodsecurity.com/docs",
|
21
|
+
"source_code_uri" => "https://github.com/verygoodsecurity/vgs-api-client-ruby"
|
22
|
+
}
|
23
|
+
|
24
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
25
|
+
|
26
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
27
|
+
|
28
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
29
|
+
s.test_files = `find spec/*`.split("\n")
|
30
|
+
s.executables = []
|
31
|
+
s.require_paths = ["lib"]
|
32
|
+
end
|
data.tar.gz.sig
CHANGED
Binary file
|
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.alpha202206031534
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Very Good Security
|
@@ -136,6 +136,7 @@ files:
|
|
136
136
|
- spec/spec_helper.rb
|
137
137
|
- spec/test_aliases_api_spec.rb
|
138
138
|
- vgs_api_client.gemspec
|
139
|
+
- vgs_api_client_local_build.gemspec
|
139
140
|
homepage: https://github.com/verygoodsecurity/vgs-api-client-ruby
|
140
141
|
licenses:
|
141
142
|
- BSD-3-Clause
|
metadata.gz.sig
CHANGED
Binary file
|