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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8965369603ff672e9fa4866d1dccfa533fbd3fda20362b728c28e5efbf94098
4
- data.tar.gz: d48876c922b6baaf18fab9417e3bbe6c3df4082635ef407658a21c974da1e10a
3
+ metadata.gz: abbd7bd9fa4b32a961acc3c7181a965999df2a28f22e59d954bcf17e0b299206
4
+ data.tar.gz: 8ca2df3626696af1991f7f2f943fec20b99fb3ce165c516efaefee483a10250d
5
5
  SHA512:
6
- metadata.gz: 80b066b5d51595a840f40e9f112b01892b3092d2409af89f9b46ea8e959de348002c948162c3e0dc28e7646f2fd59deab782358e408773948fed321c9332bfb6
7
- data.tar.gz: cc5de76de65997196951309b4e6ac1eed3cb2c922c1db9bbc83ad43290a7df7a5bdeb7c6a431cd17b2a80bea8f6359a0e3ae5b3aa7f472e96a24cda3d599ad49
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('data')
30
+ create_directory('storage')
31
31
  create_directory('public')
32
32
  create_directory('spec')
33
33
  create_directory('config')
@@ -23,3 +23,5 @@ yarn-debug.log*
23
23
  .yarn-integrity
24
24
 
25
25
  .DS_Store
26
+
27
+ storage
@@ -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.52.0'
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.10.0'
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
- write_lock = Isomorfeus.zeitwerk_lock.try_write_lock
15
- if write_lock
16
- Isomorfeus.zeitwerk.reload
17
- Isomorfeus.zeitwerk_lock.release_write_lock
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-data'
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: locale }, 'ssr.js', skip_ssr: skip_ssr)
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: locale }.merge(r.params)
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 })
@@ -1,3 +1,3 @@
1
1
  module Isomorfeus
2
- VERSION = '2.0.22'
2
+ VERSION = '2.2.1'
3
3
  end
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.0.22
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-12 00:00:00.000000000 Z
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.4.9
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.4.9
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.9
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.9
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.31
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.31
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.15
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.15
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.0.22
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.0.22
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.0.22
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.0.22
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.0.22
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.0.22
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.0.22
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.0.22
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.0.22
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.0.22
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.0.22
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.0.22
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.10.0
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.10.0
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: