Sha256: 434a0d4cbbac6dfdc3540b6a2db5593d8844299f1eb0046b35d2b11d5d939700

Contents?: true

Size: 988 Bytes

Versions: 2

Compression:

Stored size: 988 Bytes

Contents

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

desc 'Default: run unit tests.'
task :default => :test

desc 'Test the xss-shield plugin.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gemspec|
    gemspec.name = 'xss_shield'
    gemspec.summary = 'Protect your Rails site from XSS attacks.'
    gemspec.description = 'This Rails plugin provides automatic cross site ' +
      'scripting (XSS) protection for your views. Once installed, you no ' +
      'longer have to manually and painstakingly sanitize all your views ' +
      'with HTML escaping.'
    gemspec.email = 'jamestyj@gmail.com'
    gemspec.homepage = 'http://github.com/jamestyj/xss_shield'
    gemspec.authors = [ 'James Tan' ]
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts 'Jeweler (or a dependency) not available. ' +
       'Install it with: sudo gem install jeweler.'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xss_shield-2.0.0 Rakefile
xss_shield-1.0.0 Rakefile