require 'rubygems' require 'rake' require 'yaml' begin require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = "kaltura_fu" gem.summary = "Rails gem for making Kaltura integrations easier." gem.email = "patrick.robertson@velir.com" gem.homepage = "http://github.com/Velir/kaltura_fu" gem.authors = ["Patrick Robertson"] gem.add_development_dependency "rspec", "= 1.3.0" gem.add_development_dependency "activesupport" gem.add_dependency('velir_kaltura-ruby', '>=0.4.3') # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings end rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" end require 'spec/rake/spectask' Spec::Rake::SpecTask.new(:spec) do |spec| spec.libs << 'lib' << 'spec' spec.spec_files = FileList['spec/**/*_spec.rb'] end Spec::Rake::SpecTask.new(:rcov) do |spec| spec.libs << 'lib' << 'spec' spec.pattern = 'spec/**/*_spec.rb' spec.rcov = true end task :spec => :check_dependencies task :default => :spec begin require 'rcov/rcovtask' Rcov::RcovTask.new do |test| test.libs << 'spec' test.pattern = 'spec/**/*_spec.rb' test.verbose = true end rescue LoadError task :rcov do abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov" end end task :default => :test require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| if File.exist?('VERSION.yml') config = YAML.load(File.read('VERSION.yml')) version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}" else version = "" end rdoc.rdoc_dir = 'rdoc' rdoc.title = "kaltura-ruby #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end