exception_notification_server 0.0.9 → 0.0.10
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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/app/controllers/exception_notification_server/notifications_controller.rb +1 -0
- data/app/models/exception_notification_server/notification.rb +2 -2
- data/app/views/exception_notification_server/notifications/show.html.haml +3 -2
- data/app/views/exception_notification_server/notifications/show.js.haml +3 -0
- data/exception_notification_server.gemspec +145 -143
- data/lib/exception_notification_server/version.rb +1 -1
- data/test/dummy/bin/bundle +0 -0
- data/test/dummy/bin/rails +0 -0
- data/test/dummy/bin/rake +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbd01a527c32b8014f9f78287c7b5777024169a5
|
4
|
+
data.tar.gz: 8da81ae05c7cef0d024d90236b82865e3d908d95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a52250c6773b32fd075aee1a3ae87b37311eab5ce42a6f2d2c9e7b4c6aafee5261574dd7f8fdf872e04a1e9fb6b826a6149d19f0f060648ace5e6f5397a5fbc8
|
7
|
+
data.tar.gz: a41208fb94bc4c5b1261a8471a3780dcf62c757074351091d52a61d4b4b38587ef035c50a41d7841718957978284f0aef92834ab9794e7f93fe179a1b597fbbb
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.10
|
@@ -7,7 +7,7 @@ module ExceptionNotificationServer
|
|
7
7
|
serialize :environment, Hash
|
8
8
|
|
9
9
|
belongs_to :parent, class: ExceptionNotificationServer::Notification
|
10
|
-
has_many :childrens, class: ExceptionNotificationServer::Notification, foreign_key: :parent_id
|
10
|
+
has_many :childrens, ->{select('id, parent_id, status, exception_hash, env, application, server, process, rails_root, exception_class, exception_message, created_at, updated_at')}, class: ExceptionNotificationServer::Notification, foreign_key: :parent_id
|
11
11
|
|
12
12
|
scope :base_notifications, ->(status = nil) { status.present? ? where(parent: nil, status: status) : where(parent: nil) }
|
13
13
|
STATUSES = [:new, :investigating, :fixed].freeze
|
@@ -24,7 +24,7 @@ module ExceptionNotificationServer
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def similar
|
27
|
-
parent_id.nil? ? childrens : Notification.where(arel_table[:id].eq(parent_id).or(arel_table[:parent_id].eq(parent_id).and(arel_table[:id].eq(id).not)))
|
27
|
+
parent_id.nil? ? childrens : Notification.select('id, parent_id, status, exception_hash, env, application, server, process, rails_root, exception_class, exception_message, created_at, updated_at').where(arel_table[:id].eq(parent_id).or(arel_table[:parent_id].eq(parent_id).and(arel_table[:id].eq(id).not)))
|
28
28
|
end
|
29
29
|
|
30
30
|
def similar_count(from = nil)
|
@@ -71,7 +71,8 @@
|
|
71
71
|
.environment
|
72
72
|
%h3 Environment
|
73
73
|
= pretty_json @notification.get_environment
|
74
|
-
- if @
|
74
|
+
- if @similar.to_a.present?
|
75
75
|
%br
|
76
|
-
= render partial: 'exception_notification_server/notifications/notifications', object: @
|
76
|
+
= render partial: 'exception_notification_server/notifications/notifications', object: @similar, as: :notifications, locals: {count: false, last_time: false, env: true}
|
77
|
+
= will_paginate @notifications, remote: true
|
77
78
|
%br
|
@@ -2,161 +2,163 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: exception_notification_server 0.0.
|
5
|
+
# stub: exception_notification_server 0.0.10 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
|
-
s.name =
|
9
|
-
s.version =
|
8
|
+
s.name = "exception_notification_server"
|
9
|
+
s.version = "0.0.10"
|
10
10
|
|
11
|
-
s.required_rubygems_version = Gem::Requirement.new(
|
12
|
-
s.require_paths = [
|
13
|
-
s.authors = [
|
14
|
-
s.date =
|
15
|
-
s.description =
|
16
|
-
s.email =
|
11
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib"]
|
13
|
+
s.authors = ["Anatoliy Varanitsa"]
|
14
|
+
s.date = "2016-02-15"
|
15
|
+
s.description = "Gem that receive errors from exception_notification gem and show it grouped on pages"
|
16
|
+
s.email = "Prizrack13@mail.ru"
|
17
17
|
s.extra_rdoc_files = [
|
18
|
-
|
19
|
-
|
18
|
+
"LICENSE.txt",
|
19
|
+
"README.rdoc"
|
20
20
|
]
|
21
21
|
s.files = [
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
22
|
+
".document",
|
23
|
+
".gitignore",
|
24
|
+
".ruby-gemset",
|
25
|
+
".ruby-version",
|
26
|
+
"Gemfile",
|
27
|
+
"Gemfile.lock",
|
28
|
+
"LICENSE.txt",
|
29
|
+
"README.rdoc",
|
30
|
+
"Rakefile",
|
31
|
+
"VERSION",
|
32
|
+
"app/assets/images/exception_notification_server/.keep",
|
33
|
+
"app/assets/javascripts/exception_notification_server/application.js.coffee",
|
34
|
+
"app/assets/javascripts/exception_notification_server/flot/excanvas.js",
|
35
|
+
"app/assets/javascripts/exception_notification_server/flot/jquery.flot.js",
|
36
|
+
"app/assets/javascripts/exception_notification_server/flot/jquery.flot.resize.js",
|
37
|
+
"app/assets/javascripts/exception_notification_server/flot/jquery.flot.time.js",
|
38
|
+
"app/assets/javascripts/exception_notification_server/jquery.sparkline.js",
|
39
|
+
"app/assets/javascripts/exception_notification_server/main.js.coffee",
|
40
|
+
"app/assets/javascripts/exception_notification_server/pages/notifications.js.coffee",
|
41
|
+
"app/assets/stylesheets/exception_notification_server/application.css.sass",
|
42
|
+
"app/assets/stylesheets/exception_notification_server/layout.css.sass",
|
43
|
+
"app/assets/stylesheets/exception_notification_server/notifications.css.sass",
|
44
|
+
"app/controllers/exception_notification_server/application_controller.rb",
|
45
|
+
"app/controllers/exception_notification_server/notifications_controller.rb",
|
46
|
+
"app/helpers/exception_notification_server/application_helper.rb",
|
47
|
+
"app/models/exception_notification_server/notification.rb",
|
48
|
+
"app/views/exception_notification_server/notifications/_notifications.html.haml",
|
49
|
+
"app/views/exception_notification_server/notifications/index.html.haml",
|
50
|
+
"app/views/exception_notification_server/notifications/index.js.haml",
|
51
|
+
"app/views/exception_notification_server/notifications/show.html.haml",
|
52
|
+
"app/views/exception_notification_server/notifications/show.js.haml",
|
53
|
+
"app/views/layouts/exception_notification_server/application.html.haml",
|
54
|
+
"config/routes.rb",
|
55
|
+
"exception_notification_server.gemspec",
|
56
|
+
"lib/exception_notification_server.rb",
|
57
|
+
"lib/exception_notification_server/engine.rb",
|
58
|
+
"lib/exception_notification_server/version.rb",
|
59
|
+
"lib/generators/exception_notification_server/install_generator.rb",
|
60
|
+
"lib/generators/exception_notification_server/templates/exception_notification_server.rb",
|
61
|
+
"lib/generators/exception_notification_server/templates/migration.rb",
|
62
|
+
"lib/tasks/exception_notification_server_tasks.rake",
|
63
|
+
"readme.md",
|
64
|
+
"test/dummy/README.rdoc",
|
65
|
+
"test/dummy/Rakefile",
|
66
|
+
"test/dummy/app/assets/images/.keep",
|
67
|
+
"test/dummy/app/assets/javascripts/application.js",
|
68
|
+
"test/dummy/app/assets/stylesheets/application.css",
|
69
|
+
"test/dummy/app/controllers/application_controller.rb",
|
70
|
+
"test/dummy/app/controllers/concerns/.keep",
|
71
|
+
"test/dummy/app/helpers/application_helper.rb",
|
72
|
+
"test/dummy/app/mailers/.keep",
|
73
|
+
"test/dummy/app/models/.keep",
|
74
|
+
"test/dummy/app/models/concerns/.keep",
|
75
|
+
"test/dummy/app/views/layouts/application.html.erb",
|
76
|
+
"test/dummy/bin/bundle",
|
77
|
+
"test/dummy/bin/rails",
|
78
|
+
"test/dummy/bin/rake",
|
79
|
+
"test/dummy/config.ru",
|
80
|
+
"test/dummy/config/application.rb",
|
81
|
+
"test/dummy/config/boot.rb",
|
82
|
+
"test/dummy/config/database.yml",
|
83
|
+
"test/dummy/config/environment.rb",
|
84
|
+
"test/dummy/config/environments/development.rb",
|
85
|
+
"test/dummy/config/environments/production.rb",
|
86
|
+
"test/dummy/config/environments/test.rb",
|
87
|
+
"test/dummy/config/initializers/assets.rb",
|
88
|
+
"test/dummy/config/initializers/backtrace_silencers.rb",
|
89
|
+
"test/dummy/config/initializers/cookies_serializer.rb",
|
90
|
+
"test/dummy/config/initializers/filter_parameter_logging.rb",
|
91
|
+
"test/dummy/config/initializers/inflections.rb",
|
92
|
+
"test/dummy/config/initializers/mime_types.rb",
|
93
|
+
"test/dummy/config/initializers/session_store.rb",
|
94
|
+
"test/dummy/config/initializers/wrap_parameters.rb",
|
95
|
+
"test/dummy/config/locales/en.yml",
|
96
|
+
"test/dummy/config/routes.rb",
|
97
|
+
"test/dummy/config/secrets.yml",
|
98
|
+
"test/dummy/db/test.sqlite3",
|
99
|
+
"test/dummy/lib/assets/.keep",
|
100
|
+
"test/dummy/log/.keep",
|
101
|
+
"test/dummy/public/404.html",
|
102
|
+
"test/dummy/public/422.html",
|
103
|
+
"test/dummy/public/500.html",
|
104
|
+
"test/dummy/public/favicon.ico",
|
105
|
+
"test/exception_notification_server_test.rb",
|
106
|
+
"test/integration/navigation_test.rb",
|
107
|
+
"test/test_helper.rb"
|
107
108
|
]
|
108
|
-
s.homepage =
|
109
|
-
s.licenses = [
|
110
|
-
s.required_ruby_version = Gem::Requirement.new(
|
111
|
-
s.rubygems_version =
|
112
|
-
s.summary =
|
113
|
-
s.test_files = [
|
109
|
+
s.homepage = "http://github.com/prizrack13/exception_notification_server"
|
110
|
+
s.licenses = ["MIT"]
|
111
|
+
s.required_ruby_version = Gem::Requirement.new(">= 1.9.2")
|
112
|
+
s.rubygems_version = "2.2.2"
|
113
|
+
s.summary = "Exception Notifiaction Server"
|
114
|
+
s.test_files = ["test/dummy/README.rdoc", "test/dummy/Rakefile", "test/dummy/app/assets/images/.keep", "test/dummy/app/assets/javascripts/application.js", "test/dummy/app/assets/stylesheets/application.css", "test/dummy/app/controllers/application_controller.rb", "test/dummy/app/controllers/concerns/.keep", "test/dummy/app/helpers/application_helper.rb", "test/dummy/app/mailers/.keep", "test/dummy/app/models/.keep", "test/dummy/app/models/concerns/.keep", "test/dummy/app/views/layouts/application.html.erb", "test/dummy/bin/bundle", "test/dummy/bin/rails", "test/dummy/bin/rake", "test/dummy/config.ru", "test/dummy/config/application.rb", "test/dummy/config/boot.rb", "test/dummy/config/database.yml", "test/dummy/config/environment.rb", "test/dummy/config/environments/development.rb", "test/dummy/config/environments/production.rb", "test/dummy/config/environments/test.rb", "test/dummy/config/initializers/assets.rb", "test/dummy/config/initializers/backtrace_silencers.rb", "test/dummy/config/initializers/cookies_serializer.rb", "test/dummy/config/initializers/filter_parameter_logging.rb", "test/dummy/config/initializers/inflections.rb", "test/dummy/config/initializers/mime_types.rb", "test/dummy/config/initializers/session_store.rb", "test/dummy/config/initializers/wrap_parameters.rb", "test/dummy/config/locales/en.yml", "test/dummy/config/routes.rb", "test/dummy/config/secrets.yml", "test/dummy/db/test.sqlite3", "test/dummy/lib/assets/.keep", "test/dummy/log/.keep", "test/dummy/public/404.html", "test/dummy/public/422.html", "test/dummy/public/500.html", "test/dummy/public/favicon.ico", "test/exception_notification_server_test.rb", "test/integration/navigation_test.rb", "test/test_helper.rb"]
|
114
115
|
|
115
|
-
if s.respond_to? :specification_version
|
116
|
+
if s.respond_to? :specification_version then
|
116
117
|
s.specification_version = 4
|
117
118
|
|
118
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0')
|
119
|
-
s.add_runtime_dependency(
|
120
|
-
s.add_runtime_dependency(
|
121
|
-
s.add_runtime_dependency(
|
122
|
-
s.add_runtime_dependency(
|
123
|
-
s.add_runtime_dependency(
|
124
|
-
s.add_runtime_dependency(
|
125
|
-
s.add_development_dependency(
|
126
|
-
s.add_development_dependency(
|
127
|
-
s.add_development_dependency(
|
128
|
-
s.add_development_dependency(
|
129
|
-
s.add_development_dependency(
|
130
|
-
s.add_development_dependency(
|
131
|
-
s.add_development_dependency(
|
119
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
120
|
+
s.add_runtime_dependency(%q<rails>, ["~> 4.1"])
|
121
|
+
s.add_runtime_dependency(%q<coderay>, ["~> 1.1"])
|
122
|
+
s.add_runtime_dependency(%q<jquery-rails>, [">= 0"])
|
123
|
+
s.add_runtime_dependency(%q<jquery-ui-rails>, [">= 0"])
|
124
|
+
s.add_runtime_dependency(%q<will_paginate>, [">= 0"])
|
125
|
+
s.add_runtime_dependency(%q<haml>, [">= 0"])
|
126
|
+
s.add_development_dependency(%q<sqlite3>, [">= 0"])
|
127
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
128
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
129
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
130
|
+
s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
|
131
|
+
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
132
|
+
s.add_development_dependency(%q<rubocop>, [">= 0"])
|
132
133
|
else
|
133
|
-
s.add_dependency(
|
134
|
-
s.add_dependency(
|
135
|
-
s.add_dependency(
|
136
|
-
s.add_dependency(
|
137
|
-
s.add_dependency(
|
138
|
-
s.add_dependency(
|
139
|
-
s.add_dependency(
|
140
|
-
s.add_dependency(
|
141
|
-
s.add_dependency(
|
142
|
-
s.add_dependency(
|
143
|
-
s.add_dependency(
|
144
|
-
s.add_dependency(
|
145
|
-
s.add_dependency(
|
134
|
+
s.add_dependency(%q<rails>, ["~> 4.1"])
|
135
|
+
s.add_dependency(%q<coderay>, ["~> 1.1"])
|
136
|
+
s.add_dependency(%q<jquery-rails>, [">= 0"])
|
137
|
+
s.add_dependency(%q<jquery-ui-rails>, [">= 0"])
|
138
|
+
s.add_dependency(%q<will_paginate>, [">= 0"])
|
139
|
+
s.add_dependency(%q<haml>, [">= 0"])
|
140
|
+
s.add_dependency(%q<sqlite3>, [">= 0"])
|
141
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
142
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
143
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
144
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
145
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
146
|
+
s.add_dependency(%q<rubocop>, [">= 0"])
|
146
147
|
end
|
147
148
|
else
|
148
|
-
s.add_dependency(
|
149
|
-
s.add_dependency(
|
150
|
-
s.add_dependency(
|
151
|
-
s.add_dependency(
|
152
|
-
s.add_dependency(
|
153
|
-
s.add_dependency(
|
154
|
-
s.add_dependency(
|
155
|
-
s.add_dependency(
|
156
|
-
s.add_dependency(
|
157
|
-
s.add_dependency(
|
158
|
-
s.add_dependency(
|
159
|
-
s.add_dependency(
|
160
|
-
s.add_dependency(
|
149
|
+
s.add_dependency(%q<rails>, ["~> 4.1"])
|
150
|
+
s.add_dependency(%q<coderay>, ["~> 1.1"])
|
151
|
+
s.add_dependency(%q<jquery-rails>, [">= 0"])
|
152
|
+
s.add_dependency(%q<jquery-ui-rails>, [">= 0"])
|
153
|
+
s.add_dependency(%q<will_paginate>, [">= 0"])
|
154
|
+
s.add_dependency(%q<haml>, [">= 0"])
|
155
|
+
s.add_dependency(%q<sqlite3>, [">= 0"])
|
156
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
157
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
158
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
159
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
160
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
161
|
+
s.add_dependency(%q<rubocop>, [">= 0"])
|
161
162
|
end
|
162
163
|
end
|
164
|
+
|
data/test/dummy/bin/bundle
CHANGED
File without changes
|
data/test/dummy/bin/rails
CHANGED
File without changes
|
data/test/dummy/bin/rake
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exception_notification_server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anatoliy Varanitsa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -231,6 +231,7 @@ files:
|
|
231
231
|
- app/views/exception_notification_server/notifications/index.html.haml
|
232
232
|
- app/views/exception_notification_server/notifications/index.js.haml
|
233
233
|
- app/views/exception_notification_server/notifications/show.html.haml
|
234
|
+
- app/views/exception_notification_server/notifications/show.js.haml
|
234
235
|
- app/views/layouts/exception_notification_server/application.html.haml
|
235
236
|
- config/routes.rb
|
236
237
|
- exception_notification_server.gemspec
|