forked from jlawler/activeconfig
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
46 lines (37 loc) · 1.08 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
# encoding: utf-8
require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake'
require 'jeweler'
require 'rubygems'
#require 'rubygems/package_task'
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = 'activeconfig'
s.author = 'Jeremy Lawler'
s.email = '[email protected]'
s.homepage = 'http://jlawler.github.com/activeconfig/'
s.summary = 'An extremely flexible configuration system'
s.description = 'An extremely flexible configuration system.
s the ability for certain values to be "overridden" when conditions are met.
r example, you could have your production API keys only get read when the Rails.env == "production"'
s.authors = ["Jeremy Lawler"]
end
Jeweler::RubygemsDotOrgTasks.new
task :rdoc do
sh "rm -rf #{File.dirname(__FILE__)}/doc"
sh "cd lib && rdoc -o ../doc "
end
task :test do
Dir['*/*_test.rb'].each do |f|
puts `ruby -I lib #{f}`
end
end
task :default => :test