-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
55 lines (47 loc) · 1.87 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
require 'rubygems'
require 'rake'
require 'jeweler'
require './lib/subtitle_shifter'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = "subtitle_shifter"
gem.version = SubtitleShifter::Version::STRING
gem.homepage = "http://github.com/gee-forr/subtitle_shifter"
gem.license = "MIT"
gem.summary = %Q{A simple library for adjusting SubRip (.srt) subtitles}
gem.description = %Q{A simple little gem for modifying SubRip subtitle files. Done as a mentoring exercise with Citizen428, and taken from the Ruby Programming Challenge For Newbies}
gem.email = "[email protected]"
gem.authors = ["Gabriel Fortuna"]
gem.executables = ['shift_subtitle']
# Include your dependencies below. Runtime dependencies are required when using your gem,
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
gem.add_development_dependency "minitest", ">= 0"
gem.add_development_dependency "bundler", "~> 1.0.0"
gem.add_development_dependency "jeweler", "~> 1.6.4"
gem.add_development_dependency "rcov", ">= 0"
gem.add_development_dependency "rdoc", ">= 0"
end
Jeweler::RubygemsDotOrgTasks.new
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test' << 'spec'
test.pattern = 'test/**/*_spec.rb'
test.verbose = true
end
require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
test.libs << 'test'
test.pattern = 'test/**/*_spec.rb'
test.verbose = true
test.rcov_opts << '--exclude "gems/*"'
end
task :default => :test
#require 'rdoc/task'
#RDoc::Task.new do |rdoc|
#version = File.exist?('VERSION') ? File.read('VERSION') : ""
#
#rdoc.rdoc_dir = 'rdoc'
#rdoc.title = "subtitle_shifter #{version}"
#rdoc.rdoc_files.include('README*')
#rdoc.rdoc_files.include('lib/**/*.rb')
#end