0
-require 'will_paginate/version'
0
-AUTHOR = ['Mislav Marohnić', 'PJ Hyett'] # can also be an array of Authors
0
-EMAIL = 'mislav.marohnic@gmail.com'
0
-DESCRIPTION = "A Rails plugin that provides pagination solutions when querying models and rendering pagination links in views."
0
-GEM_NAME = 'will_paginate' # what ppl will type to install your gem
0
-RUBYFORGE_PROJECT = 'will-paginate' # The unix name for your project
0
-HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
0
-DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
0
-@config_file = "~/.rubyforge/user-config.yml"
0
-RUBYFORGE_USERNAME = "unknown"
0
- @config = YAML.load(File.read(File.expand_path(@config_file)))
0
-ERROR: No rubyforge config file found: #{@config_file}
0
-Run 'rubyforge setup' to prepare your env for access to Rubyforge
0
- - See http://newgem.rubyforge.org/rubyforge.html for more details
0
- RUBYFORGE_USERNAME.replace @config["username"]
0
-# UNCOMMENT IF REQUIRED:
0
-# REV = `svn info`.each {|line| if line =~ /^Revision:/ then k,v = line.split(': '); break v.chomp; else next; end} rescue nil
0
-VERS = WillPaginate::VERSION::STRING + (REV ? ".#{REV}" : "")
0
-RDOC_OPTS = ['--quiet', '--title', 'Will Paginate documentation',
0
- "--opname", "index.html",
0
- @extra_deps.reject! { |x| Array(x).first == 'hoe' }
0
-# Generate all the Rake tasks
0
-# Run 'rake -T' to see list of generated tasks (from gem root directory)
0
-hoe = Hoe.new(GEM_NAME, VERS) do |p|
0
- p.description = DESCRIPTION
0
- p.summary = DESCRIPTION
0
- p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
0
- p.test_globs = ["test/**/test_*.rb"]
0
- p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
0
- p.changes = p.paragraphs_of("CHANGELOG", 0..1).join("\n\n")
0
- p.extra_deps = [ %w(activesupport >=1.4.4) ]
0
- #p.spec_extras = {} # A hash of extra values to set in the gemspec.
0
-PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
0
-hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
0
-hoe.rsync_args = '-av --delete --ignore-errors'
Comments
No one has commented yet.