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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f8c0ea160121884a0f3162078fb064a9571ba27eb14ee2529cb45a04d9b2ce1
4
- data.tar.gz: 26c723d7e4a7fcfd7128161bbc1dad9f32945f94266870ff30917e3190483107
3
+ metadata.gz: 064d18dcaf5469339cb9cba52955361c1c1c9ffa5c5775c19f1bb81f30693cf6
4
+ data.tar.gz: 61e60b0348f47ef9dbb8bc160ff42b480a10ce2438087d633befe0330f149a0c
5
5
  SHA512:
6
- metadata.gz: 14cd2e35e96bb2e497866a0ff9f5eef8f257637ed80c0119827ec87feb98f17895f371300b53a8dca6289b58664811cb204a13fcce93f39e5ea9f5af6b7b9ed5
7
- data.tar.gz: 23d0252b544d299e27dff4fbb1c0dece5bbe41cc3f24c86395eec8ff5d08c82f4145d5cf9b89d3cd762b0b3d87b6bf311c78d599f30b156882b47dbb406277c2
6
+ metadata.gz: 023b1444442c98687ac95b1ba07dc384b0892d86e0fa09a47d79628466e7c1b393b14f785901d26d8a0605c6c3fa21aa8b25f69a6559f17fbd998ee0688eff52
7
+ data.tar.gz: abfe2c64ac0afa2334e5c21089f7d6975869c30f6a3e7a0dd1a311151f95b4aaa7d1254a0bc3b6313582ead967efc5964a3b30d5b87b56e08d6aecbaaee8fe5b
@@ -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"
@@ -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( 'config', config_file)
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
@@ -9,6 +9,7 @@ module Isomorfeus
9
9
  install_basic_components
10
10
  install_basic_policy
11
11
  install_spec_files
12
+ install_rake_file
12
13
  rescue Exception => e
13
14
  puts e.backtrace.join("\n")
14
15
  puts "Installation failed: #{e.message}"
@@ -1,4 +1,4 @@
1
1
  Isomorfeus::Installer.add_rack_server('isomorfeus-iodine', {
2
- gems: [{ name: 'isomorfeus-iodine', version: "~> 0.7.46", require: true }],
2
+ gems: [{ name: 'isomorfeus-iodine', version: '~> 0.7.49', require: true }],
3
3
  config_template: 'iodine.rb.erb'
4
4
  })
@@ -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.53.0'
7
- gem 'opal', '~> 1.4.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.5'
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
@@ -6,6 +6,7 @@ require 'isomorfeus-i18n'
6
6
  require 'isomorfeus-preact'
7
7
  require 'isomorfeus-data'
8
8
  require 'isomorfeus-operation'
9
+ require 'isomorfeus-empowerment'
9
10
 
10
11
  require_tree 'policies', autoload: true
11
12
  require_tree 'channels', autoload: true
@@ -6,6 +6,7 @@ require 'isomorfeus-transport'
6
6
  require 'isomorfeus-data'
7
7
  require 'isomorfeus-i18n'
8
8
  require 'isomorfeus-operation'
9
+ require 'isomorfeus-empowerment'
9
10
 
10
11
  require_tree 'policies', autoload: true
11
12
  require_tree 'channels', autoload: true
@@ -15,4 +15,9 @@ Isomorfeus::Puppetmaster.boot_app
15
15
 
16
16
  RSpec.configure do |config|
17
17
  config.include Isomorfeus::Puppetmaster::DSL
18
+
19
+ # useful for debugging
20
+ # config.before :all do
21
+ # set_launch_options(headless: false, devtools: true)
22
+ # end
18
23
  end
@@ -1,3 +1,3 @@
1
1
  module Isomorfeus
2
- VERSION = '2.2.11'
2
+ VERSION = '2.4.0'
3
3
  end
data/lib/isomorfeus.rb CHANGED
@@ -7,4 +7,5 @@ require 'isomorfeus-transport'
7
7
  require 'isomorfeus-i18n'
8
8
  require 'isomorfeus-data'
9
9
  require 'isomorfeus-operation'
10
+ require 'isomorfeus-empowerment'
10
11
  require 'isomorfeus-mailer'
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.2.11
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-03-03 00:00:00.000000000 Z
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: '0'
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: '0'
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.2
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.2
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.17
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.17
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.6.56
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.6.56
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.1.18
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.1.18
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.2.11
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.2.11
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.2.11
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.2.11
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.2.11
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.2.11
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.2.11
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.2.11
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.2.11
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.2.11
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.2.11
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.2.11
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:
@@ -1,11 +0,0 @@
1
- module Isomorfeus
2
- module Installer
3
- class Upgrade
4
- class << self
5
- def execute
6
-
7
- end
8
- end
9
- end
10
- end
11
- end