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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 00663ecc9d8172056f2dc3c926462711db788a01
4
- data.tar.gz: 2e98da038c541619de0724d3c2c2abbcefa87d3d
3
+ metadata.gz: 2a9f6afcd228037dbea86d46a7fa395290950f04
4
+ data.tar.gz: b322782dc4f668c0313db0cd68563cf5df939df0
5
5
  SHA512:
6
- metadata.gz: abf6858a5d80c11f149d7f9cc8174db30e601948779f666b0b9bf24ddbe40488fd98732bb6229e801fedcd6238275779dda1f82520914e6df646717210030ff5
7
- data.tar.gz: 3de5e9072735d1f4b04cbb601db34f941925b680a43c0155d3531901eb9b10b4e12bc0e4589f262cea2fafcbbd47d7128c1d851ae77e40dd3a6048be2a05c1fb
6
+ metadata.gz: 41cc37046e06eb8a95574948d5ef24781dc5f3440c87f7ec4dca9a1fe4dbcb93820ee275f98beccf91e823a20b9b68b0ea1cb3117262a96a2ef799b81163976e
7
+ data.tar.gz: a66a19f1b1e19b3dabc0cc63bbc734b15f568422c67dcd1b6e1dd9be3b3d6f48a533e026b6f1876359944e0841919664fbdf0c33b9cc8e3663f0e624fbd8209c
@@ -1,3 +1,3 @@
1
1
  module GemRelease
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
3
3
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fdt_middleman_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lorenzo Caldara