Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

using jeweller gem

  • Loading branch information...
commit 48b78eb0809a1311aabd5463b5ccfff656d01ad7 1 parent 31ca449
@beaucollins authored
Showing with 45 additions and 28 deletions.
  1. +45 −28 Rakefile
View
73 Rakefile
@@ -1,7 +1,22 @@
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
-require 'rake/gempackagetask'
+# require 'rake/gempackagetask'
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gemspec|
+ gemspec.name = "power_reviews"
+ gemspec.summary = "Helps integrate Power Reviews into a rails site"
+ gemspec.description = "Tools and library for integrating Power Reviews into a rails website."
+ gemspec.email = "beaucollins@gmail.com"
+ gemspec.homepage = "http://github.com/beaucollins/power_reviews"
+ gemspec.authors = ["Beau Collins"]
+ end
+rescue LoadError
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
+end
+
desc 'Default: run unit tests.'
task :default => :test
@@ -23,31 +38,33 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
-PKG_FILES = FileList[
- '[a-zA-Z]*',
- 'generators/**/*',
- 'lib/**/*',
- 'rails/**/*',
- 'test/**/*'
-]
-
-spec = Gem::Specification.new do |s|
- s.name = 'power_reviews'
- s.version = "0.0.1"
- s.author = 'Beau Collins'
- s.email = 'beau_collins@k2sports.com'
- s.homepage = 'http://k2sports.com'
- s.platform = Gem::Platform::RUBY
- s.summary = s.description = "Helps integrate Power Reviews into a rails site"
- s.files = PKG_FILES.to_a
- s.require_path = "lib"
- s.has_rdoc = false
- s.extra_rdoc_files = ['README']
- s.add_runtime_dependency 'javan-whenever' # this is a github gem
- s.add_runtime_dependency 'fastercsv'
-end
-desc "Turn this plugin into a a gem."
-Rake::GemPackageTask.new(spec) do |pkg|
- pkg.gem_spec = spec
-end
+
+# PKG_FILES = FileList[
+# '[a-zA-Z]*',
+# 'generators/**/*',
+# 'lib/**/*',
+# 'rails/**/*',
+# 'test/**/*'
+# ]
+#
+# spec = Gem::Specification.new do |s|
+# s.name = 'power_reviews'
+# s.version = "0.0.1"
+# s.author = 'Beau Collins'
+# s.email = 'beau_collins@k2sports.com'
+# s.homepage = 'http://k2sports.com'
+# s.platform = Gem::Platform::RUBY
+# s.summary = s.description = "Helps integrate Power Reviews into a rails site"
+# s.files = PKG_FILES.to_a
+# s.require_path = "lib"
+# s.has_rdoc = false
+# s.extra_rdoc_files = ['README']
+# s.add_runtime_dependency 'javan-whenever' # this is a github gem
+# s.add_runtime_dependency 'fastercsv'
+# end
+
+# desc "Turn this plugin into a a gem."
+# Rake::GemPackageTask.new(spec) do |pkg|
+# pkg.gem_spec = spec
+# end
Please sign in to comment.
Something went wrong with that request. Please try again.