public
Description: Conformance checking of JSON values against ECMAScript 4.0 types
Homepage:
Clone URL: git://github.com/osteele/jcon.git
jcon / Rakefile
100644 36 lines (32 sloc) 1.002 kb
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
require 'rubygems'
require 'spec/rake/spectask'
 
task :test => :spec
 
begin
  require 'jeweler'
  Jeweler::Tasks.new do |s|
    s.name = 'jcon'
    s.rubyforge_project = 'jcon'
    s.summary = "Test JSON values against a schema."
    s.homepage = 'http://jcon.rubyforge.org'
    s.description = <<-EOF
Test JSON values for conformance with ECMAScript 4.0 types.
EOF
    s.author = 'Oliver Steele'
    s.email = 'steele@osteele.com'
    s.rdoc_options <<
      '--title' << "JCON: #{s.summary.sub(/.$/,'')}" <<
      '--main' << 'README' <<
      '--exclude' << 'spec/.*'
    s.extra_rdoc_files = ['README.rdoc', 'TODO', 'LICENSE']
  end
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
 
desc "Run all specs"
Spec::Rake::SpecTask.new do |t|
  t.spec_files = FileList['spec/*_spec.rb']
  if ENV['RCOV']
    t.rcov = true
    t.rcov_opts = ['--exclude', 'spec\/spec']
  end
end