fdt_middleman_tools 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fdt_middleman_tools/version.rb +1 -1
- data/lib/fdt_middleman_tools.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a9f6afcd228037dbea86d46a7fa395290950f04
|
4
|
+
data.tar.gz: b322782dc4f668c0313db0cd68563cf5df939df0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41cc37046e06eb8a95574948d5ef24781dc5f3440c87f7ec4dca9a1fe4dbcb93820ee275f98beccf91e823a20b9b68b0ea1cb3117262a96a2ef799b81163976e
|
7
|
+
data.tar.gz: a66a19f1b1e19b3dabc0cc63bbc734b15f568422c67dcd1b6e1dd9be3b3d6f48a533e026b6f1876359944e0841919664fbdf0c33b9cc8e3663f0e624fbd8209c
|
data/lib/fdt_middleman_tools.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module FdtMiddlemanTools
|
2
2
|
|
3
3
|
def find_resource_by_path (path = '*', sortField = 'title')
|
4
|
-
sitemap.resources.select {|p| p.path.match(/#{path}/) }.sort{|x,y| x.data.sortField <=> y.data.sortField}
|
4
|
+
sitemap.resources.select {|p| p.path.match(/#{path}/) }.sort{|x,y| x.data.instance_eval(sortField) <=> y.data.instance_eval(sortField)}
|
5
5
|
end
|
6
6
|
|
7
7
|
end
|