rbexy 2.0.0.rc3 → 2.0.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/docker-compose.yml +2 -0
- data/gemfiles/rails_6_1.gemfile.lock +1 -1
- data/gemfiles/rails_7_0.gemfile.lock +1 -1
- data/gemfiles/rails_7_1.gemfile.lock +1 -1
- data/gemfiles/rails_master.gemfile.lock +1 -1
- data/lib/rbexy/rails/engine.rb +25 -0
- data/lib/rbexy/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: b3da8ac01ae3a56e74a7544bd0f2ddcbeb0e5f644536e680d23d45d97c5684e5
|
4
|
+
data.tar.gz: 5fba4e0a212271ef2addca3627e5c813634ef10d50d79f6033f920f8627b917b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adfc2045a5026740efa9698a5860e136e144737842e8684358989998cc3986a45be6c2d8364b1b4ea9651fe68861ac5c3d060e5b4f9fed5579802f3a5c892092
|
7
|
+
data.tar.gz: f7bdc57ad69ba14b679ff8b0a7fbbe175a3cf99b076203496f930c068b0254f62e7c66e09976923cca01184ed8616ac39886698a7e3a7418ad80e9a0d56bdde7
|
data/Gemfile.lock
CHANGED
data/docker-compose.yml
CHANGED
data/lib/rbexy/rails/engine.rb
CHANGED
@@ -1,6 +1,31 @@
|
|
1
1
|
require "rbexy/rails"
|
2
2
|
require "action_view/dependency_tracker"
|
3
3
|
|
4
|
+
# Rails 7.1 implements development-mode template caching in a way that only works with view paths registered as
|
5
|
+
# strings with `prepend_view_path`. Since we register our view paths as `ComponentTemplateResolver` instances (which
|
6
|
+
# are subclasses of Rails `FileSytemResolver`), we have to monkey-patch Rails to make it think our custom resolvers
|
7
|
+
# are file system resolvers and thus should be supported by its caching mechanism.
|
8
|
+
if ActionView.version >= Gem::Version.new("7.1")
|
9
|
+
require "action_view/path_registry"
|
10
|
+
module ActionView
|
11
|
+
module PathRegistry
|
12
|
+
class << self
|
13
|
+
alias_method :_original_cast_file_system_resolvers, :cast_file_system_resolvers
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.cast_file_system_resolvers(paths)
|
17
|
+
Array(paths).each do |path|
|
18
|
+
next unless path.is_a?(Rbexy::Rails::ComponentTemplateResolver)
|
19
|
+
@file_system_resolvers[path] ||= path
|
20
|
+
file_system_resolver_hooks.each(&:call)
|
21
|
+
end
|
22
|
+
|
23
|
+
_original_cast_file_system_resolvers(paths)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
4
29
|
module Rbexy
|
5
30
|
module Rails
|
6
31
|
class Engine < ::Rails::Engine
|
data/lib/rbexy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbexy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.rc4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Giancola
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|