utopia 2.9.0 → 2.9.1

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: 05f9ea2c2313177fe0ddab9681776ce465160016ba76ddf961ce32c90613031d
4
- data.tar.gz: 24cc21d33830e008f34354bf95eaf52bce0a83bde857ba59a03c3e120e1a84e7
3
+ metadata.gz: c1416b64c8c7609f02743aae4863b5ac4015ecdb8595287713582f996df8b7aa
4
+ data.tar.gz: 40f41fed1b8f8501a73a9194253c45ce5126e31087441b7abba433d5bdeb083e
5
5
  SHA512:
6
- metadata.gz: 076044052516cd4bf26f476e2dbca23fcf5f9e49673b5f169f317d70ae1b6d560e5c2bf4578e8cdcd0ed368fe4eb328e7d1d083269406f67459c4a7f48f37b33
7
- data.tar.gz: 07056aba9f2533e1fee4e60f337a2d1cf2b048bca510488c447c1b528ab7d0ee2df37dc8ab32d5d8e4387197eefdc66663efca291d00359134758b158cb73702
6
+ metadata.gz: 8a0aef160e4a838cf7e1ef34b2a38a76c6ff91d9651ea8c8c5ffcbcc0c55c4fd7d0b35f9e99ad893f91e6100ca32ea7dc7725dd4e3bec321a99b0572b4168e96
7
+ data.tar.gz: 5fd676d9a4a4d0d0281bd184a323a3dd7ef1cd5f7e802f08d3749874db2b78700a20c18034629831edaf8156f8881e20806e65fc3cdfd89573def22513fe6960
data/.gitignore CHANGED
@@ -4,4 +4,5 @@ tmp
4
4
  Gemfile.lock
5
5
  documentation/run/*
6
6
  documentation/public/code/*
7
- .rspec_status
7
+ .rspec_status
8
+ .yardoc
@@ -22,7 +22,6 @@ require_relative 'utopia/version'
22
22
 
23
23
  require_relative 'utopia/content'
24
24
  require_relative 'utopia/controller'
25
- require_relative 'utopia/localization'
26
25
  require_relative 'utopia/exceptions'
27
26
  require_relative 'utopia/redirection'
28
27
  require_relative 'utopia/static'
@@ -31,7 +31,7 @@ module Utopia
31
31
  # Local site setup commands.
32
32
  class Site < Samovar::Command
33
33
  # Configuration files which should be installed/updated:
34
- CONFIGURATION_FILES = ['.yarnrc', '.gitignore', 'config.ru', 'config/environment.rb', 'Gemfile', 'Guardfile', 'Rakefile', 'tasks/yarn.rake', 'tasks/deploy.rake', 'tasks/development.rake', 'tasks/environment.rake', 'tasks/log.rake']
34
+ CONFIGURATION_FILES = ['.yarnrc', '.gitignore', 'config.ru', 'config/environment.rb', 'falcon.rb', 'Gemfile', 'Guardfile', 'Rakefile', 'tasks/yarn.rake', 'tasks/deploy.rake', 'tasks/development.rake', 'tasks/environment.rake', 'tasks/log.rake']
35
35
 
36
36
  # Directories that should exist:
37
37
  DIRECTORIES = ["config", "lib", "pages", "public", "tasks"]
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Utopia
22
- VERSION = "2.9.0"
22
+ VERSION = "2.9.1"
23
23
  end
@@ -11,11 +11,10 @@ if RACK_ENV == :production
11
11
  else
12
12
  # We want to propate exceptions up when running tests:
13
13
  use Rack::ShowExceptions unless RACK_ENV == :test
14
-
15
- # Serve the public directory in a similar way to the web server:
16
- use Utopia::Static, root: 'public'
17
14
  end
18
15
 
16
+ use Utopia::Static, root: 'public'
17
+
19
18
  use Utopia::Redirection::Rewrite,
20
19
  '/' => '/welcome/index'
21
20
 
@@ -24,6 +23,7 @@ use Utopia::Redirection::DirectoryIndex
24
23
  use Utopia::Redirection::Errors,
25
24
  404 => '/errors/file-not-found'
26
25
 
26
+ require 'utopia/localization'
27
27
  use Utopia::Localization,
28
28
  default_locale: 'en',
29
29
  locales: ['en', 'de', 'ja', 'zh']
@@ -2,5 +2,7 @@
2
2
 
3
3
  load :rack, :self_signed_tls, :supervisor
4
4
 
5
- rack 'utopia.localhost', :self_signed_tls
5
+ hostname = File.basename(__dir__)
6
+ rack hostname, :lets_encrypt
7
+
6
8
  supervisor
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utopia
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.0
4
+ version: 2.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-10 00:00:00.000000000 Z
11
+ date: 2019-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trenni
@@ -792,7 +792,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
792
792
  - !ruby/object:Gem::Version
793
793
  version: '0'
794
794
  requirements: []
795
- rubygems_version: 3.0.2
795
+ rubygems_version: 3.0.3
796
796
  signing_key:
797
797
  specification_version: 4
798
798
  summary: Utopia is a framework for building dynamic content-driven websites.