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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7e2eb14c4503b061f7391a7a72c677ae86a960e895a8549055bcb657f8be9ddc
|
|
4
|
+
data.tar.gz: 056d77c9579b70ec0a5afad57cf7b9d38709031852ce693a29a60f7b7dde1a27
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a4855b3d19061720c333f4bea3bf25b8987906551758dde4b4a549032353280b111a636e79b2d00299cd6d9d0f511310880ed60d4da89c41d2133bf5c004433
|
|
7
|
+
data.tar.gz: 2da99325513c8b7b85d9f9121c95168757f855a1adfe0eca7d4ab164a0481159968544355c79662453aac28aa64d3a18cb70dee6468cbe31453c29c4d91856a3
|
data/Gemfile.lock
CHANGED
|
@@ -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)
|
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.
|
|
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-
|
|
11
|
+
date: 2026-03-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|