Skip to content

Commit

Permalink
made by me
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Lütke committed Jun 8, 2009
1 parent b9edf46 commit f15ffb7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
6 changes: 0 additions & 6 deletions 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.


16 changes: 7 additions & 9 deletions Rakefile
Expand Up @@ -5,17 +5,15 @@ require File.dirname(__FILE__) + '/lib/cached'
# Generate all the Rake tasks # Generate all the Rake tasks
# Run 'rake -T' to see list of generated tasks (from gem root directory) # Run 'rake -T' to see list of generated tasks (from gem root directory)
$hoe = Hoe.new('cached', Cached::VERSION) do |p| $hoe = Hoe.new('cached', Cached::VERSION) do |p|
p.developer('FIXME full name', 'FIXME email') p.developer('Tobias Lütke', 'tobi@leetsoft.com')
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n") 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.extra_deps = [
p.rubyforge_name = p.name # TODO this is default value ['activesupport','>= 2.3.2'],
# p.extra_deps = [ ]
# ['activesupport','>= 2.0.2'],
# ]
p.extra_dev_deps = [ p.extra_dev_deps = [
['newgem', ">= #{::Newgem::VERSION}"] ['newgem', ">= #{::Newgem::VERSION}"]
] ]

p.clean_globs |= %w[**/.DS_Store tmp *.log] p.clean_globs |= %w[**/.DS_Store tmp *.log]
path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}" 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') p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc')
Expand Down
3 changes: 1 addition & 2 deletions test/test_cached.rb
Expand Up @@ -8,8 +8,7 @@ class Product < Struct.new(:id, :name, :price, :vendor)
include Cached::Model include Cached::Model




cache_by_key :id do cache_by_key :id do

index :name index :name
index [:vendor, :name] index [:vendor, :name]
end end
Expand Down

0 comments on commit f15ffb7

Please sign in to comment.