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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4648ee133c1d84886ffbd48b25a04657d04439c30ac2ee26f809ced9deef53e8
4
- data.tar.gz: d9e27347b3418f1ccb7b5f96c744190c795298bb1877205e6065c050788479e2
3
+ metadata.gz: b3da8ac01ae3a56e74a7544bd0f2ddcbeb0e5f644536e680d23d45d97c5684e5
4
+ data.tar.gz: 5fba4e0a212271ef2addca3627e5c813634ef10d50d79f6033f920f8627b917b
5
5
  SHA512:
6
- metadata.gz: c8340f1dda3d1f09271c08c99286cb5b764436bfa3f8d68b8f0e9295130890f4068b0137c1fcf45891247fed3ca4e398523dbcdc3e20bbb7bbf1eac40d211954
7
- data.tar.gz: aefec1f0934bb8712190704d63d4e8e39d9b677890d3f87c781a2b9415f7ded0a099d3e6c37acd549736fec8f98738f58736201ad7346b75c3ebc871409337a1
6
+ metadata.gz: adfc2045a5026740efa9698a5860e136e144737842e8684358989998cc3986a45be6c2d8364b1b4ea9651fe68861ac5c3d060e5b4f9fed5579802f3a5c892092
7
+ data.tar.gz: f7bdc57ad69ba14b679ff8b0a7fbbe175a3cf99b076203496f930c068b0254f62e7c66e09976923cca01184ed8616ac39886698a7e3a7418ad80e9a0d56bdde7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rbexy (2.0.0.rc2)
4
+ rbexy (2.0.0.rc4)
5
5
  actionview (>= 6, < 7.2)
6
6
  activesupport (>= 6, < 7.2)
7
7
 
data/docker-compose.yml CHANGED
@@ -25,3 +25,5 @@ services:
25
25
  - 3000:3000
26
26
  environment:
27
27
  - RAILS_LOG_STDOUT=1
28
+ tty: true
29
+ stdin_open: true
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- rbexy (2.0.0.rc2)
4
+ rbexy (2.0.0.rc4)
5
5
  actionview (>= 6, < 7.2)
6
6
  activesupport (>= 6, < 7.2)
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- rbexy (2.0.0.rc2)
4
+ rbexy (2.0.0.rc4)
5
5
  actionview (>= 6, < 7.2)
6
6
  activesupport (>= 6, < 7.2)
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- rbexy (2.0.0.rc2)
4
+ rbexy (2.0.0.rc4)
5
5
  actionview (>= 6, < 7.2)
6
6
  activesupport (>= 6, < 7.2)
7
7
 
@@ -93,7 +93,7 @@ GIT
93
93
  PATH
94
94
  remote: ..
95
95
  specs:
96
- rbexy (2.0.0.rc2)
96
+ rbexy (2.0.0.rc4)
97
97
  actionview (>= 6, < 7.2)
98
98
  activesupport (>= 6, < 7.2)
99
99
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Rbexy
2
- VERSION = "2.0.0.rc3"
2
+ VERSION = "2.0.0.rc4"
3
3
  end
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.rc3
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-10-23 00:00:00.000000000 Z
11
+ date: 2023-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport