penthouse 0.12.1 → 0.12.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: 903efdccdbb3cd2476fe638deb5bb472f0faa977
4
- data.tar.gz: eecb11d73383cac4fa3aaa00a6101ba6df499ffe
3
+ metadata.gz: e8c80eabcd8683ce926c3352a4c93d54f045eeb5
4
+ data.tar.gz: 80b98c6090bcab5595fa65417d79bfaa8ab5a5de
5
5
  SHA512:
6
- metadata.gz: e91aac39296735a634e62170d3ddbf757c9df7e298dda3a6c9acf72e533c8ca30bc0440aafd62c7b5b69b3781602cd6dc7f937b1374169f501084ea26bfb1a48
7
- data.tar.gz: 912a686f7a45dff8a1ea076e12ebfd504023f62d53c967ac6930b18139f54125d73146edc0407227d51331567b97e7c2733f5e2cf8d3a40f3cc1b219837495bd
6
+ metadata.gz: 0165d7ce88345e0d096cddff925bc7d44618212f083b5e749af59b736326f2a6ee9f93420f735908a5b4b22f88452790a25e9b6b68f32031376a3b703bf4750e
7
+ data.tar.gz: b748fe21135a04cfd3d8e49e7a041ada4f4a9caca1a3fca2aa4a73f6413709099645cea81e0d6a4d0d6cd4a0863fca3859c6056f25697b88f4606fc078873454
@@ -4,7 +4,14 @@ require 'active_support/core_ext/module/aliasing'
4
4
  module Penthouse
5
5
  module Migration
6
6
  def self.included(base)
7
- base.alias_method_chain :announce, :penthouse
7
+ base.class_eval do
8
+ # Verbose form of alias_method_chain which is now deprecated in ActiveSupport.
9
+ #
10
+ # This replaces the original #annouce method with #announce_with_penthouse
11
+ # but allows calling #annouce by using #announce_without_penthouse.
12
+ alias_method :announce_without_penthouse, :announce
13
+ alias_method :announce, :announce_with_penthouse
14
+ end
8
15
  end
9
16
 
10
17
  def announce_with_penthouse(message)
@@ -24,10 +31,17 @@ module Penthouse
24
31
 
25
32
  base.class_eval do
26
33
  class << self
27
- alias_method_chain :migrate, :penthouse
28
- alias_method_chain :up, :penthouse
29
- alias_method_chain :down, :penthouse
30
- alias_method_chain :run, :penthouse
34
+ alias_method :migrate_without_penthouse, :migrate
35
+ alias_method :migrate, :migrate_with_penthouse
36
+
37
+ alias_method :up_without_penthouse, :up
38
+ alias_method :up, :up_with_penthouse
39
+
40
+ alias_method :down_without_penthouse, :down
41
+ alias_method :down, :down_with_penthouse
42
+
43
+ alias_method :run_without_penthouse, :run
44
+ alias_method :run, :run_with_penthouse
31
45
 
32
46
  # override any new Octopus methods with the new Penthouse ones
33
47
  alias_method :migrate_with_octopus, :migrate_with_penthouse
@@ -36,8 +50,11 @@ module Penthouse
36
50
  alias_method :run_with_octopus, :run_with_penthouse
37
51
  end
38
52
 
39
- alias_method_chain :migrate, :penthouse
40
- alias_method_chain :migrations, :penthouse
53
+ alias_method :migrate_without_penthouse, :migrate
54
+ alias_method :migrate, :migrate_with_penthouse
55
+
56
+ alias_method :migrations_without_penthouse, :migrations
57
+ alias_method :migrations, :migrations_with_penthouse
41
58
 
42
59
  # override any new Octopus methods with the new Penthouse ones
43
60
  alias_method :migrate_with_octopus, :migrate_with_penthouse
@@ -1,3 +1,3 @@
1
1
  module Penthouse
2
- VERSION = "0.12.1"
2
+ VERSION = "0.12.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: penthouse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Townsend
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-11 00:00:00.000000000 Z
11
+ date: 2017-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler