carrierwave-audio 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/carrierwave/audio.rb +3 -3
- data/lib/carrierwave/audio/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf4938a0ba17aec10068fac1cc876c87f102fa2c
|
4
|
+
data.tar.gz: 0bd35be4c177378ec20c730c1e6f16f0cdab9bac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45f567e93f83eaeca79474ff966a635d4b98605f65dae4324503ecda41035dbc31b3ac38137211087f24a1fc3b2a4b284614689bdf0dbdbc916722e9ebad8c43
|
7
|
+
data.tar.gz: 50e3130e4270da25bbcd374bb6a3c83cfce090490f84db0347f2194a06e51b548bf0882296138ce21c9b7590e73420518681eff66b7003c425169016c98c5e67
|
data/lib/carrierwave/audio.rb
CHANGED
@@ -19,7 +19,7 @@ module CarrierWave
|
|
19
19
|
cache_stored_file! if !cached?
|
20
20
|
|
21
21
|
audio_filename = Processor.convert(current_path, options)
|
22
|
-
extension = File.extname(audio_filename)
|
22
|
+
extension = File.extname(audio_filename).gsub(/\./, '')
|
23
23
|
File.rename audio_filename, current_path
|
24
24
|
set_content_type extension
|
25
25
|
end
|
@@ -28,7 +28,7 @@ module CarrierWave
|
|
28
28
|
cache_stored_file! if !cached?
|
29
29
|
|
30
30
|
audio_filename = Processor.watermark(current_path, options)
|
31
|
-
extension = File.extname(audio_filename)
|
31
|
+
extension = File.extname(audio_filename).gsub(/\./, '')
|
32
32
|
File.rename audio_filename, current_path
|
33
33
|
set_content_type extension
|
34
34
|
end
|
@@ -42,4 +42,4 @@ module CarrierWave
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|
45
|
-
end
|
45
|
+
end
|