isomorfeus 2.0.20 → 2.1.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: 27da761f0f90f8ddf8fcefc50e34c2b2a5e8e4f170070a57efda169c7acf765d
4
- data.tar.gz: 6de0e94b3dcb2cebb51614ecbac01e28ea27db97f68e86abeac2bb1e3583482b
3
+ metadata.gz: 2a4023c13d28ee0b7dfa5f1804385eb00d877fae9756b45c3570c3d17be74b7e
4
+ data.tar.gz: 0645b6a6aaf488a0647c25057802b41056e7dc576b6fcc75271250e962623df0
5
5
  SHA512:
6
- metadata.gz: e3d8b60cb4446852a765a8665c80cd3970aa95d3c84b66440f7625fe58d351a31c5f68eb6da69f2641a8074c6033ee7b0b44beec2cfd247156dbf1952d82bfb3
7
- data.tar.gz: 674faf71eff1ae7df1e41827e0e74a198ff695b682201c3680e733e60c26de646b2ec4488628503d87d6a6767f3b7c9b5742c8db147313948ff5158538c2256d
6
+ metadata.gz: ceae5d06c704eec135dcfd98360f6907c366fd6b4fbcc38e22797d5fccd1d4c8c9a8f6983b0a38dc20d374f2059b06c64793b171c009ce74b6b113705703d18d
7
+ data.tar.gz: 46b0415e1700f9db48887d8bf01d967bce560b85f0116d67146e883c04d7b307ae11e346dd65fc2598084b77265a54da0a98e2aa85c8a72fdf4ace3cd8f62490
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Create new isomorfeus applications with ease.
4
4
 
5
5
  ### Community and Support
6
- At the [Isomorfeus Framework Project](http://isomorfeus.com)
6
+ At the [Isomorfeus Framework Project](https://isomorfeus.com)
7
7
 
8
8
  ## Installation
9
9
  ```shell script
@@ -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')
@@ -16,5 +16,5 @@ end
16
16
 
17
17
  group :test do
18
18
  gem 'rspec', '~> 3.10.0'
19
- gem 'isomorfeus-puppetmaster', '~> 0.6.4'
19
+ gem 'isomorfeus-puppetmaster', '~> 0.6.5'
20
20
  end
@@ -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,6 +3,7 @@ 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
 
@@ -11,12 +12,6 @@ class <%= roda_app_class %> < Roda
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.20'
2
+ VERSION = '2.1.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.20
4
+ version: 2.1.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-07 00:00:00.000000000 Z
11
+ date: 2022-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 7.0.1
19
+ version: 7.0.2
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.1
26
+ version: 7.0.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -86,140 +86,140 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.4.8
89
+ version: 0.4.9
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.8
96
+ version: 0.4.9
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.8
103
+ version: 0.14.12
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.8
110
+ version: 0.14.12
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.30
117
+ version: 10.6.36
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.30
124
+ version: 10.6.36
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.11
131
+ version: 4.1.17
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.11
138
+ version: 4.1.17
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.20
145
+ version: 2.1.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.20
152
+ version: 2.1.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.20
159
+ version: 2.1.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.20
166
+ version: 2.1.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.20
173
+ version: 2.1.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.20
180
+ version: 2.1.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.20
187
+ version: 2.1.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.20
194
+ version: 2.1.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.20
201
+ version: 2.1.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.20
208
+ version: 2.1.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.20
215
+ version: 2.1.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.20
222
+ version: 2.1.1
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: bundler
225
225
  requirement: !ruby/object:Gem::Requirement
@@ -262,8 +262,7 @@ dependencies:
262
262
  - - "~>"
263
263
  - !ruby/object:Gem::Version
264
264
  version: 3.10.0
265
- description: Command line utilities (console, yandle) and installer for isomorfeus
266
- projects.
265
+ description: Command line utilities and installer for isomorfeus projects.
267
266
  email: jan@kursator.de
268
267
  executables:
269
268
  - isomorfeus
@@ -311,11 +310,12 @@ files:
311
310
  - lib/isomorfeus/installer/test_app_files.rb
312
311
  - lib/isomorfeus/installer/upgrade.rb
313
312
  - lib/isomorfeus/version.rb
314
- homepage: http://isomorfeus.com
313
+ homepage: https://isomorfeus.com
315
314
  licenses:
316
315
  - MIT
317
316
  metadata:
318
317
  github_repo: ssh://github.com/isomorfeus/gems
318
+ source_code_uri: https://github.com/isomorfeus/isomorfeus-project/isomorfeus
319
319
  post_install_message:
320
320
  rdoc_options: []
321
321
  require_paths: