errship 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -90,6 +90,9 @@ The following methods are provided:
90
90
  If Airbrake is installed, every rescuer will report the exception, except for 404.
91
91
 
92
92
  == Changelog
93
+ 2.1.0
94
+ - Removes unnecessary dependency on HAML (using ERB instead)
95
+
93
96
  2.0.1
94
97
  - Added tests for ActiveRecord, Mongoid and MongoMapper rescuers
95
98
  - Fixed Mongoid module
@@ -0,0 +1,14 @@
1
+ <% content_for :head do %>
2
+ <%= stylesheet_link_tag 'errship', :media => 'screen, projection' %>
3
+ <% end %>
4
+
5
+ <div class='errship'>
6
+ <h1 class='error_code'><%= status_code %></h1>
7
+ <% if errship_scope %>
8
+ <h2><%= t "errship.#{status_code}.#{errship_scope}.title" %></h2>
9
+ <p><%= t "errship.#{status_code}.#{errship_scope}.description" %></p>
10
+ <% else %>
11
+ <h2><%= t "errship.#{status_code}.title" %></h2>
12
+ <p><%= t "errship.#{status_code}.description" %></p>
13
+ <% end %>
14
+ </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: errship
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -16,7 +16,7 @@ default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rake
19
- requirement: &15803260 !ruby/object:Gem::Requirement
19
+ requirement: &23519280 !ruby/object:Gem::Requirement
20
20
  none: false
21
21
  requirements:
22
22
  - - =
@@ -24,10 +24,10 @@ dependencies:
24
24
  version: 0.8.7
25
25
  type: :development
26
26
  prerelease: false
27
- version_requirements: *15803260
27
+ version_requirements: *23519280
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: shoulda
30
- requirement: &15785940 !ruby/object:Gem::Requirement
30
+ requirement: &23503240 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
33
  - - ! '>='
@@ -35,10 +35,10 @@ dependencies:
35
35
  version: '0'
36
36
  type: :development
37
37
  prerelease: false
38
- version_requirements: *15785940
38
+ version_requirements: *23503240
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: bundler
41
- requirement: &15785100 !ruby/object:Gem::Requirement
41
+ requirement: &23502440 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
44
  - - ~>
@@ -46,10 +46,10 @@ dependencies:
46
46
  version: 1.0.0
47
47
  type: :development
48
48
  prerelease: false
49
- version_requirements: *15785100
49
+ version_requirements: *23502440
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: jeweler
52
- requirement: &15784280 !ruby/object:Gem::Requirement
52
+ requirement: &23501700 !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
55
55
  - - ~>
@@ -57,10 +57,10 @@ dependencies:
57
57
  version: 1.6.0
58
58
  type: :development
59
59
  prerelease: false
60
- version_requirements: *15784280
60
+ version_requirements: *23501700
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rcov
63
- requirement: &15783460 !ruby/object:Gem::Requirement
63
+ requirement: &23500660 !ruby/object:Gem::Requirement
64
64
  none: false
65
65
  requirements:
66
66
  - - ! '>='
@@ -68,7 +68,7 @@ dependencies:
68
68
  version: '0'
69
69
  type: :development
70
70
  prerelease: false
71
- version_requirements: *15783460
71
+ version_requirements: *23500660
72
72
  description: Errship is a Rails 3.1 engine for rendering error pages inside your layout.
73
73
  It supports i18n, custom exceptions, and Airbrake (Hoptoad) error tracking.
74
74
  email:
@@ -83,7 +83,7 @@ extra_rdoc_files:
83
83
  files:
84
84
  - app/assets/javascripts/application.js
85
85
  - app/assets/stylesheets/errship.css
86
- - app/views/errship/standard.html.haml
86
+ - app/views/errship/standard.html.erb
87
87
  - config/locales/en.yml
88
88
  - config/routes.rb
89
89
  - lib/errship.rb
@@ -108,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  segments:
110
110
  - 0
111
- hash: -3235666566468522047
111
+ hash: 2629315279977715260
112
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
@@ -1,11 +0,0 @@
1
- - content_for :head do
2
- = stylesheet_link_tag 'errship', :media => 'screen, projection'
3
-
4
- .errship
5
- %h1.error_code #{status_code}
6
- - if errship_scope
7
- %h2= t "errship.#{status_code}.#{errship_scope}.title"
8
- %p= t "errship.#{status_code}.#{errship_scope}.description"
9
- - else
10
- %h2= t "errship.#{status_code}.title"
11
- %p= t "errship.#{status_code}.description"