deprecation 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/deprecation/reporting.rb +3 -3
- data/lib/deprecation/version.rb +1 -1
- metadata +2 -2
@@ -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,
|
15
|
+
def silence context
|
16
|
+
old_silenced, context.silenced = context.silenced, true
|
17
17
|
yield
|
18
18
|
ensure
|
19
|
-
|
19
|
+
context.silenced = old_silenced
|
20
20
|
end
|
21
21
|
|
22
22
|
def collect(context)
|
data/lib/deprecation/version.rb
CHANGED
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.
|
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: -
|
111
|
+
hash: -2973133465478962044
|
112
112
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
113
|
none: false
|
114
114
|
requirements:
|