rails_spotlight 0.2.3 → 0.2.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78a4ca508d34706a04ef8d1b7e61cee43a76b9127555a30846156166b41c2c88
4
- data.tar.gz: 444e8776ccbdf9840b9ef77cb80bf57d1e1ef99477e7b7c21915e062a3216903
3
+ metadata.gz: 91fef398ed2dcc474cd33e62a6caf67999378efbf2b6455d89d86c54cfbadfaf
4
+ data.tar.gz: b0c0026aad9034385a0372c808a7aa050672643463cb78bf77e0fdd85b5b8527
5
5
  SHA512:
6
- metadata.gz: c37ba527e29e187dd4f7dac324bbcebbabf1380f0192813b6100eaf9290dc6a3423f5a1477673d266150ccbe8549644cd5643ff0526c817992d28649e0b3033f
7
- data.tar.gz: 61ca4aff8b9a1f575ed502e167f6024af5db8146c659239728f6efa9636bc98732bd23016a9db4cd09a90a12543fd693c113095f8c3bdfc2c5a1c53c1cfc6d0c
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: true
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? ? true : true?(opts[:live_console_enabled])
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? ? true : true?(opts[:auto_mount_action_cable])
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? ? true : true?(opts[:block_editing_files])
30
- @block_editing_files_outside_of_the_project = opts[:block_editing_files_outside_of_the_project].nil? ? false : true?(opts[:block_editing_files_outside_of_the_project])
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsSpotlight
4
- VERSION = '0.2.3'
4
+ VERSION = '0.2.4'
5
5
  end
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: true
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_spotlight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pawel Niemczyk