Skip to content

Instantly share code, notes, and snippets.

@jackdempsey
Created August 27, 2008 01:41
Show Gist options
  • Save jackdempsey/7394 to your computer and use it in GitHub Desktop.
Save jackdempsey/7394 to your computer and use it in GitHub Desktop.
~/git/merb_has_flash master$ rake --trace
(in /Users/jack/git/merb_has_flash)
rake aborted!
undefined local variable or method `spec' for main:Object
/Users/jack/git/merb_has_flash/rakefile:5
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:2149:in `load'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:2149:in `raw_load_rakefile'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1897:in `load_rakefile'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1896:in `load_rakefile'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1880:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19
~/git/merb_has_flash master$ cat -n Rakefile
1 require 'rubygems'
2 require 'rake/gempackagetask'
3 require 'spec'
4
5 Rake::GemPackageTask.new(spec) do |pkg|
6 pkg.gem_spec = spec
7 end
8
9 task :install => [:package] do
10 sh %{sudo gem install pkg/#{NAME}-#{VERSION}}
11 end
12
13 task :release => :package do
14 sh %{rubyforge add_release merb-plugins merb_has_flash #{VERSION} pkg/#{NAME}-#{VERSION}.gem}
15 end
~/git/merb_has_flash master$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment