isomorfeus 2.5.5 → 22.9.0.rc2

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: ca0cd0dffa23dee02a4ab568278edd6793e5b7896dfcebbce28f40ca0afebae8
4
- data.tar.gz: 652b8b0a8f127aee472d87b15801126edb9f203d5454323a5aaac5fbf461dd8a
3
+ metadata.gz: 48b6b5f5408e0714e304220af148c5cb896b31ae6dd4ce93b89e143ad7310bff
4
+ data.tar.gz: e29dafc99d5d85c7ac8b923a2edf01bd397152bb019c3ca64336fb831204542b
5
5
  SHA512:
6
- metadata.gz: 012412b393fffec64201ff5fd30d8593be3cc2b0d156f4e557b9ab5e5eaa4b15746ce4929c17be10842ee4e04a4522b8c91503cb27bfaa4f4328b1b4e7ce48f1
7
- data.tar.gz: 8e66ce47d996bbba5d4afc3ff44f5db0045a21b60f04ed628c7375db64b4d2e7e0bc5186e5b6809742c8db416245d1a653e7b2b1c411e4b8694a3c7ebe652523
6
+ metadata.gz: 36bb98408af5144079137de104d1f4e0560fbdb9fbb6238a112e347456e253b51ed01d5ba712819e0e378c4a0ef25df197fd7433ac9c313f8f02c87702483764
7
+ data.tar.gz: e132b74da56e7b0c77d39e96984fc47b1369976718b6dd8c85e257eedcd2da2c1a8735f6a13b1445a5a58d2cb36c07e3409436704646a64e4637a43c783b4858
@@ -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 iodine opal-zeitwerk opal].each do |gem|
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)
@@ -18,6 +18,7 @@ module Isomorfeus
18
18
  Isomorfeus.zeitwerk.enable_reloading
19
19
  Isomorfeus.zeitwerk.setup
20
20
  Isomorfeus.zeitwerk.eager_load
21
+ Isomorfeus.init_store
21
22
  end
22
23
 
23
24
  def run
@@ -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
@@ -1,4 +1,4 @@
1
1
  Isomorfeus::Installer.add_rack_server('isomorfeus-iodine', {
2
- gems: [{ name: 'isomorfeus-iodine', version: '~> 0.7.49', require: true }],
2
+ gems: [{ name: 'isomorfeus-iodine', version: '~> 0.8.0', require: true }],
3
3
  config_template: 'iodine.rb.erb'
4
4
  })
@@ -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.56.0'
8
- gem 'opal', '~> 1.5.0'
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.6.7'
19
+ gem 'isomorfeus-puppetmaster', '~> 0.8.0'
20
20
  end
@@ -1,3 +1,3 @@
1
- class AnonymousPolicy < LucidPolicy::Base
1
+ class AnonymousPolicy < LucidPolicy
2
2
  allow all
3
3
  end
@@ -1,9 +1,11 @@
1
1
  require_relative 'app_loader'
2
2
 
3
- if Isomorfeus.development?
4
- require 'ruby-debug-ide'
5
- Debugger.start_server
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,4 +1,4 @@
1
- class HelloComponent < LucidComponent::Base
1
+ class HelloComponent < LucidComponent
2
2
  render do
3
3
  DIV "Hello World!"
4
4
  NavigationLinks()
@@ -1,5 +1,5 @@
1
1
  require 'etc'
2
- Iodine.threads = ENV['THREADS'] ? ENV['THREADS'].to_i : 4
3
- Iodine.workers = ENV['WORKERS'] ? ENV['WORKERS'].to_i : Etc.nprocessors
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-policy'
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::Base
1
+ class <%= app_class %> < LucidApp
2
2
  render do
3
- Router(hook: Preact.location_hook(props.location)) do
3
+ Router do
4
4
  Switch do
5
- Route(path: '/', component: HelloComponent.to_js)
6
- Route(path: '/welcome', component: WelcomeComponent.to_js)
7
- Route(component: NotFound404Component.to_js)
5
+ Route(path: '/', component: HelloComponent)
6
+ Route(path: '/welcome', component: WelcomeComponent)
7
+ Route(component: NotFound404Component)
8
8
  end
9
9
  end
10
10
  end
@@ -1,4 +1,4 @@
1
- class NavigationLinks < LucidComponent::Base
1
+ class NavigationLinks < LucidComponent
2
2
  render do
3
3
  P do
4
4
  Link(to: '/') { 'Hello World!' }
@@ -1,4 +1,4 @@
1
- class NotFound404Component < LucidComponent::Base
1
+ class NotFound404Component < LucidComponent
2
2
  render do
3
3
  Isomorfeus.ssr_response_status = 404 # keep
4
4
  P "Oops, page not found!"
@@ -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 Isomorfeus::PreactViewHelper
6
- include LucidI18n::Mixin
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 }, 'ssr.js', skip_ssr: skip_ssr)
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, 'mail_components.js')
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 %>
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>{{ title }}</title>
5
- <meta charset="utf-8"/>
5
+ <meta charset="utf-8">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
7
  <style id="css-server-side" type="text/css">
8
8
  {{& ssr_styles }}
@@ -1,4 +1,4 @@
1
- class WelcomeComponent < LucidComponent::Base
1
+ class WelcomeComponent < LucidComponent
2
2
  render do
3
3
  DIV "Welcome!"
4
4
  NavigationLinks()
@@ -1,3 +1,3 @@
1
1
  module Isomorfeus
2
- VERSION = '2.5.5'
2
+ VERSION = '22.9.0.rc2'
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.5.5
4
+ version: 22.9.0.rc2
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-06-01 00:00:00.000000000 Z
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.2
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.2
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.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.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: 0.19.4
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: 0.19.4
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.14.24
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.14.24
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: 10.7.2
89
+ version: 22.9.0.rc2
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: 10.7.2
96
+ version: 22.9.0.rc2
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: 4.2.0
103
+ version: 22.9.0.rc2
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: 4.2.0
110
+ version: 22.9.0.rc2
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: 2.5.5
117
+ version: 22.9.0.rc2
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: 2.5.5
124
+ version: 22.9.0.rc2
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: 2.5.5
131
+ version: 22.9.0.rc2
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: 2.5.5
138
+ version: 22.9.0.rc2
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: 2.5.5
145
+ version: 22.9.0.rc2
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: 2.5.5
152
+ version: 22.9.0.rc2
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: 2.5.5
159
+ version: 22.9.0.rc2
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: 2.5.5
166
+ version: 22.9.0.rc2
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: 2.5.5
173
+ version: 22.9.0.rc2
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: 2.5.5
180
+ version: 22.9.0.rc2
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: 2.5.5
187
+ version: 22.9.0.rc2
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: 2.5.5
194
+ version: 22.9.0.rc2
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: 2.5.5
201
+ version: 22.9.0.rc2
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: 2.5.5
208
+ version: 22.9.0.rc2
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: '0'
318
+ version: 1.3.1
333
319
  requirements: []
334
320
  rubygems_version: 3.3.7
335
321
  signing_key: