isomorfeus 2.5.5 → 22.9.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isomorfeus/cli.rb +1 -1
- data/lib/isomorfeus/console.rb +1 -0
- data/lib/isomorfeus/installer/gemfile.rb +1 -1
- data/lib/isomorfeus/installer/rack_servers.rb +1 -1
- data/lib/isomorfeus/installer/templates/Gemfile.erb +5 -5
- data/lib/isomorfeus/installer/templates/anonymous_policy.rb.erb +1 -1
- data/lib/isomorfeus/installer/templates/config.ru.erb +6 -4
- data/lib/isomorfeus/installer/templates/hello_component.rb.erb +1 -1
- data/lib/isomorfeus/installer/templates/iodine.rb.erb +2 -2
- data/lib/isomorfeus/installer/templates/isomorfeus_loader.rb.erb +2 -2
- data/lib/isomorfeus/installer/templates/my_app.rb.erb +5 -5
- data/lib/isomorfeus/installer/templates/navigation_links.rb.erb +1 -1
- data/lib/isomorfeus/installer/templates/not_found_404_component.rb.erb +1 -1
- data/lib/isomorfeus/installer/templates/roda_app.rb.erb +4 -4
- data/lib/isomorfeus/installer/templates/spec_helper.rb.erb +1 -0
- data/lib/isomorfeus/installer/templates/web.mustache.erb +1 -1
- data/lib/isomorfeus/installer/templates/welcome_component.rb.erb +1 -1
- data/lib/isomorfeus/version.rb +1 -1
- metadata +36 -50
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd9c70d0fb0cd592726a1bc0a4972ff42f3a690e39244a99f46f136201ffd56c
|
4
|
+
data.tar.gz: 1462c60c3b8f571bc850b624836bc66265a9cae30bb1bc5d0524fc4635c83ac9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdd6424a6341d4512bf8bf7b16d9d4c18d0f598a0efc3287a288c96b52cd559b8e05a072b95f088d2e31293548e1dcd1755f273bdd628a38c840a3ff2a6b99e0
|
7
|
+
data.tar.gz: 27a7b1a5adbfa0369691f16b709005aa7ddd79ba0b5b646c67bed67d147ab5b50e64dee86517351eb7d41f70522c439a10dd7aa119f1a05ca06b83e30ffce986
|
data/lib/isomorfeus/cli.rb
CHANGED
@@ -70,7 +70,7 @@ DESC
|
|
70
70
|
output = "isomorfeus command version #{Isomorfeus::VERSION}\nProject gem versions:\n"
|
71
71
|
%w[isomorfeus-asset-manager isomorfeus-ferret isomorfeus-redux isomorfeus-preact
|
72
72
|
isomorfeus-puppetmaster isomorfeus-speednode isomorfeus-data isomorfeus-i18n isomorfeus-mailer
|
73
|
-
isomorfeus-operation isomorfeus-policy isomorfeus-transport isomorfeus
|
73
|
+
isomorfeus-operation isomorfeus-policy isomorfeus-transport isomorfeus-iodine isomorfeus opal-zeitwerk opal].each do |gem|
|
74
74
|
o = `bundle info #{gem} 2>&1`
|
75
75
|
o.each_line do |line|
|
76
76
|
output << line if line.include?('*') && line.include?(gem)
|
data/lib/isomorfeus/console.rb
CHANGED
@@ -23,7 +23,7 @@ module Isomorfeus
|
|
23
23
|
|
24
24
|
if Isomorfeus::Installer.project_name == 'test_app'
|
25
25
|
gem_lines = ''
|
26
|
-
%i[isomorfeus isomorfeus-data isomorfeus-empowerment isomorfeus-i18n isomorfeus-mailer isomorfeus-operation isomorfeus-policy isomorfeus-transport].each do |i_module|
|
26
|
+
%i[isomorfeus isomorfeus-data isomorfeus-empowerment isomorfeus-i18n isomorfeus-mailer isomorfeus-operation isomorfeus-policy isomorfeus-preact isomorfeus-redux isomorfeus-transport].each do |i_module|
|
27
27
|
gem_lines << "gem '#{i_module}', path: #{Isomorfeus::Installer.isomorfeus_module == i_module ? "'..'\n" : "'../../#{i_module}'"}\n"
|
28
28
|
end
|
29
29
|
data_hash[:isomorfeus_gems] = gem_lines.chop
|
@@ -4,17 +4,17 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
4
4
|
gem 'wdm', '>= 0.1.1' if Gem.win_platform?
|
5
5
|
gem 'concurrent-ruby-ext'
|
6
6
|
<%= rack_server_gems %>
|
7
|
-
gem 'roda', '~> 3.
|
8
|
-
gem 'opal', '~> 1.5.
|
7
|
+
gem 'roda', '~> 3.60.0'
|
8
|
+
gem 'opal', '~> 1.5.1'
|
9
9
|
|
10
10
|
<%= isomorfeus_gems %>
|
11
11
|
|
12
12
|
group :development do
|
13
|
-
gem 'debase', '0.2.5.beta2'
|
14
|
-
gem 'ruby-debug-ide', '0.7.3'
|
13
|
+
# gem 'debase', '0.2.5.beta2'
|
14
|
+
# gem 'ruby-debug-ide', '0.7.3'
|
15
15
|
end
|
16
16
|
|
17
17
|
group :test do
|
18
18
|
gem 'rspec', '~> 3.11.0'
|
19
|
-
gem 'isomorfeus-puppetmaster', '~> 0.
|
19
|
+
gem 'isomorfeus-puppetmaster', '~> 0.8.0'
|
20
20
|
end
|
@@ -1,9 +1,11 @@
|
|
1
1
|
require_relative 'app_loader'
|
2
2
|
|
3
|
-
if Isomorfeus.development?
|
4
|
-
|
5
|
-
|
6
|
-
end
|
3
|
+
# if Isomorfeus.development?
|
4
|
+
# require 'ruby-debug-ide'
|
5
|
+
# Debugger.start_server
|
6
|
+
# end
|
7
|
+
|
8
|
+
Isomorfeus.init_store
|
7
9
|
|
8
10
|
if !Isomorfeus.development?
|
9
11
|
Isomorfeus.zeitwerk.setup
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'etc'
|
2
|
-
Iodine.threads = ENV['THREADS'] ? ENV['THREADS'].to_i :
|
3
|
-
Iodine.workers = ENV['WORKERS'] ? ENV['WORKERS'].to_i :
|
2
|
+
Iodine.threads = ENV['THREADS'] ? ENV['THREADS'].to_i : Etc.nprocessors * 2
|
3
|
+
Iodine.workers = ENV['WORKERS'] ? ENV['WORKERS'].to_i : 1
|
4
4
|
Iodine::DEFAULT_SETTINGS[:address] = '127.0.0.1' if Gem.win_platform?
|
5
5
|
Iodine.patch_rack
|
@@ -1,9 +1,9 @@
|
|
1
1
|
require 'opal'
|
2
|
-
require 'isomorfeus-redux'
|
3
2
|
require 'isomorfeus-transport'
|
4
|
-
require 'isomorfeus-
|
3
|
+
require 'isomorfeus-redux'
|
5
4
|
require 'isomorfeus-i18n'
|
6
5
|
require 'isomorfeus-preact'
|
6
|
+
require 'isomorfeus-policy'
|
7
7
|
require 'isomorfeus-data'
|
8
8
|
require 'isomorfeus-operation'
|
9
9
|
require 'isomorfeus-empowerment'
|
@@ -1,10 +1,10 @@
|
|
1
|
-
class <%= app_class %> < LucidApp
|
1
|
+
class <%= app_class %> < LucidApp
|
2
2
|
render do
|
3
|
-
Router
|
3
|
+
Router do
|
4
4
|
Switch do
|
5
|
-
Route(path: '/', component: HelloComponent
|
6
|
-
Route(path: '/welcome', component: WelcomeComponent
|
7
|
-
Route(component: NotFound404Component
|
5
|
+
Route(path: '/', component: HelloComponent)
|
6
|
+
Route(path: '/welcome', component: WelcomeComponent)
|
7
|
+
Route(component: NotFound404Component)
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
@@ -2,8 +2,8 @@ Isomorfeus.load_configuration(File.expand_path(File.join(__dir__, '..', '..', 'c
|
|
2
2
|
|
3
3
|
class <%= roda_app_class %> < Roda
|
4
4
|
extend Isomorfeus::Transport::Middlewares
|
5
|
-
include
|
6
|
-
include
|
5
|
+
include Preact::ViewHelper
|
6
|
+
include LucidI18nMixin
|
7
7
|
|
8
8
|
use_isomorfeus_middlewares
|
9
9
|
|
@@ -19,7 +19,7 @@ class <%= roda_app_class %> < Roda
|
|
19
19
|
else
|
20
20
|
skip_ssr = false
|
21
21
|
end
|
22
|
-
mount_component('<%= app_class %>', { location_host: env['HTTP_HOST'], location: location, locale: current_locale },
|
22
|
+
mount_component('<%= app_class %>', { location_host: env['HTTP_HOST'], location: location, locale: current_locale }, skip_ssr: skip_ssr)
|
23
23
|
end
|
24
24
|
|
25
25
|
def render(template_name, locals: {})
|
@@ -53,7 +53,7 @@ class <%= roda_app_class %> < Roda
|
|
53
53
|
r.on 'mail_preview', String do |component_name|
|
54
54
|
component_class = component_name.camelize
|
55
55
|
props = { location_host: env['HTTP_HOST'], location: '/mail_preview', locale: current_locale }.merge(r.params)
|
56
|
-
content = mount_component(component_class, props
|
56
|
+
content = mount_component(component_class, props)
|
57
57
|
response.status = ssr_response_status
|
58
58
|
render('mail_preview', locals: { content: content, component_class: component_class, ssr_styles: ssr_styles })
|
59
59
|
end
|
@@ -8,6 +8,7 @@ require_relative '../app/server/<%= roda_app_path %>'
|
|
8
8
|
|
9
9
|
Isomorfeus.zeitwerk.setup
|
10
10
|
Isomorfeus.zeitwerk.eager_load
|
11
|
+
Isomorfeus.init_store
|
11
12
|
|
12
13
|
Isomorfeus::Puppetmaster.download_path = File.join(Dir.pwd, 'download_path_tmp')
|
13
14
|
Isomorfeus::Puppetmaster.app = <%= roda_app_class %>
|
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:
|
4
|
+
version: 22.9.0.rc1
|
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-
|
11
|
+
date: 2022-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,56 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 7.0.
|
19
|
+
version: 7.0.3
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 7.0.
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: bundler
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 2.3.9
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 2.3.9
|
26
|
+
version: 7.0.3
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: oj
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
31
|
- - "~>"
|
46
32
|
- !ruby/object:Gem::Version
|
47
|
-
version: 3.13.
|
33
|
+
version: 3.13.21
|
48
34
|
type: :runtime
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
38
|
- - "~>"
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version: 3.13.
|
40
|
+
version: 3.13.21
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: thor
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
|
-
- - "
|
45
|
+
- - "~>"
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
47
|
+
version: 1.2.1
|
62
48
|
type: :runtime
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
|
-
- - "
|
52
|
+
- - "~>"
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
54
|
+
version: 1.2.1
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: isomorfeus-speednode
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,140 +72,140 @@ dependencies:
|
|
86
72
|
requirements:
|
87
73
|
- - "~>"
|
88
74
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
75
|
+
version: 0.15.1
|
90
76
|
type: :runtime
|
91
77
|
prerelease: false
|
92
78
|
version_requirements: !ruby/object:Gem::Requirement
|
93
79
|
requirements:
|
94
80
|
- - "~>"
|
95
81
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
82
|
+
version: 0.15.1
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: isomorfeus-preact
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
|
-
- -
|
87
|
+
- - '='
|
102
88
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
89
|
+
version: 22.9.0.rc1
|
104
90
|
type: :runtime
|
105
91
|
prerelease: false
|
106
92
|
version_requirements: !ruby/object:Gem::Requirement
|
107
93
|
requirements:
|
108
|
-
- -
|
94
|
+
- - '='
|
109
95
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
96
|
+
version: 22.9.0.rc1
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: isomorfeus-redux
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
114
100
|
requirements:
|
115
|
-
- -
|
101
|
+
- - '='
|
116
102
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
103
|
+
version: 22.9.0.rc1
|
118
104
|
type: :runtime
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
107
|
requirements:
|
122
|
-
- -
|
108
|
+
- - '='
|
123
109
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
110
|
+
version: 22.9.0.rc1
|
125
111
|
- !ruby/object:Gem::Dependency
|
126
112
|
name: isomorfeus-policy
|
127
113
|
requirement: !ruby/object:Gem::Requirement
|
128
114
|
requirements:
|
129
115
|
- - '='
|
130
116
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
117
|
+
version: 22.9.0.rc1
|
132
118
|
type: :runtime
|
133
119
|
prerelease: false
|
134
120
|
version_requirements: !ruby/object:Gem::Requirement
|
135
121
|
requirements:
|
136
122
|
- - '='
|
137
123
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
124
|
+
version: 22.9.0.rc1
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: isomorfeus-transport
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
142
128
|
requirements:
|
143
129
|
- - '='
|
144
130
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
131
|
+
version: 22.9.0.rc1
|
146
132
|
type: :runtime
|
147
133
|
prerelease: false
|
148
134
|
version_requirements: !ruby/object:Gem::Requirement
|
149
135
|
requirements:
|
150
136
|
- - '='
|
151
137
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
138
|
+
version: 22.9.0.rc1
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
140
|
name: isomorfeus-data
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
156
142
|
requirements:
|
157
143
|
- - '='
|
158
144
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
145
|
+
version: 22.9.0.rc1
|
160
146
|
type: :runtime
|
161
147
|
prerelease: false
|
162
148
|
version_requirements: !ruby/object:Gem::Requirement
|
163
149
|
requirements:
|
164
150
|
- - '='
|
165
151
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
152
|
+
version: 22.9.0.rc1
|
167
153
|
- !ruby/object:Gem::Dependency
|
168
154
|
name: isomorfeus-i18n
|
169
155
|
requirement: !ruby/object:Gem::Requirement
|
170
156
|
requirements:
|
171
157
|
- - '='
|
172
158
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
159
|
+
version: 22.9.0.rc1
|
174
160
|
type: :runtime
|
175
161
|
prerelease: false
|
176
162
|
version_requirements: !ruby/object:Gem::Requirement
|
177
163
|
requirements:
|
178
164
|
- - '='
|
179
165
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
166
|
+
version: 22.9.0.rc1
|
181
167
|
- !ruby/object:Gem::Dependency
|
182
168
|
name: isomorfeus-operation
|
183
169
|
requirement: !ruby/object:Gem::Requirement
|
184
170
|
requirements:
|
185
171
|
- - '='
|
186
172
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
173
|
+
version: 22.9.0.rc1
|
188
174
|
type: :runtime
|
189
175
|
prerelease: false
|
190
176
|
version_requirements: !ruby/object:Gem::Requirement
|
191
177
|
requirements:
|
192
178
|
- - '='
|
193
179
|
- !ruby/object:Gem::Version
|
194
|
-
version:
|
180
|
+
version: 22.9.0.rc1
|
195
181
|
- !ruby/object:Gem::Dependency
|
196
182
|
name: isomorfeus-empowerment
|
197
183
|
requirement: !ruby/object:Gem::Requirement
|
198
184
|
requirements:
|
199
185
|
- - '='
|
200
186
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
187
|
+
version: 22.9.0.rc1
|
202
188
|
type: :runtime
|
203
189
|
prerelease: false
|
204
190
|
version_requirements: !ruby/object:Gem::Requirement
|
205
191
|
requirements:
|
206
192
|
- - '='
|
207
193
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
194
|
+
version: 22.9.0.rc1
|
209
195
|
- !ruby/object:Gem::Dependency
|
210
196
|
name: isomorfeus-mailer
|
211
197
|
requirement: !ruby/object:Gem::Requirement
|
212
198
|
requirements:
|
213
199
|
- - '='
|
214
200
|
- !ruby/object:Gem::Version
|
215
|
-
version:
|
201
|
+
version: 22.9.0.rc1
|
216
202
|
type: :runtime
|
217
203
|
prerelease: false
|
218
204
|
version_requirements: !ruby/object:Gem::Requirement
|
219
205
|
requirements:
|
220
206
|
- - '='
|
221
207
|
- !ruby/object:Gem::Version
|
222
|
-
version:
|
208
|
+
version: 22.9.0.rc1
|
223
209
|
- !ruby/object:Gem::Dependency
|
224
210
|
name: bundler
|
225
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -327,9 +313,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
327
313
|
version: '0'
|
328
314
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
329
315
|
requirements:
|
330
|
-
- - "
|
316
|
+
- - ">"
|
331
317
|
- !ruby/object:Gem::Version
|
332
|
-
version:
|
318
|
+
version: 1.3.1
|
333
319
|
requirements: []
|
334
320
|
rubygems_version: 3.3.7
|
335
321
|
signing_key:
|