1 lib_dir = File.expand_path('../lib', __FILE__)
2 $LOAD_PATH.unshift(lib_dir)
7 require 'rake/testtask'
8 require 'rake/rdoctask'
9 require 'rake/packagetask'
10 require 'rake/gempackagetask'
13 require 'spec/rake/spectask'
15 STDERR.puts "Please install rspec:"
16 STDERR.puts "sudo gem install rspec"
20 require File.join(File.dirname(__FILE__), 'lib/google/api_client', 'version')
22 PKG_DISPLAY_NAME = 'Google API Client'
23 PKG_NAME = PKG_DISPLAY_NAME.downcase.gsub(/\s/, '-')
24 PKG_VERSION = Google::APIClient::VERSION::STRING
25 PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
26 PKG_HOMEPAGE = 'http://code.google.com/p/google-api-ruby-client/'
28 RELEASE_NAME = "REL #{PKG_VERSION}"
30 PKG_SUMMARY = 'Package Summary'
31 PKG_DESCRIPTION = <<-TEXT
32 The Google API Ruby Client makes it trivial to discover and access supported
37 'lib/**/*', 'spec/**/*', 'vendor/**/*',
38 'tasks/**/*', 'website/**/*',
40 ].exclude(/database\.yml/).exclude(/[_\.]git$/)
42 RCOV_ENABLED = (RUBY_PLATFORM != 'java' && RUBY_VERSION =~ /^1\.8/)
44 task :default => 'spec:verify'
46 task :default => 'spec'
49 WINDOWS = (RUBY_PLATFORM =~ /mswin|win32|mingw|bccwin|cygwin/) rescue false
50 SUDO = WINDOWS ? '' : ('sudo' unless ENV['SUDOLESS'])
52 Dir['tasks/**/*.rake'].each { |rake| load rake }