Sha256: 790d55229e8d10441c6353f4f070048459b7c15c617f5a3e26fbbbdfbc9c3054

Contents?: true

Size: 1.92 KB

Versions: 1

Compression:

Stored size: 1.92 KB

Contents

require 'rake/testtask'
require 'rake/rdoctask'

task :default => [ :test ]

desc "Executes the test suite"
Rake::TestTask.new do |t|
  t.name = :test
  t.libs << 'lib' << 'ext' << 'test'
  t.pattern = "test/test_*.rb"
end

begin
  require 'jeweler'
rescue LoadError
  puts "Jeweler not available. Install it with: gem install jeweler"
end

def defaults(gemspec)
  gemspec.rubyforge_project = 'ehcache'
  gemspec.homepage = "http://ehcache.rubyforge.org"
  gemspec.authors = ["Dylan Stamat", "Jason Voegele"]
  gemspec.email = ['dstamat@elctech.com', 'jvoegele@terracotta.org']
end

Jeweler::Tasks.new do |gemspec|
  defaults(gemspec)
  gemspec.name = "jruby-ehcache"
  gemspec.summary = "JRuby interface to Ehcache"
  gemspec.description = "JRuby interface to the popular Java caching library Ehcache"
  gemspec.files.exclude '.gitignore'

  # These files go in the jruby-ehcache-rails2 and jruby-ehcache-rails3 gems
  gemspec.files.exclude 'lib/ehcache_store.rb'
  gemspec.files.exclude 'lib/active_support/**/*'
  gemspec.files.exclude 'lib/ehcache/rails'
  gemspec.add_dependency 'activesupport'
end

Jeweler::Tasks.new do |gemspec|
  defaults(gemspec)
  gemspec.name = 'jruby-ehcache-rails3'
  gemspec.summary = 'Rails 3 cache store provider using Ehcache'
  gemspec.description = 'Rails 3 cache store provider using Ehcache'
  gemspec.files = FileList['lib/active_support/**/*', 'lib/ehcache/rails/**/*']
  gemspec.test_files = []
  gemspec.add_dependency 'jruby-ehcache', ">=1.0.0"
end

Jeweler::Tasks.new do |gemspec|
  defaults(gemspec)
  gemspec.name = 'jruby-ehcache-rails2'
  gemspec.summary = 'Rails 2 cache store provider using Ehcache'
  gemspec.description = 'Rails 2 cache store provider using Ehcache'
  gemspec.files = FileList['lib/active_support/**/*', 'lib/ehcache/rails/**/*']
  gemspec.test_files = []
  gemspec.add_dependency 'jruby-ehcache', ">=1.0.0"
end

Jeweler::GemcutterTasks.new

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jruby-ehcache-1.0.0 Rakefile