live_cable 0.4.0 → 0.5.0

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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +368 -196
  3. data/README.md +87 -54
  4. data/app/assets/javascript/controllers/live_controller.js +10 -0
  5. data/app/assets/javascript/loading.js +3 -3
  6. data/app/assets/javascript/subscriptions.js +137 -60
  7. data/app/helpers/live_cable_helper.rb +18 -4
  8. data/lib/live_cable/arel_predications.rb +15 -0
  9. data/lib/live_cable/component/broadcasting.rb +13 -5
  10. data/lib/live_cable/component/dispatching.rb +2 -1
  11. data/lib/live_cable/component/events.rb +2 -1
  12. data/lib/live_cable/component/rendering.rb +25 -4
  13. data/lib/live_cable/connection/broadcasting.rb +42 -10
  14. data/lib/live_cable/connection/messaging.rb +18 -3
  15. data/lib/live_cable/connection.rb +5 -5
  16. data/lib/live_cable/defaults_signer.rb +62 -2
  17. data/lib/live_cable/delegation/hash.rb +5 -0
  18. data/lib/live_cable/delegation/model.rb +6 -1
  19. data/lib/live_cable/delegator.rb +23 -15
  20. data/lib/live_cable/engine.rb +5 -0
  21. data/lib/live_cable/model_observer.rb +46 -1
  22. data/lib/live_cable/observer_tracking.rb +10 -1
  23. data/lib/live_cable/predicate_builder.rb +19 -1
  24. data/lib/live_cable/record_ids.rb +37 -0
  25. data/lib/live_cable/render_context.rb +66 -14
  26. data/lib/live_cable/rendering/controller_renderer.rb +15 -11
  27. data/lib/live_cable/rendering/dependency_visitor.rb +35 -2
  28. data/lib/live_cable/rendering/handler.rb +1 -1
  29. data/lib/live_cable/rendering/partial.rb +16 -12
  30. data/lib/live_cable/rendering/partial_renderer.rb +30 -65
  31. data/lib/live_cable/rendering/renderer.rb +19 -3
  32. data/lib/live_cable/rendering/view_buffer.rb +3 -2
  33. data/lib/live_cable/testing/render_state.rb +1 -1
  34. data/lib/live_cable/testing/test_component.rb +2 -2
  35. data/lib/live_cable/testing.rb +4 -2
  36. data/lib/live_cable/version.rb +1 -1
  37. metadata +11 -9
@@ -14,6 +14,10 @@ module LiveCable
14
14
  # @return [Array<Symbol>]
15
15
  attr_reader :local_writes
16
16
 
17
+ # Reads of top-level locals the part hasn't surely assigned before them
18
+ # @return [Array<Symbol>]
19
+ attr_reader :exposed_local_reads
20
+
17
21
  # @return [Set<Symbol>]
18
22
  attr_reader :component_method_calls
19
23
 
@@ -22,6 +26,8 @@ module LiveCable
22
26
  @variable_calls = []
23
27
  @local_reads = []
24
28
  @local_writes = []
29
+ @exposed_local_reads = []
30
+ @assigned = []
25
31
  @component_method_calls = Set.new
26
32
  @scope_depth = 0
27
33
  end
@@ -33,11 +39,33 @@ module LiveCable
33
39
  # Prism never resolves a name past a def, so nothing inside one counts as top level
34
40
  def visit_def_node(node) = nested_scope { super }
35
41
 
42
+ # An assignment only covers the reads after it in its own statement list
43
+ def visit_statements_node(node)
44
+ assigned = @assigned
45
+ node.body.each do |statement|
46
+ visit(statement)
47
+ @assigned |= [statement.name] if statement.is_a?(Prism::LocalVariableWriteNode) && top_level?(statement)
48
+ end
49
+ ensure
50
+ @assigned = assigned
51
+ end
52
+
53
+ # Ruby evaluates the collection first, then assigns the index before each pass of the body
54
+ def visit_for_node(node)
55
+ assigned = @assigned
56
+ visit(node.collection)
57
+ visit(node.index)
58
+ @assigned |= [node.index.name] if node.index.is_a?(Prism::LocalVariableTargetNode) && top_level?(node.index)
59
+ visit(node.statements) if node.statements
60
+ ensure
61
+ @assigned = assigned
62
+ end
63
+
36
64
  # Track reads of top-level locals
