Permalink
Browse files

Migrated to Jeweler

  • Loading branch information...
1 parent f8195b3 commit e8ae8fd45f917f8ed3ef363fb0d69487502a3862 @mdarby committed Dec 17, 2009
Showing with 119 additions and 66 deletions.
  1. +5 −0 .document
  2. +21 −0 .gitignore
  3. +1 −1 MIT-LICENSE → LICENSE
  4. +18 −0 README.rdoc
  5. +56 −14 Rakefile
  6. +1 −1 VERSION
  7. +0 −1 init.rb
  8. +0 −1 install.rb
  9. +0 −32 mq.gemspec
  10. +0 −4 tasks/mq_tasks.rake
  11. +10 −0 test/helper.rb
  12. +0 −8 test/mq_test.rb
  13. +0 −3 test/test_helper.rb
  14. +7 −0 test/test_mq.rb
  15. +0 −1 uninstall.rb
View
@@ -0,0 +1,5 @@
+README.rdoc
+lib/**/*.rb
+bin/*
+features/**/*.feature
+LICENSE
View
@@ -0,0 +1,21 @@
+## MAC OS
+.DS_Store
+
+## TEXTMATE
+*.tmproj
+tmtags
+
+## EMACS
+*~
+\#*
+.\#*
+
+## VIM
+*.swp
+
+## PROJECT::GENERAL
+coverage
+rdoc
+pkg
+
+## PROJECT::SPECIFIC
View
@@ -1,4 +1,4 @@
-Copyright (c) 2009 [name of plugin creator]
+Copyright (c) 2009 Matt Darby
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
View
@@ -0,0 +1,18 @@
+= mq
+
+Description goes here.
+
+== Note on Patches/Pull Requests
+
+* Fork the project.
+* Make your feature addition or bug fix.
+* Add tests for it. This is important so I don't break it in a
+ future version unintentionally.
+* Commit, do not mess with rakefile, version, or history.
+ (if you want to have your own version, that is fine but
+ bump version in a commit by itself I can ignore when I pull)
+* Send me a pull request. Bonus points for topic branches.
+
+== Copyright
+
+Copyright (c) 2009 Matt Darby. See LICENSE for details.
View
@@ -1,23 +1,65 @@
+require 'rubygems'
require 'rake'
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gem|
+ gem.name = "mq"
+ gem.summary = %Q{TODO: one-line summary of your gem}
+ gem.description = %Q{TODO: longer description of your gem}
+ gem.email = "matt@matt-darby.com"
+ gem.homepage = "http://github.com/mdarby/mq"
+ gem.authors = ["Matt Darby"]
+ gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
+ gem.add_development_dependency "cucumber", ">= 0"
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
+ end
+ Jeweler::GemcutterTasks.new
+rescue LoadError
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
+end
+
require 'rake/testtask'
-require 'rake/rdoctask'
+Rake::TestTask.new(:test) do |test|
+ test.libs << 'lib' << 'test'
+ test.pattern = 'test/**/test_*.rb'
+ test.verbose = true
+end
-desc 'Default: run unit tests.'
-task :default => :test
+begin
+ require 'rcov/rcovtask'
+ Rcov::RcovTask.new do |test|
+ test.libs << 'test'
+ test.pattern = 'test/**/test_*.rb'
+ test.verbose = true
+ end
+rescue LoadError
+ task :rcov do
+ abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
+ end
+end
-desc 'Test the mq plugin.'
-Rake::TestTask.new(:test) do |t|
- t.libs << 'lib'
- t.libs << 'test'
- t.pattern = 'test/**/*_test.rb'
- t.verbose = true
+task :test => :check_dependencies
+
+begin
+ require 'cucumber/rake/task'
+ Cucumber::Rake::Task.new(:features)
+
+ task :features => :check_dependencies
+rescue LoadError
+ task :features do
+ abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
+ end
end
-desc 'Generate documentation for the mq plugin.'
-Rake::RDocTask.new(:rdoc) do |rdoc|
+task :default => :test
+
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
+
rdoc.rdoc_dir = 'rdoc'
- rdoc.title = 'Mq'
- rdoc.options << '--line-numbers' << '--inline-source'
- rdoc.rdoc_files.include('README')
+ rdoc.title = "mq #{version}"
+ rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
View
@@ -1 +1 @@
-0.0.0
+0.1.3
View
@@ -1 +0,0 @@
-# Include hook code here
View
@@ -1 +0,0 @@
-# Install hook code here
View
@@ -1,32 +0,0 @@
-Gem::Specification.new do |s|
- s.name = "mq"
- s.version = "0.1.3"
- s.date = "2009-10-18"
- s.summary = "An email queue that actually works"
- s.email = "matt@matt-darby.com"
- s.homepage = "http://github.com/mdarby/mq"
- s.description = "A Rails gem that generates an MVC stack that does email queuing"
- s.has_rdoc = false
- s.authors = ["Matt Darby"]
- s.files = [
- "MIT-LICENSE",
- "README.textile",
- "Rakefile",
- "generators/mq/mq_generator.rb",
- "generators/mq/templates/create_email_table.rb",
- "generators/mq/templates/email.rb",
- "generators/mq/templates/emails_controller.rb",
- "generators/mq/templates/spec/emails_routing_spec.rb",
- "generators/mq/templates/spec/email_spec.rb",
- "generators/mq/templates/spec/emails_controller_spec.rb",
- "generators/mq/templates/views/_email.html.erb",
- "generators/mq/templates/views/index.html.erb",
- "generators/mq/USAGE",
- "init.rb",
- "install.rb",
- "lib/mq.rb",
- "mq.gemspec",
- "uninstall.rb"
- ]
-
-end
View
@@ -1,4 +0,0 @@
-# desc "Explaining what the task does"
-# task :mq do
-# # Task goes here
-# end
View
@@ -0,0 +1,10 @@
+require 'rubygems'
+require 'test/unit'
+require 'shoulda'
+
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+$LOAD_PATH.unshift(File.dirname(__FILE__))
+require 'mq'
+
+class Test::Unit::TestCase
+end
View
@@ -1,8 +0,0 @@
-require 'test_helper'
-
-class MqTest < ActiveSupport::TestCase
- # Replace this with your real tests.
- test "the truth" do
- assert true
- end
-end
View
@@ -1,3 +0,0 @@
-require 'rubygems'
-require 'active_support'
-require 'active_support/test_case'
View
@@ -0,0 +1,7 @@
+require 'helper'
+
+class TestMq < Test::Unit::TestCase
+ should "probably rename this file and start testing for real" do
+ flunk "hey buddy, you should probably rename this file and start testing for real"
+ end
+end
View
@@ -1 +0,0 @@
-# Uninstall hook code here

0 comments on commit e8ae8fd

Please sign in to comment.