rails_spotlight 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/rails_spotlight/configuration.rb +5 -5
- data/lib/rails_spotlight/version.rb +1 -1
- data/lib/tasks/init.rake +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91fef398ed2dcc474cd33e62a6caf67999378efbf2b6455d89d86c54cfbadfaf
|
4
|
+
data.tar.gz: b0c0026aad9034385a0372c808a7aa050672643463cb78bf77e0fdd85b5b8527
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b679f5655fe8f438d0d0abfa8f20bece688aad4820950f9ee46c7b571f4e9ba3f6dd7188f8ab14f0cfc64e4880315cf522214d15f50cebf6abd2bc40bd5b2dc
|
7
|
+
data.tar.gz: 61f733049e95df67212f63fce5adbfda5f0421e7fe6bbd8367ebfb73d2e09077cf4a021a07f2c5f5a10c2f6a50893066dd0550b1ab9c2c197c1ecac0061db6c9
|
data/README.md
CHANGED
@@ -39,7 +39,9 @@ file will be created in `config/rails_spotlight.yml`
|
|
39
39
|
MIDDLEWARE_SKIPPED_PATHS: []
|
40
40
|
NOT_ENCODABLE_EVENT_VALUES:
|
41
41
|
# Rest of the configuration is required for ActionCable. It will be disabled automatically in when ActionCable is not available.
|
42
|
-
LIVE_CONSOLE_ENABLED
|
42
|
+
# LIVE_CONSOLE_ENABLED from version 0.2.3 do not require ActionCable to be enabled.
|
43
|
+
LIVE_CONSOLE_ENABLED: false
|
44
|
+
# Experimental feature.
|
43
45
|
REQUEST_COMPLETED_BROADCAST_ENABLED: false
|
44
46
|
AUTO_MOUNT_ACTION_CABLE: false
|
45
47
|
ACTION_CABLE_MOUNT_PATH: /cable
|
@@ -20,14 +20,14 @@ module RailsSpotlight
|
|
20
20
|
@logger = opts[:logger] || Logger.new(File.join(self.class.rails_root, 'log', 'rails_spotlight.log'))
|
21
21
|
@storage_path = opts[:storage_path] || File.join(self.class.rails_root, 'tmp', 'data', 'rails_spotlight')
|
22
22
|
@storage_pool_size = opts[:storage_pool_size] || 20
|
23
|
-
@live_console_enabled = opts[:live_console_enabled].nil? ?
|
24
|
-
@request_completed_broadcast_enabled = true?(opts[:request_completed_broadcast_enabled])
|
23
|
+
@live_console_enabled = opts[:live_console_enabled].nil? ? false : true?(opts[:live_console_enabled])
|
24
|
+
@request_completed_broadcast_enabled = opts[:request_completed_broadcast_enabled].nil? ? false : true?(opts[:request_completed_broadcast_enabled])
|
25
25
|
@middleware_skipped_paths = opts[:middleware_skipped_paths] || []
|
26
26
|
@not_encodable_event_values = DEFAULT_NOT_ENCODABLE_EVENT_VALUES.merge(opts[:not_encodable_event_values] || {})
|
27
|
-
@auto_mount_action_cable = opts[:auto_mount_action_cable].nil? ?
|
27
|
+
@auto_mount_action_cable = opts[:auto_mount_action_cable].nil? ? false : true?(opts[:auto_mount_action_cable])
|
28
28
|
@action_cable_mount_path = opts[:action_cable_mount_path] || '/cable'
|
29
|
-
@block_editing_files = opts[:block_editing_files].nil? ?
|
30
|
-
@block_editing_files_outside_of_the_project = opts[:block_editing_files_outside_of_the_project].nil? ?
|
29
|
+
@block_editing_files = opts[:block_editing_files].nil? ? false : true?(opts[:block_editing_files])
|
30
|
+
@block_editing_files_outside_of_the_project = opts[:block_editing_files_outside_of_the_project].nil? ? true : true?(opts[:block_editing_files_outside_of_the_project])
|
31
31
|
end
|
32
32
|
|
33
33
|
def live_console_enabled
|
data/lib/tasks/init.rake
CHANGED
@@ -19,7 +19,9 @@ namespace :rails_spotlight do # rubocop:disable Metrics/BlockLength
|
|
19
19
|
MIDDLEWARE_SKIPPED_PATHS: []
|
20
20
|
NOT_ENCODABLE_EVENT_VALUES:
|
21
21
|
# Rest of the configuration is required for ActionCable. It will be disabled automatically in when ActionCable is not available.
|
22
|
-
LIVE_CONSOLE_ENABLED
|
22
|
+
# LIVE_CONSOLE_ENABLED from version 0.2.3 do not require ActionCable to be enabled.
|
23
|
+
LIVE_CONSOLE_ENABLED: false
|
24
|
+
# Experimental feature.
|
23
25
|
REQUEST_COMPLETED_BROADCAST_ENABLED: false
|
24
26
|
AUTO_MOUNT_ACTION_CABLE: false
|
25
27
|
ACTION_CABLE_MOUNT_PATH: /cable
|