carrierwave-audio 1.0.1 → 1.0.2
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 +4 -4
- data/README.md +1 -1
- data/lib/carrierwave/audio/version.rb +1 -1
- data/lib/carrierwave/audio.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 996e33c9cb030bee7964d4db792e9f1895de8c65
|
|
4
|
+
data.tar.gz: abb3d0ca6e0c6a1e0140a0376ebdb3eb3b89eedd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7575f6521c1acdb52b41d6e1055b41ce08781ce029d1083230f28c7740161026c4147dccb2a1282dd711bbf5ab700c2893502562ba844d876a9b533fafe3dc4a
|
|
7
|
+
data.tar.gz: eae7eddc4a4088da30e36897258e178c07a7196fcc9c955833f91f0a5b092ceb142642b397bc61d1627c5c6760d0d5c8302c2e9c31bbb4c02a7dcdec28c45fec
|
data/README.md
CHANGED
|
@@ -83,7 +83,7 @@ If you'd like to add a watermark over the top of your file, use `watermark` like
|
|
|
83
83
|
|
|
84
84
|
`watermark_file_path` - REQUIRED. Path to where your watermarked file is stored.
|
|
85
85
|
|
|
86
|
-
VERY IMPORTANT: The watermarked file must be a 44.1k, 2-channel mp3. It needs to be a long file. It'll be
|
|
86
|
+
VERY IMPORTANT: The watermarked file must be a 44.1k, 2-channel mp3. It needs to be a long file. It'll be truncated to fit the length of your uploaded file.
|
|
87
87
|
|
|
88
88
|
`output_format` - Optional. The only currently available option is the default, `:mp3`.
|
|
89
89
|
|
data/lib/carrierwave/audio.rb
CHANGED
|
@@ -17,6 +17,7 @@ module CarrierWave
|
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
def convert output_format = :mp3, output_options = {}
|
|
20
|
+
cache_stored_file! if !cached?
|
|
20
21
|
format = sanitized_format(output_format)
|
|
21
22
|
ext = File.extname(current_path)
|
|
22
23
|
input_options = { type: ext.gsub(/\./, '') }
|
|
@@ -28,6 +29,7 @@ module CarrierWave
|
|
|
28
29
|
end
|
|
29
30
|
|
|
30
31
|
def watermark watermark_file_path, output_format = :mp3, output_options = {}
|
|
32
|
+
cache_stored_file! if !cached?
|
|
31
33
|
format = sanitized_format(output_format)
|
|
32
34
|
ext = File.extname(current_path)
|
|
33
35
|
watermark_ext = File.extname(watermark_file_path)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: carrierwave-audio
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Trevor Hinesley
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-10-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: carrierwave
|