commit 3f4495198d94b9b2e847c560fbe1840ea93ed9d7 Author: John Bintz Date: Wed Mar 30 09:07:15 2011 -0400 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4040c6c --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.gem +.bundle +Gemfile.lock +pkg/* diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..1897bd9 --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +source "http://rubygems.org" + +# Specify your gem's dependencies in rspec-quickfix-formatter.gemspec +gemspec diff --git a/README.md b/README.md new file mode 100644 index 0000000..ea5456f --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +## Usage + +Install the gem: + + rake install + +In .rspec: + + --format RSpec::Core::Formatters::QuickFixFormatter + --out .quickfix-out + +In Vim: + + :cf .quickfix-out + +Easy! + diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..14cfe0b --- /dev/null +++ b/Rakefile @@ -0,0 +1,2 @@ +require 'bundler' +Bundler::GemHelper.install_tasks diff --git a/lib/rspec-quickfix-formatter.rb b/lib/rspec-quickfix-formatter.rb new file mode 100644 index 0000000..8629325 --- /dev/null +++ b/lib/rspec-quickfix-formatter.rb @@ -0,0 +1,2 @@ +require 'rspec/core/formatters/quick_fix_formatter' + diff --git a/lib/rspec-quickfix-formatter/version.rb b/lib/rspec-quickfix-formatter/version.rb new file mode 100644 index 0000000..06ff324 --- /dev/null +++ b/lib/rspec-quickfix-formatter/version.rb @@ -0,0 +1,7 @@ +module Rspec + module Quickfix + module Formatter + VERSION = "0.0.1" + end + end +end diff --git a/lib/rspec/core/formatters/quick_fix_formatter.rb b/lib/rspec/core/formatters/quick_fix_formatter.rb new file mode 100644 index 0000000..e69de29 diff --git a/rspec-quickfix-formatter.gemspec b/rspec-quickfix-formatter.gemspec new file mode 100644 index 0000000..0a8b316 --- /dev/null +++ b/rspec-quickfix-formatter.gemspec @@ -0,0 +1,23 @@ +# -*- encoding: utf-8 -*- +$:.push File.expand_path("../lib", __FILE__) +require "rspec-quickfix-formatter/version" + +Gem::Specification.new do |s| + s.name = "rspec-quickfix-formatter" + s.version = Rspec::Quickfix::Formatter::VERSION + s.platform = Gem::Platform::RUBY + s.authors = ["John Bintz"] + s.email = ["john@coswellproductions.com"] + s.homepage = "" + s.summary = %q{RSpec formatter to create a Quickfix-compatible output file for Vim} + s.description = %q{RSpec formatter to create a Quickfix-compatible output file for Vim. Use as an --out format option for rspec.} + + s.rubyforge_project = "rspec-quickfix-formatter" + + s.files = `git ls-files`.split("\n") + s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") + s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } + s.require_paths = ["lib"] + + s.add_dependency 'rspec' +end