37
65
  # @param node [Prism::LocalVariableReadNode]
38
66
  # @return [void]
39
67
  def visit_local_variable_read_node(node)
40
- @local_reads |= [node.name] if top_level?(node)
68
+ read(node) if top_level?(node)
41
69
  super
42
70
  end
43
71
 
@@ -110,10 +138,15 @@ module LiveCable
110
138
  node.depth == @scope_depth
111
139
  end
112
140
 
141
+ def read(node)
142
+ @local_reads |= [node.name]
143
+ @exposed_local_reads |= [node.name] unless @assigned.include?(node.name)
144
+ end
145
+
113
146
  def read_and_write(node)
114
147
  return unless top_level?(node)
115
148
 
116
- @local_reads |= [node.name]
149
+ read(node)
117
150
  @local_writes |= [node.name]
118
151
  end
119
152
 
@@ -7,7 +7,7 @@ module LiveCable
7
7
  parse_result = ::Herb.parse(source, track_whitespace: true)
8
8
  ast = parse_result.value
9
9
 
10
- engine = Renderer.new(template.short_identifier)
10
+ engine = Renderer.new(template.short_identifier, template.virtual_path)
11
11
  compiler = Compiler.new(engine)
12
12
  ast.accept(compiler)
13
13
 
@@ -5,16 +5,17 @@ require_relative 'partial_renderer'
5
5
  module LiveCable
6
6
  module Rendering
7
7
  class Partial
8
- def initialize(parts, metadata, identifier)
8
+ def initialize(parts, metadata, identifier, virtual_path = nil)
9
9
  @parts = parts
10
10
  @metadata = metadata
11
11
  @identifier = identifier
12
+ @virtual_path = virtual_path
12
13
  @renderer_class = build_renderer_class
13
14
  end
14
15
 
15
16
  # @return [PartialRenderer]
16
17
  def for_component(component, view_context)
17
- renderer_class.new(component, parts, view_context)
18
+ renderer_class.new(component, parts, view_context, virtual_path)
18
19
  end
19
20
 
20
21
  # ActionView calls this when a template is rendered as a partial or a plain
@@ -36,6 +37,9 @@ module LiveCable
36
37
  # @return [String]
37
38
  attr_reader :identifier
38
39
 
40
+ # @return [String, nil]
41
+ attr_reader :virtual_path
42
+
39
43
  # @return [Class<PartialRenderer>]
40
44
  attr_reader :renderer_class
41
45
 
@@ -58,31 +62,31 @@ module LiveCable
58
62
  component_dependencies = part_metadata[:component_dependencies]
59
63
  component_method_calls = part_metadata[:component_method_calls] || []
60
64
  local_dependencies = part_metadata[:local_dependencies]
65
+ exposed_local_reads = part_metadata[:exposed_local_reads]
61
66
  defines_locals = part_metadata[:defines_locals]
62
67
  local_check_code = part_metadata[:local_check_code]
63
68
 
64
- # Code blocks always execute (they define locals that other parts need)
65
- # Expression blocks can be skipped if dependencies haven't changed
66
- skip_check = if type == :code
69
+ # A part whose top-level local a later part reads always runs
70
+ skip_check = if type == :code || part_metadata[:feeds_later_parts]
67
71
  ''
68
72
  else
69
73
  <<~SKIP_CHECK
70
74
  return nil if should_skip_part?(
71
- changes,
75
+ __live_changes,
72
76
  #{component_dependencies.inspect},
73
77
  #{component_method_calls.inspect},
74
- #{local_dependencies.inspect}
78
+ #{exposed_local_reads.inspect}
75
79
  )
