dina 1.0.2.0 → 1.0.4.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 +7 -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: 57c88f1f527bde4e8469af79f11ec31ab1543db6c93723bc7ab7e9531d6726c7
|
4
|
+
data.tar.gz: d692c4c5656320ccf40fa72803c4e71a3845f902e87d5617e6ff7c1919a19b26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a15916469accd7a5a4bfd47a7040c3ae0f88579abeb0af354010d23f29097f5bf4ed7f64bf88bcc18fa27bd0f9e212494b9092eb1df162df755e74045242eea
|
7
|
+
data.tar.gz: 6869a4ee58ce7979604aed313504afe6bda3b65247ca1a12b3e472c9c3fea7f6221d1507c8dae9ec3396238cee4109d600c33c711e1e62d7027d4f3bdd55623f
|
@@ -52,7 +52,12 @@ module Dina
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def file
|
55
|
-
::File.new(file_path)
|
55
|
+
new_file = ::File.new(file_path)
|
56
|
+
bound = filename.dup
|
57
|
+
new_file.define_singleton_method(:original_filename) do
|
58
|
+
bound
|
59
|
+
end
|
60
|
+
new_file
|
56
61
|
end
|
57
62
|
|
58
63
|
def save
|
@@ -63,8 +68,7 @@ module Dina
|
|
63
68
|
url: (!is_derivative) ? url : url + "/derivative",
|
64
69
|
payload: {
|
65
70
|
multipart: true,
|
66
|
-
file: file
|
67
|
-
filename: filename
|
71
|
+
file: file
|
68
72
|
},
|
69
73
|
verify_ssl: self.class.verify_ssl
|
70
74
|
)
|
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.4.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-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json_api_client
|