forked from zencoder/rvideo
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
63 lines (51 loc) · 1.5 KB
/
Rakefile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
require "rubygems"
require "fileutils"
require "echoe"
__HERE__ = File.dirname(__FILE__)
require File.join(__HERE__, 'lib', 'rvideo', 'version')
require File.join(__HERE__, 'lib', 'rvideo')
###
AUTHOR = [
"Peter Boling",
"Jonathan Dahl (Slantwise Design)",
"Seth Thomas Rasmussen"
]
EMAIL = "[email protected]"
DESCRIPTION = "Inspect and transcode video and audio files."
NAME = "rvideo"
REV = `git log -n1 --pretty=oneline | cut -d' ' -f1`.strip
BRANCH = `git branch | grep '*' | cut -d' ' -f2`.strip
# This is not the version used for the gem.
# That is parsed from the CHANGELOG by Echoe.
VERS = "#{RVideo::VERSION::STRING} (#{BRANCH} @ #{REV})"
Echoe.new NAME do |p|
p.author = AUTHOR
p.description = DESCRIPTION
p.email = EMAIL
p.summary = DESCRIPTION
p.url = "http://github.com/greatseth/rvideo"
p.runtime_dependencies = ["activesupport"]
p.development_dependencies = ["rspec"]
p.ignore_pattern = [
"spec/files/boat.mpg",
"spec/files/dinner.3g2",
"spec/files/foo $ bar & baz",
"spec/files/hats.3gp",
"spec/files/quads.wmv",
"spec/files/sword.3gp",
"website/**/*",
"tmp/**/*",
"scripts/test_progress.rb"
]
p.rdoc_options = [
"--quiet",
"--title", "rvideo documentation",
"--opname", "index.html",
"--line-numbers",
"--main", "README",
"--inline-source"
]
end
# Load supporting Rake files
Dir[File.join(__HERE__, "tasks", "*.rake")].each { |t| load t }
puts "#{NAME} #{VERS}"