-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRakefile
41 lines (31 loc) · 961 Bytes
/
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/gempackagetask'
Dir[ "tasks/**/*.rake" ].each { | tasks | load tasks }
desc "Run specs"
task :default => :spec
spec = Gem::Specification.new do |s|
s.name = 'simple-flickr'
s.version = '0.1.3'
s.summary = "A wrapper for Flickrs REST API"
s.description = "A wrapper for Flickrs REST API."
s.author = "Jerrett Taylor"
s.email = "[email protected]"
s.homepage = "http://github.com/jerrett/simple-flickr"
# code
s.require_path = "lib"
s.files = %w( README Rakefile ) + Dir["{spec,lib}/**/*"]
# rdoc
s.has_rdoc = false
# Dependencies
s.add_dependency "hpricot", [">= 0.8.0"]
# Requirements
s.required_ruby_version = ">= 1.8.6"
s.platform = Gem::Platform::RUBY
end
desc "create .gemspec file (useful for github)"
task :gemspec do
filename = "#{spec.name}.gemspec"
File.open(filename, "w") do |f|
f.puts spec.to_ruby
end
end