-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathRakefile
41 lines (35 loc) · 1.06 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
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'rubygems'
task :default => [ :gem, :rdoc ]
Rake::TestTask.new("test") { |t|
t.test_files = FileList['test/test*.rb']
}
Rake::RDocTask.new { |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.rdoc_files.include('flickr.rb')
}
spec = Gem::Specification.new do |s|
s.add_dependency('xml-simple', '>= 1.0.7')
s.name = 'flickr'
s.version = "1.0.6"
s.platform = Gem::Platform::RUBY
s.summary = "An insanely easy interface to the Flickr photo-sharing service. By Scott Raymond. Maintainer: Patrick Plattes"
s.requirements << 'Flickr developers API key'
s.files = Dir.glob("**/*").delete_if { |item| item.include?("svn") || item[/^pkg/] }
s.require_path = 'lib'
s.author = "Scott Raymond, Patrick Plattes"
s.email = "patrick@erdbeere.net"
s.rubyforge_project = "flickr"
s.homepage = "http://flickr.rubyforge.org/"
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_zip = true
pkg.need_tar = true
end
task "Dump Gemspec file"
task :debug do
puts spec.to_ruby
end