2 lib_dir = File.expand_path('../lib', __FILE__)
3 $LOAD_PATH.unshift(lib_dir)
6 require 'bundler/gem_tasks'
10 require File.join(File.dirname(__FILE__), 'lib/google/api_client', 'version')
12 PKG_DISPLAY_NAME = 'Google API Client'
13 PKG_NAME = PKG_DISPLAY_NAME.downcase.gsub(/\s/, '-')
14 PKG_VERSION = Google::APIClient::VERSION::STRING
15 PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
16 PKG_HOMEPAGE = 'https://github.com/google/google-api-ruby-client'
18 RELEASE_NAME = "REL #{PKG_VERSION}"
20 PKG_AUTHOR = ["Bob Aman", "Steve Bazyl"]
21 PKG_AUTHOR_EMAIL = "sbazyl@google.com"
22 PKG_SUMMARY = 'Package Summary'
23 PKG_DESCRIPTION = <<-TEXT
24 The Google API Ruby Client makes it trivial to discover and access supported
29 'lib/**/*', 'spec/**/*', 'vendor/**/*',
30 'tasks/**/*', 'website/**/*',
32 ].exclude(/[_\.]git$/)
33 (open(".gitignore") { |file| file.read }).split("\n").each do |pattern|
38 task :default => 'spec'
40 WINDOWS = (RUBY_PLATFORM =~ /mswin|win32|mingw|bccwin|cygwin/) rescue false
41 SUDO = WINDOWS ? '' : ('sudo' unless ENV['SUDOLESS'])