r3_exception_logger 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,19 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r3_exception_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - Chris Wise
8
+ - Roland Guem
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
  date: 2012-05-26 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &23087556 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 3.0.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *23087556
14
25
  - !ruby/object:Gem::Dependency
15
26
  name: kaminari
16
- requirement: &22060512 !ruby/object:Gem::Requirement
27
+ requirement: &23087100 !ruby/object:Gem::Requirement
17
28
  none: false
18
29
  requirements:
19
30
  - - ! '>='
@@ -21,10 +32,10 @@ dependencies:
21
32
  version: '0'
22
33
  type: :runtime
23
34
  prerelease: false
24
- version_requirements: *22060512
35
+ version_requirements: *23087100
25
36
  - !ruby/object:Gem::Dependency
26
37
  name: squeel
27
- requirement: &22059456 !ruby/object:Gem::Requirement
38
+ requirement: &23086548 !ruby/object:Gem::Requirement
28
39
  none: false
29
40
  requirements:
30
41
  - - ! '>='
@@ -32,18 +43,45 @@ dependencies:
32
43
  version: '0'
33
44
  type: :runtime
34
45
  prerelease: false
35
- version_requirements: *22059456
36
- description: Fork of exception_logger gem
37
- email:
38
- - cwise@murmurinformatics.com
46
+ version_requirements: *23086548
47
+ - !ruby/object:Gem::Dependency
48
+ name: i18n
49
+ requirement: &23086200 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: 0.4.1
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *23086200
58
+ - !ruby/object:Gem::Dependency
59
+ name: shoulda
60
+ requirement: &23085792 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: 2.11.3
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *23085792
69
+ description: Logs exceptions inside a database table. Now available as gem for Rails3
70
+ (previously a plugin for Rails2)
71
+ email: roland.guem@gmail.com
39
72
  executables: []
40
73
  extensions: []
41
- extra_rdoc_files: []
74
+ extra_rdoc_files:
75
+ - LICENSE
76
+ - README.rdoc
42
77
  files:
43
78
  - app/controllers/logged_exceptions_controller.rb
44
79
  - app/helpers/logged_exceptions_helper.rb
45
80
  - app/models/logged_exception.rb
46
81
  - app/views/layouts/logged_exceptions.html.erb
82
+ - app/views/logged_exceptions/_exceptions.html.erb
83
+ - app/views/logged_exceptions/_feed.html.erb
84
+ - app/views/logged_exceptions/_show.html.erb
47
85
  - app/views/logged_exceptions/destroy.js.erb
48
86
  - app/views/logged_exceptions/destroy_all.js.erb
49
87
  - app/views/logged_exceptions/feed.rss.builder
@@ -52,29 +90,21 @@ files:
52
90
  - app/views/logged_exceptions/query.js.erb
53
91
  - app/views/logged_exceptions/show.html.erb
54
92
  - app/views/logged_exceptions/show.js.erb
55
- - app/views/logged_exceptions/_exceptions.html.erb
56
- - app/views/logged_exceptions/_feed.html.erb
57
- - app/views/logged_exceptions/_show.html.erb
58
93
  - config/initializers/date_formats.rb
59
94
  - config/locales/en.yml
60
95
  - config/routes.rb
61
- - exception_logger.gemspec
62
- - History.txt
63
96
  - lib/exception_loggable_controller_mixin.rb
97
+ - lib/exception_logger.rb
64
98
  - lib/exception_logger/engine.rb
65
99
  - lib/exception_logger/exception_loggable.rb
66
- - lib/exception_logger.rb
67
100
  - lib/generators/exception_logger/migration/migration_generator.rb
68
101
  - lib/generators/exception_logger/migration/templates/migration.rb
69
102
  - lib/generators/exception_logger/stylescripts/stylescripts_generator.rb
70
103
  - lib/logged_exception_rake.rb
71
104
  - lib/railties/tasks.rake
72
- - LICENSE
73
105
  - public/javascripts/exception_logger.js
74
106
  - public/stylesheets/exception_logger.css
75
- - r3_exception_logger-0.1.11.gem
76
- - Rakefile
77
- - README.old
107
+ - LICENSE
78
108
  - README.rdoc
79
109
  - test/controllers/logged_exceptions_controller_test.rb
