whoops 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.asciidoc +2 -0
- data/Rakefile +0 -9
- data/app/mailers/whoops/notification_mailer.rb +2 -1
- data/app/views/events/_detail.html.haml +1 -1
- metadata +145 -148
- data/app/controllers/#events_controller.rb# +0 -34
data/README.asciidoc
CHANGED
@@ -20,6 +20,8 @@ Whoops is a logging system. It consists of a Rails engine (which records logs an
|
|
20
20
|
* https://papertrailapp.com/[papertrail]
|
21
21
|
* http://graylog2.org/[Graylog2]
|
22
22
|
* https://github.com/errbit/errbit[errbit]
|
23
|
+
* http://loggly.com[loggly]
|
24
|
+
* https://logentries.com[logentries]
|
23
25
|
|
24
26
|
== License
|
25
27
|
|
data/Rakefile
CHANGED
@@ -7,7 +7,6 @@ rescue LoadError
|
|
7
7
|
end
|
8
8
|
|
9
9
|
require 'rake'
|
10
|
-
require 'rake/rdoctask'
|
11
10
|
|
12
11
|
require 'rspec/core'
|
13
12
|
require 'rspec/core/rake_task'
|
@@ -15,11 +14,3 @@ require 'rspec/core/rake_task'
|
|
15
14
|
RSpec::Core::RakeTask.new(:spec)
|
16
15
|
|
17
16
|
task :default => :spec
|
18
|
-
|
19
|
-
Rake::RDocTask.new(:rdoc) do |rdoc|
|
20
|
-
rdoc.rdoc_dir = 'rdoc'
|
21
|
-
rdoc.title = 'Whoops'
|
22
|
-
rdoc.options << '--line-numbers' << '--inline-source'
|
23
|
-
rdoc.rdoc_files.include('README.rdoc')
|
24
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
25
|
-
end
|
@@ -11,7 +11,8 @@ class Whoops::NotificationMailer < ActionMailer::Base
|
|
11
11
|
:to => addresses.join(", "),
|
12
12
|
:from => Rails.application.config.whoops_sender,
|
13
13
|
:subject => "Whoops Notification | #{event_group.service}: #{event_group.environment}: #{event_group.message}",
|
14
|
-
:body => body
|
14
|
+
:body => body,
|
15
|
+
:content_type => "text/plain"
|
15
16
|
)
|
16
17
|
end
|
17
18
|
end
|
metadata
CHANGED
@@ -1,174 +1,182 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: whoops
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.5
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 5
|
9
|
-
- 4
|
10
|
-
version: 0.5.4
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Daniel Higginbotham
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-03-20 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: rails
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
18
|
+
requirements:
|
26
19
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 3
|
31
|
-
version: "3"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '3'
|
32
22
|
type: :runtime
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: sass
|
36
23
|
prerelease: false
|
37
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: sass
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
38
33
|
none: false
|
39
|
-
requirements:
|
40
|
-
- -
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
|
43
|
-
segments:
|
44
|
-
- 0
|
45
|
-
version: "0"
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
46
38
|
type: :runtime
|
47
|
-
version_requirements: *id002
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: haml
|
50
39
|
prerelease: false
|
51
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: haml
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
52
49
|
none: false
|
53
|
-
requirements:
|
54
|
-
- -
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
|
57
|
-
segments:
|
58
|
-
- 0
|
59
|
-
version: "0"
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
60
54
|
type: :runtime
|
61
|
-
version_requirements: *id003
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: mongo
|
64
55
|
prerelease: false
|
65
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
57
|
none: false
|
67
|
-
requirements:
|
68
|
-
- -
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: mongo
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
74
70
|
type: :runtime
|
75
|
-
version_requirements: *id004
|
76
|
-
- !ruby/object:Gem::Dependency
|
77
|
-
name: mongoid
|
78
71
|
prerelease: false
|
79
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: mongoid
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
80
81
|
none: false
|
81
|
-
requirements:
|
82
|
+
requirements:
|
82
83
|
- - ~>
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
|
85
|
-
segments:
|
86
|
-
- 2
|
87
|
-
- 4
|
88
|
-
version: "2.4"
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '2.4'
|
89
86
|
type: :runtime
|
90
|
-
version_requirements: *id005
|
91
|
-
- !ruby/object:Gem::Dependency
|
92
|
-
name: kaminari
|
93
87
|
prerelease: false
|
94
|
-
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
89
|
none: false
|
96
|
-
requirements:
|
97
|
-
- -
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '2.4'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: kaminari
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
103
102
|
type: :runtime
|
104
|
-
version_requirements: *id006
|
105
|
-
- !ruby/object:Gem::Dependency
|
106
|
-
name: rspec-rails
|
107
103
|
prerelease: false
|
108
|
-
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: rspec-rails
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
109
113
|
none: false
|
110
|
-
requirements:
|
111
|
-
- -
|
112
|
-
- !ruby/object:Gem::Version
|
113
|
-
|
114
|
-
segments:
|
115
|
-
- 0
|
116
|
-
version: "0"
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
117
118
|
type: :development
|
118
|
-
version_requirements: *id007
|
119
|
-
- !ruby/object:Gem::Dependency
|
120
|
-
name: fabrication
|
121
119
|
prerelease: false
|
122
|
-
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: fabrication
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
123
129
|
none: false
|
124
|
-
requirements:
|
125
|
-
- -
|
126
|
-
- !ruby/object:Gem::Version
|
127
|
-
|
128
|
-
segments:
|
129
|
-
- 0
|
130
|
-
version: "0"
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
131
134
|
type: :development
|
132
|
-
version_requirements: *id008
|
133
|
-
- !ruby/object:Gem::Dependency
|
134
|
-
name: faker
|
135
135
|
prerelease: false
|
136
|
-
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
137
|
none: false
|
138
|
-
requirements:
|
139
|
-
- -
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: faker
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
145
150
|
type: :development
|
146
|
-
version_requirements: *id009
|
147
|
-
- !ruby/object:Gem::Dependency
|
148
|
-
name: capybara
|
149
151
|
prerelease: false
|
150
|
-
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: capybara
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
151
161
|
none: false
|
152
|
-
requirements:
|
153
|
-
- -
|
154
|
-
- !ruby/object:Gem::Version
|
155
|
-
hash: 15
|
156
|
-
segments:
|
157
|
-
- 0
|
158
|
-
- 4
|
159
|
-
- 0
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
160
165
|
version: 0.4.0
|
161
166
|
type: :development
|
162
|
-
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 0.4.0
|
163
174
|
description: A Rails engine which receives logs and provides an interface for them
|
164
175
|
email:
|
165
176
|
executables: []
|
166
|
-
|
167
177
|
extensions: []
|
168
|
-
|
169
178
|
extra_rdoc_files: []
|
170
|
-
|
171
|
-
files:
|
179
|
+
files:
|
172
180
|
- app/assets/javascripts/jquery-1.5.2.min.js
|
173
181
|
- app/assets/javascripts/whoops.js
|
174
182
|
- app/assets/stylesheets/autocomplete.scss
|
@@ -184,7 +192,6 @@ files:
|
|
184
192
|
- app/assets/stylesheets/variables.scss
|
185
193
|
- app/assets/stylesheets/whoops-application.css
|
186
194
|
- app/assets/stylesheets/whoops.css.scss
|
187
|
-
- app/controllers/#events_controller.rb#
|
188
195
|
- app/controllers/event_groups_controller.rb
|
189
196
|
- app/controllers/events_controller.rb
|
190
197
|
- app/controllers/notification_subscriptions_controller.rb
|
@@ -224,36 +231,26 @@ files:
|
|
224
231
|
- README.asciidoc
|
225
232
|
homepage: http://www.whoopsapp.com
|
226
233
|
licenses: []
|
227
|
-
|
228
234
|
post_install_message:
|
229
235
|
rdoc_options: []
|
230
|
-
|
231
|
-
require_paths:
|
236
|
+
require_paths:
|
232
237
|
- lib
|
233
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
238
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
234
239
|
none: false
|
235
|
-
requirements:
|
236
|
-
- -
|
237
|
-
- !ruby/object:Gem::Version
|
238
|
-
|
239
|
-
|
240
|
-
- 0
|
241
|
-
version: "0"
|
242
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ! '>='
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
243
245
|
none: false
|
244
|
-
requirements:
|
245
|
-
- -
|
246
|
-
- !ruby/object:Gem::Version
|
247
|
-
|
248
|
-
segments:
|
249
|
-
- 0
|
250
|
-
version: "0"
|
246
|
+
requirements:
|
247
|
+
- - ! '>='
|
248
|
+
- !ruby/object:Gem::Version
|
249
|
+
version: '0'
|
251
250
|
requirements: []
|
252
|
-
|
253
251
|
rubyforge_project:
|
254
252
|
rubygems_version: 1.8.24
|
255
253
|
signing_key:
|
256
254
|
specification_version: 3
|
257
255
|
summary: A Rails engine which receives logs and provides an interface for them
|
258
256
|
test_files: []
|
259
|
-
|
@@ -1,34 +0,0 @@
|
|
1
|
-
class EventsController < ApplicationController
|
2
|
-
layout 'whoops'
|
3
|
-
|
4
|
-
def index
|
5
|
-
@event_group = WhoopsFinderProxy.find_event_group(params[:event_group_id])
|
6
|
-
@event_group = find_event_group(params[:event_group_id])
|
7
|
-
|
8
|
-
events_base = @event_group.events
|
9
|
-
unless params[:query].blank?
|
10
|
-
conditions = Whoops::MongoidSearchParser.new(params[:query]).conditions
|
11
|
-
events_base = events_base.where(conditions)
|
12
|
-
end
|
13
|
-
|
14
|
-
@events = events_base.desc(:event_time).page(params[:page]).per(20)
|
15
|
-
end
|
16
|
-
|
17
|
-
def show
|
18
|
-
@event = Whoops::Event.find(params[:id])
|
19
|
-
respond_to do |format|
|
20
|
-
format.js { render :partial => 'details', :object => @event, :as => :event}
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
# TODO break this out into a more metal-y controller
|
25
|
-
def create
|
26
|
-
Whoops::Event.record(params[:event])
|
27
|
-
render :status => 200, :nothing => true
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
|
32
|
-
delegate fimnd_evbemt_groupo, ... to: authentiuvao--tor
|
33
|
-
def fihd_evenmt_group(id)
|
34
|
-
currd-
|