dina 1.0.1.0 → 1.0.2.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 +4 -2
- 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: fbfbd2dcf8fe43ff8f272959fe3ad4b9970f1387d3d8289cee4f53ff118f6020
|
4
|
+
data.tar.gz: 18e62c21166719bcc02814514ba3a83ab1408f4e33197ed9ad964906a4a8b793
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dca571f9eff1d89a5d349da47a25590035356bc72876697afa74159bc3da35a7ced59734424aa6ce44df765ecb745ab467b64e68235c6698937d3a9af8201996
|
7
|
+
data.tar.gz: f02c37ca6d5c8394c7bc481704455dc975d94aede391f38c40a285da87be0f195f3ecf4dd4539bde59ba23458b672cffe91ad1e92d4fe88f12c5f071f3f45ac1
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Dina
|
2
2
|
class File < BaseModel
|
3
|
-
attr_accessor :id, :file_path, :group, :is_derivative
|
3
|
+
attr_accessor :id, :file_path, :filename, :group, :is_derivative
|
4
4
|
|
5
5
|
def self.verify_ssl
|
6
6
|
begin
|
@@ -32,6 +32,7 @@ module Dina
|
|
32
32
|
@group = attributes[:group] || nil
|
33
33
|
@is_derivative = attributes[:is_derivative] || false
|
34
34
|
@file_path = attributes[:file_path] || nil
|
35
|
+
@filename = attributes[:filename] || File.basename(@file_path) rescue nil
|
35
36
|
end
|
36
37
|
|
37
38
|
def endpoint
|
@@ -62,7 +63,8 @@ module Dina
|
|
62
63
|
url: (!is_derivative) ? url : url + "/derivative",
|
63
64
|
payload: {
|
64
65
|
multipart: true,
|
65
|
-
file: file
|
66
|
+
file: file,
|
67
|
+
filename: filename
|
66
68
|
},
|
67
69
|
verify_ssl: self.class.verify_ssl
|
68
70
|
)
|
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: 1.0.
|
4
|
+
version: 1.0.2.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: 2023-06-
|
11
|
+
date: 2023-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json_api_client
|