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 +4 -4
- data/lib/stagehand/configuration.rb +3 -0
- data/lib/stagehand/engine.rb +2 -1
- data/lib/stagehand/staging/checklist.rb +1 -1
- 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: 857f95b5a3b62d7c9721088e576c7df2acae86e3
|
4
|
+
data.tar.gz: a11fd6f5835f5d771df5dd1dd2a130da49e3706a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/stagehand/engine.rb
CHANGED
@@ -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:
|
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
|
data/lib/stagehand/version.rb
CHANGED