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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c9b7615a28c346d73cd16017f9943d4477b560d
4
- data.tar.gz: ddd8e120252b8c032727e568f3d6fcaf6bbd4c9a
3
+ metadata.gz: 996e33c9cb030bee7964d4db792e9f1895de8c65
4
+ data.tar.gz: abb3d0ca6e0c6a1e0140a0376ebdb3eb3b89eedd
5
5
  SHA512:
6
- metadata.gz: 7b5d82802d447ece58bd1260ed2bc538b130d19882132886975649dfb0d5d069f4b9a3db9ee77d8367141947935584908d6597bdc32567403d998c20502f6e22
7
- data.tar.gz: 74ff970538d3d380daf2fba2244e66002bfd10d1639636b86b49889d552c3dedd0f9825795ad642b68c047215eb2ce3e9a82e24ac94d2d0d6432d5c2585b7f29
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 concatenated to fit the length of your uploaded file.
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
 
@@ -1,5 +1,5 @@
1
1
  module CarrierWave
2
2
  module Audio
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
5
5
  end
@@ -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.1
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-03-13 00:00:00.000000000 Z
11
+ date: 2016-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carrierwave