[DRE-commits] [ruby-rspec-instafail] 106/126: Imported Upstream version 0.2.6

Hideki Yamane henrich at moszumanska.debian.org
Sun Nov 15 19:15:25 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 ea05d02f650c0c66f188a621cbc651967def54d4
Author: Hideki Yamane <henrich at debian.org>
Date:   Wed Mar 25 19:59:45 2015 +0900

    Imported Upstream version 0.2.6
---
 Gemfile                        |   6 ---
 Gemfile.lock                   |  28 --------------
 Rakefile                       |  12 ------
 Readme.md                      |  43 +++++++++++----------
 checksums.yaml.gz              | Bin 270 -> 0 bytes
 lib/rspec/instafail/version.rb |   7 +++-
 metadata.yml                   |  20 ++--------
 rspec-instafail.gemspec        |  15 --------
 spec/instafail_spec.rb         |  83 -----------------------------------------
 spec/rspec_1/Gemfile           |   2 -
 spec/rspec_1/Gemfile.lock      |  12 ------
 spec/rspec_1/a_test.rb         |  35 -----------------
 spec/rspec_2/Gemfile           |   3 --
 spec/rspec_2/Gemfile.lock      |  19 ----------
 spec/rspec_2/a_test.rb         |  48 ------------------------
 spec/rspec_3/Gemfile           |   2 -
 spec/rspec_3/Gemfile.lock      |  22 -----------
 spec/rspec_3/a_test.rb         |  48 ------------------------
 18 files changed, 29 insertions(+), 376 deletions(-)

diff --git a/Gemfile b/Gemfile
deleted file mode 100644
index 4be058e..0000000
--- a/Gemfile
+++ /dev/null
@@ -1,6 +0,0 @@
-source "https://rubygems.org"
-
-gemspec
-
-gem "bump"
-gem "rake"
diff --git a/Gemfile.lock b/Gemfile.lock
deleted file mode 100644
index 03dedee..0000000
--- a/Gemfile.lock
+++ /dev/null
@@ -1,28 +0,0 @@
-PATH
-  remote: .
-  specs:
-    rspec-instafail (0.2.5)
-      rspec
-
-GEM
-  remote: https://rubygems.org/
-  specs:
-    bump (0.4.0)
-    diff-lcs (1.2.5)
-    rake (10.0.3)
-    rspec (2.99.0)
-      rspec-core (~> 2.99.0)
-      rspec-expectations (~> 2.99.0)
-      rspec-mocks (~> 2.99.0)
-    rspec-core (2.99.0)
-    rspec-expectations (2.99.0)
-      diff-lcs (>= 1.1.3, < 2.0)
-    rspec-mocks (2.99.0)
-
-PLATFORMS
-  ruby
-
-DEPENDENCIES
-  bump
-  rake
-  rspec-instafail!
diff --git a/Rakefile b/Rakefile
deleted file mode 100755
index bb10184..0000000
--- a/Rakefile
+++ /dev/null
@@ -1,12 +0,0 @@
-require "bundler/setup"
-require "bundler/gem_tasks"
-require "bump/tasks"
-
-task :default do
-  Bundler.with_clean_env do
-    sh "cd spec/rspec_1 && (bundle check || bundle) > /dev/null"
-    sh "cd spec/rspec_2 && (bundle check || bundle) > /dev/null"
-    sh "cd spec/rspec_3 && (bundle check || bundle) > /dev/null"
-  end
-  sh "rspec spec/"
-end
diff --git a/Readme.md b/Readme.md
index 61f467c..75499a0 100755
--- a/Readme.md
+++ b/Readme.md
@@ -2,37 +2,35 @@ Show failing specs instantly. Show passing spec as green dots as usual.
 
 Output
 ======
