whoops 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,13 +4,10 @@ class EventGroupsController < ApplicationController
4
4
  helper_method :event_group_filter
5
5
 
6
6
  def index
7
- finder = if params[:query].blank?
8
- Whoops::EventGroup.where(event_group_filter.to_query_document)
9
- else
10
- Whoops::EventGroup.where(:_id.in => Whoops::Event.where(:keywords => /#{params[:query]}/i).collect{|e| e.event_group_id}.uniq)
11
- end
7
+ query_document = event_group_filter.to_query_document
8
+ query_document.merge!(:_id.in => Whoops::Event.where(:keywords => /#{params[:query]}/i).distinct(:event_group_id)) unless params[:query].blank?
12
9
 
13
- @event_groups = finder.desc(:last_recorded_at).page(params[:page]).per(30)
10
+ @event_groups = Whoops::EventGroup.where(query_document).desc(:last_recorded_at).page(params[:page]).per(30)
14
11
 
15
12
  respond_to do |format|
16
13
  format.html
@@ -73,6 +73,7 @@ class Whoops::Event
73
73
  end
74
74
 
75
75
  private
76
+
76
77
 
77
78
  def add_details_to_keywords(keywords_array)
78
79
  flattened = details.to_a.flatten
@@ -39,4 +39,4 @@ class Whoops::MongoidSearchParser
39
39
  value.gsub!(/!r(\/.*?\/)/, %Q{!ruby/regexp "\\1"})
40
40
  return YAML.load(value)
41
41
  end
42
- end
42
+ end
@@ -11,7 +11,6 @@
11
11
  .space
12
12
  %h3.info-revealer
13
13
  Search
14
- = image_tag "/images/_ui/icn_info.png"
15
14
  %form
16
15
  %p
17
16
  For more on searching, see "Search Event Details" in the
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whoops
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Daniel Higginbotham
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-14 00:00:00 Z
18
+ date: 2012-05-15 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rails
@@ -239,10 +239,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  requirements: []
240
240
 
241
241
  rubyforge_project:
242
- rubygems_version: 1.8.10
242
+ rubygems_version: 1.8.11
243
243
  signing_key:
244
244
  specification_version: 3
245
245
  summary: A Rails engine which receives logs and provides an interface for them
246
246
  test_files: []
247
247
 
248
- has_rdoc: