21700: Install Bundler system-wide in Rails postinst
[arvados.git] / sdk / ruby-google-api-client / Rakefile
1 # -*- ruby -*-
2 lib_dir = File.expand_path('../lib', __FILE__)
3 $LOAD_PATH.unshift(lib_dir)
4 $LOAD_PATH.uniq!
5
6 require 'bundler/gem_tasks'
7 require 'rubygems'
8 require 'rake'
9
10 require File.join(File.dirname(__FILE__), 'lib/google/api_client', 'version')
11
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'
17
18 RELEASE_NAME       = "REL #{PKG_VERSION}"
19
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
25 APIs.
26 TEXT
27
28 list = FileList[
29     'lib/**/*', 'spec/**/*', 'vendor/**/*',
30     'tasks/**/*', 'website/**/*',
31     '[A-Z]*', 'Rakefile'
32 ].exclude(/[_\.]git$/)
33 (open(".gitignore") { |file| file.read }).split("\n").each do |pattern|
34   list.exclude(pattern)
35 end
36 PKG_FILES = list
37
38 task :default => 'spec'
39
40 WINDOWS = (RUBY_PLATFORM =~ /mswin|win32|mingw|bccwin|cygwin/) rescue false
41 SUDO = WINDOWS ? '' : ('sudo' unless ENV['SUDOLESS'])