cheminee 0.1.19 → 0.1.21
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/Gemfile.lock +9 -9
- data/README.md +5 -5
- data/cheminee.gemspec +1 -1
- data/docs/DefaultApi.md +3 -1
- data/docs/QuerySearchHit.md +1 -1
- data/docs/StructureSearchHit.md +1 -1
- data/lib/cheminee/api/default_api.rb +4 -1
- data/lib/cheminee/api_client.rb +3 -3
- data/lib/cheminee/api_error.rb +1 -1
- data/lib/cheminee/configuration.rb +11 -1
- data/lib/cheminee/models/bulk_request.rb +1 -1
- data/lib/cheminee/models/bulk_request_doc.rb +1 -1
- data/lib/cheminee/models/converted_smiles.rb +1 -1
- data/lib/cheminee/models/create_index_error.rb +1 -1
- data/lib/cheminee/models/get_indexes_response_error.rb +1 -1
- data/lib/cheminee/models/index_meta.rb +1 -1
- data/lib/cheminee/models/index_schema.rb +1 -1
- data/lib/cheminee/models/list_index_response_err.rb +1 -1
- data/lib/cheminee/models/mol_block.rb +1 -1
- data/lib/cheminee/models/post_index_bulk_response_error.rb +1 -1
- data/lib/cheminee/models/post_index_bulk_response_ok.rb +1 -1
- data/lib/cheminee/models/post_index_bulk_response_ok_status.rb +1 -1
- data/lib/cheminee/models/query_response_error.rb +1 -1
- data/lib/cheminee/models/query_search_hit.rb +7 -3
- data/lib/cheminee/models/schema.rb +1 -1
- data/lib/cheminee/models/smiles.rb +1 -1
- data/lib/cheminee/models/standardized_smiles.rb +1 -1
- data/lib/cheminee/models/structure_response_error.rb +1 -1
- data/lib/cheminee/models/structure_search_hit.rb +7 -3
- data/lib/cheminee/version.rb +2 -2
- data/lib/cheminee.rb +1 -1
- data/pkg/cheminee-0.1.21.gem +0 -0
- data/spec/spec_helper.rb +1 -1
- metadata +17 -17
- data/pkg/cheminee-0.1.19.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94540570dc590389820fe841bb3d558f78e6c9af38b3e7cf0fce6ff15feb4341
|
4
|
+
data.tar.gz: dcca2f608d6482fd53e0a6945033027c0c45e6aecb8a39b7e560080abe7d5be0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89a4957b0f810d2013e6b99d07ccf8b9325b829490c3ea9abafc1017e315e89848c5acb8dde935e764200ea50f30e6f5f10f3420f2d583b94aa1ea217d059b6b
|
7
|
+
data.tar.gz: 960a8638b55c76baa9396a1e1d01d1f88f51a34c1460131ba4178d4a13249fff4bd565397f0cb51cde2fab7dd4f819de1b115e5d621d9c8f947a134c4cdd81a7
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cheminee (0.1.
|
4
|
+
cheminee (0.1.21)
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -13,11 +13,11 @@ GEM
|
|
13
13
|
diff-lcs (1.5.1)
|
14
14
|
ethon (0.16.0)
|
15
15
|
ffi (>= 1.15.0)
|
16
|
-
ffi (1.
|
16
|
+
ffi (1.17.0-x86_64-linux-gnu)
|
17
17
|
jaro_winkler (1.5.6)
|
18
|
-
method_source (1.
|
19
|
-
parallel (1.
|
20
|
-
parser (3.3.0
|
18
|
+
method_source (1.1.0)
|
19
|
+
parallel (1.25.1)
|
20
|
+
parser (3.3.3.0)
|
21
21
|
ast (~> 2.4.1)
|
22
22
|
racc
|
23
23
|
pry (0.14.2)
|
@@ -28,7 +28,7 @@ GEM
|
|
28
28
|
pry (>= 0.13, < 0.15)
|
29
29
|
psych (5.1.2)
|
30
30
|
stringio
|
31
|
-
racc (1.
|
31
|
+
racc (1.8.0)
|
32
32
|
rainbow (3.1.1)
|
33
33
|
rake (13.0.6)
|
34
34
|
rspec (3.13.0)
|
@@ -37,10 +37,10 @@ GEM
|
|
37
37
|
rspec-mocks (~> 3.13.0)
|
38
38
|
rspec-core (3.13.0)
|
39
39
|
rspec-support (~> 3.13.0)
|
40
|
-
rspec-expectations (3.13.
|
40
|
+
rspec-expectations (3.13.1)
|
41
41
|
diff-lcs (>= 1.2.0, < 2.0)
|
42
42
|
rspec-support (~> 3.13.0)
|
43
|
-
rspec-mocks (3.13.
|
43
|
+
rspec-mocks (3.13.1)
|
44
44
|
diff-lcs (>= 1.2.0, < 2.0)
|
45
45
|
rspec-support (~> 3.13.0)
|
46
46
|
rspec-support (3.13.1)
|
@@ -53,7 +53,7 @@ GEM
|
|
53
53
|
ruby-progressbar (~> 1.7)
|
54
54
|
unicode-display_width (>= 1.4.0, < 1.6)
|
55
55
|
ruby-progressbar (1.13.0)
|
56
|
-
stringio (3.1.
|
56
|
+
stringio (3.1.1)
|
57
57
|
typhoeus (1.4.1)
|
58
58
|
ethon (>= 0.9.0)
|
59
59
|
unicode-display_width (1.5.0)
|
data/README.md
CHANGED
@@ -7,8 +7,8 @@ Cheminée: The Chemical Structure Search Engine
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 1.0
|
10
|
-
- Package version: 0.1.
|
11
|
-
- Generator version: 7.
|
10
|
+
- Package version: 0.1.21
|
11
|
+
- Generator version: 7.8.0-SNAPSHOT
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
13
13
|
For more information, please visit [https://github.com/rdkit-rs/cheminee](https://github.com/rdkit-rs/cheminee)
|
14
14
|
|
@@ -25,16 +25,16 @@ gem build cheminee.gemspec
|
|
25
25
|
Then either install the gem locally:
|
26
26
|
|
27
27
|
```shell
|
28
|
-
gem install ./cheminee-0.1.
|
28
|
+
gem install ./cheminee-0.1.21.gem
|
29
29
|
```
|
30
30
|
|
31
|
-
(for development, run `gem install --dev ./cheminee-0.1.
|
31
|
+
(for development, run `gem install --dev ./cheminee-0.1.21.gem` to install the development dependencies)
|
32
32
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
34
34
|
|
35
35
|
Finally add this to the Gemfile:
|
36
36
|
|
37
|
-
gem 'cheminee', '~> 0.1.
|
37
|
+
gem 'cheminee', '~> 0.1.21'
|
38
38
|
|
39
39
|
### Install from Git
|
40
40
|
|
data/cheminee.gemspec
CHANGED
data/docs/DefaultApi.md
CHANGED
@@ -418,7 +418,8 @@ smiles = 'smiles_example' # String |
|
|
418
418
|
opts = {
|
419
419
|
result_limit: 56, # Integer |
|
420
420
|
tautomer_limit: 56, # Integer |
|
421
|
-
extra_query: 'extra_query_example' # String |
|
421
|
+
extra_query: 'extra_query_example', # String |
|
422
|
+
use_scaffolds: 'use_scaffolds_example' # String |
|
422
423
|
}
|
423
424
|
|
424
425
|
begin
|
@@ -457,6 +458,7 @@ end
|
|
457
458
|
| **result_limit** | **Integer** | | [optional] |
|
458
459
|
| **tautomer_limit** | **Integer** | | [optional] |
|
459
460
|
| **extra_query** | **String** | | [optional] |
|
461
|
+
| **use_scaffolds** | **String** | | [optional] |
|
460
462
|
|
461
463
|
### Return type
|
462
464
|
|
data/docs/QuerySearchHit.md
CHANGED
data/docs/StructureSearchHit.md
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
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.8.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -429,6 +429,7 @@ module Cheminee
|
|
429
429
|
# @option opts [Integer] :result_limit
|
430
430
|
# @option opts [Integer] :tautomer_limit
|
431
431
|
# @option opts [String] :extra_query
|
432
|
+
# @option opts [String] :use_scaffolds
|
432
433
|
# @return [Array<StructureSearchHit>]
|
433
434
|
def v1_indexes_index_search_substructure_get(index, smiles, opts = {})
|
434
435
|
data, _status_code, _headers = v1_indexes_index_search_substructure_get_with_http_info(index, smiles, opts)
|
@@ -442,6 +443,7 @@ module Cheminee
|
|
442
443
|
# @option opts [Integer] :result_limit
|
443
444
|
# @option opts [Integer] :tautomer_limit
|
444
445
|
# @option opts [String] :extra_query
|
446
|
+
# @option opts [String] :use_scaffolds
|
445
447
|
# @return [Array<(Array<StructureSearchHit>, Integer, Hash)>] Array<StructureSearchHit> data, response status code and response headers
|
446
448
|
def v1_indexes_index_search_substructure_get_with_http_info(index, smiles, opts = {})
|
447
449
|
if @api_client.config.debugging
|
@@ -464,6 +466,7 @@ module Cheminee
|
|
464
466
|
query_params[:'result_limit'] = opts[:'result_limit'] if !opts[:'result_limit'].nil?
|
465
467
|
query_params[:'tautomer_limit'] = opts[:'tautomer_limit'] if !opts[:'tautomer_limit'].nil?
|
466
468
|
query_params[:'extra_query'] = opts[:'extra_query'] if !opts[:'extra_query'].nil?
|
469
|
+
query_params[:'use_scaffolds'] = opts[:'use_scaffolds'] if !opts[:'use_scaffolds'].nil?
|
467
470
|
|
468
471
|
# header parameters
|
469
472
|
header_params = opts[:header_params] || {}
|
data/lib/cheminee/api_client.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
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.8.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -211,7 +211,7 @@ module Cheminee
|
|
211
211
|
# @param [String] mime MIME
|
212
212
|
# @return [Boolean] True if the MIME is application/json
|
213
213
|
def json_mime?(mime)
|
214
|
-
(mime == '*/*') || !(mime =~
|
214
|
+
(mime == '*/*') || !(mime =~ /^Application\/.*json(?!p)(;.*)?/i).nil?
|
215
215
|
end
|
216
216
|
|
217
217
|
# Deserialize the response to the given return type.
|
@@ -290,7 +290,7 @@ module Cheminee
|
|
290
290
|
# @param [String] filename the filename to be sanitized
|
291
291
|
# @return [String] the sanitized filename
|
292
292
|
def sanitize_filename(filename)
|
293
|
-
filename.
|
293
|
+
filename.split(/[\/\\]/).last
|
294
294
|
end
|
295
295
|
|
296
296
|
def build_request_url(path, opts = {})
|
data/lib/cheminee/api_error.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
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.8.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -79,6 +79,14 @@ module Cheminee
|
|
79
79
|
# @return [true, false]
|
80
80
|
attr_accessor :debugging
|
81
81
|
|
82
|
+
# Set this to ignore operation servers for the API client. This is useful when you need to
|
83
|
+
# send requests to a different server than the one specified in the OpenAPI document.
|
84
|
+
# Will default to the base url defined in the spec but can be overridden by setting
|
85
|
+
# `scheme`, `host`, `base_path` directly.
|
86
|
+
# Default to false.
|
87
|
+
# @return [true, false]
|
88
|
+
attr_accessor :ignore_operation_servers
|
89
|
+
|
82
90
|
# Defines the logger used for debugging.
|
83
91
|
# Default to `Rails.logger` (when in Rails) or logging to STDOUT.
|
84
92
|
#
|
@@ -166,6 +174,7 @@ module Cheminee
|
|
166
174
|
@timeout = 0
|
167
175
|
@params_encoding = nil
|
168
176
|
@debugging = false
|
177
|
+
@ignore_operation_servers = false
|
169
178
|
@inject_format = false
|
170
179
|
@force_ending_format = false
|
171
180
|
@logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
|
@@ -200,6 +209,7 @@ module Cheminee
|
|
200
209
|
|
201
210
|
# Returns base URL for specified operation based on server settings
|
202
211
|
def base_url(operation = nil)
|
212
|
+
return "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') if ignore_operation_servers
|
203
213
|
if operation_server_settings.key?(operation) then
|
204
214
|
index = server_operation_index.fetch(operation, server_index)
|
205
215
|
server_url(index.nil? ? 0 : index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation])
|
@@ -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
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.8.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -38,7 +38,7 @@ module Cheminee
|
|
38
38
|
# Attribute type mapping.
|
39
39
|
def self.openapi_types
|
40
40
|
{
|
41
|
-
:'extra_data' => :'
|
41
|
+
:'extra_data' => :'String',
|
42
42
|
:'smiles' => :'String',
|
43
43
|
:'query' => :'String'
|
44
44
|
}
|
@@ -47,7 +47,6 @@ module Cheminee
|
|
47
47
|
# List of attributes with nullable: true
|
48
48
|
def self.openapi_nullable
|
49
49
|
Set.new([
|
50
|
-
:'extra_data',
|
51
50
|
])
|
52
51
|
end
|
53
52
|
|
@@ -90,6 +89,10 @@ module Cheminee
|
|
90
89
|
def list_invalid_properties
|
91
90
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
92
91
|
invalid_properties = Array.new
|
92
|
+
if @extra_data.nil?
|
93
|
+
invalid_properties.push('invalid value for "extra_data", extra_data cannot be nil.')
|
94
|
+
end
|
95
|
+
|
93
96
|
if @smiles.nil?
|
94
97
|
invalid_properties.push('invalid value for "smiles", smiles cannot be nil.')
|
95
98
|
end
|
@@ -105,6 +108,7 @@ module Cheminee
|
|
105
108
|
# @return true if the model is valid
|
106
109
|
def valid?
|
107
110
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
111
|
+
return false if @extra_data.nil?
|
108
112
|
return false if @smiles.nil?
|
109
113
|
return false if @query.nil?
|
110
114
|
true
|
@@ -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
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.8.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -44,7 +44,7 @@ module Cheminee
|
|
44
44
|
# Attribute type mapping.
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
|
-
:'extra_data' => :'
|
47
|
+
:'extra_data' => :'String',
|
48
48
|
:'smiles' => :'String',
|
49
49
|
:'score' => :'Float',
|
50
50
|
:'query' => :'String',
|
@@ -55,7 +55,6 @@ module Cheminee
|
|
55
55
|
# List of attributes with nullable: true
|
56
56
|
def self.openapi_nullable
|
57
57
|
Set.new([
|
58
|
-
:'extra_data',
|
59
58
|
])
|
60
59
|
end
|
61
60
|
|
@@ -110,6 +109,10 @@ module Cheminee
|
|
110
109
|
def list_invalid_properties
|
111
110
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
112
111
|
invalid_properties = Array.new
|
112
|
+
if @extra_data.nil?
|
113
|
+
invalid_properties.push('invalid value for "extra_data", extra_data cannot be nil.')
|
114
|
+
end
|
115
|
+
|
113
116
|
if @smiles.nil?
|
114
117
|
invalid_properties.push('invalid value for "smiles", smiles cannot be nil.')
|
115
118
|
end
|
@@ -133,6 +136,7 @@ module Cheminee
|
|
133
136
|
# @return true if the model is valid
|
134
137
|
def valid?
|
135
138
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
139
|
+
return false if @extra_data.nil?
|
136
140
|
return false if @smiles.nil?
|
137
141
|
return false if @score.nil?
|
138
142
|
return false if @query.nil?
|
data/lib/cheminee/version.rb
CHANGED
data/lib/cheminee.rb
CHANGED
Binary file
|
data/spec/spec_helper.rb
CHANGED
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.
|
4
|
+
version: 0.1.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xavier Lange
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -116,7 +116,7 @@ files:
|
|
116
116
|
- lib/cheminee/version.rb
|
117
117
|
- openapi-generator-config.json
|
118
118
|
- openapi.json
|
119
|
-
- pkg/cheminee-0.1.
|
119
|
+
- pkg/cheminee-0.1.21.gem
|
120
120
|
- spec/api/default_api_spec.rb
|
121
121
|
- spec/api_client_spec.rb
|
122
122
|
- spec/configuration_spec.rb
|
@@ -170,26 +170,26 @@ test_files:
|
|
170
170
|
- spec/api/default_api_spec.rb
|
171
171
|
- spec/api_client_spec.rb
|
172
172
|
- spec/configuration_spec.rb
|
173
|
+
- spec/models/bulk_request_spec.rb
|
174
|
+
- spec/models/query_search_hit_spec.rb
|
175
|
+
- spec/models/index_schema_spec.rb
|
176
|
+
- spec/models/index_meta_spec.rb
|
177
|
+
- spec/models/post_index_bulk_response_ok_status_spec.rb
|
178
|
+
- spec/models/get_indexes_response_error_spec.rb
|
173
179
|
- spec/models/post_index_bulk_response_ok_spec.rb
|
180
|
+
- spec/models/query_response_error_spec.rb
|
174
181
|
- spec/models/post_index_bulk_response_error_spec.rb
|
182
|
+
- spec/models/smiles_spec.rb
|
175
183
|
- spec/models/standardized_smile_spec.rb
|
176
|
-
- spec/models/
|
177
|
-
- spec/models/structure_response_error_spec.rb
|
184
|
+
- spec/models/bulk_request_doc_spec.rb
|
178
185
|
- spec/models/converted_smiles_spec.rb
|
179
|
-
- spec/models/
|
180
|
-
- spec/models/
|
181
|
-
- spec/models/
|
182
|
-
- spec/models/
|
183
|
-
- spec/models/query_response_error_spec.rb
|
186
|
+
- spec/models/standardized_smiles_spec.rb
|
187
|
+
- spec/models/schema_spec.rb
|
188
|
+
- spec/models/smile_spec.rb
|
189
|
+
- spec/models/create_index_error_spec.rb
|
184
190
|
- spec/models/substructure_search_hit_spec.rb
|
185
191
|
- spec/models/mol_block_spec.rb
|
186
|
-
- spec/models/bulk_request_doc_spec.rb
|
187
|
-
- spec/models/post_index_bulk_response_ok_status_spec.rb
|
188
|
-
- spec/models/smiles_spec.rb
|
189
|
-
- spec/models/schema_spec.rb
|
190
192
|
- spec/models/structure_search_hit_spec.rb
|
191
|
-
- spec/models/
|
193
|
+
- spec/models/structure_response_error_spec.rb
|
192
194
|
- spec/models/list_index_response_err_spec.rb
|
193
|
-
- spec/models/index_meta_spec.rb
|
194
|
-
- spec/models/create_index_error_spec.rb
|
195
195
|
- spec/spec_helper.rb
|
data/pkg/cheminee-0.1.19.gem
DELETED
Binary file
|