-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathRakefile
46 lines (40 loc) · 1.27 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
require 'rubygems'
require 'rake/testtask'
require 'bundler/gem_tasks'
spec = Gem::Specification.new do |s|
s.name = "quilt"
s.version = "0.1.0"
s.platform = Gem::Platform::RUBY
s.has_rdoc = false
s.summary = "A Ruby library for generating identicon."
s.homepage = "https://github.com/swdyh/quilt"
s.description = s.summary + "\n" + s.homepage
s.author = "swdyh"
s.email = "[email protected]"
s.executables = %w( )
s.bindir = "bin"
s.require_path = "lib"
s.test_files = Dir["test/test_*.rb"]
s.license = "MIT"
s.files = `git ls-files`.split("\n")
s.add_development_dependency "bundler"
s.add_development_dependency "rake"
s.add_development_dependency "rmagick"
# 'Spakman/ruby-gd' in Gemfile
end
Rake::TestTask.new("test") do |t|
t.libs << "test"
t.pattern = "test/**/*_test.rb"
t.verbose = true
end
desc 'Show information about the gem.'
task :debug_gemspec do
puts spec.to_ruby
end
desc 'Update information about the gem.'
task :update_gemspec do
open("#{spec.name}.gemspec", 'w') { |f| f.puts spec.to_ruby }
end
desc 'Update gem'
task :update => [:update_gemspec, :build]
task :default => [:test]