# encoding: utf-8

require 'rubygems'
require 'bundler'

begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit e.status_code
end
require 'rake'
require 'lib/rightimage_tools' 

require 'jeweler'
Jeweler::Tasks.new do |gem|
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
  gem.name = "rightimage_tools"
  gem.version = RightImageTools::VERSION
  gem.homepage = "http://github.com/rightscale/rightimage_tools"
  gem.license = "MIT"
  gem.summary = %Q{A set of tools to support the building of RightImages}
  gem.files = %w(LICENSE.txt VERSION README.rdoc Rakefile Gemfile) + FileList["{bin,lib,spec}/**/*"].to_a
  # Include built ui files while ignoring their sources.
  # Used to include report_viewer.html.
  gem.files.include FileList["ui/build/**/*"].to_a
  gem.executables = %w(image_mover mci_merge report_tool update_s3_index)
  gem.description = gem.summary
  gem.email = "peter.schroeter@rightscale.com"
  gem.authors = ["Peter Schroeter"]
  # dependencies defined in Gemfile
end
Jeweler::RubygemsDotOrgTasks.new

