isomorfeus 1.0.0.zeta9 → 1.0.0.zeta10

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: e4b86ae96152ce1b286dffbdfd26b55bcf1a013dc33c611478a32be97e55666c
4
- data.tar.gz: 5641c9d5c648ab88900aea0973153653e739a7d47b4da677f5e269ccac574b11
3
+ metadata.gz: aed41c6272dd71e91521ba4875a3300ef505063294f44e342b53570bb7873a2b
4
+ data.tar.gz: 937cec33851c55ad645d576e14201c11de756deb6d83d8d78e1a2c30b6930784
5
5
  SHA512:
6
- metadata.gz: 4b8a840472ad4ed68370bf3b5798b01644d088aaeb2666019675e6d5d078b9cb1786b5d11512deead3f18262d54722e2f90798b428105b074a6e5d5fc73727ef
7
- data.tar.gz: 17cc73f58b017fded106ff90d5bc45080c16627c20be44db13777f821919cd4586a73087bf4aa924cf8acb2bb25ca02fe2b71c536ce67ccc13186e6c44f14ed2
6
+ metadata.gz: 9d3b5e8f5df55215cedf9cfe3fef7346bd7f09964e1afcacdca9fb71cdaacbf13226f050f43236a05658e2ff7780c9a37a3920ec69133e5a4a0d2716fac04cf4
7
+ data.tar.gz: 3337df6733f663d6d8964631453c1d47bbadede4bdd8e9cf7c4f3e026bc3e80d6abad1cb15926ba8827bab22e2272fade052aafe887765a8da877d1aed7e6d40
data/bin/isomorfeus CHANGED
@@ -1,23 +1,22 @@
1
1
  #!/usr/bin/env ruby
2
- require 'thor'
3
- require_relative '../lib/isomorfeus/installer'
4
- require_relative '../lib/isomorfeus/installer/rack_servers'
5
-
6
2
  if %w[c con console].include?(ARGV[0])
7
3
  require 'pry'
8
4
  require_relative '../lib/isomorfeus/console'
9
- require_relative '../lib/isomorfeus/cli'
10
5
 
11
- Isomorfeus::Installer::CLI.start(ARGV)
6
+ Isomorfeus::Console.new.run
12
7
  else
8
+ require 'thor'
13
9
  require 'bundler'
14
10
  require 'fileutils'
15
11
  require 'erb'
16
12
  require 'active_support/core_ext/string'
17
13
  require 'opal-webpack-loader/installer_cli'
14
+ require_relative '../lib/isomorfeus/installer'
15
+ require_relative '../lib/isomorfeus/installer/rack_servers'
18
16
  require_relative '../lib/isomorfeus/version'
19
17
  require_relative '../lib/isomorfeus/installer/options_mangler'
20
18
  require_relative '../lib/isomorfeus/installer/new_project'
19
+ require_relative '../lib/isomorfeus/cli'
21
20
 
22
21
  Isomorfeus::Installer.module_directories.each do |mod_dir|
23
22
  mod_path = File.realpath(File.join(Isomorfeus::Installer.base_path, mod_dir))
@@ -29,5 +28,5 @@ else
29
28
 
30
29
  require_relative '../lib/isomorfeus/cli'
31
30
 
32
- Isomorfeus::Installer::CLI.start(ARGV)
31
+ Isomorfeus::CLI.start(ARGV)
33
32
  end
@@ -1,33 +1,31 @@
1
1
  module Isomorfeus
2
- module Installer
3
- class CLI < Thor
2
+ class CLI < Thor
4
3
 
5
- desc "new project_name", "Create a new isomorfeus project with project_name."
6
- option :rack_server, default: 'iodine', aliases: '-r',
7
- desc: "Select rack server, one of: #{Isomorfeus::Installer.sorted_rack_servers.join(', ')}. (optional)"
8
- option :yarn_and_bundle, default: true, required: false, type: :boolean, aliases: '-y', desc: "Execute yarn install and bundle install. (optional)"
9
- def new(project_name)
10
- Isomorfeus::Installer.set_project_names(project_name)
11
- Isomorfeus::Installer.options = options
12
- Isomorfeus::Installer::NewProject.execute(yarn_and_bundle: options[:yarn_and_bundle])
13
- end
4
+ desc "new project_name", "Create a new isomorfeus project with project_name."
5
+ option :rack_server, default: 'iodine', aliases: '-r',
6
+ desc: "Select rack server, one of: #{Isomorfeus::Installer.sorted_rack_servers.join(', ')}. (optional)"
7
+ option :yarn_and_bundle, default: true, required: false, type: :boolean, aliases: '-y', desc: "Execute yarn install and bundle install. (optional)"
8
+ def new(project_name)
9
+ Isomorfeus::Installer.set_project_names(project_name)
10
+ Isomorfeus::Installer.options = options
11
+ Isomorfeus::Installer::NewProject.execute(yarn_and_bundle: options[:yarn_and_bundle])
12
+ end
14
13
 
15
- desc "console", "Open console for current project."
16
- def console
17
- Isomorfeus::Console.new.run
18
- end
14
+ desc "console", "Open console for current project."
15
+ def console
16
+ Isomorfeus::Console.new.run
17
+ end
19
18
 
20
- desc "test_app", "Create a test_app for internal framework tests."
21
- option :module, required: true, type: :string, aliases: '-m', desc: "Isomorfeus module name for which to generate the test app, eg: 'i18n'. (required)"
22
- option :source_dir, required: false, type: :string, aliases: '-s', desc: "Recursively copy files from source dir into app. (optional)"
23
- option :rack_server, default: 'iodine', aliases: '-r',
24
- desc: "Select rack server, one of: #{Isomorfeus::Installer.sorted_rack_servers.join(', ')}. (optional)"
25
- option :yarn_and_bundle, default: true, required: false, type: :boolean, aliases: '-y', desc: "Execute yarn install and bundle install. (optional)"
26
- def test_app
27
- Isomorfeus::Installer.set_project_names('test_app')
28
- Isomorfeus::Installer.options = options
29
- Isomorfeus::Installer::NewProject.execute(yarn_and_bundle: options[:yarn_and_bundle])
30
- end
19
+ desc "test_app", "Create a test_app for internal framework tests."
20
+ option :module, required: true, type: :string, aliases: '-m', desc: "Isomorfeus module name for which to generate the test app, eg: 'i18n'. (required)"
21
+ option :source_dir, required: false, type: :string, aliases: '-s', desc: "Recursively copy files from source dir into app. (optional)"
22
+ option :rack_server, default: 'iodine', aliases: '-r',
23
+ desc: "Select rack server, one of: #{Isomorfeus::Installer.sorted_rack_servers.join(', ')}. (optional)"
24
+ option :yarn_and_bundle, default: true, required: false, type: :boolean, aliases: '-y', desc: "Execute yarn install and bundle install. (optional)"
25
+ def test_app
26
+ Isomorfeus::Installer.set_project_names('test_app')
27
+ Isomorfeus::Installer.options = options
28
+ Isomorfeus::Installer::NewProject.execute(yarn_and_bundle: options[:yarn_and_bundle])
31
29
  end
32
30
  end
33
31
  end
@@ -4,25 +4,26 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
4
4
  <%= rack_server_gems %>
5
5
  gem 'foreman', require: false
6
6
 
7
- gem 'roda', '~> 3.25.0'
7
+ gem 'roda', '~> 3.27.0'
8
8
 
9
9
  gem 'opal', github: 'janbiedermann/opal', branch: 'es6_modules_1_1'
10
10
  gem 'opal-activesupport', '~> 0.3.3'
11
11
  gem 'opal-webpack-loader', '>= 0.9.9'
12
12
 
13
13
  gem 'isomorfeus-redux', '~> 4.0.16'
14
- gem 'isomorfeus-react', '>= 16.12.2'
14
+ gem 'isomorfeus-react', '>= 16.12.4'
15
+ gem 'isomorfeus-policy', <%= isomorfeus_policy %>
16
+ gem 'isomorfeus-transport', <%= isomorfeus_transport %>
17
+ gem 'isomorfeus-i18n', <%= isomorfeus_i18n %>
18
+ gem 'isomorfeus-data', <%= isomorfeus_data %>
19
+ gem 'isomorfeus-operation', <%= isomorfeus_operation %>
15
20
 
16
- source "http://gems.isomorfeus.com" do
17
- gem 'isomorfeus-policy', <%= isomorfeus_policy %>
18
- gem 'isomorfeus-transport', <%= isomorfeus_transport %>
19
- gem 'isomorfeus-i18n', <%= isomorfeus_i18n %>
20
- gem 'isomorfeus-data', <%= isomorfeus_data %>
21
- gem 'isomorfeus-operation', <%= isomorfeus_operation %>
22
- end
23
21
 
24
22
  group :development do
25
23
  gem 'pry', '~> 0.12.2'
24
+ gem 'pry-nav'
25
+ gem 'pry-rescue'
26
+ gem 'pry-stack_explorer'
26
27
  end
27
28
 
28
29
  group :test do
@@ -4,7 +4,7 @@ if !Isomorfeus.development?
4
4
  Isomorfeus.zeitwerk.setup
5
5
  Isomorfeus.zeitwerk.eager_load
6
6
 
7
- run <%= app_class %>.app
7
+ run <%= app_class %>.freeze.app
8
8
  else
9
9
  Isomorfeus.zeitwerk.enable_reloading
10
10
  Isomorfeus.zeitwerk.setup
@@ -1,3 +1,3 @@
1
1
  module Isomorfeus
2
- VERSION = '1.0.0.zeta9'
2
+ VERSION = '1.0.0.zeta10'
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: 1.0.0.zeta9
4
+ version: 1.0.0.zeta10
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-12-17 00:00:00.000000000 Z
11
+ date: 2019-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport