utopia 2.18.5 → 2.19.0

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: 526a3c6e7bb9c6d338f6b48e0a2967b9c0d5388206059904efd111600c9c9b37
4
- data.tar.gz: dd9cb6a66793cd0d621cb6edc843480f0297ef594c2750bacc203c3649091fac
3
+ metadata.gz: 677174ac49d8e0a2194ce704a4ef9913ea441f0870e15240e544d7ffa96543cb
4
+ data.tar.gz: c0344d7c6a00eea78414fce663ed9c6a6d03d37d36fc47e6c5f7f422de4b7cb2
5
5
  SHA512:
6
- metadata.gz: 3ae7de79938757ecd86a84d35a56d1185955812ab41cc0e29d44a6604ef669bfadbc52f36390e1d19cf53acc7a1f375cf59d484627d899c8ed3bdf3bb78b9927
7
- data.tar.gz: 9d193e4f88eb12f346371c738396b555b94315f9dcdd004d9395cff0229887f37ad6f22ee5c87d86a12aa9e65b9ecd174005348e495e14ffda76ad57b930e8c5
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](../rewrite/) controller layer.
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
- class << self
69
- def freeze
70
- # This ensures that all class variables are frozen.
71
- self.instance_variables.each do |name|
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
- def direct?(path)
79
- path.dirname == uri_path
80
- end
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
@@ -21,5 +21,5 @@
21
21
  # THE SOFTWARE.
22
22
 
23
23
  module Utopia
24
- VERSION = "2.18.5"
24
+ VERSION = "2.19.0"
25
25
  end
data/setup/site/gems.rb CHANGED
@@ -14,6 +14,7 @@ gem 'rake'
14
14
  gem 'bake'
15
15
  gem 'bundler'
16
16
  gem 'rack-test'
17
+ gem 'net-smtp'
17
18
 
18
19
  group :development do
19
20
  gem 'guard-falcon', require: false
@@ -34,10 +34,10 @@ RSpec.shared_context "server" do
34
34
  require 'benchmark/http/spider'
35
35
  end
36
36
 
37
- let(:endpoint) {Async::HTTP::Endpoint.parse("http://localhost", Async::IO::Endpoint.unix("server.ipc"))}
38
-
39
- let!(:server_task) do
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.18.5
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-04-17 00:00:00.000000000 Z
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.3
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
Binary file
data/setup/site/.DS_Store DELETED
Binary file
Binary file
Binary file
@@ -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