vgs_api_client 0.0.21 → 0.0.26

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.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -27
  3. data/docker-compose.yaml +3 -6
  4. data/docs/AliasFormat.md +2 -2
  5. data/docs/AliasesApi.md +23 -23
  6. data/docs/ApiError.md +2 -2
  7. data/docs/CreateAliasesRequest.md +2 -2
  8. data/docs/CreateAliasesRequestExisting.md +2 -2
  9. data/docs/CreateAliasesRequestNew.md +2 -2
  10. data/docs/InlineResponse200.md +2 -2
  11. data/docs/InlineResponse2001.md +2 -2
  12. data/docs/InlineResponse201.md +2 -2
  13. data/docs/InlineResponseDefault.md +2 -2
  14. data/docs/ModelAlias.md +2 -2
  15. data/docs/RevealedData.md +2 -2
  16. data/docs/UpdateAliasRequest.md +2 -2
  17. data/docs/UpdateAliasRequestData.md +2 -2
  18. data/git_push.sh +4 -3
  19. data/lib/vgs_api_client/api/aliases_api.rb +4 -10
  20. data/lib/vgs_api_client/api_client.rb +7 -7
  21. data/lib/vgs_api_client/api_error.rb +2 -2
  22. data/lib/vgs_api_client/configuration.rb +3 -4
  23. data/lib/vgs_api_client/models/alias_format.rb +2 -2
  24. data/lib/vgs_api_client/models/api_error.rb +5 -5
  25. data/lib/vgs_api_client/models/create_aliases_request.rb +5 -33
  26. data/lib/vgs_api_client/models/create_aliases_request_existing.rb +5 -5
  27. data/lib/vgs_api_client/models/create_aliases_request_new.rb +5 -5
  28. data/lib/vgs_api_client/models/inline_response200.rb +5 -5
  29. data/lib/vgs_api_client/models/inline_response2001.rb +5 -29
  30. data/lib/vgs_api_client/models/inline_response201.rb +5 -5
  31. data/lib/vgs_api_client/models/inline_response_default.rb +5 -20
  32. data/lib/vgs_api_client/models/model_alias.rb +5 -5
  33. data/lib/vgs_api_client/models/revealed_data.rb +5 -5
  34. data/lib/vgs_api_client/models/update_alias_request.rb +5 -5
  35. data/lib/vgs_api_client/models/update_alias_request_data.rb +5 -5
  36. data/lib/vgs_api_client/version.rb +3 -3
  37. data/lib/vgs_api_client.rb +3 -3
  38. data/{docker → publish}/Dockerfile +1 -1
  39. data/{docker → publish}/build_and_publish.sh +3 -1
  40. data/spec/api/aliases_api_spec.rb +11 -52
  41. data/spec/api/test_api_spec.rb +137 -0
  42. data/spec/api_client_spec.rb +32 -32
  43. data/spec/configuration_spec.rb +4 -4
  44. data/spec/models/alias_format_spec.rb +4 -4
  45. data/spec/models/api_error_spec.rb +4 -4
  46. data/spec/models/create_aliases_request_existing_spec.rb +4 -4
  47. data/spec/models/create_aliases_request_new_spec.rb +4 -4
  48. data/spec/models/create_aliases_request_spec.rb +4 -4
  49. data/spec/models/inline_response2001_spec.rb +4 -4
  50. data/spec/models/inline_response200_spec.rb +4 -4
  51. data/spec/models/inline_response201_spec.rb +4 -4
  52. data/spec/models/inline_response_default_spec.rb +4 -4
  53. data/spec/models/model_alias_spec.rb +4 -4
  54. data/spec/models/revealed_data_spec.rb +4 -4
  55. data/spec/models/update_alias_request_data_spec.rb +4 -4
  56. data/spec/models/update_alias_request_spec.rb +4 -4
  57. data/spec/spec_helper.rb +1 -1
  58. data/test/Dockerfile +16 -0
  59. data/vgs_api_client.gemspec +2 -2
  60. metadata +7 -6
  61. data/Gemfile.lock +0 -70
  62. data/docker/Dockerfile.test +0 -5
@@ -14,15 +14,15 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for VgsapiClient::CreateAliasesRequest
17
+ # Unit tests for VgsApiClient::CreateAliasesRequest
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe VgsapiClient::CreateAliasesRequest do
21
- let(:instance) { VgsapiClient::CreateAliasesRequest.new }
20
+ describe VgsApiClient::CreateAliasesRequest do
21
+ let(:instance) { VgsApiClient::CreateAliasesRequest.new }
22
22
 
23
23
  describe 'test an instance of CreateAliasesRequest' do
24
24
  it 'should create an instance of CreateAliasesRequest' do
25
- expect(instance).to be_instance_of(VgsapiClient::CreateAliasesRequest)
25
+ expect(instance).to be_instance_of(VgsApiClient::CreateAliasesRequest)
26
26
  end
27
27
  end
28
28
  describe 'test attribute "data"' do
@@ -14,15 +14,15 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for VgsapiClient::InlineResponse2001
17
+ # Unit tests for VgsApiClient::InlineResponse2001
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe VgsapiClient::InlineResponse2001 do
21
- let(:instance) { VgsapiClient::InlineResponse2001.new }
20
+ describe VgsApiClient::InlineResponse2001 do
21
+ let(:instance) { VgsApiClient::InlineResponse2001.new }
22
22
 
23
23
  describe 'test an instance of InlineResponse2001' do
24
24
  it 'should create an instance of InlineResponse2001' do
25
- expect(instance).to be_instance_of(VgsapiClient::InlineResponse2001)
25
+ expect(instance).to be_instance_of(VgsApiClient::InlineResponse2001)
26
26
  end
27
27
  end
28
28
  describe 'test attribute "data"' do
@@ -14,15 +14,15 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for VgsapiClient::InlineResponse200
17
+ # Unit tests for VgsApiClient::InlineResponse200
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe VgsapiClient::InlineResponse200 do
21
- let(:instance) { VgsapiClient::InlineResponse200.new }
20
+ describe VgsApiClient::InlineResponse200 do
21
+ let(:instance) { VgsApiClient::InlineResponse200.new }
22
22
 
23
23
  describe 'test an instance of InlineResponse200' do
24
24
  it 'should create an instance of InlineResponse200' do
25
- expect(instance).to be_instance_of(VgsapiClient::InlineResponse200)
25
+ expect(instance).to be_instance_of(VgsApiClient::InlineResponse200)
26
26
  end
27
27
  end
28
28
  describe 'test attribute "data"' do
@@ -14,15 +14,15 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for VgsapiClient::InlineResponse201
17
+ # Unit tests for VgsApiClient::InlineResponse201
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe VgsapiClient::InlineResponse201 do
21
- let(:instance) { VgsapiClient::InlineResponse201.new }
20
+ describe VgsApiClient::InlineResponse201 do
21
+ let(:instance) { VgsApiClient::InlineResponse201.new }
22
22
 
23
23
  describe 'test an instance of InlineResponse201' do
24
24
  it 'should create an instance of InlineResponse201' do
25
- expect(instance).to be_instance_of(VgsapiClient::InlineResponse201)
25
+ expect(instance).to be_instance_of(VgsApiClient::InlineResponse201)
26
26
  end
27
27
  end
28
28
  describe 'test attribute "data"' do
@@ -14,15 +14,15 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for VgsapiClient::InlineResponseDefault
17
+ # Unit tests for VgsApiClient::InlineResponseDefault
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe VgsapiClient::InlineResponseDefault do
21
- let(:instance) { VgsapiClient::InlineResponseDefault.new }
20
+ describe VgsApiClient::InlineResponseDefault do
21
+ let(:instance) { VgsApiClient::InlineResponseDefault.new }
22
22
 
23
23
  describe 'test an instance of InlineResponseDefault' do
24
24
  it 'should create an instance of InlineResponseDefault' do
25
- expect(instance).to be_instance_of(VgsapiClient::InlineResponseDefault)
25
+ expect(instance).to be_instance_of(VgsApiClient::InlineResponseDefault)
26
26
  end
27
27
  end
28
28
  describe 'test attribute "errors"' do
@@ -14,15 +14,15 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for VgsapiClient::ModelAlias
17
+ # Unit tests for VgsApiClient::ModelAlias
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe VgsapiClient::ModelAlias do
21
- let(:instance) { VgsapiClient::ModelAlias.new }
20
+ describe VgsApiClient::ModelAlias do
21
+ let(:instance) { VgsApiClient::ModelAlias.new }
22
22
 
23
23
  describe 'test an instance of ModelAlias' do
24
24
  it 'should create an instance of ModelAlias' do
25
- expect(instance).to be_instance_of(VgsapiClient::ModelAlias)
25
+ expect(instance).to be_instance_of(VgsApiClient::ModelAlias)
26
26
  end