76
80
  SKIP_CHECK
77
81
  end
78
82
 
79
- # Initialize local variables from previous parts so that operator
80
- # assignments (||=, &&=, +=) work correctly. Without this, Ruby
81
- # treats them as fresh nil locals instead of resolving via method_missing.
82
- local_init_code = local_dependencies.map { |dep| "#{dep} = locals[:#{dep}]" }.join("\n")
83
+ # Earlier parts' locals become Ruby locals in this part's method, as
84
+ # they would be in one ERB method body.
85
+ local_init_code = local_dependencies.map { |dep| "#{dep} = @locals[:#{dep}]" }.join("\n")
83
86
 
87
+ # Part code runs inside this method, so its parameter must not shadow a name the template uses.
84
88
  class_eval(<<~RUBY, __FILE__, __LINE__ + 1)
85
- def render_part_#{index}(changes)
89
+ def render_part_#{index}(__live_changes)
86
90
  #{skip_check}
87
91
  # Mark locals defined by this part as dirty
88
92
  mark_locals_dirty(#{defines_locals.inspect})
@@ -7,10 +7,11 @@ module LiveCable
7
7
  # @return [LiveCable::Component]
8
8
  attr_reader :component
9
9
 
10
- def initialize(component, parts, view_context)
10
+ def initialize(component, parts, view_context, virtual_path = nil)
11
11
  @component = component
12
12
  @parts = parts
13
13
  @view_context = view_context
14
+ @virtual_path = virtual_path
14
15
  bind_shadowed_names
15
16
  end
16
17
 
@@ -18,31 +19,29 @@ module LiveCable
18
19
  # No changes, different from :all (:all means render all)
19
20
  # Return an array of nils
20
21
  if changes == []
21
- return Array.new(parts.size, nil)
22
+ return Array.new(@parts.size, nil)
22
23
  end
23
24
 
24
25
  @locals = {}
25
26
  @dirty_locals = Set.new # Track which locals were recomputed this render
26
27
  @method_deps_cache = {} # Cache method dependency expansion for this render cycle
27
- parts.each_with_index.with_object([]) do |item, acc|
28
- part, index = item
29
- result = view_context.render_part(index) { __send__("render_part_#{index}", changes) }
30
- acc << result unless part[0] == :code
28
+ @view_context.with_live_cable_virtual_path(@virtual_path) do
29
+ @parts.each_with_index.with_object([]) do |item, acc|
30
+ part, index = item
31
+ result = @view_context.render_part(index) { __send__("render_part_#{index}", changes) }
32
+ acc << result unless part[0] == :code
33
+ end
31
34
  end
32
35
  end
33
36
 
34
37
  # Pass through renders to the view context, otherwise method_missing will pass
35
38
  # to the component instead since it also has a render method
36
- def render(*, &block)
37
- return view_context.render(*) unless block
38
-
39
- view_context.render(*) do |*args|
40
- with_view_buffer { block.call(*args) }
41
- end
39
+ def render(...)
40
+ @view_context.render(...)
42
41
  end
43
42
 
44
43
  def mark_locals_dirty(locals)
45
- locals.each { |local| dirty_locals << local }
44
+ locals.each { |local| @dirty_locals << local }
46
45
  end
47
46
 
48
47
  # Expand component.method_name calls to their transitive dependencies
@@ -56,7 +55,7 @@ module LiveCable
56
55
  cache_key = method_names.sort
57
56
 
58
57
  # Return cached result if available
59
- return method_deps_cache[cache_key] if method_deps_cache.key?(cache_key)
58
+ return @method_deps_cache[cache_key] if @method_deps_cache.key?(cache_key)
60
59
 
61
60
  # Get the analyzer for the component class
62
61
  analyzer = component.class.method_dependencies_analyzer
@@ -69,7 +68,7 @@ module LiveCable
69
68
  end
70
69
 
71
70
  # Cache and return the result
72
- method_deps_cache[cache_key] = expanded.uniq
71
+ @method_deps_cache[cache_key] = expanded.uniq
73
72
  end
74
73
 
75
74
  # Check if this part should be skipped based on its dependencies
@@ -95,76 +94,42 @@ module LiveCable
95
94
  return false if changes.intersect?(all_component_deps)
96
95
 
97
96
  # Render if any local dependencies are dirty
98
- return false if dirty_locals.intersect?(local_dependencies)
97
+ return false if @dirty_locals.intersect?(local_dependencies)
99
98
 
100
99
  # Otherwise, skip rendering this part
101
100
  true
102
101
  end
103
102
 
104
- def method_missing(method, *args, **kwargs, &block)
105
- # A local is only ever a bare name; with arguments it's a method call, as in plain ERB
106
- if locals.key?(method) && args.empty? && kwargs.empty? && block.nil?
107
- return locals[method]
108
- end
109
-
103
+ def method_missing(method, ...)
110
104
  if component.respond_to?(method)
111
- return view_context.live_cable_unwrap(component.public_send(method, *args, **kwargs, &block))
105
+ return call_component(method, ...)
112
106
  end
113
107
 
114
- if view_context.respond_to?(method)
115
- return forwarding_to_view_buffer { view_context.public_send(method, *args, **kwargs, &block) }
108
+ if @view_context.respond_to?(method)
109
+ return @view_context.public_send(method, ...)
116
110
  end
117
111
 
118
112
  super
119
113
  end
120
114
 
121
115
  def respond_to_missing?(method, _include_private = false)
122
- locals.key?(method) || component.respond_to?(method) || view_context.respond_to?(method)
116
+ component.respond_to?(method) || @view_context.respond_to?(method)
123
117
  end
124
118
 
125
119
  private
126
120
 
127
- # @return [Array]
128
- attr_reader :parts
129
-
130
- # @return [ActionView::Base]
131
- attr_reader :view_context
132
-
133
- # @return [Hash]
134
- attr_reader :locals
135
-
136
- # @return [Set]
137
- attr_reader :dirty_locals
138
-
139
- # @return [Hash]
140
- attr_reader :method_deps_cache
141
-
142
121
  def with_buffer(&)
143
- @output_buffer = ActionView::OutputBuffer.new
122
+ @output_buffer = ViewBuffer.new(@view_context)
144
123
 
145
- view_context.with_output_buffer(@output_buffer, &).to_s
124
+ @view_context.with_output_buffer(ActionView::OutputBuffer.new, &).to_s
146
125
  end
147
126
 
148
- # Template blocks write to this renderer's @output_buffer, but a partial
149
- # yields them while its own buffer is the one capturing.
150
- def with_view_buffer
151
- buffer = @output_buffer
152
- @output_buffer = view_context.output_buffer
153
- yield
154
- ensure
155
- @output_buffer = buffer
156
- end
157
-
158
- def forwarding_to_view_buffer
159
- buffer = @output_buffer
160
- @output_buffer = ViewBuffer.new(view_context)
161
- yield
162
- ensure
163
- @output_buffer = buffer
127
+ def store_local(name, value)
128
+ @locals[name] = value
164
129
  end
165
130
 
166
- def store_local(name, value)
167
- locals[name] = value
131
+ def call_component(name, ...)
132
+ @view_context.live_cable_unwrap(component.public_send(name, ...))
168
133
  end
169
134
 
170
135
  # Kernel and Object names never reach method_missing. Bind the ones the component
@@ -173,9 +138,9 @@ module LiveCable
173
138
  names = self.class.metadata.compact.flat_map { |part| part[:component_method_calls] || [] }.uniq
174
139
  names = names.select { |name| Object.method_defined?(name) || Object.private_method_defined?(name) }
175
140
 
176
- # The renderer's respond_to? already checks locals, the component and the view context.
141
+ # The renderer's respond_to? already checks the component and the view context.
177
142
  (names - [:respond_to?]).each do |name|
178
- target = [component, view_context].find do |object|
143
+ target = [component, @view_context].find do |object|
179
144
  if Object.private_method_defined?(name)
180
145
  object.respond_to?(name)
181
146
  else
@@ -186,9 +151,9 @@ module LiveCable
186
151
  next unless target
187
152
 
188
153
  define_singleton_method(name) do |*args, **kwargs, &block|
189
- next target.public_send(name, *args, **kwargs, &block) if target.equal?(component)
154
+ next call_component(name, *args, **kwargs, &block) if target.equal?(component)
190
155
 
191
- forwarding_to_view_buffer { target.public_send(name, *args, **kwargs, &block) }
156
+ target.public_send(name, *args, **kwargs, &block)
192
157
  end
193
158
  end
194
159
  end
@@ -6,8 +6,9 @@ module LiveCable
6
6
  module Rendering
7
7
  class Renderer < ::Herb::Engine
8
8
  # rubocop:disable Lint/MissingSuper
9
- def initialize(identifier = nil)
9
+ def initialize(identifier = nil, virtual_path = nil)
10
10
  @identifier = identifier
11
+ @virtual_path = virtual_path
11
12
  @newline_pending = 0
12
13
  @parts = []
13
14
  @src = +''
@@ -23,7 +24,8 @@ module LiveCable
23
24
 
24
25
  def src
25
26
  metadata = build_metadata
26
- "::LiveCable::Rendering::Partial.new(#{parts.inspect}, #{metadata.inspect}, #{identifier.inspect})"
27
+ args = [parts, metadata, identifier, virtual_path].map(&:inspect).join(', ')
28
+ "::LiveCable::Rendering::Partial.new(#{args})"
27
29
  end
28
30
 
29
31
  private
@@ -31,6 +33,9 @@ module LiveCable
31
33
  # @return [String, nil]
32
34
  attr_reader :identifier
33
35
 
36
+ # @return [String, nil]
37
+ attr_reader :virtual_path
38
+
34
39
  # @return [Integer]
35
40
  attr_reader :newline_pending
36
41
 
@@ -46,7 +51,7 @@ module LiveCable
46
51
  def build_metadata
47
52
  accumulated_locals = [] # Track locals defined in previous parts
48
53
 
49
- parts.map do |type, code|
54
+ metadata = parts.map do |type, code|
50
55
  next nil if type == :static || code.nil? || code.empty?
51
56
 
52
57
  # Earlier parts' locals are in scope, as they would be in one ERB method body
@@ -63,6 +68,7 @@ module LiveCable
63
68
 
64
69
  # A write that doesn't run, such as one in a false `if`, keeps the earlier value
65
70
  local_dependencies = (visitor.local_reads | visitor.local_writes) & accumulated_locals
71
+ exposed_local_reads = visitor.exposed_local_reads & accumulated_locals
66
72
 
67
73
  # Track component.method_name calls separately for runtime expansion
68
74
  component_method_calls = visitor.component_method_calls.to_a
@@ -76,10 +82,20 @@ module LiveCable
76
82
  component_dependencies: visitor.variable_calls - [:component],
77
83
  component_method_calls:,
78
84
  local_dependencies:,
85
+ exposed_local_reads:,
79
86
  defines_locals: visitor.local_writes,
80
87
  local_check_code:,
81
88
  }
