rbexy 2.0.0.rc1 → 2.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +7 -7
- data/Gemfile.lock +4 -1
- data/gemfiles/rails_6_1.gemfile.lock +4 -1
- data/gemfiles/rails_7_0.gemfile.lock +4 -1
- data/gemfiles/rails_master.gemfile.lock +4 -1
- data/lib/rbexy/rails/component_template_resolver.rb +15 -3
- data/lib/rbexy/version.rb +1 -1
- data/rbexy.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d6d0a821b2cf642ba9a18e8d655b8fe48260656b64eb6fb22cc1b59cb673348
|
4
|
+
data.tar.gz: 5cc35ad67b89372bcfccf451badfe416c87e05b7533d5cc228c31f1c4aaf9fc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 824e3d57cccee812126e4ae671a3dde2a00b05d99413e90fb50f4f7d255c3cbd8825a8908ffb3fe004ec27a659886fa070ab120c893fff6e55317a1eaac8a284
|
7
|
+
data.tar.gz: e721e48006e70696d48cf8396ddd94827666eff27103d366af269a76ed987ec37f76f7e881fb51135f44a7fb4f4cea3d2d800051fde2fd7cde73d7e835ca385a
|
data/Appraisals
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
appraise
|
2
|
-
gem
|
3
|
-
gem
|
1
|
+
appraise "rails-6-1" do
|
2
|
+
gem "rails", "~> 6.1.4"
|
3
|
+
gem "net-smtp", require: false
|
4
4
|
end
|
5
5
|
|
6
|
-
appraise
|
7
|
-
gem
|
6
|
+
appraise "rails-7-0" do
|
7
|
+
gem "rails", "~> 7.0.0"
|
8
8
|
end
|
9
9
|
|
10
|
-
appraise
|
11
|
-
gem
|
10
|
+
appraise "rails-master" do
|
11
|
+
gem "rails", git: "https://github.com/rails/rails.git", branch: :main
|
12
12
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rbexy (2.0.0.
|
4
|
+
rbexy (2.0.0.rc2)
|
5
5
|
actionview (>= 6, < 7.1)
|
6
6
|
activesupport (>= 6, < 7.1)
|
7
7
|
|
@@ -131,6 +131,8 @@ GEM
|
|
131
131
|
pry-byebug (3.9.0)
|
132
132
|
byebug (~> 11.0)
|
133
133
|
pry (~> 0.13.0)
|
134
|
+
puma (5.6.2)
|
135
|
+
nio4r (~> 2.0)
|
134
136
|
racc (1.6.0)
|
135
137
|
rack (2.2.3)
|
136
138
|
rack-test (1.1.0)
|
@@ -214,6 +216,7 @@ DEPENDENCIES
|
|
214
216
|
guard-rspec (~> 4.7, >= 4.7.3)
|
215
217
|
memory_profiler (~> 0.9.14)
|
216
218
|
pry-byebug
|
219
|
+
puma
|
217
220
|
rails (>= 6, < 7.1)
|
218
221
|
rake
|
219
222
|
rbexy!
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
rbexy (2.0.0.
|
4
|
+
rbexy (2.0.0.rc2)
|
5
5
|
actionview (>= 6, < 7.1)
|
6
6
|
activesupport (>= 6, < 7.1)
|
7
7
|
|
@@ -134,6 +134,8 @@ GEM
|
|
134
134
|
pry-byebug (3.9.0)
|
135
135
|
byebug (~> 11.0)
|
136
136
|
pry (~> 0.13.0)
|
137
|
+
puma (5.6.2)
|
138
|
+
nio4r (~> 2.0)
|
137
139
|
racc (1.6.0)
|
138
140
|
rack (2.2.3)
|
139
141
|
rack-test (1.1.0)
|
@@ -219,6 +221,7 @@ DEPENDENCIES
|
|
219
221
|
memory_profiler (~> 0.9.14)
|
220
222
|
net-smtp
|
221
223
|
pry-byebug
|
224
|
+
puma
|
222
225
|
rails (~> 6.1.4)
|
223
226
|
rake
|
224
227
|
rbexy!
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
rbexy (2.0.0.
|
4
|
+
rbexy (2.0.0.rc2)
|
5
5
|
actionview (>= 6, < 7.1)
|
6
6
|
activesupport (>= 6, < 7.1)
|
7
7
|
|
@@ -148,6 +148,8 @@ GEM
|
|
148
148
|
pry-byebug (3.9.0)
|
149
149
|
byebug (~> 11.0)
|
150
150
|
pry (~> 0.13.0)
|
151
|
+
puma (5.6.2)
|
152
|
+
nio4r (~> 2.0)
|
151
153
|
racc (1.6.0)
|
152
154
|
rack (2.2.3)
|
153
155
|
rack-test (1.1.0)
|
@@ -233,6 +235,7 @@ DEPENDENCIES
|
|
233
235
|
guard-rspec (~> 4.7, >= 4.7.3)
|
234
236
|
memory_profiler (~> 0.9.14)
|
235
237
|
pry-byebug
|
238
|
+
puma
|
236
239
|
rails (~> 7.0.0)
|
237
240
|
rake
|
238
241
|
rbexy!
|
@@ -93,7 +93,7 @@ GIT
|
|
93
93
|
PATH
|
94
94
|
remote: ..
|
95
95
|
specs:
|
96
|
-
rbexy (2.0.0.
|
96
|
+
rbexy (2.0.0.rc2)
|
97
97
|
actionview (>= 6, < 7.1)
|
98
98
|
activesupport (>= 6, < 7.1)
|
99
99
|
|
@@ -175,6 +175,8 @@ GEM
|
|
175
175
|
pry-byebug (3.9.0)
|
176
176
|
byebug (~> 11.0)
|
177
177
|
pry (~> 0.13.0)
|
178
|
+
puma (5.6.2)
|
179
|
+
nio4r (~> 2.0)
|
178
180
|
racc (1.6.0)
|
179
181
|
rack (2.2.3)
|
180
182
|
rack-test (1.1.0)
|
@@ -239,6 +241,7 @@ DEPENDENCIES
|
|
239
241
|
guard-rspec (~> 4.7, >= 4.7.3)
|
240
242
|
memory_profiler (~> 0.9.14)
|
241
243
|
pry-byebug
|
244
|
+
puma
|
242
245
|
rails!
|
243
246
|
rake
|
244
247
|
rbexy!
|
@@ -10,9 +10,21 @@ module Rbexy
|
|
10
10
|
slim: "/ %s"
|
11
11
|
}
|
12
12
|
|
13
|
-
# Rails 6
|
14
|
-
|
15
|
-
|
13
|
+
# Rails 6 and 7 require us to override `_find_all` in order to hook
|
14
|
+
if ActionView.version >= Gem::Version.new("7.0.0")
|
15
|
+
# Rails 7 implements caching internally to _find_all
|
16
|
+
def _find_all(name, prefix, partial, details, key, locals)
|
17
|
+
cache = key ? @unbound_templates : Concurrent::Map.new
|
18
|
+
|
19
|
+
cache.compute_if_absent(ActionView::TemplatePath.virtual(name, prefix, partial)) do
|
20
|
+
find_templates(name, prefix, partial, details, locals)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
else
|
24
|
+
# Rails 6 implements caching at the call-site (find_all)
|
25
|
+
def _find_all(name, prefix, partial, details, key, locals)
|
26
|
+
find_templates(name, prefix, partial, details, locals)
|
27
|
+
end
|
16
28
|
end
|
17
29
|
|
18
30
|
# Rails 5 only requires `find_templates` (which tbh is the proper way
|
data/lib/rbexy/version.rb
CHANGED
data/rbexy.gemspec
CHANGED
@@ -38,5 +38,6 @@ Gem::Specification.new do |spec|
|
|
38
38
|
spec.add_development_dependency "rake"
|
39
39
|
spec.add_development_dependency "pry-byebug"
|
40
40
|
spec.add_development_dependency "sqlite3"
|
41
|
+
spec.add_development_dependency "puma"
|
41
42
|
spec.add_development_dependency "memory_profiler", "~> 0.9.14"
|
42
43
|
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.
|
4
|
+
version: 2.0.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Giancola
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -214,6 +214,20 @@ dependencies:
|
|
214
214
|
- - ">="
|
215
215
|
- !ruby/object:Gem::Version
|
216
216
|
version: '0'
|
217
|
+
- !ruby/object:Gem::Dependency
|
218
|
+
name: puma
|
219
|
+
requirement: !ruby/object:Gem::Requirement
|
220
|
+
requirements:
|
221
|
+
- - ">="
|
222
|
+
- !ruby/object:Gem::Version
|
223
|
+
version: '0'
|
224
|
+
type: :development
|
225
|
+
prerelease: false
|
226
|
+
version_requirements: !ruby/object:Gem::Requirement
|
227
|
+
requirements:
|
228
|
+
- - ">="
|
229
|
+
- !ruby/object:Gem::Version
|
230
|
+
version: '0'
|
217
231
|
- !ruby/object:Gem::Dependency
|
218
232
|
name: memory_profiler
|
219
233
|
requirement: !ruby/object:Gem::Requirement
|