27
27
  end
28
28
  describe 'test attribute "_alias"' do
@@ -14,15 +14,15 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for VgsapiClient::RevealedData
17
+ # Unit tests for VgsApiClient::RevealedData
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe VgsapiClient::RevealedData do
21
- let(:instance) { VgsapiClient::RevealedData.new }
20
+ describe VgsApiClient::RevealedData do
21
+ let(:instance) { VgsApiClient::RevealedData.new }
22
22
 
23
23
  describe 'test an instance of RevealedData' do
24
24
  it 'should create an instance of RevealedData' do
25
- expect(instance).to be_instance_of(VgsapiClient::RevealedData)
25
+ expect(instance).to be_instance_of(VgsApiClient::RevealedData)
26
26
  end
27
27
  end
28
28
  describe 'test attribute "aliases"' do
@@ -14,15 +14,15 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for VgsapiClient::UpdateAliasRequestData
17
+ # Unit tests for VgsApiClient::UpdateAliasRequestData
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe VgsapiClient::UpdateAliasRequestData do
21
- let(:instance) { VgsapiClient::UpdateAliasRequestData.new }
20
+ describe VgsApiClient::UpdateAliasRequestData do
21
+ let(:instance) { VgsApiClient::UpdateAliasRequestData.new }
22
22
 
23
23
  describe 'test an instance of UpdateAliasRequestData' do
24
24
  it 'should create an instance of UpdateAliasRequestData' do
25
- expect(instance).to be_instance_of(VgsapiClient::UpdateAliasRequestData)
25
+ expect(instance).to be_instance_of(VgsApiClient::UpdateAliasRequestData)
26
26
  end
27
27
  end
28
28
  describe 'test attribute "classifiers"' do
@@ -14,15 +14,15 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for VgsapiClient::UpdateAliasRequest
17
+ # Unit tests for VgsApiClient::UpdateAliasRequest
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe VgsapiClient::UpdateAliasRequest do
21
- let(:instance) { VgsapiClient::UpdateAliasRequest.new }
20
+ describe VgsApiClient::UpdateAliasRequest do
21
+ let(:instance) { VgsApiClient::UpdateAliasRequest.new }
22
22
 
23
23
  describe 'test an instance of UpdateAliasRequest' do
24
24
  it 'should create an instance of UpdateAliasRequest' do
25
- expect(instance).to be_instance_of(VgsapiClient::UpdateAliasRequest)
25
+ expect(instance).to be_instance_of(VgsApiClient::UpdateAliasRequest)
26
26
  end
27
27
  end
28
28
  describe 'test attribute "data"' do
data/spec/spec_helper.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.0.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
data/test/Dockerfile ADDED
@@ -0,0 +1,16 @@
1
+ FROM ruby:3.1.1-alpine3.15
2
+
3
+ ADD . /src
4
+
5
+ # set version valid version
6
+ RUN grep -lr 0.0.26 ./src | xargs sed -i "s/0.0.26/0.0.1/g"
7
+
8
+ WORKDIR /src
9
+
10
+ RUN apk update && \
11
+ gem install bundler
12
+
13
+ #RUN bundle install
14
+
15
+ #ENTRYPOINT ["bundle", "exec", "rspec", "./spec/api/test_api_spec.rb"]
16
+ ENTRYPOINT ["echo", "TODO: run ruby tests"]
@@ -8,7 +8,7 @@
8
8
  The version of the OpenAPI document: 1.0.0
9
9
  Contact: support@verygoodsecurity.com
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 6.0.0-SNAPSHOT
11
+ OpenAPI Generator version: 5.0.1-SNAPSHOT
12
12
 
13
13
  =end
14
14
 
@@ -17,7 +17,7 @@ require "vgs_api_client/version"
17
17
 
18
18
  Gem::Specification.new do |s|
19
19
  s.name = "vgs_api_client"
20
- s.version = VgsapiClient::VERSION
20
+ s.version = VgsApiClient::VERSION
21
21
  s.platform = Gem::Platform::RUBY
22
22
  s.authors = ["Very Good Security"]