80
110
  - test/models/logged_exception_test.rb
@@ -83,10 +113,13 @@ files:
83
113
  - test/rails_root/Gemfile.lock
84
114
  - test/rails_root/test/factories/exception_logger.rb
85
115
  - test/test_helper.rb
86
- - VERSION.yml
87
- homepage: http://github.com/cwise/exception_logger
116
+ homepage: http://github.com/QuBiT/exception_logger
88
117
  licenses: []
89
- post_install_message:
118
+ post_install_message: ! "\n_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_\n
119
+ \ Thank you for installing exception_logger.\n Please be sure to read the README
120
+ and HISTORY on\n http://github.com/QuBiT/exception_logger\n for important
121
+ information about this release. Happy logging!\n_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_\n
122
+ \ "
90
123
  rdoc_options: []
91
124
  require_paths:
92
125
  - lib
@@ -101,11 +134,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
134
  requirements:
102
135
  - - ! '>='
103
136
  - !ruby/object:Gem::Version
104
- version: 1.3.6
137
+ version: '0'
105
138
  requirements: []
106
139
  rubyforge_project:
107
140
  rubygems_version: 1.8.16
108
141
  signing_key:
109
142
  specification_version: 3
110
- summary: Fork of exception_logger gem
111
- test_files: []
143
+ summary: Exception Logger for Rails 3
144
+ test_files:
145
+ - test/controllers/logged_exceptions_controller_test.rb
146
+ - test/models/logged_exception_test.rb
147
+ - test/rails_root/app/controllers/application_controller.rb
148
+ - test/rails_root/Gemfile
149
+ - test/rails_root/Gemfile.lock
150
+ - test/rails_root/test/factories/exception_logger.rb
151
+ - test/test_helper.rb
data/History.txt DELETED
@@ -1,75 +0,0 @@
1
- == 0.1.6 (2010-08-24)
2
-
3
- === New
4
-
5
- * Generator: exception_logger:stylescripts
6
- ** copies the stylesheet for the exception logger to the public dir
7
- ** copies the javascript for the exception logger to the public dir
8
-
9
- === Changes
10
-
11
- * Generator: exception_migration renamed to exception_logger:migration
12
-
13
- === Testing
14
-
15
- * Create Rails Test App at test/rails_root on demand
16
- ** just store needed files and create the other by the rails generator
17
- * Create Tests for logged_exception (Model)
18
- * Create Tests for logged_exceptions_controller (Controller)
19
- ** Added Tests for GET requests
20
- ** Added Tests for XHR requests
21
-
22
- === Optimization
23
-
24
- * Do not require RedCloth (fallback to simple_format if RedCloth not available)
25
-
26
- == 0.1.5 (2010-08-17)
27
-
28
- === New
29
-
30
- * Gem: Post Installer Infos
31
-
32
- === Changes
33
-
34
- * remove unmaintained code to send emails
35
- ** use http://github.com/rails/exception_notification instead.
36
- ** instructions added to the readme
37
- * layout file for index and show
38
-
39
- === Migration
40
-
41
- * adapt class find methods to use new syntax
42
-
43
- == 0.1.4 (2010-08-15)
44
-
45
- === Optimization
46
-
47
- * 'query' function now uses the new rails api (ActiveRelation and Scopes)
48
-
49
- === Migration
50
-
51
- * 'Delete Visible' link now does what it was intended to do (again).
52
-
53
- == 0.1.3 (2010-08-14)
54
-
55
- === Migration
56
-
57
- * pagination links now work w/ and w/o javascript (again).
58
-
59
- == 0.1.2 (2010-08-14)
60
-
61
- === Bugfixes
62
- * wrong path of rake tasks file solved
63
-
64
- == 0.1.1 (2010-08-14)
65
-
66
- === Migration
67
- * Raketasks (no one defined yet, but it is again possible to define one.)
68
- * Generator (Fix the exception_migration Generator from the plugin to be available through the gem)
69
-
70
- == 0.1.0 (2010-08-14)
71
-
72
- * First Released Version of Gem on RubyGems.org
73
-
74
- === Migration
75
- * Many changes to migrate the plugin to a gem for Rails3
data/README.old DELETED
@@ -1,107 +0,0 @@
1
- ExceptionLogger
2
- ===============
3
-
4
- The Exception Logger (forgive the horrible name) logs your Rails exceptions in the database and provides a funky web interface to manage them.
5
-
6
- First you need to generate the migration:
7
-
8
- ./script/generate exception_migration
9
-
10
- Next, you'll need to include the ExceptionLoggable module into ApplicationController. Once that's done you might want to modify key methods to customize the logging:
11
-
12
- render_404(exception) - Shows the 404 template.
13
-
14
- render_500(exception) - Shows the 500 template.
15
-
16
- log_exception(exception) - Logs the actual exception in the database.
17
-
18
- rescue_action_in_public(exception) - Does not log these exceptions: ActiveRecord::RecordNotFound, ActionController::UnknownController, ActionController::UnknownAction
19
-
20
- Now add a new route to your routes.rb:
21
-
22
- map.connect "logged_exceptions/:action/:id", :controller => "logged_exceptions"
23
-
24
- If you want the RSS Feed mapping, add this right after:
25
-
26
- map.connect "logged_exceptions/:action.:format", :controller => "logged_exceptions"
27
-
28
- After that, visit /logged_exceptions in your application to manage the exceptions.
29
-
30
- Email notify config:
31
- LoggedExceptionsMailer.mailer_config.update( {
32
- :subject => 'Exception',
33
- :recipients => "me@gmail.com",
34
- :from => 'system@domain.com',
35
- :link => 'http://domain.com',
36
- :deliver => true # dispatching on
37
- })
38
-
39
- It's understandable that you may want to require authentication. You can do this by creating your own controller extending your ApplicationController (thereby leveraging all the existing authorization rules you may have) and include the ExceptionLoggableControllerMixin module. For example:
40
-
41
- class LoggedExceptionsController < ApplicationController
42
- include ExceptionLoggableControllerMixin
43
- self.application_name = "My Application Name" # this will show up in the title of the Rss feed
44
-
45
- # add your regular permission checking here, e.g.:
46
- protected
47
- # only allow admins
48
- # this obviously depends on how your auth system works
49
- def authorized?
50
- current_user.is_a?(Admin)
51
- end
52
-
53
- # assume app's login required doesn't use http basic
54
- def login_required_with_basic
55
- respond_to do |accepts|
56
- # alias_method_chain will alias the app's login_required to login_required_without_basic
57
- accepts.html { login_required_without_basic }
58
-
59
- # access_denied_with_basic_auth is defined in ExceptionLoggableControllerMixin
60
- # get_auth_data returns back the user/password pair
61
- accepts.rss do
62
- access_denied_with_basic_auth unless self.current_user = User.authenticate(*get_auth_data)
63
- end
64
- end
65
- end
66
-
67
- alias_method_chain :login_required, :basic
68
- end
69
-
70
- The exact code of course depends on the specific needs of your application.
71
-
72
- You can use ActionController::Base.filter_parameter_logging in the LoggedExceptionsController.
73
- In the code given above, do something like
74
-
75
- LoggedExceptionsController.class_eval do
76
- filter_parameter_logging :password
77
- end
78
-
79
- When viewing a logged exception, parameters whose name has "password" as a substring
80
- will show their values as "[FILTERED]". There is a link to toggle this filtering, in
81
- case you really must have a look.
82
-
83
- Note that GET parameters will still be shown unfiltered within the logged URL.
84
-
85
- Catching exceptions from rake tasks:
86
- desc ''
87
- task :bar => :environment do |rake_task|
88
- begin
89
- raise Exception, ''
90
- rescue Exception => e
91
- LoggedExceptionRake.save_exception e, rake_task, ENV
92
- end
93
- end
94
-
95
- CREDITS
96
-
97
- Jamis Buck - original exception_notification plugin
98
- Rick Olson - model/controller code
99
- Josh Goebel - design
100
-
101
- UPDATES
102
-
103
- Chris Wanstrath - use will_paginate
104
- Henrik Nyh (DanceJam) - log exceptions in dev, linkable exceptions, parameter filtering etc
105
- Zhurbiy Oleg (Ol.keene) - exception notify by email, exceptions catching from rake tasks, will_paginate fix
106
- David Rubin - Merged in different peoples branches. Fixed minor bugs and cleaned up the code.
107
- Jason Knight - Pagination support, built on/inspired by Ryanb's willpaginate support.
data/Rakefile DELETED
@@ -1,66 +0,0 @@
1
- require 'rubygems'
2
- require 'rake'
3
- begin
4
- require 'jeweler'
5
- Jeweler::Tasks.new do |gem|
6
- gem.name = "exception_logger"
7
- gem.summary = "Exception Logger for Rails 3"
8
- gem.description = "Logs exceptions inside a database table. Now available as gem for Rails3 (previously a plugin for Rails2)"
9
- gem.email = "roland.guem@gmail.com"
10
- gem.homepage = "http://github.com/QuBiT/exception_logger"
11
- gem.authors = ["Roland Guem"]
12
- gem.files = Dir["{lib}/**/*", "{app}/**/*", "{config}/**/*", "{public}/**/*"]
13
- gem.test_files = Dir["{test}/**/*"]
14
- gem.add_dependency 'rails', '>=3.0.0'
15
- gem.add_dependency "kaminari"
16
- gem.add_dependency "squeel"
17
- gem.add_dependency "i18n", ">= 0.4.1"
18
- gem.add_development_dependency "shoulda", ">= 2.11.3"
19
- gem.extra_rdoc_files = ["LICENSE","README.rdoc"]
20
- gem.post_install_message = %q{
21
- _()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_
22
- Thank you for installing exception_logger.
23
- Please be sure to read the README and HISTORY on
24
- http://github.com/QuBiT/exception_logger
25
- for important information about this release. Happy logging!
26
- _()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_()_
27
- }
28
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
29
- end
30
- Jeweler::GemcutterTasks.new
31
- rescue LoadError
32
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
33
- end
34
-
35
- ENV['BUNDLE_GEMFILE'] = File.dirname(__FILE__) + '/test/rails_root/Gemfile'
36
-
37
- #require 'rake'
38
- require 'rake/testtask'
39
- require 'cucumber/rake/task'
40
- require 'spec/rake/spectask'
41
-
42
- namespace :test do
43
- Rake::TestTask.new(:basic => %w(test:generator:rails_setup test:generator:exception_migration)) do |task|
44
- task.libs << "lib"
45
- task.libs << "test"
46
- task.pattern = "test/**/*_test.rb"
47
- #task.verbose = false
48
- end
49
-
50
- Cucumber::Rake::Task.new(:features) do |t|
51
- t.cucumber_opts = "--format progress"
52
- t.profile = 'features'
53
- end
54
-
55
- namespace :generator do
56
-
57
- task :rails_setup do
58
- system "cd test && rails new rails_root --skip"
59
- end
60
-
61
- task :exception_migration do
62
- system "cd test/rails_root && bundle install && ./script/rails generate exception_logger:migration && rake db:migrate db:test:prepare"
63
- end
64
- end
65
-
66
- end
data/VERSION.yml DELETED
@@ -1,5 +0,0 @@
1
- ---
2
- :patch: 10
3
- :major: 0
4
- :build:
5
- :minor: 1
@@ -1,26 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- lib = File.expand_path('../lib/', __FILE__)
3
- $:.unshift lib unless $:.include?(lib)
4
-
5
- require 'bundler/version'
6
-
7
- Gem::Specification.new do |s|
8
- s.name = "r3_exception_logger"
9
- s.version = "0.1.12"
10
- s.platform = Gem::Platform::RUBY
11
- s.authors = ["Chris Wise"]
12
- s.email = ["cwise@murmurinformatics.com"]
13
- s.homepage = "http://github.com/cwise/exception_logger"
14
- s.summary = "Fork of exception_logger gem"
15
- s.description = "Fork of exception_logger gem"
16
-
17
- s.required_rubygems_version = ">= 1.3.6"
18
-
19
- s.files = Dir.glob("**/*") + Dir.glob("{config}/**/*")
20
- # s.files = `git ls-files -- {lib/*,vendor/*,*.gemspec}`.split("\n")
21
- # s.files = `git ls-files -- {lib/*,app/*,config/*,public/*,vendor/*,*.gemspec}`.split("\n")
22
- s.require_path = 'lib'
23
-
24
- s.add_runtime_dependency 'kaminari'
25
- s.add_runtime_dependency 'squeel'
26
- end
Binary file