Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

INITIAL COMMIT

  • Loading branch information...
commit 66a524ff805cc23978d6555429cfa3a2a47cef70 0 parents
Mark Rada authored
2  .gitignore
@@ -0,0 +1,2 @@
+*.lock
+*.gem
2  .rspec
@@ -0,0 +1,2 @@
+--color
+
2  .rvmrc
@@ -0,0 +1,2 @@
+rvm use 1.9.2@rspec-pride --create
+
2  Gemfile
@@ -0,0 +1,2 @@
+source :rubygems
+gemspec
20 LICENSE.txt
@@ -0,0 +1,20 @@
+Copyright (c) 2011 Mark Rada
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 README.markdown
@@ -0,0 +1,19 @@
+# Rspec-pride
+
+Take pride in your test output
+
+Mimics the functionality of minitest/pride for RSpec2
+
+## Contributing to Rspec-pride
+
+* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
+* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
+* Fork the project
+* Start a feature/bugfix branch
+* Commit and push until you are happy with your contribution
+* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
+* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
+
+## Copyright
+
+Copyright (c) 2011 Mark Rada. See LICENSE.txt for further details.
41 Rakefile
@@ -0,0 +1,41 @@
+require 'rake'
+
+task :default => :test
+task :test => :spec
+
+if RUBY_ENGINE == 'macruby'
+
+ require 'rake/compiletask'
+ Rake::CompileTask.new do |t|
+ t.files = FileList["lib/**/*.rb"]
+ t.verbose = true
+ end
+
+ desc 'Clean MacRuby binaries'
+ task :clean do
+ FileList["lib/**/*.rbo"].each do |bin|
+ puts "rm #{bin}"
+ rm bin
+ end
+ end
+
+end
+
+
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.skip_bundler = true
+ spec.pattern = FileList['spec/**/*_spec.rb']
+end
+
+
+require 'rubygems'
+require 'rubygems/builder'
+require 'rubygems/installer'
+spec = Gem::Specification.load('rspec-pride.gemspec')
+
+desc 'Build the gem'
+task :build do Gem::Builder.new(spec).build end
+
+desc 'Build the gem and install it'
+task :install => :build do Gem::Installer.new(spec.file_name).install end
11 lib/rspec/pride.rb
@@ -0,0 +1,11 @@
+class PrideFormatter < RSpec::Core::Formatters::BaseTextFormatter
+
+ def initialize output
+ super
+ end
+
+ def example_started proxy
+ output << "example: " << proxy.description
+ end
+
+end
18 rspec-pride.gemspec
@@ -0,0 +1,18 @@
+Gem::Specification.new do |s|
+ s.name = 'rspec-pride'
+ s.version = '1.0.0'
+
+ s.summary = 'Take pride in your testing'
+ s.description = 'Mimics the functionality of minitest/pride for Rspec2'
+ s.author = 'Mark Rada'
+ s.email = 'mrada@marketcircle.com'
+ s.homepage = 'http://github.com/ferrous26/rspec-pride'
+ s.licenses = ['MIT']
+ s.require_paths = ['lib']
+
+ s.files = Dir.glob("lib/**/*")
+ s.test_files = Dir.glob("spec/**/*")
+ s.extra_rdoc_files = [ 'Rakefile', 'README.rdoc' ]
+
+ s.add_dependency 'rspec', ['~> 2.5']
+end
Please sign in to comment.
Something went wrong with that request. Please try again.