utopia 0.9.23 → 0.9.24
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/utopia/link.rb +13 -1
- data/lib/utopia/version.rb +1 -1
- metadata +3 -3
data/lib/utopia/link.rb
CHANGED
@@ -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
|
-
|
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
|
|
data/lib/utopia/version.rb
CHANGED
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
|
+
- 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-
|
17
|
+
date: 2010-04-16 00:00:00 +12:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|