Fetching contributors…
Cannot retrieve contributors at this time
56 lines (46 sloc) 2.21 KB
#!/usr/bin/env ruby
require "rubygems"
require "rake"
require "rdoc/task"
desc "Generate RDoc documentation for gphoto4ruby gem." do |rdoc|
rdoc.rdoc_files.include("README.rdoc", "LICENSE", "CHANGELOG.rdoc").
include("docs/COPYING", "docs/COPYING.LESSER").
include("ext/gphoto2camera_event.c", "ext/gphoto2camera.c", "ext/gphoto4ruby.c")
rdoc.main = "README.rdoc"
rdoc.title = "GPhoto4Ruby documentation"
rdoc.rdoc_dir = "rdoc"
rdoc.options << "--charset=UTF-8"
rdoc.options << "--webcvs="
desc "Upload rdoc to RubyForge."
task :publish_rdoc => [:rdoc] do
exec "scp -r rdoc/*"
require 'jeweler'
spec = do |s| = "gphoto4ruby"
s.summary = "GPhoto4Ruby is Ruby wrapping around gphoto2 C library"
s.description = "GPhoto4Ruby is used to control PPTP cameras (the ones that can be controlled with gphoto2) using power of ruby."
s.authors = ["neq4 company", "Sergey Kruk"] = ""
s.homepage = ""
s.rubyforge_project = "gphoto4ruby"
s.has_rdoc = true
s.rdoc_options << "--main" << "README.rdoc"
s.rdoc_options << "--charset" << "UTF-8"
s.rdoc_options << "--webcvs" << ""
s.extra_rdoc_files = [ "ext/gphoto4ruby.c",
"ext/gphoto2camera.c", "ext/gphoto2camera_event.c",
s.files = %w(CHANGELOG.rdoc LICENSE README.rdoc Rakefile VERSION docs docs/COPYING docs/COPYING.LESSER example.rb ext ext/extconf.rb ext/gphoto4ruby.c ext/gphoto2camera.c ext/gphoto2camera.h ext/gphoto2camera_event.c ext/gphoto2camera_event.h ext/gphoto2camera_utilities.c ext/gphoto2camera_utilities.h)
s.extensions = ["ext/extconf.rb"]
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"