filterer 1.0.0.beta.3 → 1.0.0.beta.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: 7b64e1009c98554934753968a12b66710e022918
4
- data.tar.gz: ead6c3855b4285718d8a1bf503adb342eb4ae476
3
+ metadata.gz: 3efc0fb25168f9f7fa99430550bbd7e39a05d688
4
+ data.tar.gz: 8ec865378c61652d08186102c4a406e322387646
5
5
  SHA512:
6
- metadata.gz: 6dfa2494a649caec1aa3cd17bd7a8ba74a5d63611f3d3eb53a824fc9e44c05855f9dccdd25f97c29a60c84f568018eb94c1240f6df044577e498fdf8bb07ff89
7
- data.tar.gz: f3fe30e437c2719d3ea7ebfbe30947c69f8ecdf6d646f193da2daf43d061d88393190e2435d75814a61e73a98e5819811e54c68799eaf3f5e35ec6b04baeea54
6
+ metadata.gz: 21643251655d6df18e54566e47f7c48941e725c99d7f95374a4181304f8d65e46d4461547018a117d1212af0088eb43add03237be5f8369a7f45f9ba16cbf2df
7
+ data.tar.gz: c128279343a9807477efab1d5e5ed27224114405e2ba2bfed3bd55262314271f79f3d16bef2decd4190e0331aaab49762df092a1e8a60c66cdf37a2b119056e8
data/lib/filterer/base.rb CHANGED
@@ -199,7 +199,7 @@ module Filterer
199
199
  def sort_proc_to_string(opt)
200
200
  sort_key = opt[:key]
201
201
  matches = sort_key.is_a?(Regexp) && params[:sort].match(sort_key)
202
- opt[:string_or_proc].call(matches)
202
+ instance_exec matches, &opt[:string_or_proc]
203
203
  end
204
204
 
205
205
  def default_sort_option
@@ -1,3 +1,3 @@
1
1
  module Filterer
2
- VERSION = '1.0.0.beta.3'
2
+ VERSION = '1.0.0.beta.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filterer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta.3
4
+ version: 1.0.0.beta.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Becker