Updating code to consistent coding style.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@15 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
This commit is contained in:
1 parent
6331247e7a
commit
e6ba0f6860
15 files changed
+168
-161
No files matched your search
@@ -1,6 +1,6 @@
|
||||
lib_dir = File.expand_path(File.join(File.dirname(__FILE__), "lib"))
|
||||
$:.unshift(lib_dir)
|
||||
$:.uniq!
|
||||
lib_dir = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib_dir)
|
||||
$LOAD_PATH.uniq!
|
||||
|
||||
require 'rubygems'
|
||||
require 'rake'
|
||||
@@ -12,37 +12,37 @@ require 'rake/gempackagetask'
|
||||
begin
|
||||
require 'spec/rake/spectask'
|
||||
rescue LoadError
|
||||
STDERR.puts "Please install RSpec."
|
||||
STDERR.puts 'Please install RSpec.'
|
||||
exit(1)
|
||||
end
|
||||
|
||||
require File.join(File.dirname(__FILE__), 'lib/google/api_client', 'version')
|
||||
|
||||
PKG_DISPLAY_NAME = 'Google API Client'
|
||||
PKG_NAME = PKG_DISPLAY_NAME.downcase.gsub(/\s/, "-")
|
||||
PKG_NAME = PKG_DISPLAY_NAME.downcase.gsub(/\s/, '-')
|
||||
PKG_VERSION = Google::APIClient::VERSION::STRING
|
||||
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
|
||||
PKG_HOMEPAGE = "http://code.google.com/p/google-api-ruby-client/"
|
||||
PKG_HOMEPAGE = 'http://code.google.com/p/google-api-ruby-client/'
|
||||
|
||||
RELEASE_NAME = "REL #{PKG_VERSION}"
|
||||
|
||||
PKG_SUMMARY = "Package Summary"
|
||||
PKG_SUMMARY = 'Package Summary'
|
||||
PKG_DESCRIPTION = <<-TEXT
|
||||
The Google API Ruby Client makes it trivial to discover and access supported
|
||||
APIs.
|
||||
TEXT
|
||||
|
||||
PKG_FILES = FileList[
|
||||
"lib/**/*", "spec/**/*", "vendor/**/*",
|
||||
"tasks/**/*", "website/**/*",
|
||||
"[A-Z]*", "Rakefile"
|
||||
'lib/**/*', 'spec/**/*', 'vendor/**/*',
|
||||
'tasks/**/*', 'website/**/*',
|
||||
'[A-Z]*', 'Rakefile'
|
||||
].exclude(/database\.yml/).exclude(/[_\.]git$/)
|
||||
|
||||
RCOV_ENABLED = (RUBY_PLATFORM != "java" && RUBY_VERSION =~ /^1\.8/)
|
||||
RCOV_ENABLED = (RUBY_PLATFORM != 'java' && RUBY_VERSION =~ /^1\.8/)
|
||||
if RCOV_ENABLED
|
||||
task :default => "spec:verify"
|
||||
task :default => 'spec:verify'
|
||||
else
|
||||
task :default => "spec"
|
||||
task :default => 'spec'
|
||||
end
|
||||
|
||||
WINDOWS = (RUBY_PLATFORM =~ /mswin|win32|mingw|bccwin|cygwin/) rescue false
|
||||
|
||||
Reference in new issue
Block a user