ddr-core 1.6.1 → 1.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/ddr/file.rb +1 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56ac6d49feb36444d6095110ea798154470b0f07b0588e3f5ffb7d633b050602
4
- data.tar.gz: e162408521f4b1b081fe113fdcbb8661b4ff84922a0b5e351528c6c4464b72bf
3
+ metadata.gz: 99ec436371d4148ebfee4576ce833928fc61ed2cca6fe68554cad449fbe50ce7
4
+ data.tar.gz: 402f34417305356d93c660f39e1025fcb6849ccbbaa9d7df51ac4cbe0318efc5
5
5
  SHA512:
6
- metadata.gz: 5d397c92481df53addfc4768eab1c04aef60152df33016f95eb91ab471157cae4ee8777a4d37e89340e35fa8a1f0add04e73bdc0ea62f5e37251c2bb2e8873d1
7
- data.tar.gz: 2361cd02042e8c874cfafa20f617a24a3b3fb98c1a28f64465fd8e9aa9bb63e0e853a8a77ca66294f1ce95b5af4c8c27bd77fa3bb6ae02ce3ec56dbcbab22e10
6
+ metadata.gz: aca5d1e8ea50cd5807401c83ea168c80acd2c90fc2ae83ee00ebcb86638c548b666e7292fdd9ca7d5d55a9fc02866e6d03f8fe9cad6eaf70a1f2bc6791d672a9
7
+ data.tar.gz: 3d52d9c56ae02be930cc9c4de4d98a08170a3c0e1df371e758f87a246f8653c08c921ddf7764ae39c3c22d677d11cfce92fa91ad3ce0c83e7492ac44635bcf27
@@ -31,7 +31,7 @@ module Ddr
31
31
  # Return default file extension for file based on MIME type
32
32
  def default_file_extension
33
33
  mimetypes = MIME::Types[media_type]
34
- return mimetypes.first.extensions.first unless mimetypes.empty?
34
+ return mimetypes.first.preferred_extension unless mimetypes.empty?
35
35
  case media_type
36
36
  when 'application/n-triples'
37
37
  'txt'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ddr-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Coble
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2021-05-27 00:00:00.000000000 Z
14
+ date: 2021-06-21 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activeresource
@@ -455,7 +455,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
455
455
  - !ruby/object:Gem::Version
456
456
  version: '0'
457
457
  requirements: []
458
- rubygems_version: 3.2.18
458
+ rubygems_version: 3.2.20
459
459
  signing_key:
460
460
  specification_version: 4
461
461
  summary: Models used in the Duke Digital Repository