Permalink
Browse files

Rakefile for release.

  • Loading branch information...
1 parent a6f7fe3 commit d7aa70827b672f3a3b7d4a186ad66defd9bba9ec Steph Skardal committed Jul 13, 2012
Showing with 18 additions and 24 deletions.
  1. +18 −24 Rakefile
View
@@ -1,26 +1,20 @@
-#!/usr/bin/env rake
-begin
- require 'bundler/setup'
-rescue LoadError
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
-end
-begin
- require 'rdoc/task'
-rescue LoadError
- require 'rdoc/rdoc'
- require 'rake/rdoctask'
- RDoc::Task = Rake::RDocTask
-end
-
-RDoc::Task.new(:rdoc) do |rdoc|
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = 'RailsAdminPdf'
- rdoc.options << '--line-numbers'
- rdoc.rdoc_files.include('README.rdoc')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
-
-
+require 'rake/testtask'
-Bundler::GemHelper.install_tasks
+#Rake::TestTask.new do |test|
+# test.pattern = 'test/**/*_test.rb'
+# test.libs << 'test'
+#end
+begin
+ require "jeweler"
+ Jeweler::Tasks.new do |gem|
+ gem.name = "rails_admin_pdf"
+ gem.summary = "PDF functionality for rails admin"
+ gem.email = "steph@endpoint.com"
+ gem.authors = ["Steph Skardal"]
+ gem.files = Dir["{lib}/**/*", "{app}/**/*", "{public}/**/*", "{config}/**/*"]
+ end
+ Jeweler::GemcutterTasks.new
+rescue
+ puts "Jeweler or dependency not available."
+end

0 comments on commit d7aa708

Please sign in to comment.