Permalink
Browse files

Packaging as a gem.

  • Loading branch information...
1 parent 8451bd2 commit 1d5fa6f1571a1a0aa149112091c3a48e9cd8c68d @commondream committed Apr 17, 2010
Showing with 39 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +12 −2 README.markdown → README.md
  3. +3 −0 lib/rcov_plugin/version.rb
  4. +23 −0 rcov_plugin.gemspec
View
@@ -0,0 +1 @@
+*.gem
@@ -20,6 +20,16 @@ to their first letters:
rake test:coverage SHOW_ONLY=helpers,controllers
rake test:coverage SHOW_ONLY=h,c
+Installing
+=============
+As of Rails 3, rake tasks can be distributed easily in plugins packaged as gems, and that's what we do here. So, to install rcov_plugin, simply do:
+
+gem install rcov_plugin
+
+or add the gem to your bundler Gemspec
+
+gem "rcov_plugin"
+
JRuby Support
=============
rcov_plugin works great with JRuby.
@@ -32,11 +42,11 @@ Special thanks go to Leonard Borges ([http://www.leonardoborges.com](http://www.
Requirements
============
-This task requires that you have rcov installed and on your path.
+This plugin requires rails 3 and
@commondream

commondream Apr 29, 2010

Owner

Oops, sorry Mike. And rcov.

Using With Rails 2
============
-Use the following command to install this plugin with Rails 2:
+This plugin worked with Rails 2 back in the day, and I've got a tag on the repo that you can use to install the old Rails 2 version. Use the following command:
script/plugin install -r rails_2 git://github.com/commondream/rcov_plugin.git
@@ -0,0 +1,3 @@
+module RcovPlugin
+ VERSION = "3.0.0"
+end
View
@@ -0,0 +1,23 @@
+lib = File.expand_path('../lib/', __FILE__)
+$:.unshift lib unless $:.include?(lib)
+
+require 'rcov_plugin/version'
+
+Gem::Specification.new do |s|
+ s.name = "rcov_plugin"
+ s.version = RcovPlugin::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Alan Johnson"]
+ s.email = ["alan@commondream.net"]
+ s.homepage = "http://github.com/commondream/rcov_plugin"
+ s.summary = "The easiest way to measure coverage for your Rails project"
+ s.description = "rcov_plugin adds the rake tasks that you need to measure coverage in your Rails project"
+
+ s.required_rubygems_version = ">= 1.3.6"
+
+ s.add_dependency('rails', ">= 3.0.0.beta2")
+ s.add_dependency('rcov', '>= 0.9.6')
+
+ s.files = Dir.glob("lib/**/*") + %w(README.md)
+ s.require_path = 'lib'
+end

0 comments on commit 1d5fa6f

Please sign in to comment.