From f15ffb793ffef2f288dc9818550c77f7d4c4068f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20L=C3=BCtke?= Date: Sun, 7 Jun 2009 20:23:04 -0400 Subject: [PATCH] made by me --- PostInstall.txt | 6 ------ Rakefile | 16 +++++++--------- test/test_cached.rb | 3 +-- 3 files changed, 8 insertions(+), 17 deletions(-) diff --git a/PostInstall.txt b/PostInstall.txt index 3dc5e34..8b13789 100644 --- a/PostInstall.txt +++ b/PostInstall.txt @@ -1,7 +1 @@ -For more information on cached, see http://cached.rubyforge.org - -NOTE: Change this information in PostInstall.txt -You can also delete it if you don't want it. - - diff --git a/Rakefile b/Rakefile index 2d44d0f..bcff0c6 100644 --- a/Rakefile +++ b/Rakefile @@ -5,17 +5,15 @@ require File.dirname(__FILE__) + '/lib/cached' # Generate all the Rake tasks # Run 'rake -T' to see list of generated tasks (from gem root directory) $hoe = Hoe.new('cached', Cached::VERSION) do |p| - p.developer('FIXME full name', 'FIXME email') - p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n") - p.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required - p.rubyforge_name = p.name # TODO this is default value - # p.extra_deps = [ - # ['activesupport','>= 2.0.2'], - # ] + p.developer('Tobias Lütke', 'tobi@leetsoft.com') + p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n") + p.extra_deps = [ + ['activesupport','>= 2.3.2'], + ] + p.extra_dev_deps = [ ['newgem', ">= #{::Newgem::VERSION}"] - ] - + ] p.clean_globs |= %w[**/.DS_Store tmp *.log] path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}" p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc') diff --git a/test/test_cached.rb b/test/test_cached.rb index 1501347..fec59f4 100644 --- a/test/test_cached.rb +++ b/test/test_cached.rb @@ -8,8 +8,7 @@ class Product < Struct.new(:id, :name, :price, :vendor) include Cached::Model - cache_by_key :id do - + cache_by_key :id do index :name index [:vendor, :name] end