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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 764024a2751221f034e59dd01d47ba537c18231c
4
- data.tar.gz: 306cb8e2ab525a4b85c13bcc7cb818572158127d
3
+ metadata.gz: d602d2ed0abbefe03a33fbe24430d04eda2365be
4
+ data.tar.gz: 53909aa737830a9bd80b2df6501d611a12f1139e
5
5
  SHA512:
6
- metadata.gz: 310328eb8b60bbadd3a58bfdfae0565b7bb51170d3cc3bb06fa6050962d23efc03a6365f49bf8713b173df2fcf707e9de2fa07b3865357b00d02bbfc00c1d314
7
- data.tar.gz: 85b5fb29cae9d1e3d1c81fd847b6caf35b864bd9dca1fcc87f7003446bccc98b605070a31b205333190b2af5e13d10ec867d0948119a3779a16fc28d9ba3f9c5
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 table_name == Staging::CommitEntry.table_name
10
- return if options.symbolize_keys[:stagehand] == false
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)
@@ -1,3 +1,3 @@
1
1
  module Stagehand
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: culturecode_stagehand
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Jakobsen