Sha256: 71bd76d699af9b65c8060f17705c416b0218ecfdb529f50eab232b47271e03b5
Contents?: true
Size: 678 Bytes
Versions: 1
Compression:
Stored size: 678 Bytes
Contents
require "rake/testtask" task :default => [:test] Rake::TestTask.new do |test| test.libs << "test" test.test_files = Dir.glob("test/test_*.rb") test.verbose = true end desc "Generate gemspec file from template" task :gemspec do require "erb" require "lib/kagemusha" src = File.open("kagemusha.gemspec.erb", "rb") { |file| file.read } erb = ERB.new(src, nil, "-") version = Kagemusha::VERSION date = Time.now.strftime("%Y-%m-%d") files = Dir.glob("**/*").select { |s| File.file?(s) } test_files = Dir.glob("test/**").select { |s| File.file?(s) } File.open("kagemusha.gemspec", "wb") { |file| file.write(erb.result(binding)) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nayutaya-kagemusha-0.0.9 | Rakefile |