2010-08-17 01:21:17 +00:00
|
|
|
lib_dir = File.expand_path('../lib', __FILE__)
|
|
|
|
$LOAD_PATH.unshift(lib_dir)
|
|
|
|
$LOAD_PATH.uniq!
|
2010-07-28 19:30:56 +00:00
|
|
|
|
|
|
|
require 'rubygems'
|
|
|
|
require 'rake'
|
|
|
|
|
|
|
|
require File.join(File.dirname(__FILE__), 'lib/google/api_client', 'version')
|
|
|
|
|
|
|
|
PKG_DISPLAY_NAME = 'Google API Client'
|
2010-08-17 01:21:17 +00:00
|
|
|
PKG_NAME = PKG_DISPLAY_NAME.downcase.gsub(/\s/, '-')
|
2010-07-28 19:30:56 +00:00
|
|
|
PKG_VERSION = Google::APIClient::VERSION::STRING
|
|
|
|
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
|
2014-01-22 23:44:04 +00:00
|
|
|
PKG_HOMEPAGE = 'https://github.com/google/google-api-ruby-client'
|
2010-07-28 19:30:56 +00:00
|
|
|
|
|
|
|
RELEASE_NAME = "REL #{PKG_VERSION}"
|
|
|
|
|
2012-10-25 22:05:34 +00:00
|
|
|
PKG_AUTHOR = ["Bob Aman", "Steve Bazyl"]
|
|
|
|
PKG_AUTHOR_EMAIL = "sbazyl@google.com"
|
2010-08-17 01:21:17 +00:00
|
|
|
PKG_SUMMARY = 'Package Summary'
|
2010-07-28 19:30:56 +00:00
|
|
|
PKG_DESCRIPTION = <<-TEXT
|
|
|
|
The Google API Ruby Client makes it trivial to discover and access supported
|
|
|
|
APIs.
|
|
|
|
TEXT
|
|
|
|
|
2012-11-19 09:05:33 +00:00
|
|
|
list = FileList[
|
2010-08-17 01:21:17 +00:00
|
|
|
'lib/**/*', 'spec/**/*', 'vendor/**/*',
|
|
|
|
'tasks/**/*', 'website/**/*',
|
|
|
|
'[A-Z]*', 'Rakefile'
|
2012-11-19 09:07:37 +00:00
|
|
|
].exclude(/[_\.]git$/)
|
2012-11-19 09:05:33 +00:00
|
|
|
(open(".gitignore") { |file| file.read }).split("\n").each do |pattern|
|
|
|
|
list.exclude(pattern)
|
|
|
|
end
|
|
|
|
PKG_FILES = list
|
2010-07-28 19:30:56 +00:00
|
|
|
|
2014-08-15 14:15:19 +00:00
|
|
|
task :default => 'spec'
|
2010-07-28 19:30:56 +00:00
|
|
|
|
|
|
|
WINDOWS = (RUBY_PLATFORM =~ /mswin|win32|mingw|bccwin|cygwin/) rescue false
|
|
|
|
SUDO = WINDOWS ? '' : ('sudo' unless ENV['SUDOLESS'])
|