-
Notifications
You must be signed in to change notification settings - Fork 8
/
Rakefile
60 lines (51 loc) · 1.92 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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.1.2"
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.1.2"
end
Jeweler::GemcutterTasks.new