Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving to jeweler. Fixed will-paginate issue. Closes #13
- Loading branch information
Showing
2 changed files
with
36 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,39 @@ | ||
%w[rubygems rake rake/clean fileutils hoe newgem rubigen].each { |f| require f } | ||
%w[rubygems rake rake/clean rake/testtask fileutils].each { |f| require f } | ||
require File.dirname(__FILE__) + '/lib/gembox' | ||
|
||
# Generate all the Rake tasks | ||
# Run 'rake -T' to see list of generated tasks (from gem root directory) | ||
begin | ||
require 'jeweler' | ||
rescue LoadError | ||
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" | ||
end | ||
|
||
Jeweler::Tasks.new do |s| | ||
s.name = %q{gembox} | ||
s.version = Gembox::VERSION | ||
s.authors = ["Aaron Quint"] | ||
s.summary = "A sinatra based interface for browsing and admiring your gems." | ||
s.description = "A sinatra based interface for browsing and admiring your gems." | ||
s.email = ["aaron@quirkey.com"] | ||
s.homepage = %q{http://code.quirkey.com/gembox} | ||
s.rubyforge_project = %q{quirkey} | ||
|
||
$hoe = Hoe.new('gembox', Gembox::VERSION) do |p| | ||
p.developer('Aaron Quint', 'aaron@quirkey.com') | ||
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n") | ||
p.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required | ||
p.rubyforge_name = 'quirkey' | ||
p.summary = p.description = "A sinatra based interface for browsing and admiring your gems." | ||
p.url = ['http://code.quirkey.com/gembox', 'http://github.com/quirkey/gembox'] | ||
p.extra_deps = [ | ||
['sinatra', '>=0.9.2'], | ||
['vegas', '>=0.1.0'], | ||
['haml', '>=2.0.9'], | ||
[ | ||
['sinatra', '~>1.0'], | ||
['vegas', '~>0.1.0'], | ||
['haml', '~>2.0.9'], | ||
['rdoc', '=2.4.3'], | ||
['activesupport', '>=2.2.2'], | ||
['will_paginate', '>=2.3.7'] | ||
] | ||
|
||
p.extra_dev_deps = [ | ||
['newgem', ">= #{::Newgem::VERSION}"], | ||
['rack-test', '>=0.1.0'] | ||
] | ||
p.clean_globs |= %w[**/.DS_Store tmp *.log] | ||
path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}" | ||
p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc') | ||
p.rsync_args = '-av --delete --ignore-errors' | ||
['activesupport', '~>2.2.2'], | ||
['will_paginate', '~>2.3.7'] | ||
].each do |n, v| | ||
s.add_runtime_dependency(n, v) | ||
end | ||
end | ||
|
||
Jeweler::GemcutterTasks.new | ||
|
||
Rake::TestTask.new do |t| | ||
t.libs << "test" | ||
t.test_files = FileList['test/test*.rb'] | ||
t.verbose = true | ||
end | ||
|
||
require 'newgem/tasks' # load /tasks/*.rake | ||
Dir['tasks/**/*.rake'].each { |t| load t } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters