/
release.rake
38 lines (33 loc) · 1.08 KB
/
release.rake
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
# coding: utf-8
require 'rake/gempackagetask'
PKG_VERSION = "6.0.8"
PKG_NAME = "typo"
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
RUBY_FORGE_PROJECT = 'typo'
RUBY_FORGE_USER = 'fdevillamil'
RELEASE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
spec = Gem::Specification.new do |s|
s.name = PKG_NAME
s.version = PKG_VERSION
s.summary = "Modern weblog engine."
s.has_rdoc = false
s.files = Dir.glob('**/*', File::FNM_DOTMATCH).reject do |f|
[ /\.$/, /config\/database.yml$/, /config\/database.yml-/,
/database\.sqlite/,
/\.log$/, /^pkg/, /\.git/, /Gemfile\.lock/, /^vendor\/rails/,
/^public\/(files|xml|articles|pages|index.html)/,
/^public\/(stylesheets|javascripts|images)\/theme/, /\~$/,
/\/\._/, /\/#/ ].any? {|regex| f =~ regex }
end
s.require_path = '.'
s.author = "Frédéric de Villamil"
s.email = "frederic@de-villamil.com"
s.homepage = "http://typosphere.org"
s.rubyforge_project = "typo"
s.platform = Gem::Platform::RUBY
end
Rake::GemPackageTask.new(spec) do |p|
p.need_tar = true
p.need_zip = true
end
task :release => [:sweep_cache, :package ]