Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 58 lines (49 sloc) 1.599 kB
63b0e0f @grempe Updated to use Bundler instead of Jeweler to manage installation of d…
authored
1 require 'bundler'
2 Bundler::GemHelper.install_tasks
9733528 @grempe Fixed issue with publishing to rubyforge with Jeweler caused by chang…
authored
3
6e31869 @grempe Converted to technicalpickles/jeweler to manage the gem.
authored
4 require 'rake/testtask'
5 Rake::TestTask.new(:test) do |test|
6 test.libs << 'lib' << 'test'
7 test.pattern = 'test/**/test_*.rb'
8 test.verbose = true
b6b2288 @herenowcoder Added rake target to quickly install the gem without docs
herenowcoder authored
9 end
10
6e31869 @grempe Converted to technicalpickles/jeweler to manage the gem.
authored
11 begin
12 require 'rcov/rcovtask'
13 Rcov::RcovTask.new do |test|
14 test.libs << 'test'
15 test.pattern = 'test/**/test_*.rb'
16 test.verbose = true
0c10ebc @grempe Limit the code that rcov reports coverage on to our code.
authored
17 test.rcov_opts << "--exclude /gems/,/Library/,spec"
6e31869 @grempe Converted to technicalpickles/jeweler to manage the gem.
authored
18 end
19 rescue LoadError
20 task :rcov do
3eba5fc @grempe Removed the last bits of RubyForge.
authored
21 abort "RCov is not available. In order to run rcov, you must: [sudo] gem install rcov"
6e31869 @grempe Converted to technicalpickles/jeweler to manage the gem.
authored
22 end
5b3a2c0 @grempe MAJOR cleanup of RubyForge cruft all made possible by GitHub gem host…
authored
23 end
24
6e31869 @grempe Converted to technicalpickles/jeweler to manage the gem.
authored
25 task :default => :test
26
21066c4 @grempe Re-added rdoc task in addition to yard
authored
27 require 'rake/rdoctask'
28 Rake::RDocTask.new do |rdoc|
29 if File.exist?('VERSION.yml')
30 config = YAML.load(File.read('VERSION.yml'))
31 version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
32 else
33 version = ""
34 end
35
36 rdoc.rdoc_dir = 'rdoc'
37 rdoc.title = "amazon-ec2 #{version}"
38 rdoc.rdoc_files.include('README*')
39 rdoc.rdoc_files.include('lib/**/*.rb')
40 end
41
69a0cad @Flameeyes Make YARD optional, and only output an error similar to Jeweler if mi…
Flameeyes authored
42 begin
43 require 'yard'
44 YARD::Rake::YardocTask.new do |t|
45 #t.files = ['lib/**/*.rb']
46 end
47 rescue LoadError
48 puts "YARD (or a dependency) not available. Install it with: [sudo] gem install yard"
5b3a2c0 @grempe MAJOR cleanup of RubyForge cruft all made possible by GitHub gem host…
authored
49 end
a6fab5f @rsanheim default rake task should run tests
rsanheim authored
50
bf7b7a8 @grempe Add a rake task to view results from perftools.rb. The ec2prof-resul…
authored
51 desc "Generate a perftools.rb profile"
52 task :profile do
63b0e0f @grempe Updated to use Bundler instead of Jeweler to manage installation of d…
authored
53 system("CPUPROFILE=perftools/ec2prof RUBYOPT='-r/Users/glenn/.rvm/gems/ruby-1.8.7-p302@amazon-ec2/gems/perftools.rb-0.5.4/lib/perftools.bundle' ruby -r'rubygems' bin/ec2-gem-profile.rb")
bf7b7a8 @grempe Add a rake task to view results from perftools.rb. The ec2prof-resul…
authored
54 system("pprof.rb --text --ignore=Gem perftools/ec2prof > perftools/ec2prof-results.txt")
55 system("pprof.rb --dot --ignore=Gem perftools/ec2prof > perftools/ec2prof-results.dot")
3eba5fc @grempe Removed the last bits of RubyForge.
authored
56 end
57
Something went wrong with that request. Please try again.