deprecation 0.2.1 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 974299a00be061d7c77bea75662264bd90e84e88
4
- data.tar.gz: 05b05522f673a5bc35aa022b62ea375c771a17b4
3
+ metadata.gz: 1b0526bbc1829c2851c9fa3223e503b2b829d2e2
4
+ data.tar.gz: c62eaf9b5dc885c57e2caec4af58dcfad7e120a8
5
5
  SHA512:
6
- metadata.gz: 1defcbe01ed8c8a00b912284629e1442106000ad83d2617bb066025e53ee81d7713457e285aca39ec89c2bf8f623b425055484d21e98c97e022e8ef2c1d4a253
7
- data.tar.gz: c24c5064090d8be010fd9411eaa5344f11bfe9cfa937842be1cb1b6388c0b4ac9ec54a4f6f16b3ddfa35123d26dc5461911f3cf8c90ea60b0d216ed5cfd6caad
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})"
@@ -1,3 +1,3 @@
1
1
  module Deprecation
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
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-02-23 00:00:00.000000000 Z
11
+ date: 2015-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport