isomorfeus 2.0.22 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isomorfeus/installer/dsl.rb +1 -1
- data/lib/isomorfeus/installer/templates/.gitignore.erb +2 -0
- data/lib/isomorfeus/installer/templates/Gemfile.erb +2 -2
- data/lib/isomorfeus/installer/templates/config.ru.erb +7 -4
- data/lib/isomorfeus/installer/templates/isomorfeus_loader.rb.erb +3 -3
- data/lib/isomorfeus/installer/templates/roda_app.rb.erb +4 -9
- data/lib/isomorfeus/version.rb +1 -1
- metadata +24 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abbd7bd9fa4b32a961acc3c7181a965999df2a28f22e59d954bcf17e0b299206
|
4
|
+
data.tar.gz: 8ca2df3626696af1991f7f2f943fec20b99fb3ce165c516efaefee483a10250d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f30a4f7dee80f7abedf628df89072380abd0b6c5fb98551d350f3c57b57149abc300e10536bc1c6c0babf6f966923c080b8f174a4f4f798da207f1019f34103e
|
7
|
+
data.tar.gz: 93c949b0fdb14d363d511d56d945110ba743561852b4205ee586c93ab1330da69240addc9146e39c631d805458187ef54104be572a12a09fa19d16f067f581bb
|
@@ -27,7 +27,7 @@ module Isomorfeus
|
|
27
27
|
%w[channels components data layouts locales mail_components operations policies server].each do |isomorfeus_dir|
|
28
28
|
create_directory(File.join('app', isomorfeus_dir))
|
29
29
|
end
|
30
|
-
create_directory('
|
30
|
+
create_directory('storage')
|
31
31
|
create_directory('public')
|
32
32
|
create_directory('spec')
|
33
33
|
create_directory('config')
|
@@ -3,7 +3,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
3
3
|
|
4
4
|
gem 'wdm', '>= 0.1.1' if Gem.win_platform?
|
5
5
|
<%= rack_server_gems %>
|
6
|
-
gem 'roda', '~> 3.
|
6
|
+
gem 'roda', '~> 3.53.0'
|
7
7
|
gem 'opal', '~> 1.4.1'
|
8
8
|
|
9
9
|
<%= isomorfeus_gems %>
|
@@ -15,6 +15,6 @@ group :development do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
group :test do
|
18
|
-
gem 'rspec', '~> 3.
|
18
|
+
gem 'rspec', '~> 3.11.0'
|
19
19
|
gem 'isomorfeus-puppetmaster', '~> 0.6.5'
|
20
20
|
end
|
@@ -11,10 +11,13 @@ else
|
|
11
11
|
Isomorfeus.zeitwerk.eager_load
|
12
12
|
|
13
13
|
run ->(env) do
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
if Isomorfeus.server_requires_reload?
|
15
|
+
write_lock = Isomorfeus.zeitwerk_lock.try_write_lock
|
16
|
+
if write_lock
|
17
|
+
Isomorfeus.server_reloaded!
|
18
|
+
Isomorfeus.zeitwerk.reload
|
19
|
+
Isomorfeus.zeitwerk_lock.release_write_lock
|
20
|
+
end
|
18
21
|
end
|
19
22
|
Isomorfeus.zeitwerk_lock.with_read_lock do
|
20
23
|
<%= roda_app_class %>.call env
|
@@ -1,10 +1,10 @@
|
|
1
1
|
require 'opal'
|
2
2
|
require 'isomorfeus-redux'
|
3
|
-
require 'isomorfeus-preact'
|
4
|
-
require 'isomorfeus-policy'
|
5
3
|
require 'isomorfeus-transport'
|
6
|
-
require 'isomorfeus-
|
4
|
+
require 'isomorfeus-policy'
|
7
5
|
require 'isomorfeus-i18n'
|
6
|
+
require 'isomorfeus-preact'
|
7
|
+
require 'isomorfeus-data'
|
8
8
|
require 'isomorfeus-operation'
|
9
9
|
|
10
10
|
require_tree 'policies', autoload: true
|
@@ -3,20 +3,15 @@ Isomorfeus.load_configuration(File.expand_path(File.join(__dir__, '..', '..', 'c
|
|
3
3
|
class <%= roda_app_class %> < Roda
|
4
4
|
extend Isomorfeus::Transport::Middlewares
|
5
5
|
include Isomorfeus::PreactViewHelper
|
6
|
+
include LucidI18n::Mixin
|
6
7
|
|
7
8
|
use_isomorfeus_middlewares
|
8
9
|
|
9
|
-
plugin :public, root: 'public', gzip: true
|
10
|
+
plugin :public, root: 'public', gzip: true, brotli: true
|
10
11
|
|
11
12
|
@@templates = {}
|
12
13
|
@@templates_path = File.expand_path(File.join(__dir__, '..', 'layouts'))
|
13
14
|
|
14
|
-
def locale
|
15
|
-
env.http_accept_language.preferred_language_from(Isomorfeus.available_locales) ||
|
16
|
-
env.http_accept_language.compatible_language_from(Isomorfeus.available_locales) ||
|
17
|
-
Isomorfeus.locale
|
18
|
-
end
|
19
|
-
|
20
15
|
def page_content(env, location)
|
21
16
|
if Isomorfeus.development?
|
22
17
|
req = Rack::Request.new(env)
|
@@ -24,7 +19,7 @@ class <%= roda_app_class %> < Roda
|
|
24
19
|
else
|
25
20
|
skip_ssr = false
|
26
21
|
end
|
27
|
-
mount_component('<%= app_class %>', { location_host: env['HTTP_HOST'], location: location, locale:
|
22
|
+
mount_component('<%= app_class %>', { location_host: env['HTTP_HOST'], location: location, locale: current_locale }, 'ssr.js', skip_ssr: skip_ssr)
|
28
23
|
end
|
29
24
|
|
30
25
|
def render(template_name, locals: {})
|
@@ -57,7 +52,7 @@ class <%= roda_app_class %> < Roda
|
|
57
52
|
unless Isomorfeus.production?
|
58
53
|
r.on 'mail_preview', String do |component_name|
|
59
54
|
component_class = component_name.camelize
|
60
|
-
props = { location_host: env['HTTP_HOST'], location: '/mail_preview', locale:
|
55
|
+
props = { location_host: env['HTTP_HOST'], location: '/mail_preview', locale: current_locale }.merge(r.params)
|
61
56
|
content = mount_component(component_class, props, 'mail_components.js')
|
62
57
|
response.status = ssr_response_status
|
63
58
|
render('mail_preview', locals: { content: content, component_class: component_class, ssr_styles: ssr_styles })
|
data/lib/isomorfeus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isomorfeus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -86,140 +86,140 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.5.2
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: 0.5.2
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: isomorfeus-asset-manager
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.14.
|
103
|
+
version: 0.14.17
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.14.
|
110
|
+
version: 0.14.17
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: isomorfeus-preact
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 10.6.
|
117
|
+
version: 10.6.40
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 10.6.
|
124
|
+
version: 10.6.40
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: isomorfeus-redux
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 4.1.
|
131
|
+
version: 4.1.18
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 4.1.
|
138
|
+
version: 4.1.18
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: isomorfeus-policy
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - '='
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 2.
|
145
|
+
version: 2.2.1
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - '='
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 2.
|
152
|
+
version: 2.2.1
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: isomorfeus-transport
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - '='
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 2.
|
159
|
+
version: 2.2.1
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - '='
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 2.
|
166
|
+
version: 2.2.1
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: isomorfeus-data
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - '='
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 2.
|
173
|
+
version: 2.2.1
|
174
174
|
type: :runtime
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - '='
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 2.
|
180
|
+
version: 2.2.1
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: isomorfeus-i18n
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
185
|
- - '='
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: 2.
|
187
|
+
version: 2.2.1
|
188
188
|
type: :runtime
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - '='
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: 2.
|
194
|
+
version: 2.2.1
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: isomorfeus-operation
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
199
|
- - '='
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version: 2.
|
201
|
+
version: 2.2.1
|
202
202
|
type: :runtime
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
206
|
- - '='
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version: 2.
|
208
|
+
version: 2.2.1
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
210
|
name: isomorfeus-mailer
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
213
|
- - '='
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: 2.
|
215
|
+
version: 2.2.1
|
216
216
|
type: :runtime
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - '='
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: 2.
|
222
|
+
version: 2.2.1
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: bundler
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
@@ -254,14 +254,14 @@ dependencies:
|
|
254
254
|
requirements:
|
255
255
|
- - "~>"
|
256
256
|
- !ruby/object:Gem::Version
|
257
|
-
version: 3.
|
257
|
+
version: 3.11.0
|
258
258
|
type: :development
|
259
259
|
prerelease: false
|
260
260
|
version_requirements: !ruby/object:Gem::Requirement
|
261
261
|
requirements:
|
262
262
|
- - "~>"
|
263
263
|
- !ruby/object:Gem::Version
|
264
|
-
version: 3.
|
264
|
+
version: 3.11.0
|
265
265
|
description: Command line utilities and installer for isomorfeus projects.
|
266
266
|
email: jan@kursator.de
|
267
267
|
executables:
|