dina 0.5.6.0 → 0.5.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dina/models/object_store/file.rb +13 -3
- data/lib/dina/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4999fc970acb56ad2c4dcacb27124741d65c91b9dc00f13267b6da0f756ee3a9
|
4
|
+
data.tar.gz: 461e2ca77f1b4f4e7a675e42fc5f81008e967222211fb7ea4b0aa8435f869700
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b3573481c0cfffd4fca4f32f8ff521ad357e7eb63598fc3d6ce77441d3a154c1b69bb382ef8473a0ce5525c8268042e4fd936bd203bc7970c720da320aba1b6
|
7
|
+
data.tar.gz: eabb87d0e292a17a4cd1769757c5de8e0862e3fc23aaeb81dcb1d3d5613f211e5937d42eddef28098872e195d8814431de9b33771e972ac6e5ab0a58e42ab84b
|
@@ -1,14 +1,23 @@
|
|
1
1
|
module Dina
|
2
|
-
class File
|
2
|
+
class File < BaseModel
|
3
3
|
attr_accessor :file_path, :group, :is_derivative, :id
|
4
4
|
|
5
|
+
def self.verify_ssl
|
6
|
+
begin
|
7
|
+
connection_options[:ssl][:verify]
|
8
|
+
rescue
|
9
|
+
true
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
5
13
|
def self.find(group:, id:)
|
6
14
|
obj = self.new
|
7
15
|
obj.group = group
|
8
16
|
RestClient::Request.execute(
|
9
17
|
method: :get,
|
10
18
|
headers: { authorization: Dina::Authentication.header },
|
11
|
-
url: obj.url + "/#{id}"
|
19
|
+
url: obj.url + "/#{id}",
|
20
|
+
verify_ssl: verify_ssl
|
12
21
|
)
|
13
22
|
end
|
14
23
|
|
@@ -44,7 +53,8 @@ module Dina
|
|
44
53
|
payload: {
|
45
54
|
multipart: true,
|
46
55
|
file: file
|
47
|
-
}
|
56
|
+
},
|
57
|
+
verify_ssl: self.class.verify_ssl
|
48
58
|
)
|
49
59
|
json = JSON.parse(response, symbolize_names: true)
|
50
60
|
self.id = json[:uuid]
|
data/lib/dina/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dina
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David P. Shorthouse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json_api_client
|