Skip to content
Browse files

Hoe begin

gitignore management
  • Loading branch information...
1 parent 5b123a2 commit dbb252e8c6324159e8c05241b5548acd993c09f9 @nowk committed Feb 14, 2010
Showing with 25 additions and 19 deletions.
  1. +2 −1 .gitignore
  2. +23 −18 Rakefile
View
3 .gitignore
@@ -1,3 +1,4 @@
doc
pkg
-rcov
+rcov
+vendor
View
41 Rakefile
@@ -1,26 +1,31 @@
require 'rubygems'
-require 'hoe'
-Hoe.plugins.delete :rubyforge
-Hoe.plugin :gemcutter
-Hoe.plugin :clean
-Hoe.plugin :git
+begin
+ require 'hoe'
+
+ Hoe.plugins.delete :rubyforge
+ Hoe.plugin :gemcutter
+ Hoe.plugin :clean
+ Hoe.plugin :git
-Hoe.spec 'sinatra-pagin' do
- developer('Yung H Kwon', 'yung.kwon@example.com')
+ Hoe.spec 'sinatra-pagin' do
+ developer('Yung H Kwon', 'yung.kwon@example.com')
- extra_deps << ['sinatra', '>= 0.9.4']
- extra_dev_deps = [
- ['rack-test', '>= 0.5.2'],
- ['rspec', '>= 1.2.8'],
- ['webrat', '>= 0.7.0']
- ]
+ extra_deps << ['sinatra', '>= 0.9.4']
+ extra_dev_deps = [
+ ['rack-test', '>= 0.5.2'],
+ ['rspec', '>= 1.2.8'],
+ ['webrat', '>= 0.7.0']
+ ]
- # self.rubyforge_name = 'nowk-sinatra-pagin' # if different than 'sinatra-pagin'
- self.readme_file = 'README.rdoc'
- self.history_file = 'History.txt'
- self.test_globs = 'spec/*_spec.rb'
- self.version = '0.0.1'
+ # self.rubyforge_name = 'nowk-sinatra-pagin' # if different than 'sinatra-pagin'
+ self.readme_file = 'README.rdoc'
+ self.history_file = 'History.txt'
+ self.test_globs = 'spec/*_spec.rb'
+ self.version = '0.0.1'
+ end
+rescue LoadError
+ puts "Hoe is required. To install please run `sudo gem install hoe`"
end
#

0 comments on commit dbb252e

Please sign in to comment.
Something went wrong with that request. Please try again.