dina 1.0.1.0 → 1.0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d2a097b00eeb5c7b3c635dd0d51aa07522184b1450fd236f04d0fe24f31c327
4
- data.tar.gz: b02dddb19f47c77135c2adc1e14c58438c8f68deebd3bde2090af43f14ae7a72
3
+ metadata.gz: fbfbd2dcf8fe43ff8f272959fe3ad4b9970f1387d3d8289cee4f53ff118f6020
4
+ data.tar.gz: 18e62c21166719bcc02814514ba3a83ab1408f4e33197ed9ad964906a4a8b793
5
5
  SHA512:
6
- metadata.gz: d27f56063e50804ded7c43c3a67a0cce731c5473857e0e075f21892204ac8acbf266eae22fae093c90b665b31c263a27532d4316c00451f5d27c2212c344a1ec
7
- data.tar.gz: b22951760cf2a7e3d6c4a3bf13a036d6430d514030ae25aa9ec8bca1b8aa6e4d003da75dcd7462b554c1306cc6a4c7ec83140ef2a2234f963fcb4bbcd6e0c017
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
@@ -3,7 +3,7 @@ module Dina
3
3
 
4
4
  MAJOR = 1
5
5
  MINOR = 0
6
- PATCH = 1
6
+ PATCH = 2
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.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-08 00:00:00.000000000 Z
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