Skip to content

Commit

Permalink
Moving to jeweler. Fixed will-paginate issue. Closes #13
Browse files Browse the repository at this point in the history
  • Loading branch information
quirkey committed Jan 16, 2011
1 parent d2bc1b8 commit 8e4b9ce
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 32 deletions.
62 changes: 33 additions & 29 deletions Rakefile
@@ -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 }
6 changes: 3 additions & 3 deletions lib/gembox.rb
Expand Up @@ -6,15 +6,15 @@
require 'sass'
require 'active_support'
require 'rdoc/markup/to_html'
require 'will_paginate/array'
require 'will_paginate'
require 'will_paginate/view_helpers'

module Gembox
VERSION = '0.2.2'
VERSION = '0.2.3'
end

require 'gembox/extensions'
require 'gembox/gem_list'
require 'gembox/gems'
require 'gembox/view_helpers'
require 'gembox/app'
require 'gembox/app'

0 comments on commit 8e4b9ce

Please sign in to comment.