culturecode_stagehand 0.12.8 → 0.13.0

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: 157594f1ea15ea034a9c883c00835b44bc6d6bef
4
- data.tar.gz: f42ed40749d2ac477e5d3c064bc9bb306331a4e2
3
+ metadata.gz: 857f95b5a3b62d7c9721088e576c7df2acae86e3
4
+ data.tar.gz: a11fd6f5835f5d771df5dd1dd2a130da49e3706a
5
5
  SHA512:
6
- metadata.gz: b6bfe97dcb0695d74e415dbaa74ab0d3e425027833fe4afb660ceb7f354db7a2c93ca3d2d1da58ae6fd95e66ceef86fc6891b41c1b675b3496692ff0618c2021
7
- data.tar.gz: 2240f17970315f0fb0d7fd64f999bef1a6374903f190cbb01cefa0561edbcd18f87da879b8dedc012137045e02bf198e1f97fbcfb64a3eeea223f511c43ae688
6
+ metadata.gz: 5acfa20882adbeeece5efe8526c39db3e92fc8bde5e0a5574ea79572453e10c046b464a7aa462e1612cc920231c9745131a5947d26cd32836960d2a0e95ffff7
7
+ data.tar.gz: 0c902d34b70b159bc6b3252d64c1fdd2189072261aca509fbba149b9cb7a56ffdfc2fecbc965059035522959f6c140d2cc5606fdb2e6f25e82ece3fcdeb98163
@@ -2,12 +2,15 @@ module Stagehand
2
2
  extend self
3
3
 
4
4
  def configuration
5
+ yield Configuration if block_given?
5
6
  Configuration
6
7
  end
7
8
 
8
9
  module Configuration
9
10
  extend self
10
11
 
12
+ mattr_accessor :checklist_confirmation_filter, :checklist_association_filter, :checklist_relation_filter
13
+
11
14
  def staging_connection_name
12
15
  Rails.configuration.x.stagehand.staging_connection_name || Rails.env.to_sym
13
16
  end
@@ -1,3 +1,5 @@
1
+ require "stagehand/configuration"
2
+
1
3
  module Stagehand
2
4
  class Engine < ::Rails::Engine
3
5
  isolate_namespace Stagehand
@@ -8,7 +10,6 @@ module Stagehand
8
10
 
9
11
  # These require the rails application to be intialized because configuration variables are used
10
12
  initializer "stagehand.load_modules" do
11
- require "stagehand/configuration"
12
13
  require "stagehand/cache"
13
14
  require "stagehand/key"
14
15
  require "stagehand/database"
@@ -98,7 +98,7 @@ module Stagehand
98
98
 
99
99
  public
100
100
 
101
- def initialize(subject, confirmation_filter: nil, association_filter: nil, relation_filter: nil)
101
+ def initialize(subject, confirmation_filter: Configuration.checklist_confirmation_filter, association_filter: Configuration.checklist_association_filter, relation_filter: Configuration.checklist_relation_filter)
102
102
  @subject = subject
103
103
  @confirmation_filter = confirmation_filter
104
104
  @association_filter = association_filter
@@ -1,3 +1,3 @@
1
1
  module Stagehand
2
- VERSION = "0.12.8"
2
+ VERSION = "0.13.0"
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.12.8
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Jakobsen