-
Notifications
You must be signed in to change notification settings - Fork 37
/
Rakefile
30 lines (25 loc) · 1.24 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
# -*- ruby -*-
ENV['RUBYOPT'] = '-W1'
require 'ftools'
require 'rubygems'
gem 'echoe', '~>3.0'
require 'echoe'
require './lib/noaa.rb'
Echoe.new('noaa', NOAA::VERSION) do |p|
p.name = 'noaa'
p.author = 'Mat Brown'
p.description = 'Ruby API for National Oceanic and Atmospheric Administration weather data'
p.email = '[email protected]'
p.url = 'http://github.com/outoftime/noaa'
p.install_message = "Be sure to update the weather station list:\n\n\tsudo noaa-update-stations\n\nThis can be run at any time to update the stations, but you must run it once to initially populate the station list."
p.runtime_dependencies = [Gem::Dependency.new('libxml-ruby', '>= 0.9.7'),
Gem::Dependency.new('geokit', '>= 1.5.0')]
p.development_dependencies = [Gem::Dependency.new('jeremymcanally-context', '>= 0.0.6'),
Gem::Dependency.new('jeremymcanally-matchy', '>= 0.0.1'),
Gem::Dependency.new('ruby-debug', '~> 0.10')]
end
desc 'Create gemspec and copy it into project root'
task :gemspec => :package do
File.copy(File.join(File.dirname(__FILE__), 'pkg', "noaa-#{NOAA::VERSION}", 'noaa.gemspec'), File.join(File.dirname(__FILE__), 'noaa.gemspec'))
end
# vim: syntax=Ruby