-
Notifications
You must be signed in to change notification settings - Fork 9
/
Rakefile
45 lines (36 loc) · 1.69 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
require 'rubygems' unless defined?(Gem)
require 'bundler/setup'
Bundler.setup(:default, :development)
require 'rake'
task :default => :rspec
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:rspec) do |spec|
Bundler.setup(:default, :development, :test)
spec.pattern = 'spec/**/*_spec.rb'
end
desc "Run RSpec with code coverage"
task :cov do
ENV['CONFIGLIERE_COV'] = "yep"
Rake::Task[:rspec].execute
end
require 'yard'
YARD::Rake::YardocTask.new do
Bundler.setup(:default, :development, :docs)
end
require 'jeweler'
Jeweler::Tasks.new do |gem|
Bundler.setup(:default, :development, :test)
gem.name = 'configliere'
gem.homepage = 'https://github.com/infochimps-labs/configliere'
gem.license = 'Apache 2.0'
gem.email = 'coders@infochimps.org'
gem.authors = ['Infochimps']
gem.summary = %Q{Wise, discreet configuration management}
gem.description = <<-EOF
You\'ve got a script. It\'s got some settings. Some settings are for this module, some are for that module. Most of them don\'t change. Except on your laptop, where the paths are different. Or when you're in production mode. Or when you\'re testing from the command line.
"" So, Consigliere of mine, I think you should tell your Don what everyone knows. "" -- Don Corleone
Configliere manage settings from many sources: static constants, simple config files, environment variables, commandline options, straight ruby. You don't have to predefine anything, but you can ask configliere to type-convert, require, document or password-obscure any of its fields. Modules can define config settings independently of each other and the main program.
EOF
gem.executables = []
end
Jeweler::RubygemsDotOrgTasks.new