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.
- checksums.yaml +4 -4
- data/app/models/ddr/file.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99ec436371d4148ebfee4576ce833928fc61ed2cca6fe68554cad449fbe50ce7
|
4
|
+
data.tar.gz: 402f34417305356d93c660f39e1025fcb6849ccbbaa9d7df51ac4cbe0318efc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aca5d1e8ea50cd5807401c83ea168c80acd2c90fc2ae83ee00ebcb86638c548b666e7292fdd9ca7d5d55a9fc02866e6d03f8fe9cad6eaf70a1f2bc6791d672a9
|
7
|
+
data.tar.gz: 3d52d9c56ae02be930cc9c4de4d98a08170a3c0e1df371e758f87a246f8653c08c921ddf7764ae39c3c22d677d11cfce92fa91ad3ce0c83e7492ac44635bcf27
|
data/app/models/ddr/file.rb
CHANGED
@@ -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.
|
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.
|
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-
|
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.
|
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
|