From 810e7fbe9ea7ad9d099f3599364dd0ace4ea8411 Mon Sep 17 00:00:00 2001 From: John Barnette Date: Wed, 1 Jul 2009 22:10:50 -0700 Subject: [PATCH] Switch to standard Hoe structure. --- CHANGELOG.rdoc | 2 +- Manifest.txt | 1 + README.rdoc | 12 +++++++----- Rakefile | 17 +++++++---------- lib/intercession.rb | 3 +++ 5 files changed, 19 insertions(+), 16 deletions(-) create mode 100644 lib/intercession.rb diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc index 436e12c..bafd565 100644 --- a/CHANGELOG.rdoc +++ b/CHANGELOG.rdoc @@ -1,3 +1,3 @@ -=== 1.0.0 (2009-02-24) +=== 1.0.0 / 2009-02-24 * Birthday! diff --git a/Manifest.txt b/Manifest.txt index e9aefab..375a348 100644 --- a/Manifest.txt +++ b/Manifest.txt @@ -3,6 +3,7 @@ Manifest.txt README.rdoc Rakefile install.rb +lib/intercession.rb lib/intercession/lifecycle.rb lib/intercession/version.rb rails/init.rb diff --git a/README.rdoc b/README.rdoc index e4d5596..34419f7 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,5 +1,9 @@ = Intercession +* http://github.com/jbarnette/intercession + +== Description + Treat your sessions like models, not hashes. Intercession mixes a module into the session on each request, allowing you to nicely encapsulate (and test!) lots of user and session-specific behavior. @@ -35,12 +39,10 @@ As a plugin: As a gem: - $ sudo gem install intercession - -If you're using Intercession as a gem, add it to the gem dependencies -in one of your environment config files: + $ gem install intercession - config.gem "intercession", :lib => "intercession/lifecycle" +If you're using Intercession as a gem, add it to your app's gem +dependency mechanism. == License diff --git a/Rakefile b/Rakefile index d292ef8..17a5f00 100644 --- a/Rakefile +++ b/Rakefile @@ -1,16 +1,13 @@ require "rubygems" require "hoe" -require "./lib/intercession/version.rb" +Hoe.plugin :git -Hoe.new "intercession", Intercession::VERSION do |p| - p.developer "John Barnette", "jbarnette@rubyforge.org" +Hoe.spec "intercession" do + developer "John Barnette", "jbarnette@rubyforge.org" - p.url = "http://github.com/jbarnette/intercession" - p.history_file = "CHANGELOG.rdoc" - p.readme_file = "README.rdoc" - p.extra_rdoc_files = [p.readme_file] - p.need_tar = false - p.test_globs = %w(test/**/*_test.rb) - p.testlib = :minitest + self.extra_rdoc_files = FileList["*.rdoc"] + self.history_file = "CHANGELOG.rdoc" + self.readme_file = "README.rdoc" + self.testlib = :minitest end diff --git a/lib/intercession.rb b/lib/intercession.rb new file mode 100644 index 0000000..537629c --- /dev/null +++ b/lib/intercession.rb @@ -0,0 +1,3 @@ +module Intercession + VERSION = "1.0.0" +end