rspec-console 0.5.1 → 0.5.2

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: 8eae7534370fe97bef6518c88dffefcd8336ce60
4
- data.tar.gz: f01040396dd1c53b22512230f50b4e534e576111
3
+ metadata.gz: 8f24189139498af2e2f3711517f59f961655da36
4
+ data.tar.gz: 235a18e64431545763550f4c245051189db128f6
5
5
  SHA512:
6
- metadata.gz: 0f4ec3da898f9a48276fd6d1b1b79546309421620ce50886eb41517a1e595bd96d45afd5595a3347733eefbee31781422f15e862fc5ac5299df4aacfd488e442
7
- data.tar.gz: 34205d017f5f3fe1894187a0f82cb4e9ee666cc8dc4bbb74a5cb621ff092bb81c85342448939a73283f9a0b2104083cf40df19476a0eee69d235bc24677ce539
6
+ metadata.gz: beb4a616ecd2ff1775780a12e000949c800f06748f759c1f5dd19309e5e66c54324d77804307cb0f00c90af5b013e79c23505109c4175e9ba77f854ca1a003c2
7
+ data.tar.gz: 40cd7a7d61f6dd1e52b42aa31addbc465f853f28a9ce5b9b7f831c2a9efc55cc93748122d2ae1804938f6f8832040ff5ff000a5a11356ff4bbb5f4dfc010c922
@@ -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
- old_logger, ActiveRecord::Base.logger = ActiveRecord::Base.logger, nil
18
- block.call
19
- ensure
20
- ActiveRecord::Base.logger = old_logger
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)
@@ -1,3 +1,3 @@
1
1
  module RSpecConsole
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  end
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.1
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-04-06 00:00:00.000000000 Z
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.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