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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52984f3f284100d4b253bb060dd9cb87e86a43787a24dbac2a2641e3179c11ff
4
- data.tar.gz: ab65023e55f476db753414fb77fb9b7a371c3fac6efe1b853602bb1d352f0545
3
+ metadata.gz: 30a8db9a8e43befd419e8e4fa5797d970af5a5190142ccdf16cd2eaac4eeeaff
4
+ data.tar.gz: 169dfd6c7506bb22ecb386e4d1e78434da669a784e19595e8300767d78ab800f
5
5
  SHA512:
6
- metadata.gz: 0c1956ec57530be50b225422ee7c738c6dd9afbe01ee684efba60f8527cc8d6ec0c009835d32fe8b39d83634e49d74dec18fc0c05899574f2fa9d43402af2217
7
- data.tar.gz: 0f0aedfda8745ba7500df6b7ecfc6cd793ce89673c259a6d5e7d2b009e1b254dac1dd6ba5693077fa2daa7a5196984dd184c2ad38340c2a2682696a2c11a3cc6
6
+ metadata.gz: 1cc2ce478e563ecb7f72a898916efd8059740868defc73912088ff4505082b40ee110902b282ea527db7310f64b6051204613e8ca95868d87f3401619059e2f3
7
+ data.tar.gz: c61d3cd3ee547ec61d9e292473a175325afa20c5203910cfd4eef99067d18db1c4c13005955006885fe0a19e3345564c27d8a9cc32b6d91450f7d9f1638365ef
@@ -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
- initializer "reactionview.configure_erb_handler" do
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ReActionView
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
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.0.0"
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.0
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-05 00:00:00.000000000 Z
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.0.0
86
+ version: 3.2.0
87
87
  required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - ">="