-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrakefile
37 lines (30 loc) · 1.03 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
VERSION_FILE = File.dirname(__FILE__)+"/lib/version.rb"
require VERSION_FILE
require 'pathname'
require 'rake/gempackagetask'
GemSpec = Gem::Specification.new do |s|
s.name = "mmedit"
s.version = MMEDIT_VERSION
s.date = Time.now.strftime("%Y-%m-%d")
s.summary = %q{A metamodel editor based on Concrete}
s.authors = ["Martin Thiede"]
# we want no rdoc or ri
s.rdoc_options = ["-x", ".*"]
s.required_ruby_version = Gem::Version::Requirement.new(">= 1.8.6")
s.add_dependency('rgen', '>= 0.5.2')
s.add_dependency('concrete', '>= 0.2.0')
gemfiles = Rake::FileList.new
gemfiles.include("example/**/*")
gemfiles.include("html/**/*")
gemfiles.include("lib/**/*")
gemfiles.include("syntax/**/*")
gemfiles.include("mmedit.rb", "rakefile", "CHANGELOG", "MIT-LICENSE", "README.rdoc")
s.files = gemfiles
s.require_paths << "lib"
s.executables = ["mmedit"]
end
Rake::GemPackageTask.new(GemSpec) do |p|
p.need_zip = false
end
task :default => :package
task :clobber => :clobber_package