custom_errors_handler 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
@@ -1,3 +1 @@
1
- F�7�+�7�: _$�{#n8Y������t"x g��_7#$�q��[~��}��մ����a<�+�1��
2
- 8G��F�K��VV��Ԃ]�"OT�8�>�D`T:�K����ĥ>��ג�=�ҿ��G�+��n�����n��ދ�v� ��m�R��9u,f�����.)Ė��"j $�T��E���7����خ;���(��l�z��%)lF�߀���7/WTn�{�hl�
3
- ����so̦�藻
1
+ ��u��x�÷���aܑ6�����|���\Y��=�����tI�q��� ��2��ay��� 9HN��d�wE���`)2xb<��� Rc��Л|��Ə��� ��.
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ = Version 0.2.1
2
+ * Fix for middleware swapping
3
+ * Fix for homepage url
1
4
  = Version 0.2.0
2
5
  * Migrated to middleware
3
6
  = Version 0.1.1
data/README.md CHANGED
@@ -8,6 +8,10 @@ and in your Gemfile:
8
8
 
9
9
  gem 'custom_error_handler'
10
10
 
11
+ and in your test.rb remove (or hide):
12
+
13
+ config.action_dispatch.show_exceptions = false
14
+
11
15
  ## About
12
16
 
13
17
  Custom Errors Handler is intended as an easy alternative to manage showing/rendering exceptions templates (404, 500) in Rails3.
data/Rakefile CHANGED
@@ -2,9 +2,9 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('custom_errors_handler', '0.2.0') do |p|
5
+ Echoe.new('custom_errors_handler', '0.2.1') do |p|
6
6
  p.description = "Custom Errors Handler is intended as an easy alternative to manage showing/rendering exceptions templates (404, 500) in Rails3"
7
- p.url = "https://github.com/mensfeld/custom_errors_handler"
7
+ p.url = "https://github.com/mensfeld/Custom-Errors-Handler"
8
8
  p.author = "Maciej Mensfeld"
9
9
  p.email = "maciej@mensfeld.pl"
10
10
  p.ignore_pattern = ["tmp/*", "script/*"]
@@ -2,17 +2,17 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{custom_errors_handler}
5
- s.version = "0.2.0"
5
+ s.version = "0.2.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Maciej Mensfeld"]
9
9
  s.cert_chain = ["/home/mencio/.cert_keys/gem-public_cert.pem"]
10
- s.date = %q{2011-04-10}
10
+ s.date = %q{2011-04-17}
11
11
  s.description = %q{Custom Errors Handler is intended as an easy alternative to manage showing/rendering exceptions templates (404, 500) in Rails3}
12
12
  s.email = %q{maciej@mensfeld.pl}
13
13
  s.extra_rdoc_files = ["CHANGELOG.rdoc", "README.md", "lib/custom_errors_handler.rb", "lib/custom_errors_handler_controller.rb"]
14
14
  s.files = ["CHANGELOG.rdoc", "Gemfile", "MIT-LICENSE", "Manifest", "README.md", "Rakefile", "init.rb", "lib/custom_errors_handler.rb", "lib/custom_errors_handler_controller.rb", "custom_errors_handler.gemspec"]
15
- s.homepage = %q{https://github.com/mensfeld/custom_errors_handler}
15
+ s.homepage = %q{https://github.com/mensfeld/Custom-Errors-Handler}
16
16
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Custom_errors_handler", "--main", "README.md"]
17
17
  s.require_paths = ["lib"]
18
18
  s.rubyforge_project = %q{custom_errors_handler}
@@ -19,11 +19,12 @@ module MyActionDispatch
19
19
  alias_method_chain :render_exception, :template
20
20
  end
21
21
 
22
- # Swap actiondispatcher
23
- class Railtie < Rails::Railtie
24
- initializer "app.insert_my_errors_handler" do |app|
25
- app.config.middleware.swap ActionDispatch::ShowExceptions, MyActionDispatch::ShowExceptions
26
- end
22
+ end
23
+
24
+ # Swap actiondispatcher
25
+ class Railtie < Rails::Railtie
26
+ initializer "app.insert_my_errors_handler" do |app|
27
+ app.config.middleware.swap ActionDispatch::ShowExceptions, MyActionDispatch::ShowExceptions
27
28
  end
28
29
  end
29
30
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: custom_errors_handler
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.0
5
+ version: 0.2.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Maciej Mensfeld
@@ -31,7 +31,7 @@ cert_chain:
31
31
  BH3YFsdk
32
32
  -----END CERTIFICATE-----
33
33
 
34
- date: 2011-04-10 00:00:00 +02:00
34
+ date: 2011-04-17 00:00:00 +02:00
35
35
  default_executable:
36
36
  dependencies:
37
37
  - !ruby/object:Gem::Dependency
@@ -79,7 +79,7 @@ files:
79
79
  - lib/custom_errors_handler_controller.rb
80
80
  - custom_errors_handler.gemspec
81
81
  has_rdoc: true
82
- homepage: https://github.com/mensfeld/custom_errors_handler
82
+ homepage: https://github.com/mensfeld/Custom-Errors-Handler
83
83
  licenses: []
84
84
 
85
85
  post_install_message:
metadata.gz.sig CHANGED
Binary file