penthouse 0.12.1 → 0.12.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 +4 -4
- data/lib/penthouse/migrator.rb +24 -7
- data/lib/penthouse/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: e8c80eabcd8683ce926c3352a4c93d54f045eeb5
|
|
4
|
+
data.tar.gz: 80b98c6090bcab5595fa65417d79bfaa8ab5a5de
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0165d7ce88345e0d096cddff925bc7d44618212f083b5e749af59b736326f2a6ee9f93420f735908a5b4b22f88452790a25e9b6b68f32031376a3b703bf4750e
|
|
7
|
+
data.tar.gz: b748fe21135a04cfd3d8e49e7a041ada4f4a9caca1a3fca2aa4a73f6413709099645cea81e0d6a4d0d6cd4a0863fca3859c6056f25697b88f4606fc078873454
|
data/lib/penthouse/migrator.rb
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
40
|
-
|
|
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
|
data/lib/penthouse/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2017-11-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|