Skip to content

Commit

Permalink
rakefile updates
Browse files Browse the repository at this point in the history
- add ability to define a dev version number
  for installing dev gems locally
- dont need to wrap all jeweler stuff in
  block rescuing just its LoadError
- alias rake :package for :build (jeweler just haaad to be different)
  • Loading branch information
greatseth committed Feb 5, 2010
1 parent 944af9c commit 78d534d
Showing 1 changed file with 27 additions and 19 deletions.
46 changes: 27 additions & 19 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,41 @@ require File.dirname(__FILE__) + '/lib/vegas'

begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = %q{vegas}
s.version = Vegas::VERSION
s.authors = ["Aaron Quint"]
s.date = %q{2009-08-30}
s.summary = "Vegas aims to solve the simple problem of creating executable versions of Sinatra/Rack apps."
s.description = %{Vegas aims to solve the simple problem of creating executable versions of Sinatra/Rack apps. It includes a class Vegas::Runner that wraps Rack/Sinatra applications and provides a simple command line interface and launching mechanism.}
s.email = ["[email protected]"]
s.homepage = %q{http://code.quirkey.com/vegas}
s.rubyforge_project = %q{quirkey}

s.add_runtime_dependency(%q<rack>, [">= 1.0.0"])

s.add_development_dependency(%q<mocha>, ["~> 0.9.8"])
s.add_development_dependency(%q<bacon>, ["~> 1.1.0"])
s.add_development_dependency(%q<sinatra>, ["~> 0.9.4"])

end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end

version = if ENV["DEV"]
"#{Vegas::VERSION}.#{Time.new.to_i}"
else
Vegas::VERSION
end

Jeweler::Tasks.new do |s|
s.name = %q{vegas}
s.version = version
s.authors = ["Aaron Quint"]
s.date = %q{2009-08-30}
s.summary = "Vegas aims to solve the simple problem of creating executable versions of Sinatra/Rack apps."
s.description = %{Vegas aims to solve the simple problem of creating executable versions of Sinatra/Rack apps. It includes a class Vegas::Runner that wraps Rack/Sinatra applications and provides a simple command line interface and launching mechanism.}
s.email = ["[email protected]"]
s.homepage = %q{http://code.quirkey.com/vegas}
s.rubyforge_project = %q{quirkey}

s.add_runtime_dependency(%q<rack>, [">= 1.0.0"])

s.add_development_dependency(%q<mocha>, ["~> 0.9.8"])
s.add_development_dependency(%q<bacon>, ["~> 1.1.0"])
s.add_development_dependency(%q<sinatra>, ["~> 0.9.4"])
end

Jeweler::GemcutterTasks.new

Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/test*.rb']
t.verbose = true
end

task :package => :build
task :default => :test

0 comments on commit 78d534d

Please sign in to comment.