-    ....................................................*....
-    1) ApplicationController#sign_out_and_redirect with JSON should return JSON indicating success
-       Failure/Error: json_response = JSON.parse response.body
-       A JSON text must at least contain two octets!
-       # /Users/miwillhite/.rvm/gems/ruby-1.9.2-p0/gems/json_pure-1.4.6/lib/json/common.rb:146:in `initialize'
-       # /Users/miwillhite/.rvm/gems/ruby-1.9.2-p0/gems/json_pure-1.4.6/lib/json/common.rb:146:in `new'
-       # /Users/miwillhite/.rvm/gems/ruby-1.9.2-p0/gems/json_pure-1.4.6/lib/json/common.rb:146:in `parse'
-       # ./spec/controllers/application_controller_spec.rb:17:in `block (4 levels) in <top (required)>'
-    ..................................................................
 
-    Finished in 650.095614 seconds
+```
+....................................................*....
+1) ApplicationController#sign_out_and_redirect with JSON should return JSON indicating success
+   Failure/Error: json_response = JSON.parse response.body
+   A JSON text must at least contain two octets!
+   # /Users/miwillhite/.rvm/gems/ruby-1.9.2-p0/gems/json_pure-1.4.6/lib/json/common.rb:146:in `initialize'
+   # /Users/miwillhite/.rvm/gems/ruby-1.9.2-p0/gems/json_pure-1.4.6/lib/json/common.rb:146:in `new'
+   # /Users/miwillhite/.rvm/gems/ruby-1.9.2-p0/gems/json_pure-1.4.6/lib/json/common.rb:146:in `parse'
+   # ./spec/controllers/application_controller_spec.rb:17:in `block (4 levels) in <top (required)>'
+..................................................................
 
-    1680 examples, 1 failure, 1 pending
+Finished in 650.095614 seconds
+
+1680 examples, 1 failure, 1 pending
+```
 
 
 
 Install
 =======
-As Gem:
-    gem install rspec-instafail
-
-    # spec/spec.opts (.rspec for rspec 2)
-    --require rspec/instafail
-    --format RSpec::Instafail
 
-As plugin:
-    rails plugin install git://github.com/grosser/rspec-instafail.git
+```Bash
+gem install rspec-instafail
 
