isomorfeus 2.2.11 → 2.4.0
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 +4 -3
- 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/spec_helper.rb.erb +5 -0
- data/lib/isomorfeus/version.rb +1 -1
- data/lib/isomorfeus.rb +1 -0
- metadata +39 -25
- 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: 064d18dcaf5469339cb9cba52955361c1c1c9ffa5c5775c19f1bb81f30693cf6
|
4
|
+
data.tar.gz: 61e60b0348f47ef9dbb8bc160ff42b480a10ce2438087d633befe0330f149a0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 023b1444442c98687ac95b1ba07dc384b0892d86e0fa09a47d79628466e7c1b393b14f785901d26d8a0605c6c3fa21aa8b25f69a6559f17fbd998ee0688eff52
|
7
|
+
data.tar.gz: abfe2c64ac0afa2334e5c21089f7d6975869c30f6a3e7a0dd1a311151f95b4aaa7d1254a0bc3b6313582ead967efc5964a3b30d5b87b56e08d6aecbaaee8fe5b
|
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,9 +2,10 @@ 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
|
-
gem 'roda', '~> 3.
|
7
|
-
gem 'opal', '~> 1.
|
7
|
+
gem 'roda', '~> 3.55.0'
|
8
|
+
gem 'opal', '~> 1.5.0'
|
8
9
|
|
9
10
|
<%= isomorfeus_gems %>
|
10
11
|
|
@@ -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.7'
|
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
|
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.4.0
|
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-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.3.9
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 2.3.9
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: oj
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,140 +72,154 @@ 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.22
|
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.22
|
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.
|
103
|
+
version: 10.7.0
|
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.
|
110
|
+
version: 10.7.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: isomorfeus-redux
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 4.
|
117
|
+
version: 4.2.0
|
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: 4.
|
124
|
+
version: 4.2.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: isomorfeus-policy
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - '='
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 2.
|
131
|
+
version: 2.4.0
|
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.4.0
|
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.4.0
|
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.4.0
|
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.4.0
|
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.4.0
|
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.4.0
|
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.4.0
|
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.4.0
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - '='
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 2.4.0
|
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.4.0
|
188
202
|
type: :runtime
|
189
203
|
prerelease: false
|
190
204
|
version_requirements: !ruby/object:Gem::Requirement
|
191
205
|
requirements:
|
192
206
|
- - '='
|
193
207
|
- !ruby/object:Gem::Version
|
194
|
-
version: 2.
|
208
|
+
version: 2.4.0
|
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.4.0
|
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.4.0
|
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:
|