reactionview 0.1.0 → 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 +15 -4
- data/lib/reactionview/version.rb +1 -1
- data/reactionview.gemspec +1 -1
- metadata +3 -3
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
|
|
@@ -16,11 +29,9 @@ module ReActionView
|
|
16
29
|
end
|
17
30
|
end
|
18
31
|
|
19
|
-
|
32
|
+
config.after_initialize do
|
20
33
|
ActiveSupport.on_load(:action_view) do
|
21
|
-
if ReActionView.config.intercept_erb
|
22
|
-
ActionView::Template.register_template_handler :erb, ReActionView::Template::Handlers::Herb
|
23
|
-
end
|
34
|
+
ActionView::Template.register_template_handler :erb, ReActionView::Template::Handlers::Herb if ReActionView.config.intercept_erb
|
24
35
|
end
|
25
36
|
end
|
26
37
|
end
|
data/lib/reactionview/version.rb
CHANGED
data/reactionview.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.summary = "An ActionView-compatible ERB engine with modern DX - re-imagined with Herb."
|
12
12
|
spec.description = spec.summary
|
13
13
|
spec.homepage = "https://reactionview.dev"
|
14
|
-
spec.required_ruby_version = ">= 3.
|
14
|
+
spec.required_ruby_version = ">= 3.2.0"
|
15
15
|
|
16
16
|
spec.metadata["homepage_uri"] = spec.homepage
|
17
17
|
spec.metadata["source_code_uri"] = "https://github.com/marcoroth/reactionview"
|
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
|
@@ -83,7 +83,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
83
83
|
requirements:
|
84
84
|
- - ">="
|
85
85
|
- !ruby/object:Gem::Version
|
86
|
-
version: 3.
|
86
|
+
version: 3.2.0
|
87
87
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
89
|
- - ">="
|