utopia 0.9.58 → 0.9.59

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. data/lib/utopia.rb +1 -1
  2. data/lib/utopia/extensions/array.rb +1 -1
  3. data/lib/utopia/extensions/date.rb +1 -1
  4. data/lib/utopia/extensions/hash.rb +1 -1
  5. data/lib/utopia/extensions/rack.rb +1 -1
  6. data/lib/utopia/extensions/regexp.rb +1 -1
  7. data/lib/utopia/extensions/string.rb +1 -1
  8. data/lib/utopia/http_status_codes.rb +1 -1
  9. data/lib/utopia/link.rb +7 -5
  10. data/lib/utopia/middleware.rb +1 -1
  11. data/lib/utopia/middleware/all.rb +1 -1
  12. data/lib/utopia/middleware/benchmark.rb +1 -1
  13. data/lib/utopia/middleware/content.rb +1 -1
  14. data/lib/utopia/middleware/content/node.rb +1 -1
  15. data/lib/utopia/middleware/controller.rb +1 -1
  16. data/lib/utopia/middleware/directory_index.rb +1 -1
  17. data/lib/utopia/middleware/filter.rb +1 -1
  18. data/lib/utopia/middleware/localization.rb +1 -1
  19. data/lib/utopia/middleware/localization/name.rb +1 -1
  20. data/lib/utopia/middleware/logger.rb +1 -1
  21. data/lib/utopia/middleware/redirector.rb +1 -1
  22. data/lib/utopia/middleware/requester.rb +1 -1
  23. data/lib/utopia/middleware/static.rb +1 -1
  24. data/lib/utopia/path.rb +1 -1
  25. data/lib/utopia/session/encrypted_cookie.rb +1 -1
  26. data/lib/utopia/setup/config.ru +1 -1
  27. data/lib/utopia/tag.rb +1 -1
  28. data/lib/utopia/tags.rb +1 -1
  29. data/lib/utopia/tags/all.rb +1 -1
  30. data/lib/utopia/tags/env.rb +1 -1
  31. data/lib/utopia/tags/fortune.rb +1 -1
  32. data/lib/utopia/tags/gallery.rb +1 -1
  33. data/lib/utopia/tags/google_analytics.rb +1 -1
  34. data/lib/utopia/tags/node.rb +1 -1
  35. data/lib/utopia/tags/override.rb +1 -1
  36. data/lib/utopia/time_store.rb +1 -1
  37. data/lib/utopia/trenni.rb +1 -1
  38. data/lib/utopia/version.rb +2 -2
  39. data/lib/utopia/xnode.rb +1 -1
  40. data/lib/utopia/xnode/processor.rb +1 -1
  41. data/lib/utopia/xnode/scanner.rb +1 -1
  42. metadata +3 -3
@@ -1,4 +1,4 @@
1
- # This file is part of the "Utopia Framework" project, and is licensed under the GNU AGPLv3.
1
+ # This file is part of the "Utopia Framework" project, and is released under the MIT license.
2
2
  #
3
3
  # Copyright 2010 Samuel Williams. All rights reserved.
4
4
  #
@@ -1,4 +1,4 @@
1
- # This file is part of the "Utopia Framework" project, and is licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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
- links << Link.new(:directory, top + [filename, ""], directory_metadata.merge(:uri => "\#"))
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
@@ -1,4 +1,4 @@
1
- # This file is part of the "Utopia Framework" project, and is licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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
 
@@ -59,4 +59,4 @@ end
59
59
 
60
60
  use Utopia::Middleware::Content
61
61
 
62
- run lambda { [404, {}, []] }
62
+ run lambda { |env| [404, {}, []] }
@@ -1,4 +1,4 @@
1
- # This file is part of the "Utopia Framework" project, and is licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 = 58
9
+ TINY = 59
10
10
 
11
11
  STRING = [MAJOR, MINOR, TINY].join('.')
12
12
  end
@@ -1,4 +1,4 @@
1
- # This file is part of the "Utopia Framework" project, and is licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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 licensed under the GNU AGPLv3.
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
- - 58
9
- version: 0.9.58
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-01-12 00:00:00 +13:00
17
+ date: 2012-06-16 00:00:00 +12:00
18
18
  default_executable: utopia
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency