File: Rakefile

package info (click to toggle)
ruby-autoparse 0.3.3-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 344 kB
  • sloc: ruby: 2,246; makefile: 3
file content (56 lines) | stat: -rw-r--r-- 1,620 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
lib_dir = File.expand_path(File.join(File.dirname(__FILE__), 'lib'))
$:.unshift(lib_dir)
$:.uniq!

require 'rubygems'
require 'rake'

gem 'rspec', '~> 1.2.9'
begin
  require 'spec/rake/spectask'
rescue LoadError
  STDERR.puts "Please install rspec:"
  STDERR.puts "sudo gem install rspec"
  exit(1)
end

require File.join(File.dirname(__FILE__), 'lib/autoparse', 'version')

PKG_DISPLAY_NAME   = 'AutoParse'
PKG_NAME           = PKG_DISPLAY_NAME.downcase
PKG_VERSION        = AutoParse::VERSION::STRING
PKG_FILE_NAME      = "#{PKG_NAME}-#{PKG_VERSION}"

RELEASE_NAME       = "REL #{PKG_VERSION}"

RUBY_FORGE_PROJECT = PKG_NAME
RUBY_FORGE_USER    = 'sporkmonger'
RUBY_FORGE_PATH    = "/var/www/gforge-projects/#{RUBY_FORGE_PROJECT}"
RUBY_FORGE_URL     = "http://#{RUBY_FORGE_PROJECT}.rubyforge.org/"

PKG_AUTHOR         = 'Bob Aman'
PKG_AUTHOR_EMAIL   = 'bobaman@google.com'
PKG_HOMEPAGE       = RUBY_FORGE_URL
PKG_SUMMARY        = 'A parsing system based on JSON Schema.'
PKG_DESCRIPTION    = <<-TEXT
An implementation of the JSON Schema specification. Provides automatic parsing
for any given JSON Schema.
TEXT

PKG_FILES = FileList[
    'lib/**/*', 'spec/**/*', 'vendor/**/*',
    'tasks/**/*', 'website/**/*',
    '[A-Z]*', 'Rakefile'
].exclude(/database\.yml/).exclude(/[_\.]git$/)

RCOV_ENABLED = (RUBY_PLATFORM != 'java' && RUBY_VERSION =~ /^1\.8/)
if RCOV_ENABLED
  task :default => 'spec:verify'
else
  task :default => 'spec'
end

WINDOWS = (RUBY_PLATFORM =~ /mswin|win32|mingw|bccwin|cygwin/) rescue false
SUDO = WINDOWS ? '' : ('sudo' unless ENV['SUDOLESS'])

Dir['tasks/**/*.rake'].each { |rake| load rake }