utopia 0.9.23 → 0.9.24

Sign up to get free protection for your applications and to get access to all the features.
@@ -169,7 +169,19 @@ module Utopia
169
169
  index_name = File.basename(index, ".xnode")
170
170
  index_metadata = directory_metadata.merge(indices_metadata[index_name] || {})
171
171
 
172
- links << Link.new(:directory, top + [filename, index_name], index_metadata)
172
+ directory_link = Link.new(:directory, top + [filename, index_name], index_metadata)
173
+
174
+ # Check for localized directory metadata and update the link
175
+ if directory_link.locale
176
+ localized_metadata = metadata.delete(name + "." + directory_link.locale)
177
+
178
+ if localized_metadata
179
+ directory_link.info.update(localized_metadata.symbolize_keys)
180
+ end
181
+ end
182
+
183
+ links << directory_link
184
+
173
185
  indices += 1
174
186
  end
175
187
 
@@ -17,7 +17,7 @@ module Utopia
17
17
  module VERSION #:nodoc:
18
18
  MAJOR = 0
19
19
  MINOR = 9
20
- TINY = 23
20
+ TINY = 24
21
21
 
22
22
  STRING = [MAJOR, MINOR, TINY].join('.')
23
23
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 23
9
- version: 0.9.23
8
+ - 24
9
+ version: 0.9.24
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: 2010-04-15 00:00:00 +12:00
17
+ date: 2010-04-16 00:00:00 +12:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency