rspec-console 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rspec-console/pry.rb +6 -4
- data/lib/rspec-console/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f24189139498af2e2f3711517f59f961655da36
|
|
4
|
+
data.tar.gz: 235a18e64431545763550f4c245051189db128f6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: beb4a616ecd2ff1775780a12e000949c800f06748f759c1f5dd19309e5e66c54324d77804307cb0f00c90af5b013e79c23505109c4175e9ba77f854ca1a003c2
|
|
7
|
+
data.tar.gz: 40cd7a7d61f6dd1e52b42aa31addbc465f853f28a9ce5b9b7f831c2a9efc55cc93748122d2ae1804938f6f8832040ff5ff000a5a11356ff4bbb5f4dfc010c922
|
data/lib/rspec-console/pry.rb
CHANGED
|
@@ -14,10 +14,12 @@ module RSpecConsole::Pry
|
|
|
14
14
|
|
|
15
15
|
def with_ar_silenced(&block)
|
|
16
16
|
return block.call unless defined?(ActiveRecord) && ENV['SILENCE_AR']
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
begin
|
|
18
|
+
old_logger, ActiveRecord::Base.logger = ActiveRecord::Base.logger, nil
|
|
19
|
+
block.call
|
|
20
|
+
ensure
|
|
21
|
+
ActiveRecord::Base.logger = old_logger
|
|
22
|
+
end
|
|
21
23
|
end
|
|
22
24
|
|
|
23
25
|
def complete(input)
|
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.5.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nicolas Viennot
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-05-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bond
|
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
71
71
|
version: '0'
|
|
72
72
|
requirements: []
|
|
73
73
|
rubyforge_project:
|
|
74
|
-
rubygems_version: 2.4.
|
|
74
|
+
rubygems_version: 2.4.6
|
|
75
75
|
signing_key:
|
|
76
76
|
specification_version: 4
|
|
77
77
|
summary: Run RSpec tests in your console
|