vgs_api_client 0.0.1.alpha202206030532 → 0.0.1.alpha202206031510

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d608f6832c370bc3d862dad797236adb0f44e3bec44633787d9d8ddafa30b01
4
- data.tar.gz: 85d8b8cd3253be38b7b233f367bda1371174d0152be27563e7d8604b5dfa0c71
3
+ metadata.gz: a46bfb67eeb078965b847a6f4bf137e1c3780c0328eea5fe5ee81e83de27322b
4
+ data.tar.gz: 5e2462251bbabbec5c2c964da950e026298ad93d08ee145e3f0ac26f14565c11
5
5
  SHA512:
6
- metadata.gz: 5d3d35134aee0c19ce78e76863fff81245ecf50ef515415faa670ccb717cfa70e251520c46727191c2410de80755dbcd0724bac7a318e103b834585350d16dbf
7
- data.tar.gz: 88013de6417404f0693992c931f3415ffbd6aeda9db2dc40b4f76b27d4ea9e79bfaec0f803403dc768b51c33e2be3e6a353fb3c8e252d1a6ba210c8233a9e2d7
6
+ metadata.gz: 45a695a9f7a6e71762d9d2c779a89a15d9adc046dd2c4bd8559ef12eca0170de4c0939ece84eb04a4753b976e02a42b91af9a5e945851d541080acf1b7d5acd9
7
+ data.tar.gz: bb6bf8e34c1fe2a89ab5c7635590afce2035b6943c6a9f27bf78fc0e58796b9e06526971178fae366c382a93817665924efc966b245becce24c3746374f0a439
checksums.yaml.gz.sig CHANGED
Binary file
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1.alpha202206030532
1
+ 0.0.1.alpha202206031510
data/docker-compose.yaml CHANGED
@@ -16,6 +16,7 @@ services:
16
16
  RUBY_SIGNING_KEY: ${RUBY_SIGNING_KEY}
17
17
  RUBY_PUBLIC_CERT: ${RUBY_PUBLIC_CERT}
18
18
  RUBY_PEM_PASSPHRASE: ${RUBY_PEM_PASSPHRASE}
19
+ CI_BUILD: ${CI_BUILD}
19
20
  volumes:
20
21
  - ./:/vgs-api-client/
21
22
  publish:
@@ -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.alpha202206030532/ruby"
34
+ @user_agent = "vgs-api-client/0.0.1.alpha202206031510/ruby"
35
35
  @default_headers = {
36
36
  'Content-Type' => 'application/json',
37
37
  'User-Agent' => @user_agent
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.4.0
11
11
  =end
12
12
 
13
13
  module VgsApiClient
14
- VERSION = '0.0.1.alpha202206030532'
14
+ VERSION = '0.0.1.alpha202206031510'
15
15
  end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module VGS
2
- VERSION = '0.0.1.alpha202206030532'
2
+ VERSION = '0.0.1.alpha202206031510'
3
3
  end
@@ -2,24 +2,38 @@
2
2
 
3
3
  set -e
4
4
 
5
- usage() { echo "Required env var '$1' is missing"; exit 1; }
5
+ # sign the gem if build through CI
6
+ if [[ ${CI_BUILD} == "true" ]]
7
+ then
8
+ usage() { echo "Required env var '$1' is missing"; exit 1; }
6
9
 
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
+ [ -z "${RUBY_SIGNING_KEY}" ] && usage "RUBY_SIGNING_KEY" ;
11
+ [ -z "${RUBY_PUBLIC_CERT}" ] && usage "RUBY_PUBLIC_CERT" ;
12
+ [ -z "${RUBY_PEM_PASSPHRASE}" ] && usage "RUBY_PEM_PASSPHRASE" ;
10
13
 
11
- LIB_VERSION=${LIB_VERSION:-0.0.1.alpha$(date "+%Y%m%d%H%M")}
14
+ LIB_VERSION=${LIB_VERSION:-0.0.1.alpha$(date "+%Y%m%d%H%M")}
12
15
 
13
- # fix version
14
- grep -rl 0.0.1.alpha202206030532 . | xargs sed -i "s/0.0.1.alpha202206030532/${LIB_VERSION}/g"
16
+ # fix version
17
+ grep -rl 0.0.1.alpha202206031510 . | xargs sed -i "s/0.0.1.alpha202206031510/${LIB_VERSION}/g"
15
18
 
16
- # prepare certificate files
17
- cat <<< ${RUBY_SIGNING_KEY} | base64 -d > gem-private_key.pem
18
- cat <<< ${RUBY_PUBLIC_CERT} | base64 -d > gem-public_cert.pem
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
19
22
 
20
- # build gem with expect to handle PEM passphrase prompt
21
- /usr/bin/expect -d scripts/assemble/gem_build.exp ${RUBY_PEM_PASSPHRASE}
23
+ # build gem with expect to handle PEM passphrase prompt
24
+ /usr/bin/expect -d scripts/assemble/gem_build.exp ${RUBY_PEM_PASSPHRASE}
22
25
 
23
- # clean-up certificate files
24
- rm gem-private_key.pem
25
- rm gem-public_cert.pem
26
+ # clean-up certificate files
27
+ rm gem-private_key.pem
28
+ rm gem-public_cert.pem
29
+
30
+ # Local build so don't sign the gem
31
+ else
32
+ LIB_VERSION=${LIB_VERSION:-0.0.1.alpha$(date "+%Y%m%d%H%M")}
33
+
34
+ # fix version
35
+ grep -rl 0.0.1.alpha202206031510 . | xargs sed -i "s/0.0.1.alpha202206031510/${LIB_VERSION}/g"
36
+
37
+ # build
38
+ gem build vgs_api_client_local_build.gemspec
39
+ 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.alpha202206030532 . | xargs sed -i "s/0.0.1.alpha202206030532/$VERSION/g"
8
+ grep -rl 0.0.1.alpha202206031510 . | xargs sed -i "s/0.0.1.alpha202206031510/$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.alpha202206030532
4
+ version: 0.0.1.alpha202206031510
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