82
89
  end
90
+
91
+ read_later = []
92
+ metadata.reverse_each do |part|
93
+ next unless part
94
+
95
+ part[:feeds_later_parts] = part[:defines_locals].intersect?(read_later)
96
+ read_later |= part[:exposed_local_reads]
97
+ end
98
+ metadata
83
99
  end
84
100
 
85
101
  def finish_method(type)
@@ -2,10 +2,11 @@
2
2
 
3
3
  module LiveCable
4
4
  module Rendering
5
- # Appends to whichever buffer the view is writing to when the append happens,
6
- # so a template block a view helper yields lands where plain ERB would put it.
5
+ # A template's buffer: stands in for whichever buffer the view is writing to at
6
+ # that moment, so a block lands wherever its caller yields it, as in plain ERB.
7
7
  class ViewBuffer
8
8
  delegate :safe_append=, :append=, :safe_expr_append=, to: :output_buffer
9
+ delegate_missing_to :output_buffer
9
10
 
10
11
  def initialize(view_context)
11
12
  @view_context = view_context
@@ -46,7 +46,7 @@ module LiveCable
46
46
  return '' unless parts
47
47
 
48
48
  parts.join.gsub(CHILD_PLACEHOLDER) do
49
- @children[Regexp.last_match[:live_id]].html
49
+ @children[CGI.unescapeHTML(Regexp.last_match[:live_id])].html
50
50
  end
51
51
  end
52
52
  end
@@ -83,8 +83,8 @@ module LiveCable
83
83
  end
84
84
 
85
85
  # All events the component has dispatched via dispatch_event, in
86
- # order, whether they rode along with a render or were broadcast on
87
- # their own.
86
+ # order, whether they rode along with a render or an _ack, or were
87
+ # broadcast on their own.
88
88
  #
89
89
  # @return [Array<Hash>] Event hashes ({ name:, detail:, window: })
90
90
  def dispatched_events
@@ -38,8 +38,10 @@ module LiveCable
38
38
  # between components
39
39
  # @param identifiers [Hash] ActionCable connection identifiers made
40
40
  # available to the component (e.g. current_user: user)
41
- # @param raise_errors [Boolean] Raise errors from actions and rendering
42
- # instead of broadcasting an _error like production does (default true)
41
+ # @param raise_errors [Boolean] Raise errors from mounting (connect
42
+ # callbacks and the first render), actions, rendering and stream
43
+ # callbacks instead of broadcasting an _error like production does
44
+ # (default true)
43
45
  # @param defaults [Hash] Default values for reactive variables
44
46
  # @return [LiveCable::Testing::TestComponent]
45
47
  def live_mount(component, id: 'test', connection: nil, identifiers: {}, raise_errors: true, **defaults)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LiveCable
