multi-solr 01.09.01 → 01.09.02

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,7 @@ class MultiSolr::SolrFilterSimple
21
21
  def initialize name, options={}
22
22
  @name = name
23
23
  @field_name = options[:field_name] || @name
24
- @value_render_proc = options.delete(:render_value) || lambda{|value| value.to_s }
24
+ @value_render_proc = options.delete(:render_value) || Proc.new{|value| value.to_s }
25
25
  @solr_query_proc = options.delete(:solr_query)
26
26
  @options = options || {}
27
27
  end
@@ -56,11 +56,7 @@ class MultiSolr::SolrFilterSimple
56
56
  # returns: String
57
57
  def render_value value, options=nil
58
58
  return '' if value.nil?
59
- if options
60
- @value_render_proc.call(value, options)
61
- else
62
- @value_render_proc.call(value)
63
- end
59
+ @value_render_proc.call(value, options)
64
60
  end
65
61
 
66
62
 
@@ -1,3 +1,3 @@
1
1
  module MultiSolr
2
- VERSION = "01.09.01"
2
+ VERSION = "01.09.02"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi-solr
3
3
  version: !ruby/object:Gem::Version
4
- hash: 49
4
+ hash: 55
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 9
9
- - 1
10
- version: 01.09.01
9
+ - 2
10
+ version: 01.09.02
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bernd Ledig
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-08-01 00:00:00 Z
18
+ date: 2013-08-02 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  prerelease: false