23
23
  s.email = ["dev@verygoodsecurity.com"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vgs_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Very Good Security
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-06 00:00:00.000000000 Z
11
+ date: 2022-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -58,13 +58,9 @@ extensions: []
58
58
  extra_rdoc_files: []
59
59
  files:
60
60
  - Gemfile
61
- - Gemfile.lock
62
61
  - README.md
63
62
  - Rakefile
64
63
  - docker-compose.yaml
65
- - docker/Dockerfile
66
- - docker/Dockerfile.test
67
- - docker/build_and_publish.sh
68
64
  - docs/AliasFormat.md
69
65
  - docs/AliasesApi.md
70
66
  - docs/ApiError.md
@@ -99,7 +95,10 @@ files:
99
95
  - lib/vgs_api_client/models/update_alias_request.rb
100
96
  - lib/vgs_api_client/models/update_alias_request_data.rb
101
97
  - lib/vgs_api_client/version.rb
98
+ - publish/Dockerfile
99
+ - publish/build_and_publish.sh
102
100
  - spec/api/aliases_api_spec.rb
101
+ - spec/api/test_api_spec.rb
103
102
  - spec/api_client_spec.rb
104
103
  - spec/configuration_spec.rb
105
104
  - spec/models/alias_format_spec.rb
@@ -116,6 +115,7 @@ files:
116
115
  - spec/models/update_alias_request_data_spec.rb
117
116
  - spec/models/update_alias_request_spec.rb
118
117
  - spec/spec_helper.rb
118
+ - test/Dockerfile
119
119
  - vgs_api_client.gemspec
120
120
  homepage: https://openapi-generator.tech
121
121
  licenses:
@@ -141,6 +141,7 @@ signing_key:
141
141
  specification_version: 4
142
142
  summary: A ruby wrapper for the VGS Vault API
143
143
  test_files:
144
+ - spec/api/test_api_spec.rb
144
145
  - spec/api/aliases_api_spec.rb
145
146
  - spec/api_client_spec.rb
146
147
  - spec/configuration_spec.rb
data/Gemfile.lock DELETED
@@ -1,70 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- vgs_api_client (0.0.1)
5
- typhoeus (~> 1.0, >= 1.0.1)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- ast (2.4.2)
11
- byebug (11.1.3)
12
- coderay (1.1.3)
13
- diff-lcs (1.5.0)
14
- ethon (0.15.0)
15
- ffi (>= 1.15.0)
16
- ffi (1.15.5)
17
- jaro_winkler (1.5.4)
18
- method_source (1.0.0)
19
- parallel (1.22.0)
20
- parser (3.1.1.0)
21
- ast (~> 2.4.1)
22
- pry (0.13.1)
23
- coderay (~> 1.1)
24
- method_source (~> 1.0)
25
- pry-byebug (3.9.0)
26
- byebug (~> 11.0)
27
- pry (~> 0.13.0)
28
- psych (4.0.3)
29
- stringio
30
- rainbow (3.1.1)
31
- rake (13.0.6)
32
- rspec (3.11.0)
33
- rspec-core (~> 3.11.0)
34
- rspec-expectations (~> 3.11.0)
35
- rspec-mocks (~> 3.11.0)
36
- rspec-core (3.11.0)
37
- rspec-support (~> 3.11.0)
38
- rspec-expectations (3.11.0)
39
- diff-lcs (>= 1.2.0, < 2.0)
40
- rspec-support (~> 3.11.0)
41
- rspec-mocks (3.11.0)
42
- diff-lcs (>= 1.2.0, < 2.0)
43
- rspec-support (~> 3.11.0)
44
- rspec-support (3.11.0)
45
- rubocop (0.66.0)
46
- jaro_winkler (~> 1.5.1)
47
- parallel (~> 1.10)
48
- parser (>= 2.5, != 2.5.1.1)
49
- psych (>= 3.1.0)
50
- rainbow (>= 2.2.2, < 4.0)
51
- ruby-progressbar (~> 1.7)
52
- unicode-display_width (>= 1.4.0, < 1.6)
53
- ruby-progressbar (1.11.0)
54
- stringio (3.0.1)
55
- typhoeus (1.4.0)
56
- ethon (>= 0.9.0)
57
- unicode-display_width (1.5.0)
58
-
59
- PLATFORMS
60
- x86_64-darwin-20
61
-
62
- DEPENDENCIES
63
- pry-byebug
64
- rake (~> 13.0.1)
65
- rspec (~> 3.6, >= 3.6.0)
66
- rubocop (~> 0.66.0)
67
- vgs_api_client!
68
-
69
- BUNDLED WITH
70
- 2.3.9
@@ -1,5 +0,0 @@
1
- FROM ruby:3.1.1-alpine3.15
2
-
3
- WORKDIR /src/
4
-
5
- ENTRYPOINT ["echo", "'true'"]