yourbase-rspec-skipper 0.1.7 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -5
- data/lib/yourbase/rspec/skipper.rb +9 -12
- data/lib/yourbase/rspec/skipper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5fc747f86f53db54cfa896ac55f77baf8c787f472096de095b64bf07eba485c
|
4
|
+
data.tar.gz: d4654f517441055a3190f240fb700dc0f685e652882da28e3611a767a7d97514
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4c0b8287774df18136aa3737fdcc566718ad76ad3b8b946d99b3f20e2275c96c8659bb0496ba03f7a24ea2fdc1356faee06f04bfaa9a248cfa71d02e6fa97f9
|
7
|
+
data.tar.gz: ab5c5428f5d266f0a79079949ec8b6a3133bfd309a78952675aa25b79d953fbd0d9e96ae9ea74246286e146c345ea10c5224762da763de19d9e42b1d62c591ac
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
# YourBase RSpec
|
1
|
+
# YourBase RSpec Skipper
|
2
2
|
|
3
3
|
## What is this?
|
4
4
|
|
5
|
-
This is a Ruby gem you can use in conjunction with [YourBase](https://yourbase.io)
|
5
|
+
This is a Ruby gem you can use in conjunction with [YourBase](https://yourbase.io).
|
6
6
|
|
7
7
|
## What does it do?
|
8
8
|
|
@@ -17,8 +17,7 @@ run based on the YourBase runtime dependency graph.
|
|
17
17
|
|
18
18
|
## How do I use this?
|
19
19
|
|
20
|
-
Simply add `yourbase-rspec-
|
20
|
+
Simply add `yourbase-rspec-skipper` to your Gemfile; when you run your tests
|
21
21
|
locally it will have no impact at all, other than notifying that it won't
|
22
22
|
accelerate your tests. When you run your tests in the YourBase CI, they will be
|
23
|
-
accelerated where possible.
|
24
|
-
|
23
|
+
accelerated where possible.
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
module YourBase
|
3
2
|
module RSpec
|
4
3
|
module Skipper
|
@@ -19,23 +18,21 @@ begin
|
|
19
18
|
using_rspec = false
|
20
19
|
|
21
20
|
begin
|
22
|
-
require 'rspec'
|
21
|
+
require 'rspec/core'
|
23
22
|
using_rspec = true
|
24
|
-
rescue LoadError => e
|
23
|
+
rescue LoadError => e
|
25
24
|
puts "YourBase can't accelerate RSpec because it's not loaded!"
|
25
|
+
return
|
26
26
|
end
|
27
27
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
puts "Failed to find or load RSpec accelerator, falling back to normal behavior"
|
35
|
-
end
|
28
|
+
begin
|
29
|
+
puts "Loading YourBase RSpec Skipper..."
|
30
|
+
require 'yourbase_test_skipper'
|
31
|
+
::YourBase::RSpec::Skipper.inject!
|
32
|
+
rescue LoadError => e
|
33
|
+
puts "Failed to find or load RSpec accelerator, falling back to normal behavior"
|
36
34
|
end
|
37
35
|
|
38
36
|
rescue => e
|
39
37
|
puts "Unable to load RSpec accelerator: #{e}"
|
40
38
|
end
|
41
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yourbase-rspec-skipper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Ewart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|