rspec-console 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/rspec-console/runner.rb +10 -5
- data/lib/rspec-console/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmI3OTg2MGJkMDMzMzdmNDI5ZWMyMjQ3ZmQ3MDI5NGFiZDJhNzY3Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjllZmEwODgxZDlmMWJjNTc0MzcyYzAzYzM2NTc0MWQ4YzU0MmVkYQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDVjNzQyMmZkYTM5MGI3YTMxZGJmZDVlOWRhYzg2OTEwMjhmOWIwMjVjOWU1
|
10
|
+
NjcyN2RlYTU1MmMzODAyNjRhYTI3MmE1OGJjMzc5YjhiNmEzMGE4OTA1OWIz
|
11
|
+
ZGExYzYzODkwNGZiZjI3NWQ0ODE5MzEzZjE0NTEzNjEzNGU3ZGQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Yjk1Mjc1YzNiZTVkMTlhODg0MWE2OWFiY2ZmMzU0ZTMwNzJiM2I0M2U3ZmFi
|
14
|
+
NzQzNmE1ZmJjMjk4NzZkYWNlYjhhMjY4NDVhZTU2ZTQyZDc1MDJmMmUzZWQ2
|
15
|
+
NDdmOTQ1ZjdkY2QyMGI1MTQ5NDgxNTM0MjcwNDM1OTZiMmI2ODA=
|
data/lib/rspec-console/runner.rb
CHANGED
@@ -20,12 +20,17 @@ class RSpecConsole::Runner
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
-
def self.
|
24
|
-
|
23
|
+
def self._run(args)
|
24
|
+
reset(args)
|
25
|
+
::RSpec::Core::CommandLine.new(args).run(STDERR, STDOUT)
|
26
|
+
end
|
25
27
|
|
26
|
-
|
27
|
-
|
28
|
-
|
28
|
+
def self.run(args)
|
29
|
+
if defined?(Rails)
|
30
|
+
require 'rails-env-switcher'
|
31
|
+
RailsEnvSwitcher.with_env('test', :reload => true) { _run(args) }
|
32
|
+
else
|
33
|
+
_run(args)
|
29
34
|
end
|
30
35
|
end
|
31
36
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-console
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas Viennot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
type: :runtime
|
@@ -47,8 +47,8 @@ extra_rdoc_files: []
|
|
47
47
|
files:
|
48
48
|
- lib/rspec-console.rb
|
49
49
|
- lib/rspec-console/pry.rb
|
50
|
-
- lib/rspec-console/runner.rb
|
51
50
|
- lib/rspec-console/config_cache.rb
|
51
|
+
- lib/rspec-console/runner.rb
|
52
52
|
- lib/rspec-console/version.rb
|
53
53
|
- README.md
|
54
54
|
homepage: http://github.com/nviennot/rspec-console
|