File: Rakefile

package info (click to toggle)
ruby-ogginfo 0.7.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 252 kB
  • sloc: ruby: 2,010; makefile: 8
file content (31 lines) | stat: -rw-r--r-- 1,025 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# -*- ruby -*-

require 'hoe'

Hoe.plugin :yard
Hoe.plugin :git
Hoe.plugin :rcov
Hoe.plugin :gemspec

Hoe.spec('ruby-ogginfo') do 
  developer('Guillaume Pierronnet','guillaume.pierronnet@gmail.com')
  developer('Grant Gardner','grant@lastweekend.com.au')
  #summary = 'ruby-ogginfo is a pure-ruby library that gives low level informations on ogg files'
  remote_rdoc_dir = ''
  rdoc_locations << "rubyforge.org:/var/www/gforge-projects/ruby-ogginfo/"
end

desc "generate audio fixtures"
task :generate_fixtures do
  ffmpeg = "ffmpeg -f u16le -i /dev/urandom -t 3 -ar 48000 -ac 2 -f wav -y - 2>/dev/null" 
  files = {
    :ogg => "oggenc -q0 --raw --artist=artist -o - -",
    :opus => "opusenc --bitrate 64 --artist=artist - -",
    :speex => "speexenc --rate 48000 --stereo --author spxinfotest --title SpxInfoTest --comment test=\"hello\303\251\" - -"
  }.each_with_object({}) do |(codec, cmd), hash|
    hash[codec] = `#{ffmpeg} | #{cmd}`
  end
  File.binwrite("test/fixtures.yml", files.to_yaml)
end

# vim: syntax=Ruby