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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbfbd2dcf8fe43ff8f272959fe3ad4b9970f1387d3d8289cee4f53ff118f6020
4
- data.tar.gz: 18e62c21166719bcc02814514ba3a83ab1408f4e33197ed9ad964906a4a8b793
3
+ metadata.gz: 57c88f1f527bde4e8469af79f11ec31ab1543db6c93723bc7ab7e9531d6726c7
4
+ data.tar.gz: d692c4c5656320ccf40fa72803c4e71a3845f902e87d5617e6ff7c1919a19b26
5
5
  SHA512:
6
- metadata.gz: dca571f9eff1d89a5d349da47a25590035356bc72876697afa74159bc3da35a7ced59734424aa6ce44df765ecb745ab467b64e68235c6698937d3a9af8201996
7
- data.tar.gz: f02c37ca6d5c8394c7bc481704455dc975d94aede391f38c40a285da87be0f195f3ecf4dd4539bde59ba23458b672cffe91ad1e92d4fe88f12c5f071f3f45ac1
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
@@ -3,7 +3,7 @@ module Dina
3
3
 
4
4
  MAJOR = 1
5
5
  MINOR = 0
6
- PATCH = 2
6
+ PATCH = 4
7
7
  BUILD = 0
8
8
 
9
9
  def self.version
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.2.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-15 00:00:00.000000000 Z
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