rails_exception_handler 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +27 -2
- data/Gemfile +8 -3
- data/Gemfile.lock +71 -41
- data/HISTORY +3 -0
- data/README.markdown +24 -7
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/app/models/rails_exception_handler/active_record/error_message.rb +11 -0
- data/app/models/rails_exception_handler/mongoid/error_message.rb +27 -0
- data/gemfiles/rails30.gemfile +15 -0
- data/gemfiles/rails32.187-ree.gemfile +13 -0
- data/gemfiles/rails32.gemfile +14 -0
- data/gemfiles/rails40.gemfile +13 -0
- data/lib/rails_exception_handler/configuration.rb +5 -1
- data/lib/rails_exception_handler/storage.rb +10 -2
- data/lib/rails_exception_handler.rb +5 -0
- data/rails_exception_handler.gemspec +14 -6
- metadata +26 -5
- data/app/models/error_message.rb +0 -7
data/.travis.yml
CHANGED
@@ -9,7 +9,32 @@ language: ruby
|
|
9
9
|
|
10
10
|
rvm:
|
11
11
|
- 1.9.3
|
12
|
-
- 1.9.2
|
13
12
|
- 1.8.7
|
13
|
+
- 2.0.0
|
14
14
|
- ree
|
15
|
-
|
15
|
+
#- ruby-head
|
16
|
+
|
17
|
+
gemfile:
|
18
|
+
- gemfiles/rails30.gemfile
|
19
|
+
- gemfiles/rails32.gemfile
|
20
|
+
- gemfiles/rails40.gemfile
|
21
|
+
|
22
|
+
matrix:
|
23
|
+
include:
|
24
|
+
- rvm: 1.8.7
|
25
|
+
gemfile: gemfiles/rails32.187-ree.gemfile
|
26
|
+
- rvm: ree
|
27
|
+
gemfile: gemfiles/rails32.187-ree.gemfile
|
28
|
+
exclude:
|
29
|
+
- rvm: 1.8.7
|
30
|
+
gemfile: gemfiles/rails32.gemfile
|
31
|
+
- rvm: ree
|
32
|
+
gemfile: gemfiles/rails32.gemfile
|
33
|
+
allow_failures:
|
34
|
+
- rvm: 1.8.7
|
35
|
+
gemfile: gemfiles/rails40.gemfile
|
36
|
+
- rvm: ree
|
37
|
+
gemfile: gemfiles/rails40.gemfile
|
38
|
+
|
39
|
+
services:
|
40
|
+
- mongodb
|
data/Gemfile
CHANGED
@@ -3,14 +3,19 @@ source "http://rubygems.org"
|
|
3
3
|
group :test, :development do
|
4
4
|
|
5
5
|
#gem "rails", '3.0.20'
|
6
|
-
|
6
|
+
# gem "rack-test", '0.5.7'
|
7
|
+
# gem 'mongoid'
|
8
|
+
# gem 'bson_ext'
|
7
9
|
|
8
10
|
#gem "rails", '3.2.13'
|
9
|
-
|
11
|
+
# gem "rack-test", '0.6.2'
|
12
|
+
# gem 'mongoid'
|
10
13
|
|
11
|
-
gem "rails", '4.0.0
|
14
|
+
gem "rails", '4.0.0'
|
12
15
|
gem "rack-test", '0.6.2'
|
13
16
|
|
17
|
+
gem 'rake' # Needed by tavis
|
18
|
+
|
14
19
|
gem 'sqlite3'
|
15
20
|
gem 'pry'
|
16
21
|
gem "rspec-rails"
|
data/Gemfile.lock
CHANGED
@@ -1,57 +1,86 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rails_exception_handler (2.
|
4
|
+
rails_exception_handler (2.2.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: http://rubygems.org/
|
8
8
|
specs:
|
9
|
-
actionmailer (4.0.0
|
10
|
-
actionpack (= 4.0.0
|
9
|
+
actionmailer (4.0.0)
|
10
|
+
actionpack (= 4.0.0)
|
11
11
|
mail (~> 2.5.3)
|
12
|
-
actionpack (4.0.0
|
13
|
-
activesupport (= 4.0.0
|
12
|
+
actionpack (4.0.0)
|
13
|
+
activesupport (= 4.0.0)
|
14
14
|
builder (~> 3.1.0)
|
15
15
|
erubis (~> 2.7.0)
|
16
16
|
rack (~> 1.5.2)
|
17
17
|
rack-test (~> 0.6.2)
|
18
|
-
activemodel (4.0.0
|
19
|
-
activesupport (= 4.0.0
|
18
|
+
activemodel (4.0.0)
|
19
|
+
activesupport (= 4.0.0)
|
20
20
|
builder (~> 3.1.0)
|
21
|
-
activerecord (4.0.0
|
22
|
-
activemodel (= 4.0.0
|
21
|
+
activerecord (4.0.0)
|
22
|
+
activemodel (= 4.0.0)
|
23
23
|
activerecord-deprecated_finders (~> 1.0.2)
|
24
|
-
activesupport (= 4.0.0
|
24
|
+
activesupport (= 4.0.0)
|
25
25
|
arel (~> 4.0.0)
|
26
26
|
activerecord-deprecated_finders (1.0.3)
|
27
|
-
activesupport (4.0.0
|
27
|
+
activesupport (4.0.0)
|
28
28
|
i18n (~> 0.6, >= 0.6.4)
|
29
29
|
minitest (~> 4.2)
|
30
30
|
multi_json (~> 1.3)
|
31
31
|
thread_safe (~> 0.1)
|
32
32
|
tzinfo (~> 0.3.37)
|
33
|
+
addressable (2.3.5)
|
33
34
|
arel (4.0.0)
|
34
|
-
atomic (1.1.
|
35
|
+
atomic (1.1.14)
|
35
36
|
builder (3.1.4)
|
36
37
|
coderay (1.0.9)
|
37
38
|
diff-lcs (1.2.4)
|
38
39
|
erubis (2.7.0)
|
39
|
-
|
40
|
+
faraday (0.8.8)
|
41
|
+
multipart-post (~> 1.2.0)
|
42
|
+
git (1.2.6)
|
43
|
+
github_api (0.10.1)
|
44
|
+
addressable
|
45
|
+
faraday (~> 0.8.1)
|
46
|
+
hashie (>= 1.2)
|
47
|
+
multi_json (~> 1.4)
|
48
|
+
nokogiri (~> 1.5.2)
|
49
|
+
oauth2
|
50
|
+
hashie (2.0.5)
|
51
|
+
highline (1.6.19)
|
40
52
|
hike (1.2.3)
|
41
|
-
|
42
|
-
|
53
|
+
httpauth (0.2.0)
|
54
|
+
i18n (0.6.5)
|
55
|
+
jeweler (1.8.7)
|
56
|
+
builder
|
43
57
|
bundler (~> 1.0)
|
44
58
|
git (>= 1.2.5)
|
59
|
+
github_api (= 0.10.1)
|
60
|
+
highline (>= 1.6.15)
|
61
|
+
nokogiri (= 1.5.10)
|
45
62
|
rake
|
46
63
|
rdoc
|
47
64
|
json (1.8.0)
|
65
|
+
jwt (0.1.8)
|
66
|
+
multi_json (>= 1.5)
|
48
67
|
mail (2.5.4)
|
49
68
|
mime-types (~> 1.16)
|
50
69
|
treetop (~> 1.4.8)
|
51
|
-
method_source (0.8.
|
52
|
-
mime-types (1.
|
53
|
-
minitest (4.7.
|
54
|
-
multi_json (1.
|
70
|
+
method_source (0.8.2)
|
71
|
+
mime-types (1.25)
|
72
|
+
minitest (4.7.5)
|
73
|
+
multi_json (1.8.0)
|
74
|
+
multi_xml (0.5.5)
|
75
|
+
multipart-post (1.2.0)
|
76
|
+
nokogiri (1.5.10)
|
77
|
+
oauth2 (0.9.2)
|
78
|
+
faraday (~> 0.8)
|
79
|
+
httpauth (~> 0.2)
|
80
|
+
jwt (~> 0.1.4)
|
81
|
+
multi_json (~> 1.0)
|
82
|
+
multi_xml (~> 0.5)
|
83
|
+
rack (~> 1.2)
|
55
84
|
polyglot (0.3.3)
|
56
85
|
pry (0.9.12.2)
|
57
86
|
coderay (~> 1.0.5)
|
@@ -60,34 +89,34 @@ GEM
|
|
60
89
|
rack (1.5.2)
|
61
90
|
rack-test (0.6.2)
|
62
91
|
rack (>= 1.0)
|
63
|
-
rails (4.0.0
|
64
|
-
actionmailer (= 4.0.0
|
65
|
-
actionpack (= 4.0.0
|
66
|
-
activerecord (= 4.0.0
|
67
|
-
activesupport (= 4.0.0
|
92
|
+
rails (4.0.0)
|
93
|
+
actionmailer (= 4.0.0)
|
94
|
+
actionpack (= 4.0.0)
|
95
|
+
activerecord (= 4.0.0)
|
96
|
+
activesupport (= 4.0.0)
|
68
97
|
bundler (>= 1.3.0, < 2.0)
|
69
|
-
railties (= 4.0.0
|
98
|
+
railties (= 4.0.0)
|
70
99
|
sprockets-rails (~> 2.0.0)
|
71
|
-
railties (4.0.0
|
72
|
-
actionpack (= 4.0.0
|
73
|
-
activesupport (= 4.0.0
|
100
|
+
railties (4.0.0)
|
101
|
+
actionpack (= 4.0.0)
|
102
|
+
activesupport (= 4.0.0)
|
74
103
|
rake (>= 0.8.7)
|
75
104
|
thor (>= 0.18.1, < 2.0)
|
76
|
-
rake (10.0
|
105
|
+
rake (10.1.0)
|
77
106
|
rdoc (4.0.1)
|
78
107
|
json (~> 1.4)
|
79
|
-
rspec-core (2.
|
80
|
-
rspec-expectations (2.
|
108
|
+
rspec-core (2.14.5)
|
109
|
+
rspec-expectations (2.14.2)
|
81
110
|
diff-lcs (>= 1.1.3, < 2.0)
|
82
|
-
rspec-mocks (2.
|
83
|
-
rspec-rails (2.
|
111
|
+
rspec-mocks (2.14.3)
|
112
|
+
rspec-rails (2.14.0)
|
84
113
|
actionpack (>= 3.0)
|
85
114
|
activesupport (>= 3.0)
|
86
115
|
railties (>= 3.0)
|
87
|
-
rspec-core (~> 2.
|
88
|
-
rspec-expectations (~> 2.
|
89
|
-
rspec-mocks (~> 2.
|
90
|
-
slop (3.4.
|
116
|
+
rspec-core (~> 2.14.0)
|
117
|
+
rspec-expectations (~> 2.14.0)
|
118
|
+
rspec-mocks (~> 2.14.0)
|
119
|
+
slop (3.4.6)
|
91
120
|
sprockets (2.10.0)
|
92
121
|
hike (~> 1.2)
|
93
122
|
multi_json (~> 1.0)
|
@@ -97,12 +126,12 @@ GEM
|
|
97
126
|
actionpack (>= 3.0)
|
98
127
|
activesupport (>= 3.0)
|
99
128
|
sprockets (~> 2.8)
|
100
|
-
sqlite3 (1.3.
|
129
|
+
sqlite3 (1.3.8)
|
101
130
|
thor (0.18.1)
|
102
|
-
thread_safe (0.1.
|
131
|
+
thread_safe (0.1.3)
|
103
132
|
atomic
|
104
133
|
tilt (1.4.1)
|
105
|
-
treetop (1.4.
|
134
|
+
treetop (1.4.15)
|
106
135
|
polyglot
|
107
136
|
polyglot (>= 0.3.1)
|
108
137
|
tzinfo (0.3.37)
|
@@ -114,7 +143,8 @@ DEPENDENCIES
|
|
114
143
|
jeweler
|
115
144
|
pry
|
116
145
|
rack-test (= 0.6.2)
|
117
|
-
rails (= 4.0.0
|
146
|
+
rails (= 4.0.0)
|
118
147
|
rails_exception_handler!
|
148
|
+
rake
|
119
149
|
rspec-rails
|
120
150
|
sqlite3
|
data/HISTORY
CHANGED
data/README.markdown
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
# Rails Exception Handler [![Build Status](
|
1
|
+
# Rails Exception Handler [![Build Status](https://travis-ci.org/Sharagoz/rails_exception_handler.png?branch=master)](http://travis-ci.org/#!/Sharagoz/rails_exception_handler)
|
2
2
|
|
3
3
|
Upgrading from version 1? [See wiki](https://github.com/Sharagoz/rails_exception_handler/wiki/Version-2.0-upgrade-instructions)
|
4
4
|
|
5
|
-
This is a flexible exception handler for Rails
|
5
|
+
This is a flexible exception handler for Rails intended for those who wish to create their own error tracking service. It is aimed at experienced Rails developers who are administrating more than just a couple of rails applications. Dont be intimidated if you're new to Rails though, it's not that hard to set up.
|
6
6
|
|
7
|
-
The exception handler enables you to save the key information from the error message in a database somewhere, via ActiveRecord or HTTP POST, and display a customized error message to the user within the applications layout file. You can hook this exception handler into all your rails apps and gather the exception reports in one place. The exception handler just contains the back end, you will have to create your own front end to view and manage the error reports.
|
7
|
+
The exception handler enables you to save the key information from the error message in a database somewhere, via ActiveRecord or HTTP POST, and display a customized error message to the user within the applications layout file. You can hook this exception handler into all your rails apps and gather the exception reports in one place. The exception handler just contains the back end, you will have to create your own front end to view and manage the error reports. A Rails Engine admin interface, [rails_exception_handler_admin](https://github.com/mgwidmann/rails_exception_handler_admin), is a simple drop in interface or to use as an example for building your own.
|
8
8
|
|
9
9
|
Does your app have an authorization mechanism? [See wiki](https://github.com/Sharagoz/rails_exception_handler/wiki/Interaction-with-authorization-mechanisms)
|
10
10
|
|
@@ -12,7 +12,7 @@ Do you need to catch ruby errors outside of Rack? [See wiki](https://github.com/
|
|
12
12
|
|
13
13
|
## Compatiblity
|
14
14
|
|
15
|
-
The gem should work with all versions of Rails 3. It does not work with Rails 2.
|
15
|
+
The gem should work with all versions of Rails 3 and 4. It does not work with Rails 2.
|
16
16
|
|
17
17
|
See Travis-CI for info on which rubies it is tested against:
|
18
18
|
http://travis-ci.org/#!/Sharagoz/rails_exception_handler
|
@@ -174,6 +174,24 @@ class CreateErrorMessages < ActiveRecord::Migration
|
|
174
174
|
end
|
175
175
|
```
|
176
176
|
|
177
|
+
### Through mongoid
|
178
|
+
|
179
|
+
```ruby
|
180
|
+
config.storage_strategies = [:mongoid]
|
181
|
+
```
|
182
|
+
This means that the error reports will be stored through mongoid directly to MongoDB. No changes to your mongoid.yml are necessary.
|
183
|
+
|
184
|
+
Instead, in your configuration initializer, set the location where errors should be saved. Below is an example of the default when this option is left blank:
|
185
|
+
|
186
|
+
```ruby
|
187
|
+
config.mongoid_store_in :database => :exception_database, :collection => :error_message
|
188
|
+
```
|
189
|
+
|
190
|
+
Be sure to set username and password credentials if necessary! No migration script is necessary to run.
|
191
|
+
|
192
|
+
This can be used simultaneously with the active_record strategy, or any other strategy for that matter, if desired.
|
193
|
+
|
194
|
+
|
177
195
|
### Saving to the rails log
|
178
196
|
|
179
197
|
```ruby
|
@@ -203,7 +221,7 @@ config.storage_strategies = [:remote_url => {:target => 'http://example.com/erro
|
|
203
221
|
```
|
204
222
|
|
205
223
|
This option is meant for those who want to store the exception in a database table, but does not have direct access to the database itself, making active record store unsuitable. You need a web app on a server that has access to the database. An HTTP POST request will be sent to the specified URL with the error message as data.
|
206
|
-
If you use a Rails app at the other end you should simply be able to do
|
224
|
+
If you use a Rails app at the other end you should simply be able to do `RailsExceptionHandler::ActiveRecord::ErrorMessage.create(params[:error_message])` or `RailsExceptionHandler::Mongoid::ErrorMessage.create(params[:error_message])` to save the report depending upon your database choice.
|
207
225
|
|
208
226
|
# Exception filters
|
209
227
|
|
@@ -266,11 +284,10 @@ config.filters = [:referer_url_regxp => /\problematicreferer/i]
|
|
266
284
|
|
267
285
|
# Contributors
|
268
286
|
|
269
|
-
David Rice and James Harrison
|
287
|
+
mgwidmann, David Rice and James Harrison
|
270
288
|
|
271
289
|
Would you like to contribute? Here are some things on the todo list:
|
272
290
|
|
273
|
-
* A mongoid storage strategy for those that wish to use MongoDB
|
274
291
|
* An email storage strategy for those that wish to be notified of the exceptions through email
|
275
292
|
|
276
293
|
# Licence
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.3.0
|
@@ -0,0 +1,27 @@
|
|
1
|
+
class RailsExceptionHandler::Mongoid
|
2
|
+
class ErrorMessage
|
3
|
+
if defined?(Mongoid)
|
4
|
+
include Mongoid::Document
|
5
|
+
include Mongoid::Timestamps
|
6
|
+
|
7
|
+
store_in({:database => :exception_database, :collection => :error_message}.merge(RailsExceptionHandler.configuration.mongoid_store_in || {}))
|
8
|
+
|
9
|
+
field :class_name, :type => String
|
10
|
+
field :message, :type => String
|
11
|
+
field :trace, :type => String
|
12
|
+
field :target_url, :type => String
|
13
|
+
field :referer_url, :type => String
|
14
|
+
field :user_agent, :type => String
|
15
|
+
field :user_info, :type => String
|
16
|
+
field :app_name, :type => String
|
17
|
+
field :doc_root, :type => String
|
18
|
+
# Wish this could be a Hash, but since the legacy code expects that Hash.inspect is done (and they are parameters sent by the client)
|
19
|
+
# it is not safe to eval it to transform it back into a Hash. Also, if config.store_request_info block did not perform inspect,
|
20
|
+
# it could not be used by both Mongoid and any other storage strategy since those storage strategies would be responsible for
|
21
|
+
# ensuring inspect were called. Possibly in a future major release this can be switched, though not sure if any benefit will
|
22
|
+
# actually be gained from changing the type.
|
23
|
+
field :params, :type => String
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
source "https://rubygems.org"
|
3
|
+
|
4
|
+
group :test, :development do
|
5
|
+
gem "rails", '3.0.20'
|
6
|
+
gem "rack-test", '0.5.7'
|
7
|
+
gem 'rake' # Needed by tavis
|
8
|
+
gem 'mongoid'
|
9
|
+
gem 'bson_ext'
|
10
|
+
gem 'sqlite3'
|
11
|
+
gem 'pry'
|
12
|
+
gem "rspec-rails"
|
13
|
+
gem "jeweler"
|
14
|
+
gem "rails_exception_handler"
|
15
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
source "https://rubygems.org"
|
3
|
+
|
4
|
+
group :test, :development do
|
5
|
+
gem "rails", '3.2.13'
|
6
|
+
gem "rack-test", '0.6.2'
|
7
|
+
gem 'rake' # Needed by tavis
|
8
|
+
gem 'sqlite3'
|
9
|
+
gem 'pry'
|
10
|
+
gem "rspec-rails"
|
11
|
+
gem "jeweler"
|
12
|
+
gem "rails_exception_handler"
|
13
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
source "https://rubygems.org"
|
3
|
+
|
4
|
+
group :test, :development do
|
5
|
+
gem "rails", '3.2.13'
|
6
|
+
gem "rack-test", '0.6.2'
|
7
|
+
gem 'rake' # Needed by tavis
|
8
|
+
gem 'sqlite3'
|
9
|
+
gem 'mongoid'
|
10
|
+
gem 'pry'
|
11
|
+
gem "rspec-rails"
|
12
|
+
gem "jeweler"
|
13
|
+
gem "rails_exception_handler"
|
14
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
source "https://rubygems.org"
|
3
|
+
|
4
|
+
group :test, :development do
|
5
|
+
gem "rails", '4.0.0'
|
6
|
+
gem "rack-test", '0.6.2'
|
7
|
+
gem 'rake' # Needed by tavis
|
8
|
+
gem 'sqlite3'
|
9
|
+
gem 'pry'
|
10
|
+
gem "rspec-rails"
|
11
|
+
gem "jeweler"
|
12
|
+
gem "rails_exception_handler"
|
13
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
class RailsExceptionHandler::Configuration
|
2
|
-
attr_accessor :storage_strategies, :environments, :filters, :responses, :response_mapping, :fallback_layout, :store_user_info, :env_info_block, :global_info_block, :exception_info_block, :request_info_block
|
2
|
+
attr_accessor :storage_strategies, :environments, :filters, :responses, :response_mapping, :fallback_layout, :store_user_info, :env_info_block, :global_info_block, :exception_info_block, :request_info_block, :mongoid_store_in
|
3
3
|
|
4
4
|
def initialize
|
5
5
|
@environments = [:production]
|
@@ -15,6 +15,10 @@ class RailsExceptionHandler::Configuration
|
|
15
15
|
@storage_strategies.include?(:active_record)
|
16
16
|
end
|
17
17
|
|
18
|
+
def mongoid?
|
19
|
+
@storage_strategies.include?(:mongoid)
|
20
|
+
end
|
21
|
+
|
18
22
|
def activate?
|
19
23
|
environments.include?(Rails.env.to_sym)
|
20
24
|
end
|
@@ -1,9 +1,17 @@
|
|
1
1
|
class RailsExceptionHandler::Storage
|
2
2
|
def self.active_record(info)
|
3
3
|
if Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR > 0
|
4
|
-
ErrorMessage.create(info, :without_protection => true)
|
4
|
+
RailsExceptionHandler::ActiveRecord::ErrorMessage.create(info, :without_protection => true) if RailsExceptionHandler::ActiveRecord::ErrorMessage.respond_to?(:create)
|
5
5
|
else
|
6
|
-
ErrorMessage.create(info)
|
6
|
+
RailsExceptionHandler::ActiveRecord::ErrorMessage.create(info) if RailsExceptionHandler::ActiveRecord::ErrorMessage.respond_to?(:create)
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.mongoid(info)
|
11
|
+
if Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR > 0
|
12
|
+
RailsExceptionHandler::Mongoid::ErrorMessage.create(info, :without_protection => true) if RailsExceptionHandler::Mongoid::ErrorMessage.respond_to?(:create)
|
13
|
+
else
|
14
|
+
RailsExceptionHandler::Mongoid::ErrorMessage.create(info) if RailsExceptionHandler::Mongoid::ErrorMessage.respond_to?(:create)
|
7
15
|
end
|
8
16
|
end
|
9
17
|
|
@@ -29,6 +29,11 @@ class RailsExceptionHandler
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
+
class RailsExceptionHandler::ActiveRecord
|
33
|
+
end
|
34
|
+
class RailsExceptionHandler::Mongoid
|
35
|
+
end
|
36
|
+
|
32
37
|
require 'rails_exception_handler/configuration.rb'
|
33
38
|
require 'rails_exception_handler/handler.rb'
|
34
39
|
require 'rails_exception_handler/parser.rb'
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "rails_exception_handler"
|
8
|
-
s.version = "2.
|
8
|
+
s.version = "2.3.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Sharagoz"]
|
12
|
-
s.date = "2013-
|
12
|
+
s.date = "2013-12-11"
|
13
13
|
s.description = ""
|
14
14
|
s.email = "contact@sharagoz.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -25,7 +25,12 @@ Gem::Specification.new do |s|
|
|
25
25
|
"Rakefile",
|
26
26
|
"VERSION",
|
27
27
|
"app/controllers/error_response_controller.rb",
|
28
|
-
"app/models/error_message.rb",
|
28
|
+
"app/models/rails_exception_handler/active_record/error_message.rb",
|
29
|
+
"app/models/rails_exception_handler/mongoid/error_message.rb",
|
30
|
+
"gemfiles/rails30.gemfile",
|
31
|
+
"gemfiles/rails32.187-ree.gemfile",
|
32
|
+
"gemfiles/rails32.gemfile",
|
33
|
+
"gemfiles/rails40.gemfile",
|
29
34
|
"lib/generators/rails_exception_handler/install_generator.rb",
|
30
35
|
"lib/generators/rails_exception_handler/templates/rails_exception_handler.rb",
|
31
36
|
"lib/patch/show_exceptions.rb",
|
@@ -62,16 +67,18 @@ Gem::Specification.new do |s|
|
|
62
67
|
s.specification_version = 3
|
63
68
|
|
64
69
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
65
|
-
s.add_development_dependency(%q<rails>, ["= 4.0.0
|
70
|
+
s.add_development_dependency(%q<rails>, ["= 4.0.0"])
|
66
71
|
s.add_development_dependency(%q<rack-test>, ["= 0.6.2"])
|
72
|
+
s.add_development_dependency(%q<rake>, [">= 0"])
|
67
73
|
s.add_development_dependency(%q<sqlite3>, [">= 0"])
|
68
74
|
s.add_development_dependency(%q<pry>, [">= 0"])
|
69
75
|
s.add_development_dependency(%q<rspec-rails>, [">= 0"])
|
70
76
|
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
71
77
|
s.add_development_dependency(%q<rails_exception_handler>, [">= 0"])
|
72
78
|
else
|
73
|
-
s.add_dependency(%q<rails>, ["= 4.0.0
|
79
|
+
s.add_dependency(%q<rails>, ["= 4.0.0"])
|
74
80
|
s.add_dependency(%q<rack-test>, ["= 0.6.2"])
|
81
|
+
s.add_dependency(%q<rake>, [">= 0"])
|
75
82
|
s.add_dependency(%q<sqlite3>, [">= 0"])
|
76
83
|
s.add_dependency(%q<pry>, [">= 0"])
|
77
84
|
s.add_dependency(%q<rspec-rails>, [">= 0"])
|
@@ -79,8 +86,9 @@ Gem::Specification.new do |s|
|
|
79
86
|
s.add_dependency(%q<rails_exception_handler>, [">= 0"])
|
80
87
|
end
|
81
88
|
else
|
82
|
-
s.add_dependency(%q<rails>, ["= 4.0.0
|
89
|
+
s.add_dependency(%q<rails>, ["= 4.0.0"])
|
83
90
|
s.add_dependency(%q<rack-test>, ["= 0.6.2"])
|
91
|
+
s.add_dependency(%q<rake>, [">= 0"])
|
84
92
|
s.add_dependency(%q<sqlite3>, [">= 0"])
|
85
93
|
s.add_dependency(%q<pry>, [">= 0"])
|
86
94
|
s.add_dependency(%q<rspec-rails>, [">= 0"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_exception_handler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
prerelease:
|
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-
|
12
|
+
date: 2013-12-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 4.0.0
|
21
|
+
version: 4.0.0
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 4.0.0
|
29
|
+
version: 4.0.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: rack-test
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -43,6 +43,22 @@ dependencies:
|
|
43
43
|
- - '='
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: 0.6.2
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rake
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
46
62
|
- !ruby/object:Gem::Dependency
|
47
63
|
name: sqlite3
|
48
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,7 +155,12 @@ files:
|
|
139
155
|
- Rakefile
|
140
156
|
- VERSION
|
141
157
|
- app/controllers/error_response_controller.rb
|
142
|
-
- app/models/error_message.rb
|
158
|
+
- app/models/rails_exception_handler/active_record/error_message.rb
|
159
|
+
- app/models/rails_exception_handler/mongoid/error_message.rb
|
160
|
+
- gemfiles/rails30.gemfile
|
161
|
+
- gemfiles/rails32.187-ree.gemfile
|
162
|
+
- gemfiles/rails32.gemfile
|
163
|
+
- gemfiles/rails40.gemfile
|
143
164
|
- lib/generators/rails_exception_handler/install_generator.rb
|
144
165
|
- lib/generators/rails_exception_handler/templates/rails_exception_handler.rb
|
145
166
|
- lib/patch/show_exceptions.rb
|
data/app/models/error_message.rb
DELETED