isomorfeus-installer 1.0.0.epsilon2 → 1.0.0.epsilon3

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: '08896fbcd932ba150cd01138d9ed2c8e72aea9fa35b82eea8bf158a964dcc5d4'
4
- data.tar.gz: 1f2d2b698199fc476937651d158c1587f145db2b35b684d1d311c540ed6deeb6
3
+ metadata.gz: 71c616442138693f7dbdc4159f0164405d123d5b5fb3f05fc4f35da2d0e42053
4
+ data.tar.gz: da87de6ab6ef8560149113ac18eb64f217aef602fb0249cf0d00791d4d6ef370
5
5
  SHA512:
6
- metadata.gz: 5d5d55a002f4f234465134748f531246c2012a8015d7a3a6bed0af9be14d0df4751b5c4d0cfb9d2d574b335ce555b975a2a3553d3f504e2c1ec39450725a6d46
7
- data.tar.gz: 412c41e42c0fc3cbccdf4263021764b039e3f09288965d97d2b690461cd2d552451aece678f23a7bc14813074e8e34cf6c1f63298d496d0d54c5720a9f41413e
6
+ metadata.gz: c27feb6c699b8cfff6247faa4966b47a61275c89390562ccacc43fb7705e0c71d76ea3f0d3398e63781aace742ae6af8b739c1e9d2b682dc95d855eba83644c3
7
+ data.tar.gz: f447b2bd1e616c3305f085d032629106d202efe7303106847e90e79b5dfec5f72e993817eb3205c99c7b0f9c47458225b0db54ea781706d3c28e3761e12464cc
@@ -11,7 +11,7 @@ gem 'opal-activesupport', '~> 0.3.3'
11
11
  gem 'opal-webpack-loader', '>= 0.9.2'
12
12
 
13
13
  gem 'isomorfeus-redux', '~> 4.0.11'
14
- gem 'isomorfeus-react', '>= 16.9.4'
14
+ gem 'isomorfeus-react', '>= 16.9.5'
15
15
  gem 'isomorfeus-policy', <%= isomorfeus_policy %>
16
16
  gem 'isomorfeus-transport', <%= isomorfeus_transport %>
17
17
  gem 'isomorfeus-data', <%= isomorfeus_data %>
@@ -37,7 +37,9 @@ class <%= app_class %> < Roda
37
37
  end
38
38
 
39
39
  r.get do
40
- page_content(env['HTTP_HOST'], env['PATH_INFO'])
40
+ content = page_content(env['HTTP_HOST'], env['PATH_INFO'])
41
+ response.status = ssr_response_status
42
+ content
41
43
  end
42
44
  end
43
45
  end
@@ -4,6 +4,7 @@ class <%= app_class %> < LucidApp::Base
4
4
  Switch do
5
5
  Route(path: '/', exact: true, component: HelloComponent.JS[:react_component])
6
6
  Route(path: '/welcome', exact: true, component: WelcomeComponent.JS[:react_component])
7
+ Route(component: NotFound404Component.JS[:react_component])
7
8
  end
8
9
  end
9
10
  end
@@ -0,0 +1,7 @@
1
+ class NotFound404Component < LucidComponent::Base
2
+ render do
3
+ Isomorfeus.ssr_response_status = 404 # keep
4
+ P "Oops, page not found!"
5
+ NavigationLinks()
6
+ end
7
+ end
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  module Installer
3
- VERSION = '1.0.0.epsilon2'
3
+ VERSION = '1.0.0.epsilon3'
4
4
  end
5
5
  end
@@ -209,6 +209,8 @@ module Isomorfeus
209
209
  File.join(isomorfeus_path, 'components', 'hello_component.rb'), {})
210
210
  create_file_from_template('navigation_links.rb.erb',
211
211
  File.join(isomorfeus_path, 'components', 'navigation_links.rb'), {})
212
+ create_file_from_template('not_found_404_component.rb.erb',
213
+ File.join(isomorfeus_path, 'components', 'not_found_404_component.rb'), {})
212
214
  create_file_from_template('welcome_component.rb.erb',
213
215
  File.join(isomorfeus_path, 'components', 'welcome_component.rb'), {})
214
216
  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.epsilon2
4
+ version: 1.0.0.epsilon3
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-18 00:00:00.000000000 Z
11
+ date: 2019-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -149,6 +149,7 @@ files:
149
149
  - lib/isomorfeus/installer/templates/isomorfeus_web_worker_loader.rb.erb
150
150
  - lib/isomorfeus/installer/templates/my_app.rb.erb
151
151
  - lib/isomorfeus/installer/templates/navigation_links.rb.erb
152
+ - lib/isomorfeus/installer/templates/not_found_404_component.rb.erb
152
153
  - lib/isomorfeus/installer/templates/package.json.erb
153
154
  - lib/isomorfeus/installer/templates/production.js.erb
154
155
  - lib/isomorfeus/installer/templates/spec_helper.rb.erb