react_on_rails 16.4.0.rc.5 → 16.4.0.rc.6

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: 122f40da16cc6a79e95e0679394667388c9cae337f19be2f61db4463a221a572
4
- data.tar.gz: 38213ba983ecc6d2e6ea065de078a93305e6aaed6419069d5c94e427b3cef507
3
+ metadata.gz: 7e2eb14c4503b061f7391a7a72c677ae86a960e895a8549055bcb657f8be9ddc
4
+ data.tar.gz: 056d77c9579b70ec0a5afad57cf7b9d38709031852ce693a29a60f7b7dde1a27
5
5
  SHA512:
6
- metadata.gz: 82b8e04feec8ea4f73a8fc821adaa5343ce6fe4cf7e932c5b77711a2c0036b9b2d713834d4e900d530f310b25d2fcb746492e279615427c188e8b89e7f1a29c6
7
- data.tar.gz: 0d06abde7b925466f835ec2646e9969348adbdc8cb8761a5995668ab0b607ec7a79621a6461553e4511a8cc654fb8b33d388b8e3bcc0ab331f93bf3c2d723e57
6
+ metadata.gz: 5a4855b3d19061720c333f4bea3bf25b8987906551758dde4b4a549032353280b111a636e79b2d00299cd6d9d0f511310880ed60d4da89c41d2133bf5c004433
7
+ data.tar.gz: 2da99325513c8b7b85d9f9121c95168757f855a1adfe0eca7d4ab164a0481159968544355c79662453aac28aa64d3a18cb70dee6468cbe31453c29c4d91856a3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- react_on_rails (16.4.0.rc.5)
4
+ react_on_rails (16.4.0.rc.6)
5
5
  addressable
6
6
  connection_pool
7
7
  execjs (~> 2.5)
@@ -83,6 +83,23 @@ module ReactOnRails
83
83
  !File.exist?(VersionChecker::NodePackageVersion.package_json_path)
84
84
  end
85
85
 
86
+ # Install ScoutApm instrumentation after ScoutApm is configured via "scout_apm.start" initializer.
87
+ # https://github.com/scoutapp/scout_apm_ruby/blob/v6.1.0/lib/scout_apm.rb#L221
88
+ initializer "react_on_rails.scout_apm_instrumentation", after: "scout_apm.start" do
89
+ next unless defined?(ScoutApm)
90
+
91
+ ReactOnRails::Helper.class_eval do
92
+ include ScoutApm::Tracer
93
+ instrument_method :react_component, type: "ReactOnRails", name: "react_component"
94
+ instrument_method :react_component_hash, type: "ReactOnRails", name: "react_component_hash"
95
+ end
96
+
97
+ ReactOnRails::ServerRenderingPool::RubyEmbeddedJavaScript.singleton_class.class_eval do
98
+ include ScoutApm::Tracer
99
+ instrument_method :exec_server_render_js, type: "ReactOnRails", name: "ExecJs React Server Rendering"
100
+ end
101
+ end
102
+
86
103
  config.to_prepare do
87
104
  ReactOnRails::ServerRenderingPool.reset_pool
88
105
  end
@@ -714,13 +714,6 @@ module ReactOnRails
714
714
  controller.is_a?(ActionMailer::Base)
715
715
  end
716
716
 
717
- if defined?(ScoutApm)
718
- include ScoutApm::Tracer
719
-
720
- instrument_method :react_component, type: "ReactOnRails", name: "react_component"
721
- instrument_method :react_component_hash, type: "ReactOnRails", name: "react_component_hash"
722
- end
723
-
724
717
  def raise_missing_autoloaded_bundle(react_component_name)
725
718
  raise ReactOnRails::SmartError.new(
726
719
  error_type: :missing_auto_loaded_bundle,
@@ -211,12 +211,6 @@ module ReactOnRails
211
211
  JS
212
212
  end
213
213
 
214
- if defined?(ScoutApm)
215
- include ScoutApm::Tracer
216
-
217
- instrument_method :exec_server_render_js, type: "ReactOnRails", name: "ExecJs React Server Rendering"
218
- end
219
-
220
214
  private
221
215
 
222
216
  def file_url_to_string(url)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ReactOnRails
4
- VERSION = "16.4.0.rc.5"
4
+ VERSION = "16.4.0.rc.6"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: react_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.4.0.rc.5
4
+ version: 16.4.0.rc.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Gordon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-02-26 00:00:00.000000000 Z
11
+ date: 2026-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable