require 'rubygems' require 'bundler/setup' Bundler.require begin require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = "djmaze-arid_cache" gem.summary = %Q{Automates efficient caching of your ActiveRecord collections, gives you counts for free and supports pagination.} gem.description = <<-END.gsub(/^\s+/, '') Fork of arid_cache which defines caching methods once on a class instead of per object, thus preventing "singleton can't be dumped" from memcached! AridCache makes caching easy and effective. AridCache supports caching on all your model named scopes, class methods and instance methods right out of the box. AridCache prevents caching logic from cluttering your models and clarifies your logic by making explicit calls to cached result sets. AridCache is designed for handling large, expensive ActiveRecord collections but is equally useful for caching anything else as well. END gem.email = "maze@strahlungsfrei.de" gem.homepage = "http://github.com/djmaze/arid_cache" gem.authors = ["Karl Varga", "Martin Honermeyer"] gem.add_dependency "will_paginate" gem.add_development_dependency "will_paginate" gem.add_development_dependency "faker" gem.add_development_dependency "machinist" # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" end require 'spec/rake/spectask' Spec::Rake::SpecTask.new(:spec) do |spec| spec.libs << 'lib' << 'spec' spec.spec_files = FileList['spec/**/*_spec.rb'] end Spec::Rake::SpecTask.new(:rcov) do |spec| spec.libs << 'lib' << 'spec' spec.pattern = 'spec/**/*_spec.rb' spec.rcov = true end task :spec => :check_dependencies require 'rake/testtask' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/**/*_test.rb' test.verbose = true end task :test => :check_dependencies task :default => :test require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION') : "" rdoc.rdoc_dir = 'rdoc' rdoc.title = "arid_cache #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end namespace :release do desc "Release a new patch version" task :patch do Rake::Task['version:bump:patch'].invoke Rake::Task['release:current'].invoke end desc "Release the current version (after a manual version bump). This rebuilds the gemspec, pushes the updated code, tags it and releases to RubyGems" task :current do Rake::Task['github:release'].invoke Rake::Task['git:release'].invoke Rake::Task['gemcutter:release'].invoke end end