cheminee 0.1.11 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +7 -7
  3. data/README.md +10 -6
  4. data/cheminee.gemspec +2 -1
  5. data/docs/BulkRequestDoc.md +2 -2
  6. data/docs/DefaultApi.md +91 -20
  7. data/docs/IndexSchema.md +20 -0
  8. data/docs/QueryResponseError.md +18 -0
  9. data/docs/QuerySearchHit.md +22 -0
  10. data/docs/Smiles.md +18 -0
  11. data/docs/StandardizedSmiles.md +20 -0
  12. data/lib/cheminee/api/default_api.rb +99 -25
  13. data/lib/cheminee/api_client.rb +21 -20
  14. data/lib/cheminee/api_error.rb +1 -1
  15. data/lib/cheminee/configuration.rb +1 -1
  16. data/lib/cheminee/models/bulk_request.rb +2 -2
  17. data/lib/cheminee/models/bulk_request_doc.rb +13 -13
  18. data/lib/cheminee/models/create_index_error.rb +2 -2
  19. data/lib/cheminee/models/get_indexes_response_error.rb +2 -2
  20. data/lib/cheminee/models/index_meta.rb +2 -2
  21. data/lib/cheminee/models/index_schema.rb +233 -0
  22. data/lib/cheminee/models/list_index_response_err.rb +2 -2
  23. data/lib/cheminee/models/post_index_bulk_response_error.rb +2 -2
  24. data/lib/cheminee/models/post_index_bulk_response_ok.rb +2 -2
  25. data/lib/cheminee/models/post_index_bulk_response_ok_status.rb +2 -2
  26. data/lib/cheminee/models/query_response_error.rb +221 -0
  27. data/lib/cheminee/models/query_search_hit.rb +249 -0
  28. data/lib/cheminee/models/schema.rb +2 -2
  29. data/lib/cheminee/models/smiles.rb +221 -0
  30. data/lib/cheminee/models/standardized_smiles.rb +223 -0
  31. data/lib/cheminee/models/structure_response_error.rb +2 -2
  32. data/lib/cheminee/models/structure_search_hit.rb +2 -2
  33. data/lib/cheminee/version.rb +2 -2
  34. data/lib/cheminee.rb +6 -3
  35. data/pkg/cheminee-0.1.14.gem +0 -0
  36. data/spec/models/index_schema_spec.rb +42 -0
  37. data/spec/models/query_response_error_spec.rb +36 -0
  38. data/spec/models/query_search_hit_spec.rb +48 -0
  39. data/spec/models/smiles_spec.rb +36 -0
  40. data/spec/models/standardized_smiles_spec.rb +42 -0
  41. data/spec/spec_helper.rb +1 -1
  42. metadata +23 -3
  43. data/pkg/cheminee-0.1.11.gem +0 -0
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.3.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -166,7 +166,7 @@ module Cheminee
166
166
  else # model
167
167
  # models (e.g. Pet) or oneOf
168
168
  klass = Cheminee.const_get(type)
169
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
169
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
170
170
  end
171
171
  end
172
172
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.3.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -226,7 +226,7 @@ module Cheminee
226
226
  else # model
227
227
  # models (e.g. Pet) or oneOf
228
228
  klass = Cheminee.const_get(type)
229
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
229
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
230
230
  end
231
231
  end
232
232
 
@@ -6,10 +6,10 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.3.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  module Cheminee
14
- VERSION = '0.1.11'
14
+ VERSION = '0.1.14'
15
15
  end
data/lib/cheminee.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.3.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -22,13 +22,16 @@ require 'cheminee/models/bulk_request_doc'
22
22
  require 'cheminee/models/create_index_error'
23
23
  require 'cheminee/models/get_indexes_response_error'
24
24
  require 'cheminee/models/index_meta'
25
+ require 'cheminee/models/index_schema'
25
26
  require 'cheminee/models/list_index_response_err'
26
27
  require 'cheminee/models/post_index_bulk_response_error'
27
28
  require 'cheminee/models/post_index_bulk_response_ok'
28
29
  require 'cheminee/models/post_index_bulk_response_ok_status'
