require 'rubygems' require 'rake' begin require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = "usb-detection-sensor" gem.summary = %Q{usb device connect/disconnect detection as GOM sensor} gem.description = %Q{ Detect USB devices when being connected and update a GOM sensor node accordingly. This allows to automagically avtivate the device mirror overlay on the horizon in home for example. } gem.email = "dirk.luesebrink@gmail.com" gem.homepage = "http://github.com/crux/usb-detection-sensor" gem.authors = ["art+com/dirk luesebrink"] gem.add_development_dependency "rspec" gem.add_development_dependency "fakeweb" gem.add_runtime_dependency "json_pure" gem.add_runtime_dependency "applix" gem.add_runtime_dependency "gom-script" end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" end require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:rcov) do |t| t.rcov_opts = %q[--exclude "spec"] end task :spec => :check_dependencies task :default => :spec require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| if File.exist?('VERSION') version = File.read('VERSION') else version = "" end rdoc.rdoc_dir = 'rdoc' rdoc.title = "usb-detection-sensor #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end