deprecation 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,11 +12,11 @@ module Deprecation
12
12
  end
13
13
 
14
14
  # Silence deprecation warnings within the block.
15
- def silence
16
- old_silenced, @silenced = @silenced, true
15
+ def silence context
16
+ old_silenced, context.silenced = context.silenced, true
17
17
  yield
18
18
  ensure
19
- @silenced = old_silenced
19
+ context.silenced = old_silenced
20
20
  end
21
21
 
22
22
  def collect(context)
@@ -1,3 +1,3 @@
1
1
  module Deprecation
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deprecation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -108,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  segments:
110
110
  - 0
111
- hash: -342229614951663189
111
+ hash: -2973133465478962044
112
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements: