superglue 2.0.0.alpha.9 → 2.0.0.alpha.10

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/lib/superglue/engine.rb +10 -0
  4. metadata +5 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a65a2601f089ebb03db5e2c49f580e0e44741e1890ab03b020266bdb7a59e31
4
- data.tar.gz: 2055cd1e038925c61f729d601c528d83fb084e250638c11092bc1b66f9dcbd17
3
+ metadata.gz: 2fa419e7869dd82d8ca911e9d769008878ff2f067c1f0acf04fce9a5634f12ef
4
+ data.tar.gz: b9dc1c99d956a04699e96c3a297f5eb21f90621c71c56c2379da1b189ca745bc
5
5
  SHA512:
6
- metadata.gz: 9b413e70eb67e522a693420788645ec18f7bed6595fbc2f7914f931885ca909ec93257be8acee59b44df59fed6902c7fff48546c5f9a464d2ee03f81be79bbec
7
- data.tar.gz: c929885777b7393d32bdb26452aa6df819ed222b27731f84cfdd5fdab322453c51e9a23b3a0242e9dda88d5610b62ccdda852d6287ea265a88e2cc12b51d19ee
6
+ metadata.gz: 7653b40c3ba33e5c29b1f081d25ae4c18add19a8556411cff8d43f4787895baf368d99f193e7e9cc9137bf56de85d1e6918dded3abf2e0c0d9bba4e668c9f6fd
7
+ data.tar.gz: bad535629a057d095e6da5b394c32fcfe46c1068cc9e5f89879e351fde17d9467c88fc85c2b9f832f50f6714ecdd28ec0d8f13706df5c7425d86db7111f7561c
data/README.md CHANGED
@@ -27,6 +27,7 @@ Documentation is hosted on [Github pages](https://thoughtbot.github.io/superglue
27
27
 
28
28
  ## Contributing
29
29
 
30
- Thank you, [contributors]!
30
+ See the [CONTRIBUTING] document. Thank you, [contributors]!
31
31
 
32
+ [CONTRIBUTING]: CONTRIBUTING.md
32
33
  [contributors]: https://github.com/thoughtbot/superglue_rails/graphs/contributors
@@ -26,6 +26,16 @@ module Superglue
26
26
  #{root}/app/jobs
27
27
  ]
28
28
 
29
+ # If the parent application does not use Action Cable, app/channels cannot
30
+ # be eager loaded, because it references the ActionCable constant.
31
+ # This approach was ported from the amazing folks at turbo-rails
32
+ # You can find its MIT License here: https://github.com/hotwired/turbo-rails/blob/main/MIT-LICENSE
33
+ initializer :"superglue.no_action_cable", before: :set_eager_load_paths do
34
+ unless defined?(ActionCable)
35
+ Rails.autoloaders.once.do_not_eager_load("#{root}/app/channels")
36
+ end
37
+ end
38
+
29
39
  initializer :superglue do |app|
30
40
  ActiveSupport.on_load(:action_controller) do
31
41
  next if self != ActionController::Base
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: superglue
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.alpha.9
4
+ version: 2.0.0.alpha.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johny Ho
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-09-24 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: actionpack
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '7.0'
18
+ version: '7.2'
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: '9.0'
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: '7.0'
28
+ version: '7.2'
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: '9.0'
@@ -125,7 +124,6 @@ homepage: https://github.com/thoughtbot/superglue_rails/
125
124
  licenses:
126
125
  - MIT
127
126
  metadata: {}
128
- post_install_message:
129
127
  rdoc_options: []
130
128
  require_paths:
131
129
  - lib
@@ -140,8 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
138
  - !ruby/object:Gem::Version
141
139
  version: '0'
142
140
  requirements: []
143
- rubygems_version: 3.5.3
144
- signing_key:
141
+ rubygems_version: 3.6.9
145
142
  specification_version: 4
146
143
  summary: Rails integration for SuperglueJS
147
144
  test_files: []