ddr-models 3.0.0.rc6 → 3.0.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
  SHA1:
3
- metadata.gz: 6221b58e1c08d584587392c482d43567bebfca21
4
- data.tar.gz: 83d4109b5fda3dc2bcb73cf0200b86c2323c1cbb
3
+ metadata.gz: 93a4738c22acccd452b340bd9bde7d2dbb4eac11
4
+ data.tar.gz: 5f3b011aa5c923fa17660db8b48bf5cb528caea2
5
5
  SHA512:
6
- metadata.gz: c88cf0d218192ab7bbc26ae5552df1d087cc4d9d67c2cdd35bfd2fa674760c97db298ccfaf117b7583df5f3301b955d8cc6482df4218e462363c3fd13e56bb2e
7
- data.tar.gz: 024ea216efe3f4172d02a60e8e2e4f9523cc930b3e2bf374a0fa2298d40d0bc82e8428fb416f8a69bbe9f8fcf017e411861e93dbd52a822be4c6cc1397fbdf5d
6
+ metadata.gz: 6dafeee44f551b18eb0b26c674df5cfa6e776104cf3d9c0bb05375717fc68ae488f45200214d142efaeeaa33120beab0d5f2116af1d428aedd60222161a4dfb6
7
+ data.tar.gz: e90b570e88827930395c2ab3be39d64a1e8c2cf2bddfa20f65016c3175cdbcd77b889b65bf377a4486b14b545b6ae62863a85a63aeb7e414f4078afe29a464e7
@@ -23,7 +23,12 @@ module Ddr::Derivatives
23
23
  end
24
24
 
25
25
  def output_file_name(object)
26
- basename = object.content.original_name.present? ? File.basename(object.content.original_name, '.*') : "multires_image"
26
+ basename = if object.content.original_name.present?
27
+ bname = File.basename(object.content.original_name, '.*')
28
+ Ddr::Utils.sanitize_filename(bname)
29
+ else
30
+ "multires_image"
31
+ end
27
32
  "#{basename}.#{generator.class.output_extension}"
28
33
  end
29
34
 
@@ -1,5 +1,5 @@
1
1
  module Ddr
2
2
  module Models
3
- VERSION = "3.0.0.rc6"
3
+ VERSION = "3.0.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ddr-models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.rc6
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Coble
@@ -756,9 +756,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
756
756
  version: '0'
757
757
  required_rubygems_version: !ruby/object:Gem::Requirement
758
758
  requirements:
759
- - - ">"
759
+ - - ">="
760
760
  - !ruby/object:Gem::Version
761
- version: 1.3.1
761
+ version: '0'
762
762
  requirements: []
763
763
  rubyforge_project:
764
764
  rubygems_version: 2.4.3