culturecode_stagehand 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stagehand/schema/statements.rb +4 -2
- data/lib/stagehand/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d602d2ed0abbefe03a33fbe24430d04eda2365be
|
4
|
+
data.tar.gz: 53909aa737830a9bd80b2df6501d611a12f1139e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45e511c7e495566233afe6c361d66bcd7b54485c2f406ef18e41cdefd3ef37e4a3e8741e785437524bf96ae6eef16d059cc30691078405add74477d15d650b34
|
7
|
+
data.tar.gz: e12632200eaa662a435e422ff8f730c0a13ecca95f176618801420967cc5228864e1ded0d298caef9f5b1884a9a0c18fe484ede04fbdab9d9379d776d63b5f5d
|
@@ -4,10 +4,11 @@ module Stagehand
|
|
4
4
|
# Ensure that developers are aware they need to make a determination of whether stagehand should track this table or not
|
5
5
|
def create_table(table_name, options = {})
|
6
6
|
super
|
7
|
+
options = options.symbolize_keys
|
7
8
|
|
8
9
|
return if Database.connected_to_production? && !Stagehand::Configuration.single_connection?
|
9
|
-
Schema.send(:create_session_trigger) if
|
10
|
-
return if options
|
10
|
+
return Schema.send(:create_session_trigger) if options[:stagehand] == :commit_entries
|
11
|
+
return if options[:stagehand] == false
|
11
12
|
return if UNTRACKED_TABLES.include?(table_name)
|
12
13
|
|
13
14
|
Schema.add_stagehand! :only => table_name
|
@@ -26,6 +27,7 @@ module Stagehand
|
|
26
27
|
module DumperExtensions
|
27
28
|
def table(table_name, stream)
|
28
29
|
stagehand = Stagehand::Schema.has_stagehand?(table_name)
|
30
|
+
stagehand = ':commit_entries' if table_name == Staging::CommitEntry.table_name
|
29
31
|
|
30
32
|
table_stream = StringIO.new
|
31
33
|
table_stream = super(table_name, table_stream)
|
data/lib/stagehand/version.rb
CHANGED