rspec-instafail 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d96492823fa62306fd5e751ab8c00f41728e13d
4
- data.tar.gz: 17b6f917345a160a9ac2300d18a223e12c4b2648
3
+ metadata.gz: 5108e9736632d78fe4750e45afdf8dfaf918b642
4
+ data.tar.gz: dbb36cb385f53c755b34bd262db1f390d85f3c03
5
5
  SHA512:
6
- metadata.gz: 8516fc48f84f8f501b2a6607a13ae4020ff42a121696692fce12ffff5dcab797ea52daf7e753c6ebcb1f7eb07bd3dfdbe8df3e3c209a477e3c61b63f892e0b2b
7
- data.tar.gz: ed69cdee84c2c47cf6ca5afb87f1478ad879a171753aa8f48e1c167b8babd2abe4b1306ec3511ea9ff24772334886accf4aa67ab7a8fe1db9c05c00d98f1185e
6
+ metadata.gz: 83e5bdffcc05a6073c793a9277a670a9277a5f1b9dbf5736908a2ca30182b10314da6d926214b3681d5f4e0f633de93b2b3ed1224a3d9a4f600a4536381340bf
7
+ data.tar.gz: 6a9cb01a13b978a28098baf4f834cabff14598ebb7ee398bbdd9a68b60797316e92a51a0183f257006212d16dc9567104e2e47d1445028a4f26fe52451f4298c
@@ -1,18 +1,4 @@
1
1
  module RSpec
2
- # Rails 3: when installed as plugin, lib is not in load-path when running tests
3
- # https://github.com/grosser/rspec-instafail/pull/3
4
- lib = File.expand_path(File.dirname(File.dirname(__FILE__)))
5
- $LOAD_PATH << lib unless $LOAD_PATH.include?(lib)
6
-
7
- if defined?(::RSpec::Core)
8
- if ::RSpec::Core::Version::STRING >= '3.0.0'
9
- require "rspec/instafail/rspec_3"
10
- else
11
- require "rspec/instafail/rspec_2"
12
- end
13
- else
14
- require "rspec/instafail/rspec_1"
15
- end
16
-
17
- require 'rspec/instafail/version'
2
+ version = Gem.loaded_specs["rspec"].version
3
+ require "rspec/instafail/rspec_#{[3, version.segments.first].min}"
18
4
  end
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  class Instafail
3
- VERSION = '0.3.0'
3
+ VERSION = '0.4.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-instafail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-20 00:00:00.000000000 Z
11
+ date: 2015-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec