Sha256: f47a9b9ae9978212be6ae2ed27697d881818e2d12333a9b099016751c1c7cf62
Contents?: true
Size: 824 Bytes
Versions: 3
Compression:
Stored size: 824 Bytes
Contents
#!/usr/bin/env rake begin require 'bundler/setup' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end task 'before_build' do signing_key = File.expand_path("~/.gem/librato-private_key.pem") if File.exists?(signing_key) puts "Key found: signing gem..." ENV['GEM_SIGNING_KEY'] = signing_key else puts "WARN: signing key not found, gem not signed" end end task :build => :before_build # IRB desc "Open an irb session preloaded with this library" task :console do sh "pry -rubygems -r rails -r ./lib/librato-rails.rb" end Bundler::GemHelper.install_tasks require 'rake/testtask' Rake::TestTask.new(:test) do |t| t.libs << 'lib' t.libs << 'test' t.pattern = 'test/**/*_test.rb' t.verbose = false t.warning = false end task :default => :test
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
librato-rails-2.1.0 | Rakefile |
librato-rails-2.0.0 | Rakefile |
librato-rails-1.4.2 | Rakefile |