utopia 0.9.58 → 0.9.59
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/utopia.rb +1 -1
- data/lib/utopia/extensions/array.rb +1 -1
- data/lib/utopia/extensions/date.rb +1 -1
- data/lib/utopia/extensions/hash.rb +1 -1
- data/lib/utopia/extensions/rack.rb +1 -1
- data/lib/utopia/extensions/regexp.rb +1 -1
- data/lib/utopia/extensions/string.rb +1 -1
- data/lib/utopia/http_status_codes.rb +1 -1
- data/lib/utopia/link.rb +7 -5
- data/lib/utopia/middleware.rb +1 -1
- data/lib/utopia/middleware/all.rb +1 -1
- data/lib/utopia/middleware/benchmark.rb +1 -1
- data/lib/utopia/middleware/content.rb +1 -1
- data/lib/utopia/middleware/content/node.rb +1 -1
- data/lib/utopia/middleware/controller.rb +1 -1
- data/lib/utopia/middleware/directory_index.rb +1 -1
- data/lib/utopia/middleware/filter.rb +1 -1
- data/lib/utopia/middleware/localization.rb +1 -1
- data/lib/utopia/middleware/localization/name.rb +1 -1
- data/lib/utopia/middleware/logger.rb +1 -1
- data/lib/utopia/middleware/redirector.rb +1 -1
- data/lib/utopia/middleware/requester.rb +1 -1
- data/lib/utopia/middleware/static.rb +1 -1
- data/lib/utopia/path.rb +1 -1
- data/lib/utopia/session/encrypted_cookie.rb +1 -1
- data/lib/utopia/setup/config.ru +1 -1
- data/lib/utopia/tag.rb +1 -1
- data/lib/utopia/tags.rb +1 -1
- data/lib/utopia/tags/all.rb +1 -1
- data/lib/utopia/tags/env.rb +1 -1
- data/lib/utopia/tags/fortune.rb +1 -1
- data/lib/utopia/tags/gallery.rb +1 -1
- data/lib/utopia/tags/google_analytics.rb +1 -1
- data/lib/utopia/tags/node.rb +1 -1
- data/lib/utopia/tags/override.rb +1 -1
- data/lib/utopia/time_store.rb +1 -1
- data/lib/utopia/trenni.rb +1 -1
- data/lib/utopia/version.rb +2 -2
- data/lib/utopia/xnode.rb +1 -1
- data/lib/utopia/xnode/processor.rb +1 -1
- data/lib/utopia/xnode/scanner.rb +1 -1
- metadata +3 -3
data/lib/utopia.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
data/lib/utopia/link.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -77,10 +77,10 @@ module Utopia
|
|
77
77
|
options[:content] ||= title
|
78
78
|
options[:class] ||= "link"
|
79
79
|
|
80
|
-
if href
|
81
|
-
"<span class=#{options[:class].dump}>#{options[:content].to_html}</span>"
|
82
|
-
else
|
80
|
+
if href?
|
83
81
|
"<a class=#{options[:class].dump} href=\"#{href.to_html}\">#{options[:content].to_html}</a>"
|
82
|
+
else
|
83
|
+
"<span class=#{options[:class].dump}>#{options[:content].to_html}</span>"
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
@@ -160,6 +160,7 @@ module Utopia
|
|
160
160
|
indices = 0
|
161
161
|
Links.indices(fullpath) do |index|
|
162
162
|
index_name = File.basename(index, ".xnode")
|
163
|
+
# Values in indices_metadata will override values in directory_metadata:
|
163
164
|
index_metadata = directory_metadata.merge(indices_metadata[index_name] || {})
|
164
165
|
|
165
166
|
directory_link = Link.new(:directory, top + [filename, index_name], index_metadata)
|
@@ -179,7 +180,8 @@ module Utopia
|
|
179
180
|
end
|
180
181
|
|
181
182
|
if indices == 0
|
182
|
-
|
183
|
+
# We specify that no link was found, unless one was explicitly specified in directory_metadata:
|
184
|
+
links << Link.new(:directory, top + [filename, ""], {:uri => "\#"}.merge(directory_metadata))
|
183
185
|
end
|
184
186
|
elsif filename.match(INDEX_XNODE_FILTER) && options[:indices] == false
|
185
187
|
name = $1
|
data/lib/utopia/middleware.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
require 'utopia/middleware'
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
data/lib/utopia/path.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
data/lib/utopia/setup/config.ru
CHANGED
data/lib/utopia/tag.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
data/lib/utopia/tags.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
data/lib/utopia/tags/all.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
data/lib/utopia/tags/env.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
data/lib/utopia/tags/fortune.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
data/lib/utopia/tags/gallery.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
data/lib/utopia/tags/node.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
data/lib/utopia/tags/override.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
data/lib/utopia/time_store.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
data/lib/utopia/trenni.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
data/lib/utopia/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -6,7 +6,7 @@ module Utopia
|
|
6
6
|
module VERSION
|
7
7
|
MAJOR = 0
|
8
8
|
MINOR = 9
|
9
|
-
TINY =
|
9
|
+
TINY = 59
|
10
10
|
|
11
11
|
STRING = [MAJOR, MINOR, TINY].join('.')
|
12
12
|
end
|
data/lib/utopia/xnode.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
data/lib/utopia/xnode/scanner.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# This file is part of the "Utopia Framework" project, and is
|
1
|
+
# This file is part of the "Utopia Framework" project, and is released under the MIT license.
|
2
2
|
# Copyright 2010 Samuel Williams. All rights reserved.
|
3
3
|
# See <utopia.rb> for licensing details.
|
4
4
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 9
|
8
|
-
-
|
9
|
-
version: 0.9.
|
8
|
+
- 59
|
9
|
+
version: 0.9.59
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Samuel Williams
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2012-
|
17
|
+
date: 2012-06-16 00:00:00 +12:00
|
18
18
|
default_executable: utopia
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|