utopia 2.20.1 → 2.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/bake/utopia/node.rb +3 -1
- data/bake/utopia/shell.rb +3 -1
- data/bake/utopia/static.rb +3 -2
- data/bake/utopia/test.rb +3 -1
- data/bake/utopia.rb +3 -1
- data/lib/utopia/command/environment.rb +2 -19
- data/lib/utopia/command/server.rb +7 -20
- data/lib/utopia/command/site.rb +3 -19
- data/lib/utopia/command.rb +3 -19
- data/lib/utopia/content/document.rb +2 -19
- data/lib/utopia/content/link.rb +4 -19
- data/lib/utopia/content/links.rb +2 -19
- data/lib/utopia/content/markup.rb +2 -19
- data/lib/utopia/content/namespace.rb +2 -19
- data/lib/utopia/content/node.rb +4 -20
- data/lib/utopia/content/response.rb +2 -19
- data/lib/utopia/content/tags.rb +2 -19
- data/lib/utopia/content.rb +2 -19
- data/lib/utopia/content_length.rb +2 -19
- data/lib/utopia/controller/actions.rb +2 -19
- data/lib/utopia/controller/base.rb +2 -19
- data/lib/utopia/controller/respond.rb +2 -19
- data/lib/utopia/controller/rewrite.rb +2 -19
- data/lib/utopia/controller/variables.rb +2 -19
- data/lib/utopia/controller.rb +2 -19
- data/lib/utopia/exceptions/handler.rb +2 -19
- data/lib/utopia/exceptions/mailer.rb +2 -19
- data/lib/utopia/exceptions.rb +2 -19
- data/lib/utopia/extensions/array_split.rb +3 -20
- data/lib/utopia/extensions/date_comparisons.rb +3 -20
- data/lib/utopia/http.rb +2 -19
- data/lib/utopia/locale.rb +2 -19
- data/lib/utopia/localization.rb +2 -19
- data/lib/utopia/logger.rb +2 -19
- data/lib/utopia/middleware.rb +2 -19
- data/lib/utopia/path/matcher.rb +2 -19
- data/lib/utopia/path.rb +2 -19
- data/lib/utopia/redirection.rb +2 -19
- data/lib/utopia/responder.rb +2 -19
- data/lib/utopia/session/lazy_hash.rb +2 -19
- data/lib/utopia/session/serialization.rb +2 -19
- data/lib/utopia/session.rb +3 -19
- data/lib/utopia/setup.rb +2 -19
- data/lib/utopia/shell.rb +2 -19
- data/lib/utopia/static/local_file.rb +2 -19
- data/lib/utopia/static/mime_types.rb +2 -19
- data/lib/utopia/static.rb +2 -19
- data/lib/utopia/version.rb +3 -20
- data/lib/utopia.rb +3 -20
- data/license.md +25 -0
- data/readme.md +44 -0
- data/setup/site/bake.rb +3 -1
- data/setup/site/config/environment.rb +3 -0
- data/setup/site/falcon.rb +3 -0
- data/setup/site/gems.rb +3 -0
- data/setup/site/spec/spec_helper.rb +3 -0
- data/setup/site/spec/website_context.rb +4 -1
- data/setup/site/spec/website_spec.rb +3 -0
- data.tar.gz.sig +0 -0
- metadata +34 -32
- metadata.gz.sig +0 -0
data/lib/utopia/static.rb
CHANGED
@@ -1,24 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
#
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
# of this software and associated documentation files (the "Software"), to deal
|
7
|
-
# in the Software without restriction, including without limitation the rights
|
8
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
# copies of the Software, and to permit persons to whom the Software is
|
10
|
-
# furnished to do so, subject to the following conditions:
|
11
|
-
#
|
12
|
-
# The above copyright notice and this permission notice shall be included in
|
13
|
-
# all copies or substantial portions of the Software.
|
14
|
-
#
|
15
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
# THE SOFTWARE.
|
3
|
+
# Released under the MIT License.
|
4
|
+
# Copyright, 2009-2022, by Samuel Williams.
|
22
5
|
|
23
6
|
require_relative 'middleware'
|
24
7
|
require_relative 'localization'
|
data/lib/utopia/version.rb
CHANGED
@@ -1,25 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
#
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
# of this software and associated documentation files (the "Software"), to deal
|
7
|
-
# in the Software without restriction, including without limitation the rights
|
8
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
# copies of the Software, and to permit persons to whom the Software is
|
10
|
-
# furnished to do so, subject to the following conditions:
|
11
|
-
#
|
12
|
-
# The above copyright notice and this permission notice shall be included in
|
13
|
-
# all copies or substantial portions of the Software.
|
14
|
-
#
|
15
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
# THE SOFTWARE.
|
3
|
+
# Released under the MIT License.
|
4
|
+
# Copyright, 2009-2022, by Samuel Williams.
|
22
5
|
|
23
6
|
module Utopia
|
24
|
-
VERSION = "2.
|
7
|
+
VERSION = "2.21.0"
|
25
8
|
end
|
data/lib/utopia.rb
CHANGED
@@ -1,24 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
#
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
# of this software and associated documentation files (the "Software"), to deal
|
7
|
-
# in the Software without restriction, including without limitation the rights
|
8
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
# copies of the Software, and to permit persons to whom the Software is
|
10
|
-
# furnished to do so, subject to the following conditions:
|
11
|
-
#
|
12
|
-
# The above copyright notice and this permission notice shall be included in
|
13
|
-
# all copies or substantial portions of the Software.
|
14
|
-
#
|
15
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
# THE SOFTWARE.
|
3
|
+
# Released under the MIT License.
|
4
|
+
# Copyright, 2009-2022, by Samuel Williams.
|
22
5
|
|
23
6
|
require_relative 'utopia/version'
|
24
7
|
|
@@ -31,4 +14,4 @@ require_relative 'utopia/content_length'
|
|
31
14
|
|
32
15
|
# Utopia is a web application framework built on top of Rack.
|
33
16
|
module Utopia
|
34
|
-
end
|
17
|
+
end
|
data/license.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# MIT License
|
2
|
+
|
3
|
+
Copyright, 2009-2022, by Samuel Williams.
|
4
|
+
Copyright, 2015-2019, by Huba Nagy.
|
5
|
+
Copyright, 2020, by Olle Jonsson.
|
6
|
+
Copyright, 2020, by k1tsu.
|
7
|
+
Copyright, 2020, by Michael Adams.
|
8
|
+
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
10
|
+
of this software and associated documentation files (the "Software"), to deal
|
11
|
+
in the Software without restriction, including without limitation the rights
|
12
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
13
|
+
copies of the Software, and to permit persons to whom the Software is
|
14
|
+
furnished to do so, subject to the following conditions:
|
15
|
+
|
16
|
+
The above copyright notice and this permission notice shall be included in all
|
17
|
+
copies or substantial portions of the Software.
|
18
|
+
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
20
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
21
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
22
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
23
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
24
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
25
|
+
SOFTWARE.
|
data/readme.md
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# ![Utopia](materials/utopia.svg)
|
2
|
+
|
3
|
+
Utopia is a website generation framework which provides a robust set of tools to build highly complex dynamic websites. It uses the filesystem heavily for content and provides functions for interacting with files and directories as structure representing the website.
|
4
|
+
|
5
|
+
[![Development Status](https://github.com/socketry/utopia/workflows/Test/badge.svg)](https://github.com/socketry/utopia/actions?workflow=Test)
|
6
|
+
|
7
|
+
## Features
|
8
|
+
|
9
|
+
- Designed for both content-based websites and applications. Does not depend on a database.
|
10
|
+
- Supports flexible content localization based on industry recommendations.
|
11
|
+
- Rack middleware compatible with all major Ruby application servers. Small memory footprint by default.
|
12
|
+
- Low latency and high throughput. Capable of 10,000+ requests/second out of the box.
|
13
|
+
|
14
|
+
## Usage
|
15
|
+
|
16
|
+
Please see the [project documentation](https://socketry.github.io/utopia).
|
17
|
+
|
18
|
+
## Contributing
|
19
|
+
|
20
|
+
We welcome contributions to this project.
|
21
|
+
|
22
|
+
1. Fork it.
|
23
|
+
2. Create your feature branch (`git checkout -b my-new-feature`).
|
24
|
+
3. Commit your changes (`git commit -am 'Add some feature'`).
|
25
|
+
4. Push to the branch (`git push origin my-new-feature`).
|
26
|
+
5. Create new Pull Request.
|
27
|
+
|
28
|
+
## See Also
|
29
|
+
|
30
|
+
- [Trenni](https://github.com/ioquatix/trenni) — Template and markup parsers, markup generation.
|
31
|
+
- [Trenni::Formatters](https://github.com/ioquatix/trenni-formatters) — Helpers for HTML generation including views and forms.
|
32
|
+
- [Utopia::Gallery](https://github.com/ioquatix/utopia-gallery) — A fast photo gallery based on [libvips](https://github.com/jcupitt/libvips).
|
33
|
+
- [Utopia::Project](https://github.com/socketry/utopia-project) — A Ruby project documentation tool.
|
34
|
+
- [Utopia::Analytics](https://github.com/ioquatix/utopia-analytics) — Simple integration with Google Analytics.
|
35
|
+
- [HTTP::Accept](https://github.com/ioquatix/http-accept) — RFC compliant header parser.
|
36
|
+
- [Samovar](https://github.com/ioquatix/samovar) — Command line parser used by Utopia.
|
37
|
+
- [Mapping](https://github.com/ioquatix/mapping) — Provide structured conversions for web interfaces.
|
38
|
+
- [Rack::Test::Body](https://github.com/ioquatix/rack-test-body) — Provide convenient helpers for testing web interfaces.
|
39
|
+
|
40
|
+
### Examples
|
41
|
+
|
42
|
+
- [Financier](https://github.com/ioquatix/financier) — A small business management platform.
|
43
|
+
- [mail.oriontransfer.net](https://github.com/oriontransfer/mail.oriontransfer.net) - Mail server account management.
|
44
|
+
- [www.codeotaku.com](http://www.codeotaku.com) ([source](https://github.com/ioquatix/www.codeotaku.com)) — Personal website, blog.
|
data/setup/site/bake.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
#
|
3
|
+
# Released under the MIT License.
|
4
|
+
# Copyright, 2020-2022, by Samuel Williams.
|
5
|
+
|
4
6
|
def deploy
|
5
7
|
# This task is typiclly run after the site is updated but before the server is restarted.
|
6
8
|
end
|
data/setup/site/falcon.rb
CHANGED
data/setup/site/gems.rb
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Released under the MIT License.
|
4
|
+
# Copyright, 2016-2022, by Samuel Williams.
|
5
|
+
|
3
6
|
require 'rack/test'
|
4
7
|
require 'async/rspec/reactor'
|
5
8
|
|
@@ -9,7 +12,7 @@ RSpec.shared_context "website" do
|
|
9
12
|
let(:rackup_path) {File.expand_path('../config.ru', __dir__)}
|
10
13
|
let(:rackup_directory) {File.dirname(rackup_path)}
|
11
14
|
|
12
|
-
let(:app) {Rack::Builder.parse_file(rackup_path)
|
15
|
+
let(:app) {Rack::Builder.parse_file(rackup_path)}
|
13
16
|
end
|
14
17
|
|
15
18
|
RSpec.shared_examples_for "valid page" do |path|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,47 +1,47 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: utopia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
- Huba Nagy
|
9
9
|
- Michael Adams
|
10
10
|
- Olle Jonsson
|
11
|
-
- System Administrator
|
12
11
|
- k1tsu
|
13
12
|
autorequire:
|
14
13
|
bindir: bin
|
15
14
|
cert_chain:
|
16
15
|
- |
|
17
16
|
-----BEGIN CERTIFICATE-----
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
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46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: concurrent-ruby
|
@@ -145,16 +145,16 @@ dependencies:
|
|
145
145
|
name: rack
|
146
146
|
requirement: !ruby/object:Gem::Requirement
|
147
147
|
requirements:
|
148
|
-
- - "
|
148
|
+
- - "~>"
|
149
149
|
- !ruby/object:Gem::Version
|
150
|
-
version: '
|
150
|
+
version: '3.0'
|
151
151
|
type: :runtime
|
152
152
|
prerelease: false
|
153
153
|
version_requirements: !ruby/object:Gem::Requirement
|
154
154
|
requirements:
|
155
|
-
- - "
|
155
|
+
- - "~>"
|
156
156
|
- !ruby/object:Gem::Version
|
157
|
-
version: '
|
157
|
+
version: '3.0'
|
158
158
|
- !ruby/object:Gem::Dependency
|
159
159
|
name: samovar
|
160
160
|
requirement: !ruby/object:Gem::Requirement
|
@@ -368,6 +368,8 @@ files:
|
|
368
368
|
- lib/utopia/static/local_file.rb
|
369
369
|
- lib/utopia/static/mime_types.rb
|
370
370
|
- lib/utopia/version.rb
|
371
|
+
- license.md
|
372
|
+
- readme.md
|
371
373
|
- setup/server/git/hooks/post-receive
|
372
374
|
- setup/site/.gitignore
|
373
375
|
- setup/site/.rspec
|
metadata.gz.sig
CHANGED
Binary file
|