isomorfeus-installer 1.0.0.delta11 → 1.0.0.delta12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/isomorfeus +0 -1
- data/lib/isomorfeus/installer/cli.rb +0 -1
- data/lib/isomorfeus/installer/templates/Gemfile.erb +1 -1
- data/lib/isomorfeus/installer/templates/isomorfeus_loader.rb.erb +2 -2
- data/lib/isomorfeus/installer/version.rb +1 -1
- data/lib/isomorfeus/installer.rb +2 -19
- metadata +2 -3
- data/lib/isomorfeus/installer/other_modules.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af145d2b9dd2cf90c16b32fc260f7085bac6ad686b09bb4b687c48bd47f20e90
|
4
|
+
data.tar.gz: f2867ebdd44c6c9260d018a44bb56072478f4f480909b29ce8dedea0f14c1153
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccd35633f5c043b5a82875ee691822090f22ae73b07d88d166868b587e2193db4fe21fd470702ea4e8c44bc4ec2dfaa2ec50b3ea588243ac777ed4602c408439
|
7
|
+
data.tar.gz: 36fb1ca9edc10b0448c8e3107538134e1b35b68e15a0e725938a2141f074b8450d46a55317c5bd184bbbbe74cc1658657aef772d1fad8dba594f3d45ebbd5b13
|
data/bin/isomorfeus
CHANGED
@@ -7,7 +7,6 @@ require 'opal-webpack-loader/installer_cli'
|
|
7
7
|
require_relative '../lib/isomorfeus/installer'
|
8
8
|
require_relative '../lib/isomorfeus/installer/version'
|
9
9
|
require_relative '../lib/isomorfeus/installer/rack_servers'
|
10
|
-
require_relative '../lib/isomorfeus/installer/other_modules'
|
11
10
|
require_relative '../lib/isomorfeus/installer/options_mangler'
|
12
11
|
require_relative '../lib/isomorfeus/installer/new_project'
|
13
12
|
|
@@ -3,7 +3,6 @@ module Isomorfeus
|
|
3
3
|
class CLI < Thor
|
4
4
|
|
5
5
|
desc "new project_name", "create a new isomorfeus project with project_name"
|
6
|
-
option :policy, default: false, type: :boolean, aliases: '-p', desc: "Use policy module. (optional)"
|
7
6
|
option :rack_server, default: 'iodine', aliases: '-r',
|
8
7
|
desc: "Select rack server, one of: #{Isomorfeus::Installer.sorted_rack_servers.join(', ')}. (optional)"
|
9
8
|
option :yarn_and_bundle, default: true, required: false, type: :boolean, aliases: '-y', desc: "Execute yarn install and bundle install. (optional)"
|
@@ -16,7 +16,7 @@ gem 'isomorfeus-transport', '<%= isomorfeus_version %>'
|
|
16
16
|
gem 'isomorfeus-data', '<%= isomorfeus_version %>'
|
17
17
|
gem 'isomorfeus-i18n', '<%= isomorfeus_version %>'
|
18
18
|
gem 'isomorfeus-operation', '<%= isomorfeus_version %>'
|
19
|
-
|
19
|
+
gem 'isomorfeus-policy', '<%= isomorfeus_version %>'
|
20
20
|
|
21
21
|
group :development do
|
22
22
|
gem 'auto_reloader'
|
@@ -6,12 +6,12 @@ require 'isomorfeus-transport'
|
|
6
6
|
require 'isomorfeus-data'
|
7
7
|
require 'isomorfeus-i18n'
|
8
8
|
require 'isomorfeus-operation'
|
9
|
-
|
9
|
+
require 'isomorfeus-policy'
|
10
10
|
|
11
11
|
require_tree 'channels'
|
12
12
|
require_tree 'data'
|
13
13
|
require_tree 'components'
|
14
14
|
require_tree 'operations'
|
15
|
-
|
15
|
+
require_tree 'policies'
|
16
16
|
|
17
17
|
Isomorfeus.start_app!
|
data/lib/isomorfeus/installer.rb
CHANGED
@@ -6,10 +6,6 @@ module Isomorfeus
|
|
6
6
|
databases[name] = props
|
7
7
|
end
|
8
8
|
|
9
|
-
def self.add_policy_module(name, props)
|
10
|
-
policies[name] = props
|
11
|
-
end
|
12
|
-
|
13
9
|
def self.add_rack_server(name, props)
|
14
10
|
rack_servers[name] = props
|
15
11
|
end
|
@@ -20,7 +16,6 @@ module Isomorfeus
|
|
20
16
|
attr_reader :app_require
|
21
17
|
attr_accessor :database
|
22
18
|
attr_accessor :framework
|
23
|
-
attr_accessor :policy
|
24
19
|
attr_reader :project_dir
|
25
20
|
attr_reader :project_name
|
26
21
|
attr_accessor :rack_server
|
@@ -154,8 +149,7 @@ module Isomorfeus
|
|
154
149
|
end
|
155
150
|
|
156
151
|
def self.install_isomorfeus_entries
|
157
|
-
data_hash = { app_class: app_class
|
158
|
-
use_policy: use_policy? }
|
152
|
+
data_hash = { app_class: app_class }
|
159
153
|
create_file_from_template('isomorfeus_loader.rb.erb', File.join(isomorfeus_path, 'isomorfeus_loader.rb'), data_hash)
|
160
154
|
create_file_from_template('isomorfeus_web_worker_loader.rb.erb', File.join(isomorfeus_path, 'isomorfeus_web_worker_loader.rb'), data_hash)
|
161
155
|
end
|
@@ -181,16 +175,9 @@ module Isomorfeus
|
|
181
175
|
Isomorfeus::Installer.databases[options[:database]]&.fetch(:gems)&.each do |gem|
|
182
176
|
database_gems << generate_gem_line(gem)
|
183
177
|
end
|
184
|
-
policy_gems = ''
|
185
|
-
Isomorfeus::Installer.policies['policy']&.fetch(:gems)&.each do |gem|
|
186
|
-
policy_gems << generate_gem_line(gem)
|
187
|
-
end
|
188
|
-
|
189
178
|
data_hash = { database_gems: database_gems.chop,
|
190
|
-
policy_gems: policy_gems.chop,
|
191
179
|
rack_server_gems: rack_server_gems.chop,
|
192
|
-
isomorfeus_version: Isomorfeus::Installer::VERSION
|
193
|
-
}
|
180
|
+
isomorfeus_version: Isomorfeus::Installer::VERSION }
|
194
181
|
create_file_from_template('Gemfile.erb', 'Gemfile', data_hash)
|
195
182
|
end
|
196
183
|
|
@@ -234,9 +221,5 @@ module Isomorfeus
|
|
234
221
|
def self.use_asset_bundler?
|
235
222
|
options.has_key?('asset_bundler')
|
236
223
|
end
|
237
|
-
|
238
|
-
def self.use_policy?
|
239
|
-
options['policy']
|
240
|
-
end
|
241
224
|
end
|
242
225
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isomorfeus-installer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.delta12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -128,7 +128,6 @@ files:
|
|
128
128
|
- lib/isomorfeus/installer/databases/sqlite.rb
|
129
129
|
- lib/isomorfeus/installer/new_project.rb
|
130
130
|
- lib/isomorfeus/installer/options_mangler.rb
|
131
|
-
- lib/isomorfeus/installer/other_modules.rb
|
132
131
|
- lib/isomorfeus/installer/rack_servers.rb
|
133
132
|
- lib/isomorfeus/installer/templates/.gitkeep.erb
|
134
133
|
- lib/isomorfeus/installer/templates/Gemfile.erb
|