Permalink
Browse files

made by me

  • Loading branch information...
1 parent b9edf46 commit f15ffb793ffef2f288dc9818550c77f7d4c4068f @tobi committed Jun 8, 2009
Showing with 8 additions and 17 deletions.
  1. +0 −6 PostInstall.txt
  2. +7 −9 Rakefile
  3. +1 −2 test/test_cached.rb
View
@@ -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.
-
-
View
@@ -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')
View
@@ -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

0 comments on commit f15ffb7

Please sign in to comment.