[DRE-commits] [ruby-rspec-instafail] 04/126: instructions for gemification
Hideki Yamane
henrich at moszumanska.debian.org
Sun Nov 15 19:14:56 UTC 2015
This is an automated email from the git hooks/post-receive script.
henrich pushed a commit to branch debian/sid
in repository ruby-rspec-instafail.
commit 4dca7e7b7fd613f5f051215f1ae4c7e4e368b384
Author: grosser <grosser.michael at gmail.com>
Date: Sun Aug 15 17:49:27 2010 +0200
instructions for gemification
---
Rakefile | 19 ++++++++++++++++++-
Readme.md | 13 +++++++++----
2 files changed, 27 insertions(+), 5 deletions(-)
diff --git a/Rakefile b/Rakefile
index 8d33439..c8b3d2e 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,3 +1,20 @@
task :default => :spec
require 'spec/rake/spectask'
-Spec::Rake::SpecTask.new {|t| t.spec_opts = ['--color --backtrace']}
\ No newline at end of file
+Spec::Rake::SpecTask.new {|t| t.spec_opts = ['--color --backtrace']}
+
+begin
+ require 'jeweler'
+ project_name = 'rspec-instafail'
+
+ Jeweler::Tasks.new do |gem|
+ gem.name = project_name
+ gem.summary = "Show failing specs instantly"
+ gem.email = "grosser.michael at gmail.com"
+ gem.homepage = "http://github.com/grosser/#{project_name}"
+ gem.authors = ["Michael Grosser"]
+ end
+
+ Jeweler::GemcutterTasks.new
+rescue LoadError
+ puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler"
+end
\ No newline at end of file
diff --git a/Readme.md b/Readme.md
index 6ec54c9..d429b7e 100644
--- a/Readme.md
+++ b/Readme.md
@@ -18,14 +18,19 @@ Output
Install
=======
- script/plugin install git://github.com/grosser/rspec-instafail.git
-
+As Gem:
+ gem install rspec-instafail
# spec/spec.opts
+ --require rspec/instafail
--format RSpec::Instafail
- # spec/spec_helper.rb -- somewhere after loading environment
- require 'rspec/instafail'
+As plugin:
+ script/plugin install git://github.com/grosser/rspec-instafail.git
+
+ # spec/spec.opts
+ --require vendor/plugins/rspec-instafail/lib/rspec/instafail
+ --format RSpec::Instafail
Author
======
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rspec-instafail.git
More information about the Pkg-ruby-extras-commits
mailing list