forest_admin_rails 1.0.0.pre.beta.21 → 1.0.0.pre.beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/forest_admin_rails/engine.rb +3 -0
- data/lib/forest_admin_rails/version.rb +1 -1
- data/lib/forest_admin_rails.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd8dd091e68e399375472c191d3e5388d46321fa82c47d31b02a321b6b44ba24
|
4
|
+
data.tar.gz: 127716b0f83470156cecea3dcab98be9afc5ba089d46aa2e5bd5a8b61e65cd12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f5fed6d511ae6ef91a0f30bdc5a994df9f37fe4126a5a47418c116b828a42a354d34738b3520447b96cf14da74dda9176d93c6f8322254b0e916d9d9e43dd5a
|
7
|
+
data.tar.gz: '09c1f6dfb38aefbc92242f4cd873bbfda1cab354683db58e996d8f86494f2868010fa589daa5ebd635b556373061c1686cd5b1451c85bd29a5e18e085fc4f722'
|
@@ -38,6 +38,9 @@ module ForestAdminRails
|
|
38
38
|
# setup agent
|
39
39
|
require Rails.root.join('lib', 'forest_admin_rails', 'create_agent.rb')
|
40
40
|
ForestAdminRails::CreateAgent.setup!
|
41
|
+
|
42
|
+
sse = ForestAdminAgent::Services::SSECacheInvalidation
|
43
|
+
sse.run if ForestAdminRails.config[:instant_cache_refresh]
|
41
44
|
end
|
42
45
|
|
43
46
|
def load_cors
|
data/lib/forest_admin_rails.rb
CHANGED
@@ -18,12 +18,13 @@ module ForestAdminRails
|
|
18
18
|
setting :forest_server_url, default: 'https://api.forestadmin.com'
|
19
19
|
setting :is_production, default: Rails.env.production?
|
20
20
|
setting :prefix, default: 'forest'
|
21
|
-
setting :permission_expiration, default:
|
21
|
+
setting :permission_expiration, default: 900
|
22
22
|
setting :cache_dir, default: :'tmp/cache/forest_admin'
|
23
23
|
setting :schema_path, default: File.join(Dir.pwd, '.forestadmin-schema.json')
|
24
24
|
setting :project_dir, default: Dir.pwd
|
25
25
|
setting :loggerLevel, default: 'info'
|
26
26
|
setting :logger, default: nil
|
27
|
+
setting :instant_cache_refresh, default: Rails.env.production?
|
27
28
|
|
28
29
|
if defined?(Rails::Railtie)
|
29
30
|
# logic for cors middleware,... here // or it might be into Engine
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forest_admin_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.beta.
|
4
|
+
version: 1.0.0.pre.beta.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthieu
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-12-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dry-configurable
|