utopia 2.18.5 → 2.19.0
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/lib/utopia/controller/actions.md +1 -1
- data/lib/utopia/controller/base.rb +9 -11
- data/lib/utopia/version.rb +1 -1
- data/setup/site/gems.rb +1 -0
- data/setup/site/spec/website_context.rb +7 -5
- metadata +17 -13
- data/lib/.DS_Store +0 -0
- data/lib/utopia/.DS_Store +0 -0
- data/lib/utopia/content/.DS_Store +0 -0
- data/lib/utopia/controller/.DS_Store +0 -0
- data/setup/.DS_Store +0 -0
- data/setup/server/.DS_Store +0 -0
- data/setup/site/.DS_Store +0 -0
- data/setup/site/pages/.DS_Store +0 -0
- data/setup/site/public/.DS_Store +0 -0
- data/setup/site/tmp/Gemfile +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 677174ac49d8e0a2194ce704a4ef9913ea441f0870e15240e544d7ffa96543cb
|
4
|
+
data.tar.gz: c0344d7c6a00eea78414fce663ed9c6a6d03d37d36fc47e6c5f7f422de4b7cb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf487dfd07bcf584a0aca8a9d8f6b4c97151941155a98a1d506c5c8d80bbe26e13f253f347e09d04f556ca3182380b8fd01363ebb37582cd15bd0b88e5a1690f
|
7
|
+
data.tar.gz: '069036ceb3bf30f8d04d7523126434043123d17f657d3ebc84225d5213ca43ac0935058a26feec316a744576d46084042ca97e44f54c68150d7c634324b18b33'
|
@@ -73,4 +73,4 @@ otherwise do |request, path|
|
|
73
73
|
end
|
74
74
|
```
|
75
75
|
|
76
|
-
If you are doing this to perform some kind of rewriting, it may be preferable to use the [Rewrite](../
|
76
|
+
If you are doing this to perform some kind of rewriting, it may be preferable to use the [Rewrite](../Rewrite/) controller layer.
|
@@ -65,19 +65,17 @@ module Utopia
|
|
65
65
|
"\#<#{self.class}#{details.join}>"
|
66
66
|
end
|
67
67
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
self.
|
72
|
-
self.instance_variable_get(name).freeze
|
73
|
-
end
|
74
|
-
|
75
|
-
super
|
68
|
+
def self.freeze
|
69
|
+
# This ensures that all class variables are frozen.
|
70
|
+
self.instance_variables.each do |name|
|
71
|
+
self.instance_variable_get(name).freeze
|
76
72
|
end
|
77
73
|
|
78
|
-
|
79
|
-
|
80
|
-
|
74
|
+
super
|
75
|
+
end
|
76
|
+
|
77
|
+
def self.direct?(path)
|
78
|
+
path.dirname == uri_path
|
81
79
|
end
|
82
80
|
|
83
81
|
def catch_response
|
data/lib/utopia/version.rb
CHANGED
data/setup/site/gems.rb
CHANGED
@@ -34,10 +34,10 @@ RSpec.shared_context "server" do
|
|
34
34
|
require 'benchmark/http/spider'
|
35
35
|
end
|
36
36
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
reactor.async do
|
37
|
+
before do
|
38
|
+
@endpoint = Async::HTTP::Endpoint.parse("http://localhost", Async::IO::Endpoint.unix("server.ipc"))
|
39
|
+
|
40
|
+
@server_task = reactor.async do
|
41
41
|
middleware = Falcon::Server.middleware(app)
|
42
42
|
|
43
43
|
server = Falcon::Server.new(middleware, endpoint)
|
@@ -47,6 +47,8 @@ RSpec.shared_context "server" do
|
|
47
47
|
end
|
48
48
|
|
49
49
|
after do
|
50
|
-
server_task.stop
|
50
|
+
@server_task.stop
|
51
51
|
end
|
52
|
+
|
53
|
+
let(:endpoint) {@endpoint}
|
52
54
|
end
|
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.
|
4
|
+
version: 2.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: net-smtp
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: rack
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -261,15 +275,12 @@ files:
|
|
261
275
|
- bake/utopia/static.rb
|
262
276
|
- bake/utopia/test.rb
|
263
277
|
- bin/utopia
|
264
|
-
- lib/.DS_Store
|
265
278
|
- lib/utopia.rb
|
266
|
-
- lib/utopia/.DS_Store
|
267
279
|
- lib/utopia/command.rb
|
268
280
|
- lib/utopia/command/environment.rb
|
269
281
|
- lib/utopia/command/server.rb
|
270
282
|
- lib/utopia/command/site.rb
|
271
283
|
- lib/utopia/content.rb
|
272
|
-
- lib/utopia/content/.DS_Store
|
273
284
|
- lib/utopia/content/document.rb
|
274
285
|
- lib/utopia/content/link.rb
|
275
286
|
- lib/utopia/content/links.rb
|
@@ -280,7 +291,6 @@ files:
|
|
280
291
|
- lib/utopia/content/tags.rb
|
281
292
|
- lib/utopia/content_length.rb
|
282
293
|
- lib/utopia/controller.rb
|
283
|
-
- lib/utopia/controller/.DS_Store
|
284
294
|
- lib/utopia/controller/actions.md
|
285
295
|
- lib/utopia/controller/actions.rb
|
286
296
|
- lib/utopia/controller/base.rb
|
@@ -311,10 +321,7 @@ files:
|
|
311
321
|
- lib/utopia/static/local_file.rb
|
312
322
|
- lib/utopia/static/mime_types.rb
|
313
323
|
- lib/utopia/version.rb
|
314
|
-
- setup/.DS_Store
|
315
|
-
- setup/server/.DS_Store
|
316
324
|
- setup/server/git/hooks/post-receive
|
317
|
-
- setup/site/.DS_Store
|
318
325
|
- setup/site/.gitignore
|
319
326
|
- setup/site/.rspec
|
320
327
|
- setup/site/Guardfile
|
@@ -326,14 +333,12 @@ files:
|
|
326
333
|
- setup/site/falcon.rb
|
327
334
|
- setup/site/gems.rb
|
328
335
|
- setup/site/lib/readme.txt
|
329
|
-
- setup/site/pages/.DS_Store
|
330
336
|
- setup/site/pages/_heading.xnode
|
331
337
|
- setup/site/pages/_page.xnode
|
332
338
|
- setup/site/pages/errors/exception.xnode
|
333
339
|
- setup/site/pages/errors/file-not-found.xnode
|
334
340
|
- setup/site/pages/links.yaml
|
335
341
|
- setup/site/pages/welcome/index.xnode
|
336
|
-
- setup/site/public/.DS_Store
|
337
342
|
- setup/site/public/_static/icon.svg
|
338
343
|
- setup/site/public/_static/site.css
|
339
344
|
- setup/site/public/_static/utopia-background.svg
|
@@ -342,7 +347,6 @@ files:
|
|
342
347
|
- setup/site/spec/spec_helper.rb
|
343
348
|
- setup/site/spec/website_context.rb
|
344
349
|
- setup/site/spec/website_spec.rb
|
345
|
-
- setup/site/tmp/Gemfile
|
346
350
|
homepage: https://github.com/ioquatix/utopia
|
347
351
|
licenses:
|
348
352
|
- MIT
|
@@ -363,7 +367,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
363
367
|
- !ruby/object:Gem::Version
|
364
368
|
version: '0'
|
365
369
|
requirements: []
|
366
|
-
rubygems_version: 3.2
|
370
|
+
rubygems_version: 3.3.2
|
367
371
|
signing_key:
|
368
372
|
specification_version: 4
|
369
373
|
summary: Utopia is a framework for building dynamic content-driven websites.
|
data/lib/.DS_Store
DELETED
Binary file
|
data/lib/utopia/.DS_Store
DELETED
Binary file
|
Binary file
|
Binary file
|
data/setup/.DS_Store
DELETED
Binary file
|
data/setup/server/.DS_Store
DELETED
Binary file
|
data/setup/site/.DS_Store
DELETED
Binary file
|
data/setup/site/pages/.DS_Store
DELETED
Binary file
|
data/setup/site/public/.DS_Store
DELETED
Binary file
|
data/setup/site/tmp/Gemfile
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
|
2
|
-
source "https://rubygems.org"
|
3
|
-
|
4
|
-
gem "utopia", "~> 1.8.0"
|
5
|
-
# gem "utopia-tags-gallery"
|
6
|
-
# gem "utopia-tags-google-analytics"
|
7
|
-
|
8
|
-
gem "rake"
|
9
|
-
gem "bundler"
|
10
|
-
|
11
|
-
gem "kramdown"
|
12
|
-
|
13
|
-
group :development do
|
14
|
-
# For `rake server`:
|
15
|
-
gem "puma"
|
16
|
-
|
17
|
-
# For `rake console`:
|
18
|
-
gem "pry"
|
19
|
-
gem "rack-test"
|
20
|
-
end
|