reactionview 0.1.1 → 0.1.2
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 +4 -4
- data/lib/reactionview/railtie.rb +13 -0
- data/lib/reactionview/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30a8db9a8e43befd419e8e4fa5797d970af5a5190142ccdf16cd2eaac4eeeaff
|
4
|
+
data.tar.gz: 169dfd6c7506bb22ecb386e4d1e78434da669a784e19595e8300767d78ab800f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cc2ce478e563ecb7f72a898916efd8059740868defc73912088ff4505082b40ee110902b282ea527db7310f64b6051204613e8ca95868d87f3401619059e2f3
|
7
|
+
data.tar.gz: c61d3cd3ee547ec61d9e292473a175325afa20c5203910cfd4eef99067d18db1c4c13005955006885fe0a19e3345564c27d8a9cc32b6d91450f7d9f1638365ef
|
data/lib/reactionview/railtie.rb
CHANGED
@@ -2,11 +2,24 @@
|
|
2
2
|
|
3
3
|
module ReActionView
|
4
4
|
class Railtie < Rails::Railtie
|
5
|
+
# If you don't want to precompile ReActionView's assets (eg. because you're using propshaft),
|
6
|
+
# you can do this in an initializer:
|
7
|
+
#
|
8
|
+
# config.after_initialize do
|
9
|
+
# config.assets.precompile -= ReActionView::Railtie::PRECOMPILE_ASSETS
|
10
|
+
# end
|
11
|
+
#
|
12
|
+
PRECOMPILE_ASSETS = %w[
|
13
|
+
reactionview-dev-tools.esm.js
|
14
|
+
reactionview-dev-tools.umd.js
|
15
|
+
].freeze
|
16
|
+
|
5
17
|
initializer "reactionview.assets" do |app|
|
6
18
|
if ReActionView.config.development? && app.config.respond_to?(:assets)
|
7
19
|
gem_root = Gem::Specification.find_by_name("reactionview").gem_dir
|
8
20
|
|
9
21
|
app.config.assets.paths << File.join(gem_root, "app", "assets", "javascripts")
|
22
|
+
app.config.assets.precompile += PRECOMPILE_ASSETS
|
10
23
|
end
|
11
24
|
end
|
12
25
|
|
data/lib/reactionview/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reactionview
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marco Roth
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-09-
|
10
|
+
date: 2025-09-09 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: actionview
|