30
+ require 'cheminee/models/query_response_error'
31
+ require 'cheminee/models/query_search_hit'
29
32
  require 'cheminee/models/schema'
30
- require 'cheminee/models/smile'
31
- require 'cheminee/models/standardized_smile'
33
+ require 'cheminee/models/smiles'
34
+ require 'cheminee/models/standardized_smiles'
32
35
  require 'cheminee/models/structure_response_error'
33
36
  require 'cheminee/models/structure_search_hit'
34
37
 
Binary file
@@ -0,0 +1,42 @@
1
+ =begin
2
+ #Cheminée
3
+
4
+ #Cheminée: The Chemical Structure Search Engine
5
+
6
+ The version of the OpenAPI document: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Cheminee::IndexSchema
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Cheminee::IndexSchema do
21
+ let(:instance) { Cheminee::IndexSchema.new }
22
+
23
+ describe 'test an instance of IndexSchema' do
24
+ it 'should create an instance of IndexSchema' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Cheminee::IndexSchema)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "index"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "schema"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ end
@@ -0,0 +1,36 @@
1
+ =begin
2
+ #Cheminée
3
+
4
+ #Cheminée: The Chemical Structure Search Engine
5
+
6
+ The version of the OpenAPI document: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Cheminee::QueryResponseError
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Cheminee::QueryResponseError do
21
+ let(:instance) { Cheminee::QueryResponseError.new }
22
+
23
+ describe 'test an instance of QueryResponseError' do
24
+ it 'should create an instance of QueryResponseError' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Cheminee::QueryResponseError)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "error"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ end
@@ -0,0 +1,48 @@
1
+ =begin
2
+ #Cheminée
3
+
4
+ #Cheminée: The Chemical Structure Search Engine
5
+
6
+ The version of the OpenAPI document: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Cheminee::QuerySearchHit
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Cheminee::QuerySearchHit do
21
+ let(:instance) { Cheminee::QuerySearchHit.new }
22
+
23
+ describe 'test an instance of QuerySearchHit' do
24
+ it 'should create an instance of QuerySearchHit' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Cheminee::QuerySearchHit)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "extra_data"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "smiles"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "query"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ end
@@ -0,0 +1,36 @@
1
+ =begin
2
+ #Cheminée
3
+
4
+ #Cheminée: The Chemical Structure Search Engine
5
+
6
+ The version of the OpenAPI document: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Cheminee::Smiles
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Cheminee::Smiles do
21
+ let(:instance) { Cheminee::Smiles.new }
22
+
23
+ describe 'test an instance of Smiles' do
24
+ it 'should create an instance of Smiles' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Cheminee::Smiles)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "smiles"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ end
@@ -0,0 +1,42 @@
1
+ =begin
2
+ #Cheminée
3
+
4
+ #Cheminée: The Chemical Structure Search Engine
5
+
6
+ The version of the OpenAPI document: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Cheminee::StandardizedSmiles
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Cheminee::StandardizedSmiles do
21
+ let(:instance) { Cheminee::StandardizedSmiles.new }
22
+
23
+ describe 'test an instance of StandardizedSmiles' do
24
+ it 'should create an instance of StandardizedSmiles' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Cheminee::StandardizedSmiles)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "smiles"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "error"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ end
data/spec/spec_helper.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.3.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cheminee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xavier Lange
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-20 00:00:00.000000000 Z
11
+ date: 2024-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -68,13 +68,18 @@ files:
68
68
  - docs/DefaultApi.md
69
69
  - docs/GetIndexesResponseError.md
70
70
  - docs/IndexMeta.md
71
+ - docs/IndexSchema.md
71
72
  - docs/ListIndexResponseErr.md
72
73
  - docs/PostIndexBulkResponseError.md
73
74
  - docs/PostIndexBulkResponseOk.md
74
75
  - docs/PostIndexBulkResponseOkStatus.md
76
+ - docs/QueryResponseError.md
77
+ - docs/QuerySearchHit.md
75
78
  - docs/Schema.md
76
79
  - docs/Smile.md
80
+ - docs/Smiles.md
77
81
  - docs/StandardizedSmile.md
