whoops 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,6 +17,7 @@ class Whoops::EventGroup
17
17
  field :last_recorded_at, :type => DateTime
18
18
  field :archived, :type => Boolean, :default => false
19
19
  field :notify_on_next_occurrence, :type => Boolean, :default => true
20
+ field :event_count, :type => Integer, :default => 0
20
21
 
21
22
  class << self
22
23
  def handle_new_event(params)
@@ -18,6 +18,6 @@
18
18
  %td= link_to event_group.event_type, whoops_event_group_events_path(event_group)
19
19
  %td= link_to event_group.environment, whoops_event_group_events_path(event_group)
20
20
  %td= link_to event_group.last_recorded_at.to_s(:whoops_default), whoops_event_group_events_path(event_group)
21
- %td= link_to event_group.events.count, whoops_event_group_events_path(event_group)
21
+ %td= link_to event_group.event_count, whoops_event_group_events_path(event_group)
22
22
 
23
23
  = paginate(@event_groups)
@@ -0,0 +1,9 @@
1
+ namespace :whoops do
2
+ desc "Data migration to set the event count, as of 0.2.4"
3
+ task :set_event_count => :environment do
4
+ Whoops::EventGroup.all.each do |e|
5
+ e.event_count = e.events.count
6
+ e.save
7
+ end
8
+ end
9
+ end
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: 17
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 3
10
- version: 0.2.3
9
+ - 4
10
+ version: 0.2.4
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-15 00:00:00 Z
18
+ date: 2012-07-03 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rails
@@ -202,6 +202,7 @@ files:
202
202
  - app/views/events/_details.html.haml
203
203
  - app/views/events/index.html.haml
204
204
  - app/views/layouts/whoops.html.haml
205
+ - lib/tasks/whoops.rake
205
206
  - lib/whoops/engine.rb
206
207
  - lib/whoops.rb
207
208
  - config/initializers/date_formats.rb
@@ -239,9 +240,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
240
  requirements: []
240
241
 
241
242
  rubyforge_project:
242
- rubygems_version: 1.8.11
243
+ rubygems_version: 1.8.10
243
244
  signing_key:
244
245
  specification_version: 3
245
246
  summary: A Rails engine which receives logs and provides an interface for them
246
247
  test_files: []
247
248
 
249
+ has_rdoc: