Permalink
Browse files

INITIAL COMMIT

  • Loading branch information...
0 parents commit 66a524ff805cc23978d6555429cfa3a2a47cef70 @ferrous26 committed Apr 16, 2011
Showing with 117 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +2 −0 .rspec
  3. +2 −0 .rvmrc
  4. +2 −0 Gemfile
  5. +20 −0 LICENSE.txt
  6. +19 −0 README.markdown
  7. +41 −0 Rakefile
  8. +11 −0 lib/rspec/pride.rb
  9. +18 −0 rspec-pride.gemspec
@@ -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
+
@@ -0,0 +1,2 @@
+source :rubygems
+gemspec
@@ -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.
@@ -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.
@@ -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
@@ -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
@@ -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

0 comments on commit 66a524f

Please sign in to comment.