4
- VERSION = '0.4.0'
4
+ VERSION = '0.5.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: live_cable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Blanchette
@@ -15,56 +15,56 @@ dependencies:
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: '7.1'
18
+ version: '8.0'
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - ">="
24
24
  - !ruby/object:Gem::Version
25
- version: '7.1'
25
+ version: '8.0'
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: actionview
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: '7.1'
32
+ version: '8.0'
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '7.1'
39
+ version: '8.0'
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: activemodel
42
42
  requirement: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: '7.1'
46
+ version: '8.0'
47
47
  type: :runtime
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '7.1'
53
+ version: '8.0'
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: activesupport
56
56
  requirement: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: '7.1'
60
+ version: '8.0'
61
61
  type: :runtime
62
62
  prerelease: false
63
63
  version_requirements: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - ">="
66
66
  - !ruby/object:Gem::Version
67
- version: '7.1'
67
+ version: '8.0'
68
68
  - !ruby/object:Gem::Dependency
69
69
  name: herb
70
70
  requirement: !ruby/object:Gem::Requirement
@@ -134,6 +134,7 @@ files:
134
134
  - lib/live.rb
135
135
  - lib/live_cable.rb
136
136
  - lib/live_cable/action_cable_connection.rb
137
+ - lib/live_cable/arel_predications.rb
137
138
  - lib/live_cable/component.rb
138
139
  - lib/live_cable/component/broadcasting.rb
139
140
  - lib/live_cable/component/dispatching.rb
@@ -167,6 +168,7 @@ files:
167
168
  - lib/live_cable/observer.rb
168
169
  - lib/live_cable/observer_tracking.rb
169
170
  - lib/live_cable/predicate_builder.rb
171
+ - lib/live_cable/record_ids.rb
170
172
  - lib/live_cable/render_context.rb
171
173
  - lib/live_cable/rendering/compiler.rb
172
174
  - lib/live_cable/rendering/controller_renderer.rb