82
+ - docs/StandardizedSmiles.md
78
83
  - docs/StructureResponseError.md
79
84
  - docs/StructureSearchHit.md
80
85
  - docs/SubstructureSearchHit.md
@@ -89,20 +94,25 @@ files:
89
94
  - lib/cheminee/models/create_index_error.rb
90
95
  - lib/cheminee/models/get_indexes_response_error.rb
91
96
  - lib/cheminee/models/index_meta.rb
97
+ - lib/cheminee/models/index_schema.rb
92
98
  - lib/cheminee/models/list_index_response_err.rb
93
99
  - lib/cheminee/models/post_index_bulk_response_error.rb
94
100
  - lib/cheminee/models/post_index_bulk_response_ok.rb
95
101
  - lib/cheminee/models/post_index_bulk_response_ok_status.rb
102
+ - lib/cheminee/models/query_response_error.rb
103
+ - lib/cheminee/models/query_search_hit.rb
96
104
  - lib/cheminee/models/schema.rb
97
105
  - lib/cheminee/models/smile.rb
106
+ - lib/cheminee/models/smiles.rb
98
107
  - lib/cheminee/models/standardized_smile.rb
108
+ - lib/cheminee/models/standardized_smiles.rb
99
109
  - lib/cheminee/models/structure_response_error.rb
100
110
  - lib/cheminee/models/structure_search_hit.rb
101
111
  - lib/cheminee/models/substructure_search_hit.rb
102
112
  - lib/cheminee/version.rb
103
113
  - openapi-generator-config.json
104
114
  - openapi.json
105
- - pkg/cheminee-0.1.11.gem
115
+ - pkg/cheminee-0.1.14.gem
106
116
  - spec/api/default_api_spec.rb
107
117
  - spec/api_client_spec.rb
108
118
  - spec/configuration_spec.rb
@@ -111,13 +121,18 @@ files:
111
121
  - spec/models/create_index_error_spec.rb
112
122
  - spec/models/get_indexes_response_error_spec.rb
113
123
  - spec/models/index_meta_spec.rb
124
+ - spec/models/index_schema_spec.rb
114
125
  - spec/models/list_index_response_err_spec.rb
115
126
  - spec/models/post_index_bulk_response_error_spec.rb
116
127
  - spec/models/post_index_bulk_response_ok_spec.rb
117
128
  - spec/models/post_index_bulk_response_ok_status_spec.rb
129
+ - spec/models/query_response_error_spec.rb
130
+ - spec/models/query_search_hit_spec.rb
118
131
  - spec/models/schema_spec.rb
119
132
  - spec/models/smile_spec.rb
133
+ - spec/models/smiles_spec.rb
120
134
  - spec/models/standardized_smile_spec.rb
135
+ - spec/models/standardized_smiles_spec.rb
121
136
  - spec/models/structure_response_error_spec.rb
122
137
  - spec/models/structure_search_hit_spec.rb
123
138
  - spec/models/substructure_search_hit_spec.rb
@@ -154,13 +169,18 @@ test_files:
154
169
  - spec/models/standardized_smile_spec.rb
155
170
  - spec/models/smile_spec.rb
156
171
  - spec/models/structure_response_error_spec.rb
172
+ - spec/models/index_schema_spec.rb
157
173
  - spec/models/get_indexes_response_error_spec.rb
174
+ - spec/models/query_search_hit_spec.rb
158
175
  - spec/models/bulk_request_spec.rb
176
+ - spec/models/query_response_error_spec.rb
159
177
  - spec/models/substructure_search_hit_spec.rb
160
178
  - spec/models/bulk_request_doc_spec.rb
161
179
  - spec/models/post_index_bulk_response_ok_status_spec.rb
180
+ - spec/models/smiles_spec.rb
162
181
  - spec/models/schema_spec.rb
163
182
  - spec/models/structure_search_hit_spec.rb
183
+ - spec/models/standardized_smiles_spec.rb
164
184
  - spec/models/list_index_response_err_spec.rb
165
185
  - spec/models/index_meta_spec.rb
166
186
  - spec/models/create_index_error_spec.rb
Binary file