From 791d926d0deb640721ac961f436a69b0f464927f Mon Sep 17 00:00:00 2001 From: Jonas Genannt Date: Sun, 18 Aug 2013 15:19:37 +0200 Subject: [PATCH] added gemspec file Added an gemspec file, moved escape.rb to lib/ subdirectory for proper gemspec setup. This modification allows Debian maintainer to change your libescape-ruby package to the "new" gem2deb helper and update the package into Debian. You can now create an gem file with `gem build escape.gemspec` and upload it to your website! --- escape.gemspec | 20 ++++++++++++++++++++ escape.rb => lib/escape.rb | 1 + 2 files changed, 21 insertions(+) create mode 100644 escape.gemspec rename escape.rb => lib/escape.rb (99%) diff --git a/escape.gemspec b/escape.gemspec new file mode 100644 index 0000000..bbac06c --- /dev/null +++ b/escape.gemspec @@ -0,0 +1,20 @@ +require "./lib/escape" + +Gem::Specification.new do |s| + s.name = "escape" + s.version = Escape::VERSION + s.summary = "escape library" + s.description = "escape library provides several HTML/URI/shell escaping functions." + s.authors = ["Tanaka Akira"] + s.email = ["akr@fsij.org"] + s.homepage = "http://github.com/akr/escape" + + s.files = Dir[ + "ChangeLog", + "README", + "lib/**/*.rb", + "*.gemspec", + "test/**/*.*" + ] + +end diff --git a/escape.rb b/lib/escape.rb similarity index 99% rename from escape.rb rename to lib/escape.rb index e3536f4..a794ee3 100644 --- a/escape.rb +++ b/lib/escape.rb @@ -30,6 +30,7 @@ # * shell command # * MIME parameter module Escape + VERSION = "0.3" module_function class StringWrapper