isomorfeus 2.2.10 → 2.3.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/cli.rb +0 -8
- data/lib/isomorfeus/command.rb +0 -1
- data/lib/isomorfeus/installer/dsl.rb +5 -2
- data/lib/isomorfeus/installer/gemfile.rb +1 -1
- data/lib/isomorfeus/installer/new_project.rb +1 -0
- data/lib/isomorfeus/installer/rack_servers.rb +1 -1
- data/lib/isomorfeus/installer/templates/Gemfile.erb +2 -1
- data/lib/isomorfeus/installer/templates/Rakefile.erb +19 -0
- data/lib/isomorfeus/installer/templates/isomorfeus_loader.rb.erb +1 -0
- data/lib/isomorfeus/installer/templates/mail_loader.rb.erb +1 -0
- data/lib/isomorfeus/installer/templates/my_app.rb.erb +3 -3
- data/lib/isomorfeus/installer/templates/spec_helper.rb.erb +5 -0
- data/lib/isomorfeus/version.rb +1 -1
- data/lib/isomorfeus.rb +1 -0
- metadata +35 -21
- data/lib/isomorfeus/installer/upgrade.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34683bca989972b8476bb25e4c5499be6ff83f4afb2ef368a910bea308b5751e
|
4
|
+
data.tar.gz: cdd2934694229390675fac8e5c28b05150403f40295e94d4b944d3da58c56d31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6f7ed3e6a0ff11e6f3853c634eb65ef44ffb83d6ddce1516769da2adc84a271d7fe7b03a220e259691d9419407656dcc75e42915b7b477414059447cf10276f
|
7
|
+
data.tar.gz: c5af724895824d05351f8b37d2422e254409226ec2fb9bbece87248d25d62891465c538e11a4f997f4bb1b210535b377265fb424b93298a89bf997892243f508
|
data/lib/isomorfeus/cli.rb
CHANGED
@@ -65,14 +65,6 @@ DESC
|
|
65
65
|
Isomorfeus::Console.new.run
|
66
66
|
end
|
67
67
|
|
68
|
-
desc "upgrade", "Install updated config and provide hints for upgrading."
|
69
|
-
option :yarn_and_bundle, default: 'yes', required: false, type: :string, aliases: '-y',
|
70
|
-
desc: "Execute bundle install: -y or -y yes, do not execute: -y no"
|
71
|
-
def upgrade
|
72
|
-
Isomorfeus::Installer::Upgrade.execute
|
73
|
-
Isomorfeus::Installer::Bundle.execute
|
74
|
-
end
|
75
|
-
|
76
68
|
desc "versions", "Show versions of important Isomorfeus gems, to be executed within the project root."
|
77
69
|
def versions
|
78
70
|
output = "isomorfeus command version #{Isomorfeus::VERSION}\nProject gem versions:\n"
|
data/lib/isomorfeus/command.rb
CHANGED
@@ -19,7 +19,6 @@ else
|
|
19
19
|
require_relative '../isomorfeus/installer/install_targets'
|
20
20
|
require_relative '../isomorfeus/installer/new_project'
|
21
21
|
require_relative '../isomorfeus/installer/test_app_files'
|
22
|
-
require_relative '../isomorfeus/installer/upgrade'
|
23
22
|
require_relative '../isomorfeus/installer/target/web'
|
24
23
|
require_relative '../isomorfeus/installer/bundle'
|
25
24
|
|
@@ -52,15 +52,18 @@ module Isomorfeus
|
|
52
52
|
File.join('app', 'policies', 'anonymous_policy.rb'), {})
|
53
53
|
end
|
54
54
|
|
55
|
+
def install_rake_file
|
56
|
+
create_file_from_template(Isomorfeus::Installer.templates_path, 'Rakefile.erb', 'Rakefile', {})
|
57
|
+
end
|
58
|
+
|
55
59
|
def install_spec_files
|
56
60
|
data_hash = { roda_app_class: Isomorfeus::Installer.roda_app_class, roda_app_path: Isomorfeus::Installer.roda_app_path,
|
57
61
|
rack_server: Isomorfeus::Installer.rack_server_name }
|
58
62
|
create_file_from_template(Isomorfeus::Installer.templates_path, 'spec_helper.rb.erb', File.join('spec', 'spec_helper.rb'), data_hash)
|
59
|
-
create_file_from_template(Isomorfeus::Installer.templates_path, 'web_spec.rb.erb', File.join('spec', 'web_spec.rb'), {})
|
60
63
|
end
|
61
64
|
|
62
65
|
def config_path(config_file)
|
63
|
-
File.join(
|
66
|
+
File.join('config', config_file)
|
64
67
|
end
|
65
68
|
end
|
66
69
|
end
|
@@ -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-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-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
|
@@ -2,6 +2,7 @@ source 'https://rubygems.org'
|
|
2
2
|
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
3
3
|
|
4
4
|
gem 'wdm', '>= 0.1.1' if Gem.win_platform?
|
5
|
+
gem 'concurrent-ruby-ext'
|
5
6
|
<%= rack_server_gems %>
|
6
7
|
gem 'roda', '~> 3.53.0'
|
7
8
|
gem 'opal', '~> 1.4.1'
|
@@ -15,5 +16,5 @@ end
|
|
15
16
|
|
16
17
|
group :test do
|
17
18
|
gem 'rspec', '~> 3.11.0'
|
18
|
-
gem 'isomorfeus-puppetmaster', '~> 0.6.
|
19
|
+
gem 'isomorfeus-puppetmaster', '~> 0.6.6'
|
19
20
|
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require_relative 'app_loader'
|
2
|
+
require 'isomorfeus/i18n/missing_keys'
|
3
|
+
Isomorfeus.zeitwerk.setup
|
4
|
+
Isomorfeus.zeitwerk.eager_load
|
5
|
+
|
6
|
+
namespace :i18n do
|
7
|
+
desc 'Find missing or unused translation keys'
|
8
|
+
task :missing_keys do
|
9
|
+
Isomorfeus::I18n::MissingKeys.find
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
task :specs do
|
14
|
+
Bundler.with_original_env do
|
15
|
+
system('bundle exec rspec')
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
task default: :specs
|
@@ -2,9 +2,9 @@ class <%= app_class %> < LucidApp::Base
|
|
2
2
|
render do
|
3
3
|
Router(hook: Preact.location_hook(props.location)) 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.to_js)
|
6
|
+
Route(path: '/welcome', component: WelcomeComponent.to_js)
|
7
|
+
Route(component: NotFound404Component.to_js)
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
data/lib/isomorfeus/version.rb
CHANGED
data/lib/isomorfeus.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.3.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-
|
11
|
+
date: 2022-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -72,42 +72,42 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.5.
|
75
|
+
version: 0.5.3
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.5.
|
82
|
+
version: 0.5.3
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: isomorfeus-asset-manager
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.14.
|
89
|
+
version: 0.14.21
|
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.14.
|
96
|
+
version: 0.14.21
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: isomorfeus-preact
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 10.6.
|
103
|
+
version: 10.6.61
|
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: 10.6.
|
110
|
+
version: 10.6.61
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: isomorfeus-redux
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,84 +128,98 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - '='
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 2.
|
131
|
+
version: 2.3.1
|
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: 2.
|
138
|
+
version: 2.3.1
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: isomorfeus-transport
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - '='
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 2.
|
145
|
+
version: 2.3.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.3.1
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: isomorfeus-data
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - '='
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 2.
|
159
|
+
version: 2.3.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.3.1
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: isomorfeus-i18n
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - '='
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 2.
|
173
|
+
version: 2.3.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.3.1
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: isomorfeus-operation
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
185
|
- - '='
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: 2.
|
187
|
+
version: 2.3.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.3.1
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: isomorfeus-empowerment
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - '='
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: 2.3.1
|
202
|
+
type: :runtime
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - '='
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 2.3.1
|
195
209
|
- !ruby/object:Gem::Dependency
|
196
210
|
name: isomorfeus-mailer
|
197
211
|
requirement: !ruby/object:Gem::Requirement
|
198
212
|
requirements:
|
199
213
|
- - '='
|
200
214
|
- !ruby/object:Gem::Version
|
201
|
-
version: 2.
|
215
|
+
version: 2.3.1
|
202
216
|
type: :runtime
|
203
217
|
prerelease: false
|
204
218
|
version_requirements: !ruby/object:Gem::Requirement
|
205
219
|
requirements:
|
206
220
|
- - '='
|
207
221
|
- !ruby/object:Gem::Version
|
208
|
-
version: 2.
|
222
|
+
version: 2.3.1
|
209
223
|
- !ruby/object:Gem::Dependency
|
210
224
|
name: bundler
|
211
225
|
requirement: !ruby/object:Gem::Requirement
|
@@ -276,6 +290,7 @@ files:
|
|
276
290
|
- lib/isomorfeus/installer/templates/.gitignore.erb
|
277
291
|
- lib/isomorfeus/installer/templates/.gitkeep.erb
|
278
292
|
- lib/isomorfeus/installer/templates/Gemfile.erb
|
293
|
+
- lib/isomorfeus/installer/templates/Rakefile.erb
|
279
294
|
- lib/isomorfeus/installer/templates/anonymous_policy.rb.erb
|
280
295
|
- lib/isomorfeus/installer/templates/app_loader.rb.erb
|
281
296
|
- lib/isomorfeus/installer/templates/config.ru.erb
|
@@ -294,7 +309,6 @@ files:
|
|
294
309
|
- lib/isomorfeus/installer/templates/web_spec.rb.erb
|
295
310
|
- lib/isomorfeus/installer/templates/welcome_component.rb.erb
|
296
311
|
- lib/isomorfeus/installer/test_app_files.rb
|
297
|
-
- lib/isomorfeus/installer/upgrade.rb
|
298
312
|
- lib/isomorfeus/version.rb
|
299
313
|
homepage: https://isomorfeus.com
|
300
314
|
licenses:
|