Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added jeweler and tasks to rakefile. generated gemspec

  • Loading branch information...
commit 2c1b375282ac178f63a08a0fdd2b3c9d482600a7 1 parent e6931ab
Paul Dix authored
16  Rakefile
... ...
@@ -1,6 +1,21 @@
1 1
 # -*- ruby -*-
2 2
 
3 3
 require 'rubygems'
  4
+begin
  5
+  require 'jeweler'
  6
+  Jeweler::Tasks.new do |s|
  7
+    s.name = "dryopteris"
  8
+    s.summary = "HTML sanitization using Nokogiri"
  9
+    s.email = "bryan@brynary.com"
  10
+    s.homepage = "http://github.com/brynary/dryopteris/tree/master"
  11
+    s.description = "Dryopteris erythrosora is the Japanese Shield Fern. It also can be used to sanitize HTML to help prevent XSS attacks."
  12
+    s.authors = ["Bryan Helmkamp", "Mike Dalessio"]
  13
+  end
  14
+rescue LoadError
  15
+  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
  16
+end
  17
+
  18
+
4 19
 require 'rake'
5 20
 require 'rake/testtask'
6 21
 
@@ -13,3 +28,4 @@ Rake::TestTask.new do |t|
13 28
 end
14 29
 
15 30
 task :default => :test
  31
+
4  VERSION.yml
... ...
@@ -0,0 +1,4 @@
  1
+--- 
  2
+:major: 0
  3
+:minor: 0
  4
+:patch: 0
32  dryopteris.gemspec
... ...
@@ -0,0 +1,32 @@
  1
+# -*- encoding: utf-8 -*-
  2
+
  3
+Gem::Specification.new do |s|
  4
+  s.name = %q{dryopteris}
  5
+  s.version = "0.0.0"
  6
+
  7
+  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
  8
+  s.authors = ["Bryan Helmkamp", "Mike Dalessio"]
  9
+  s.date = %q{2009-02-10}
  10
+  s.description = %q{Dryopteris erythrosora is the Japanese Shield Fern. It also can be used to sanitize HTML to help prevent XSS attacks.}
  11
+  s.email = %q{bryan@brynary.com}
  12
+  s.files = ["README.markdown", "lib/dryopteris", "lib/dryopteris/rails_extension.rb", "lib/dryopteris/sanitize.rb", "lib/dryopteris/whitelist.rb", "lib/dryopteris.rb", "test/helper.rb", "test/test_basic.rb", "test/test_sanitizer.rb", "test/test_strip_tags.rb"]
  13
+  s.has_rdoc = true
  14
+  s.homepage = %q{http://github.com/brynary/dryopteris/tree/master}
  15
+  s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
  16
+  s.require_paths = ["lib"]
  17
+  s.rubygems_version = %q{1.3.1}
  18
+  s.summary = %q{HTML sanitization using Nokogiri}
  19
+
  20
+  if s.respond_to? :specification_version then
  21
+    current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
  22
+    s.specification_version = 2
  23
+
  24
+    if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
  25
+      s.add_runtime_dependency(%q<nokogiri>, ["> 0.0.0"])
  26
+    else
  27
+      s.add_dependency(%q<nokogiri>, ["> 0.0.0"])
  28
+    end
  29
+  else
  30
+    s.add_dependency(%q<nokogiri>, ["> 0.0.0"])
  31
+  end
  32
+end
BIN  pkg/dryopteris-0.0.0.gem
Binary file not shown

0 notes on commit 2c1b375

Please sign in to comment.
Something went wrong with that request. Please try again.