Sha256: ab83b7f0462d7438c7052a935f3b93ba364d4323db99c6e35c456112a3d33fd8

Contents?: true

Size: 1.37 KB

Versions: 1

Compression:

Stored size: 1.37 KB

Contents

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

desc 'Default: run unit tests.'
task :default => :test

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gemspec|
    gemspec.name = "ruby-tmdb"
    gemspec.summary = "An ActiveRecord-style API wrapper for TheMovieDB.org"
    gemspec.description = "An ActiveRecord-style API wrapper for TheMovieDB.org"
    gemspec.email = "aaron@aarongough.com"
    gemspec.homepage = "https://github.com/aarongough/ruby-tmdb"
    gemspec.authors = ["Aaron Gough"]
    gemspec.rdoc_options << '--line-numbers' << '--inline-source'
    gemspec.extra_rdoc_files = ['README.rdoc', 'MIT-LICENSE']
    gemspec.add_dependency( "deepopenstruct", ">= 0.1.2")
    gemspec.add_dependency( "json")
    gemspec.add_dependency "addressable"
    gemspec.add_development_dependency "webmock"
  end
rescue LoadError
  puts "Jeweler not available. Install it with: gem install jeweler"
end


desc 'Test ruby-tmdb.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib/*.rb'
  t.libs << 'test'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end


desc 'Generate documentation for ruby-tmdb.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'ruby-tmdb'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README.rdoc')
  rdoc.rdoc_files.include('lib/**/*.rb')
  rdoc.rdoc_files.include('app/**/*.rb')
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-tmdb-0.2.1 Rakefile