-    # spec/spec.opts (.rspec for rspec 2)
-    --require vendor/plugins/rspec-instafail/lib/rspec/instafail
-    --format RSpec::Instafail
+# .rspec
+--require rspec/instafail
+--format RSpec::Instafail
+```
 
 Authors
 =======
@@ -46,6 +44,7 @@ Authors
  - [Mike Mazur](https://github.com/mikem)
  - [vernonR2](https://github.com/vernonR2)
  - [Olek Janiszewski](https://github.com/exviva)
+ - [Kevin Carter](https://github.com/DexterTheDragon)
 
 [Michael Grosser](http://grosser.it)<br/>
 michael at grosser.it<br/>
diff --git a/checksums.yaml.gz b/checksums.yaml.gz
deleted file mode 100644
index 7a949c7..0000000
Binary files a/checksums.yaml.gz and /dev/null differ
diff --git a/lib/rspec/instafail/version.rb b/lib/rspec/instafail/version.rb
index 8553c56..ce28ecd 100755
--- a/lib/rspec/instafail/version.rb
+++ b/lib/rspec/instafail/version.rb
@@ -1,2 +1,5 @@
-require 'rspec/instafail'
-RSpec::Instafail::VERSION = '0.2.5'
+module RSpec
+  class Instafail
+    VERSION = '0.2.6'
+  end
+end
diff --git a/metadata.yml b/metadata.yml
index 144c177..60cd0c8 100644
--- a/metadata.yml
+++ b/metadata.yml
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: rspec-instafail
 version: !ruby/object:Gem::Version
-  version: 0.2.5
+  version: 0.2.6
 platform: ruby
 authors:
 - Michael Grosser
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2014-06-07 00:00:00.000000000 Z
+date: 2015-01-06 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rspec
@@ -30,27 +30,13 @@ executables: []
 extensions: []
 extra_rdoc_files: []
 files:
-- Gemfile
-- Gemfile.lock
-- Rakefile
 - Readme.md
 - lib/rspec/instafail.rb
 - lib/rspec/instafail/rspec_1.rb
 - lib/rspec/instafail/rspec_2.rb
 - lib/rspec/instafail/rspec_3.rb
 - lib/rspec/instafail/version.rb
-- rspec-instafail.gemspec
-- spec/instafail_spec.rb
-- spec/rspec_1/Gemfile
-- spec/rspec_1/Gemfile.lock
-- spec/rspec_1/a_test.rb
-- spec/rspec_2/Gemfile
-- spec/rspec_2/Gemfile.lock
-- spec/rspec_2/a_test.rb
-- spec/rspec_3/Gemfile
-- spec/rspec_3/Gemfile.lock
-- spec/rspec_3/a_test.rb
-homepage: http://github.com/grosser/rspec-instafail
+homepage: https://github.com/grosser/rspec-instafail
 licenses:
 - MIT
 metadata: {}
diff --git a/rspec-instafail.gemspec b/rspec-instafail.gemspec
deleted file mode 100755
index f7b7f0f..0000000
--- a/rspec-instafail.gemspec
+++ /dev/null
@@ -1,15 +0,0 @@
-$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
-name = 'rspec-instafail'
-
-# needs rspec installed to load the version, so let's avoid this mess
-version = File.read("lib/rspec/instafail/version.rb")[/\d+\.\d+\.\d+/]
-
-Gem::Specification.new name, version do |s|
-  s.summary = "Show failing specs instantly"
-  s.authors = ["Michael Grosser"]
-  s.email = "michael at grosser.it"
-  s.homepage = "http://github.com/grosser/#{name}"
-  s.files = `git ls-files`.split("\n")
-  s.license = "MIT"
-  s.add_runtime_dependency "rspec"
-end
diff --git a/spec/instafail_spec.rb b/spec/instafail_spec.rb
deleted file mode 100755
index 075b402..0000000
--- a/spec/instafail_spec.rb
+++ /dev/null
@@ -1,83 +0,0 @@
-describe 'RSpec::Instafail' do
-  context "RSpec 1.x" do
-    before :all do
-      Bundler.with_clean_env do
-        @rspec_result = `cd spec/rspec_1 && bundle exec spec a_test.rb --format RSpec::Instafail`
-      end
-    end
-
-    before do
-      @output = @rspec_result.dup
-    end
-
-    it "outputs failures at start of output" do
-      @output.should =~ /^\s*1\)\s*'x fails logically'/m
-    end
-
-    it 'outputs errors in middle of output' do
-      @output.should =~ /\.\.\*\s*2\)\s*RuntimeError in 'x raises a simple error'/m
-    end
-
-    it 'outputs the the ending block' do
-      @output.should =~ /Finished in \d\.\d+ seconds\s*7 examples, 3 failures, 1 pending/
-    end
-  end
-
-  context 'Rspec 2.x' do
-    before :all do
-      Bundler.with_clean_env do
-        @rspec_result = `cd spec/rspec_2 && bundle exec rspec a_test.rb --require ../../lib/rspec/instafail --format RSpec::Instafail --no-color --order default`
-      end
-    end
-
-    before do
-      @output = @rspec_result.dup
-    end
-
-    it "outputs failures at start of output" do
-      @output.should =~ /^\s+1\) x fails logically/m
-    end
-
-    it 'outputs errors in middle of output' do
-      @output.should =~ /\.\.\*\s*2\) x raises a simple error/m
-    end
-
-    it 'outputs the the ending block' do
-      @output.should =~ /Finished in \d\.\d+ seconds\s*9 examples, 4 failures, 1 pending/
-    end
-
-    it "does not add ancestors after failures" do
-      @output.should include('ANCESTORS:2')
-      @output.should_not include('ANCESTORS:3')
-    end
-  end
-
-  context 'Rspec 3.x' do
-    before :all do
-      Bundler.with_clean_env do
-        @rspec_result = `cd spec/rspec_3 && bundle exec rspec a_test.rb --require ../../lib/rspec/instafail --format RSpec::Instafail --no-color --order default`
-      end
-    end
-
-    before do
-      @output = @rspec_result.dup
-    end
-
-    it "outputs failures at start of output" do
-      @output.should =~ /^\s+1\) x fails logically/m
-    end
-
-    it 'outputs errors in middle of output' do
-      @output.should =~ /\.\.\*\s*2\) x raises a simple error/m
-    end
-
-    it 'outputs the the ending block' do
-      @output.should =~ /Finished in \d\.\d+ seconds.*\s*9 examples, 4 failures, 1 pending/
-    end
-
-    it "does not add ancestors after failures" do
-      @output.should include('ANCESTORS:18')
-      @output.should_not include('ANCESTORS:19')
-    end
-  end
-end
diff --git a/spec/rspec_1/Gemfile b/spec/rspec_1/Gemfile
deleted file mode 100755
index 62e5cf9..0000000
--- a/spec/rspec_1/Gemfile
+++ /dev/null
@@ -1,2 +0,0 @@
-source 'http://rubygems.org'
-gem 'rspec', '1.3.0'
diff --git a/spec/rspec_1/Gemfile.lock b/spec/rspec_1/Gemfile.lock
deleted file mode 100755
index 31d4126..0000000
--- a/spec/rspec_1/Gemfile.lock
+++ /dev/null
@@ -1,12 +0,0 @@
-GEM
-  remote: http://rubygems.org/
-  specs:
-    diff-lcs (1.1.3)
-    rspec (1.3.0)
-
-PLATFORMS
-  ruby
-
-DEPENDENCIES
-  diff-lcs (= 1.1.3)
-  rspec (= 1.3.0)
diff --git a/spec/rspec_1/a_test.rb b/spec/rspec_1/a_test.rb
deleted file mode 100755
index 5b0990d..0000000
--- a/spec/rspec_1/a_test.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib', 'rspec', 'instafail'))
-
-describe 'x' do
-  it 'fails logically' do
-    1.should == 2
-  end
-
-  it 'b' do
-  end
-
-  it 'c' do
-  end
-
-  it 'pends' do
-    pending
-    raise
-  end
-
-  it 'raises a simple error' do
-    raise 'shallow failure'
-  end
-
-  it 'raises a hidden error' do
-    error = ExceptionWrappingException.new('There is an error in this error.')
-    error.original_exception = RuntimeError.new('There is no error in this error.')
-    raise error
-  end
-
-  it 'e' do
-  end
-end
-
-class ExceptionWrappingException < RuntimeError
-  attr_accessor :original_exception
-end
diff --git a/spec/rspec_2/Gemfile b/spec/rspec_2/Gemfile
deleted file mode 100755
index fbe4f90..0000000
--- a/spec/rspec_2/Gemfile
+++ /dev/null
@@ -1,3 +0,0 @@
-source 'http://rubygems.org'
-gem 'rspec', '>=2.2'
-
diff --git a/spec/rspec_2/Gemfile.lock b/spec/rspec_2/Gemfile.lock
deleted file mode 100755
index 415bffa..0000000
--- a/spec/rspec_2/Gemfile.lock
+++ /dev/null
@@ -1,19 +0,0 @@
-GEM
-  remote: http://rubygems.org/
-  specs:
-    diff-lcs (1.1.3)
-    rspec (2.8.0)
-      rspec-core (~> 2.8.0)
-      rspec-expectations (~> 2.8.0)
-      rspec-mocks (~> 2.8.0)
-    rspec-core (2.8.0)
-    rspec-expectations (2.8.0)
-      diff-lcs (~> 1.1.2)
-    rspec-mocks (2.8.0)
-
-PLATFORMS
-  ruby
-
-DEPENDENCIES
-  diff-lcs (= 1.1.3)
-  rspec (>= 2.2)
diff --git a/spec/rspec_2/a_test.rb b/spec/rspec_2/a_test.rb
deleted file mode 100755
index 7228334..0000000
--- a/spec/rspec_2/a_test.rb
+++ /dev/null
@@ -1,48 +0,0 @@
-require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib', 'rspec', 'instafail'))
-
-describe 'x' do
-  it 'fails logically' do
-    1.should == 2
-  end
-
-  it 'b' do
-  end
-
-  it 'c' do
-  end
-
-  it 'pends' do
-    pending
-    raise
-  end
-
-  it 'raises a simple error' do
-    raise 'shallow failure'
-  end
-
-  it 'raises a hidden error' do
-    error = ExceptionWrappingException.new('There is an error in this error.')
-    error.original_exception = RuntimeError.new('There is no error in this error.')
-    raise error
-  end
-
-  it 'e' do
-  end
-
-  context "ancestors" do
-    after do
-      puts "ANCESTORS:#{example.example_group.ancestors.size}"
-    end
-
-    it "does not add ancestors on failure" do
-      raise "BAM"
-    end
-
-    it "does not add ancestors on failure" do
-    end
-  end
-end
-
-class ExceptionWrappingException < RuntimeError
-  attr_accessor :original_exception
-end
diff --git a/spec/rspec_3/Gemfile b/spec/rspec_3/Gemfile
deleted file mode 100755
index d4e4e53..0000000
--- a/spec/rspec_3/Gemfile
+++ /dev/null
@@ -1,2 +0,0 @@
-source 'http://rubygems.org'
-gem 'rspec', '>=3.0'
diff --git a/spec/rspec_3/Gemfile.lock b/spec/rspec_3/Gemfile.lock
deleted file mode 100755
index f261f70..0000000
--- a/spec/rspec_3/Gemfile.lock
+++ /dev/null
@@ -1,22 +0,0 @@
-GEM
-  remote: http://rubygems.org/
-  specs:
-    diff-lcs (1.2.5)
-    rspec (3.0.0)
-      rspec-core (~> 3.0.0)
-      rspec-expectations (~> 3.0.0)
-      rspec-mocks (~> 3.0.0)
-    rspec-core (3.0.0)
-      rspec-support (~> 3.0.0)
-    rspec-expectations (3.0.0)
-      diff-lcs (>= 1.2.0, < 2.0)
-      rspec-support (~> 3.0.0)
-    rspec-mocks (3.0.0)
-      rspec-support (~> 3.0.0)
-    rspec-support (3.0.0)
-
-PLATFORMS
-  ruby
-
-DEPENDENCIES
-  rspec (>= 3.0)
diff --git a/spec/rspec_3/a_test.rb b/spec/rspec_3/a_test.rb
deleted file mode 100755
index 6eabea2..0000000
--- a/spec/rspec_3/a_test.rb
+++ /dev/null
@@ -1,48 +0,0 @@
-require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib', 'rspec', 'instafail'))
-
-describe 'x' do
-  it 'fails logically' do
-    expect(1).to eq 2
-  end
-
-  it 'b' do
-  end
-
-  it 'c' do
-  end
-
-  it 'pends' do
-    pending
-    raise
-  end
-
-  it 'raises a simple error' do
-    raise 'shallow failure'
-  end
-
-  it 'raises a hidden error' do
-    error = ExceptionWrappingException.new('There is an error in this error.')
-    error.original_exception = RuntimeError.new('There is no error in this error.')
-    raise error
-  end
-
-  it 'e' do
-  end
-
-  context "ancestors" do
-    after do |example|
-      puts "ANCESTORS:#{example.example_group.ancestors.size}"
-    end
-
-    it "does not add ancestors on failure" do
-      raise "BAM"
-    end
-
-    it "does not add ancestors on failure" do
-    end
-  end
-end
-
-class ExceptionWrappingException < RuntimeError
-  attr_accessor :original_exception
-end

-- 
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