utopia 2.9.0 → 2.9.1
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/.gitignore +2 -1
- data/lib/utopia.rb +0 -1
- data/lib/utopia/command/site.rb +1 -1
- data/lib/utopia/version.rb +1 -1
- data/setup/site/config.ru +3 -3
- data/setup/site/falcon.rb +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c1416b64c8c7609f02743aae4863b5ac4015ecdb8595287713582f996df8b7aa
|
|
4
|
+
data.tar.gz: 40f41fed1b8f8501a73a9194253c45ce5126e31087441b7abba433d5bdeb083e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a0aef160e4a838cf7e1ef34b2a38a76c6ff91d9651ea8c8c5ffcbcc0c55c4fd7d0b35f9e99ad893f91e6100ca32ea7dc7725dd4e3bec321a99b0572b4168e96
|
|
7
|
+
data.tar.gz: 5fd676d9a4a4d0d0281bd184a323a3dd7ef1cd5f7e802f08d3749874db2b78700a20c18034629831edaf8156f8881e20806e65fc3cdfd89573def22513fe6960
|
data/.gitignore
CHANGED
data/lib/utopia.rb
CHANGED
|
@@ -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'
|
data/lib/utopia/command/site.rb
CHANGED
|
@@ -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"]
|
data/lib/utopia/version.rb
CHANGED
data/setup/site/config.ru
CHANGED
|
@@ -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']
|
data/setup/site/falcon.rb
CHANGED
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.
|
|
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-
|
|
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.
|
|
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.
|