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'
12 gem 'rspec', '~> 1.2.9'
14 require 'spec/rake/spectask'
16 STDERR.puts "Please install rspec:"
17 STDERR.puts "sudo gem install rspec"
21 require File.join(File.dirname(__FILE__), 'lib/google/api_client', 'version')
23 PKG_DISPLAY_NAME = 'Google API Client'
24 PKG_NAME = PKG_DISPLAY_NAME.downcase.gsub(/\s/, '-')
25 PKG_VERSION = Google::APIClient::VERSION::STRING
26 PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
27 PKG_HOMEPAGE = 'http://code.google.com/p/google-api-ruby-client/'
29 RELEASE_NAME = "REL #{PKG_VERSION}"
31 PKG_AUTHOR = "Bob Aman"
32 PKG_AUTHOR_EMAIL = "bobaman@google.com"
33 PKG_SUMMARY = 'Package Summary'
34 PKG_DESCRIPTION = <<-TEXT
35 The Google API Ruby Client makes it trivial to discover and access supported
40 'lib/**/*', 'spec/**/*', 'vendor/**/*',
41 'tasks/**/*', 'website/**/*',
43 ].exclude(/database\.yml/).exclude(/[_\.]git$/)
45 RCOV_ENABLED = (RUBY_PLATFORM != 'java' && RUBY_VERSION =~ /^1\.8/)
47 task :default => 'spec:verify'
49 task :default => 'spec'
52 WINDOWS = (RUBY_PLATFORM =~ /mswin|win32|mingw|bccwin|cygwin/) rescue false
53 SUDO = WINDOWS ? '' : ('sudo' unless ENV['SUDOLESS'])
55 Dir['tasks/**/*.rake'].each { |rake| load rake }