deprecation 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/deprecation/reporting.rb +1 -1
- data/lib/deprecation/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b0526bbc1829c2851c9fa3223e503b2b829d2e2
|
4
|
+
data.tar.gz: c62eaf9b5dc885c57e2caec4af58dcfad7e120a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1ad0115cded9ed67911e9cada4d210287be4c3ee55de03ceb2cf5fe6a44f92bd76a7e6235949ad746b6a41fa9a192960e28b7a037016f56fbc6bfb02bb9aa22
|
7
|
+
data.tar.gz: 48f54a5ede183791a0e0b6cdb8c61ea9dc33d5ffafa2f1d82e510498b4e87e5bd623029c4692196a455a767738f1f070f7f68e30f4cdc61eed2fde71f3a8f35c
|
@@ -62,7 +62,7 @@ module Deprecation
|
|
62
62
|
options = {}
|
63
63
|
end
|
64
64
|
|
65
|
-
warning = "#{method_name} is deprecated and will be removed from #{options[:deprecation_horizon] || context.deprecation_horizon}"
|
65
|
+
warning = "#{method_name} is deprecated and will be removed from #{options[:deprecation_horizon] || (context.deprecation_horizon if context.respond_to? :deprecation_horizon) || "a future release"}"
|
66
66
|
case message
|
67
67
|
when Symbol then "#{warning} (use #{message} instead)"
|
68
68
|
when String then "#{warning} (#{message})"
|
data/lib/deprecation/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deprecation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|