forest_liana 1.5.4 → 1.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/forest_liana/engine.rb +5 -1
- data/lib/forest_liana/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: 2d7e19dc3c44efed06f99f1dc21ec06f55d6730d
|
4
|
+
data.tar.gz: 9f53b0db54411362a086ff259fda0aeb42f9aa9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 781c2136768f22d989a05c0bdbe4a2b05cf1e150bc72e53165c5f4f85ec8c0407ad0be3262bd8f03b1c0c6c6827d371c3f7a061a54a4281df74d9a3c9bc9efb1
|
7
|
+
data.tar.gz: e57aba595f02a88395c1e5b0b2df64408f53d5fc23d23db8f716e10f86bb2dfcfc49d024aff1aba02aef09673de517aba522c5352f1c615a41c494004052eeb9
|
data/lib/forest_liana/engine.rb
CHANGED
@@ -33,10 +33,14 @@ module ForestLiana
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
+
def rake?
|
37
|
+
File.basename($0) == 'rake'
|
38
|
+
end
|
39
|
+
|
36
40
|
error = configure_forest_cors unless ENV['FOREST_CORS_DEACTIVATED']
|
37
41
|
|
38
42
|
config.after_initialize do |app|
|
39
|
-
|
43
|
+
if !Rails.env.test? && !rake?
|
40
44
|
if error
|
41
45
|
FOREST_LOGGER.error "Impossible to set the whitelisted Forest " \
|
42
46
|
"domains for CORS constraint:\n#{error}"
|
data/lib/forest_liana/version.rb
CHANGED