labimotion 1.4.0 → 1.4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/labimotion/apis/converter_api.rb +2 -2
- data/lib/labimotion/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b71d187c31ec221dea2c2ac6d92bf29efbf4004e16b48cf7a2bd0a85cd1dfdd4
|
4
|
+
data.tar.gz: 4360e6cfe542ae5e9db004c0039187cdd551981abd53f81370a0be5ee10839de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fe065bae48fbf7a36b1b409a17c7ff1c805bd83ad6f04b43267c024ca25d334dd5ea1092346bea5d38226c0a4bbb773d88c7487bd6adf884ae307e31884335d
|
7
|
+
data.tar.gz: 5ad569a9c25ef3fc9f454ce60634323ed3da644d1dc663fa949bc779630f25b1d8ba1c54ea21c4c5bd57efb6146e27ebca57e86bfa6fea8a60fad37ce09e93e2
|
@@ -39,11 +39,11 @@ module Labimotion
|
|
39
39
|
helpers do
|
40
40
|
def convert_structure(molfile)
|
41
41
|
molecule_viewer = Matrice.molecule_viewer
|
42
|
-
if molecule_viewer.blank? || molecule_viewer[:
|
42
|
+
if molecule_viewer.blank? || molecule_viewer[:chembox].blank?
|
43
43
|
{ molfile: molfile }
|
44
44
|
else
|
45
45
|
options = { timeout: 10, body: { mol: molfile }.to_json, headers: { 'Content-Type' => 'application/json' } }
|
46
|
-
response = HTTParty.post("#{molecule_viewer[:
|
46
|
+
response = HTTParty.post("#{molecule_viewer[:chembox]}/core/rdkit/v1/structure", options)
|
47
47
|
if response.code == 200
|
48
48
|
{ molfile: (response.parsed_response && response.parsed_response['molfile']) || molfile }
|
49
49
|
else
|
data/lib/labimotion/version.rb
CHANGED