Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add a gemspec and Rake tasks to generate gems.

  • Loading branch information...
commit c62c7ab16d85fc010c1ddbb52d564843437a555e 1 parent de98372
Manfred Stienstra authored January 11, 2010
3  .gitignore
... ...
@@ -1 +1,2 @@
1  
-html
  1
+html
  2
+*.gem
11  Rakefile
@@ -25,3 +25,14 @@ namespace :documentation do
25 25
     rd.options << "--all" << "--charset" << "utf-8"
26 26
   end
27 27
 end
  28
+
  29
+namespace :gem do
  30
+  desc "Build the gem"
  31
+  task :build do
  32
+    sh 'gem build ensure-encoding.gemspec'
  33
+  end
  34
+  
  35
+  task :install => :build do
  36
+    sh 'gem install ensure-encoding-*.gem'
  37
+  end
  38
+end
22  ensure-encoding.gemspec
... ...
@@ -0,0 +1,22 @@
  1
+require 'rake'
  2
+
  3
+Gem::Specification.new do |spec|
  4
+  spec.name = 'ensure-encoding'
  5
+  spec.version = '0.1'
  6
+
  7
+  spec.author = "Manfred Stienstra"
  8
+  spec.email = "manfred@fngtps.com"
  9
+
  10
+  spec.description = <<-EOF
  11
+    Ensure the character encoding in Strings coming from untrusted sources.
  12
+  EOF
  13
+  spec.summary = <<-EOF
  14
+    Ensure the character encoding in Strings coming from untrusted sources.
  15
+  EOF
  16
+
  17
+  spec.files = FileList['README.rdoc', 'LICENSE', 'lib/**/*.rb'].to_a
  18
+
  19
+  spec.has_rdoc = true
  20
+  spec.extra_rdoc_files = ['README.rdoc', 'LICENSE']
  21
+  spec.rdoc_options << "--all" << "--charset" << "utf-8"
  22
+end

0 notes on commit c62c7ab

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