-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
47 lines (40 loc) · 1.35 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
# -*- coding: utf-8 -*-
require 'rubygems'
require 'rubygems/package_task'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new do |t|
t.pattern = 'spec/**/*.rb'
t.rcov = false
t.rcov_opts = %q[--exclude "spec"]
t.verbose = true
end
spec = Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.required_ruby_version = '>= 1.8.7'
s.summary = 'A tool to generate images/videos of user locations based on Apache log files.'
s.name = 'ip-world-map'
s.version = '1.0.1'
s.license = 'GPL-2.0'
s.executables = ['ip-world-map']
s.files = FileList['{lib,spec}/**/*'].to_a +
['Rakefile'] +
['resources/maps/earthmap-1920x960.tif']
s.has_rdoc = false
s.description = s.summary
s.homepage = 'http://github.com/darxriggs/ip-world-map'
s.author = 'René Scheibe'
s.email = 'rene.scheibe@gmail.com'
s.requirements = ['ImageMagick (used by rmagick)', 'ffmpeg (only for animations)']
s.required_ruby_version = '>= 1.8.7'
s.add_runtime_dependency('rmagick', '~> 2.13', '>= 2.13.1')
s.add_runtime_dependency('typhoeus', '~> 0.2', '>= 0.2.1')
s.add_development_dependency('rspec', '~> 2.6', '>= 2.6.0')
end
Gem::PackageTask.new(spec) do |pkg|
pkg.need_tar = false
end
desc 'Install gem locally'
task :install_gem => :package do
`gem install pkg/*.gem --no-ri --no-rdoc`
end
task :default => :install_gem