Floppy / currentcost-daemon

A system daemon which monitors and publishes currentcost meter data

currentcost-daemon / Rakefile
100644 14 lines (12 sloc) 0.391 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'rake'
require 'rubygems/specification'
require 'rake/gempackagetask'
 
task :default => [:gem]
 
# Gem build task - load gemspec from file
gemspec = File.read('currentcost-daemon.gemspec')
spec = nil
# Eval gemspec in SAFE=3 mode to emulate github build environment
Thread.new { spec = eval("$SAFE = 3\n#{gemspec}") }.join
Rake::GemPackageTask.new(spec) do |p|
  p.gem_spec = spec
end