blacklight_dates2svg 0.0.1.beta2 → 0.0.1.beta3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module BlacklightDates2SVG
2
- VERSION = "0.0.1.beta2"
2
+ VERSION = "0.0.1.beta3"
3
3
  end
@@ -25,7 +25,8 @@ module BlacklightDates2SVG
25
25
  def render_date_range_selector_grid(options={})
26
26
  items = (options[:dates] || @response.facets.select do |facet|
27
27
  facet.name == blacklight_config.search_date_field
28
- end.first.items)
28
+ end.first.try(:items))
29
+ return "" if items.nil?
29
30
  options.delete(:dates)
30
31
  unless items.blank?
31
32
  @date_selector = Dates2SVG.new(items, options)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight_dates2svg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.beta2
4
+ version: 0.0.1.beta3
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-17 00:00:00.000000000 Z
12
+ date: 2013-04-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -161,7 +161,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
161
  version: '0'
162
162
  segments:
163
163
  - 0
164
- hash: -4449922145157925452
164
+ hash: 3288099350750463235
165
165
  required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  none: false
167
167
  requirements: