woops 0.0.1.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +40 -0
- data/app/assets/javascripts/oops/application.js +15 -0
- data/app/assets/javascripts/oops/failure.js +5 -0
- data/app/assets/stylesheets/oops/application.css +13 -0
- data/app/assets/stylesheets/oops/failure.css +29 -0
- data/app/controllers/oops/application_controller.rb +4 -0
- data/app/controllers/oops/failures_controller.rb +9 -0
- data/app/helpers/oops/application_helper.rb +4 -0
- data/app/helpers/oops/failure_helper.rb +4 -0
- data/app/models/oops/failure.rb +5 -0
- data/app/views/layouts/oops/application.html.erb +14 -0
- data/app/views/oops/failures/index.html.erb +7 -0
- data/config/initializers/exception_handler.rb +6 -0
- data/config/routes.rb +3 -0
- data/db/migrate/20150814174650_create_oops_failures.rb +10 -0
- data/lib/oops.rb +4 -0
- data/lib/oops/engine.rb +5 -0
- data/lib/oops/version.rb +3 -0
- data/lib/tasks/oops_tasks.rake +4 -0
- data/test/controllers/oops/failure_controller_test.rb +11 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/simulate_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +23 -0
- data/test/dummy/log/development.log +1113 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/tmp/cache/assets/C8D/B30/sprockets%2F5f1ae429b8722e01f89b76057426297e +0 -0
- data/test/dummy/tmp/cache/assets/CC9/160/sprockets%2F5ff6276c91df6068be97d1f551283549 +0 -0
- data/test/dummy/tmp/cache/assets/CE7/530/sprockets%2F7662585d3faf2a21e6bb813d8834773c +0 -0
- data/test/dummy/tmp/cache/assets/CE7/930/sprockets%2F21f81f45951ff8cd88ad0502b457763b +0 -0
- data/test/dummy/tmp/cache/assets/D03/880/sprockets%2Fd26991da41794ac11f61bee0e94500c1 +0 -0
- data/test/dummy/tmp/cache/assets/D4A/080/sprockets%2F52c20fc80f4cef70688f544976dcb81a +0 -0
- data/test/dummy/tmp/cache/assets/D55/100/sprockets%2F73e73f6ab54e8ecc38de6752e4c59347 +0 -0
- data/test/dummy/tmp/cache/assets/D62/EC0/sprockets%2F16ffcc05f857e89428f07a89d5fd288f +0 -0
- data/test/dummy/tmp/cache/assets/D89/660/sprockets%2F955a8da8b6efdfcf203ed6919f565458 +0 -0
- data/test/dummy/tmp/cache/assets/D95/0C0/sprockets%2F5d456c9244824b8bc20bbdeb0aded159 +0 -0
- data/test/dummy/tmp/cache/assets/D96/8F0/sprockets%2Fdca1af6249c7c42decf896c3e0a29110 +0 -0
- data/test/dummy/tmp/cache/assets/DA5/610/sprockets%2Fe5206f46b92d97abffadd45fc07275b5 +0 -0
- data/test/dummy/tmp/cache/assets/DC6/F00/sprockets%2F9f2714acae946fef0aeaeba92f012435 +0 -0
- data/test/dummy/tmp/cache/assets/E01/2E0/sprockets%2Fd5d083bdbb7c22514a92ed9c797ebdbf +0 -0
- data/test/fixtures/oops/failures.yml +9 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/oops_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- data/test/unit/oops/failure_test.rb +9 -0
- metadata +196 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby.exe
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/test/oops_test.rb
ADDED
data/test/test_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
# Load fixtures from the engine
|
13
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,196 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: woops
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1.alpha
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Julio Budal
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-08-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.2.13
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.2.13
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: sqlite3
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: Errors learning from railscasts
|
42
|
+
email:
|
43
|
+
- juli0w@hotmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- app/assets/javascripts/oops/application.js
|
49
|
+
- app/assets/javascripts/oops/failure.js
|
50
|
+
- app/assets/stylesheets/oops/application.css
|
51
|
+
- app/assets/stylesheets/oops/failure.css
|
52
|
+
- app/controllers/oops/application_controller.rb
|
53
|
+
- app/controllers/oops/failures_controller.rb
|
54
|
+
- app/helpers/oops/application_helper.rb
|
55
|
+
- app/helpers/oops/failure_helper.rb
|
56
|
+
- app/models/oops/failure.rb
|
57
|
+
- app/views/layouts/oops/application.html.erb
|
58
|
+
- app/views/oops/failures/index.html.erb
|
59
|
+
- config/initializers/exception_handler.rb
|
60
|
+
- config/routes.rb
|
61
|
+
- db/migrate/20150814174650_create_oops_failures.rb
|
62
|
+
- lib/oops/engine.rb
|
63
|
+
- lib/oops/version.rb
|
64
|
+
- lib/oops.rb
|
65
|
+
- lib/tasks/oops_tasks.rake
|
66
|
+
- MIT-LICENSE
|
67
|
+
- Rakefile
|
68
|
+
- README.rdoc
|
69
|
+
- test/controllers/oops/failure_controller_test.rb
|
70
|
+
- test/dummy/app/assets/javascripts/application.js
|
71
|
+
- test/dummy/app/assets/stylesheets/application.css
|
72
|
+
- test/dummy/app/controllers/application_controller.rb
|
73
|
+
- test/dummy/app/controllers/simulate_controller.rb
|
74
|
+
- test/dummy/app/helpers/application_helper.rb
|
75
|
+
- test/dummy/app/views/layouts/application.html.erb
|
76
|
+
- test/dummy/config/application.rb
|
77
|
+
- test/dummy/config/boot.rb
|
78
|
+
- test/dummy/config/database.yml
|
79
|
+
- test/dummy/config/environment.rb
|
80
|
+
- test/dummy/config/environments/development.rb
|
81
|
+
- test/dummy/config/environments/production.rb
|
82
|
+
- test/dummy/config/environments/test.rb
|
83
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
84
|
+
- test/dummy/config/initializers/inflections.rb
|
85
|
+
- test/dummy/config/initializers/mime_types.rb
|
86
|
+
- test/dummy/config/initializers/secret_token.rb
|
87
|
+
- test/dummy/config/initializers/session_store.rb
|
88
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
89
|
+
- test/dummy/config/locales/en.yml
|
90
|
+
- test/dummy/config/routes.rb
|
91
|
+
- test/dummy/config.ru
|
92
|
+
- test/dummy/db/development.sqlite3
|
93
|
+
- test/dummy/db/schema.rb
|
94
|
+
- test/dummy/log/development.log
|
95
|
+
- test/dummy/public/404.html
|
96
|
+
- test/dummy/public/422.html
|
97
|
+
- test/dummy/public/500.html
|
98
|
+
- test/dummy/public/favicon.ico
|
99
|
+
- test/dummy/Rakefile
|
100
|
+
- test/dummy/README.rdoc
|
101
|
+
- test/dummy/script/rails
|
102
|
+
- test/dummy/tmp/cache/assets/C8D/B30/sprockets%2F5f1ae429b8722e01f89b76057426297e
|
103
|
+
- test/dummy/tmp/cache/assets/CC9/160/sprockets%2F5ff6276c91df6068be97d1f551283549
|
104
|
+
- test/dummy/tmp/cache/assets/CE7/530/sprockets%2F7662585d3faf2a21e6bb813d8834773c
|
105
|
+
- test/dummy/tmp/cache/assets/CE7/930/sprockets%2F21f81f45951ff8cd88ad0502b457763b
|
106
|
+
- test/dummy/tmp/cache/assets/D03/880/sprockets%2Fd26991da41794ac11f61bee0e94500c1
|
107
|
+
- test/dummy/tmp/cache/assets/D4A/080/sprockets%2F52c20fc80f4cef70688f544976dcb81a
|
108
|
+
- test/dummy/tmp/cache/assets/D55/100/sprockets%2F73e73f6ab54e8ecc38de6752e4c59347
|
109
|
+
- test/dummy/tmp/cache/assets/D62/EC0/sprockets%2F16ffcc05f857e89428f07a89d5fd288f
|
110
|
+
- test/dummy/tmp/cache/assets/D89/660/sprockets%2F955a8da8b6efdfcf203ed6919f565458
|
111
|
+
- test/dummy/tmp/cache/assets/D95/0C0/sprockets%2F5d456c9244824b8bc20bbdeb0aded159
|
112
|
+
- test/dummy/tmp/cache/assets/D96/8F0/sprockets%2Fdca1af6249c7c42decf896c3e0a29110
|
113
|
+
- test/dummy/tmp/cache/assets/DA5/610/sprockets%2Fe5206f46b92d97abffadd45fc07275b5
|
114
|
+
- test/dummy/tmp/cache/assets/DC6/F00/sprockets%2F9f2714acae946fef0aeaeba92f012435
|
115
|
+
- test/dummy/tmp/cache/assets/E01/2E0/sprockets%2Fd5d083bdbb7c22514a92ed9c797ebdbf
|
116
|
+
- test/fixtures/oops/failures.yml
|
117
|
+
- test/integration/navigation_test.rb
|
118
|
+
- test/oops_test.rb
|
119
|
+
- test/test_helper.rb
|
120
|
+
- test/unit/oops/failure_test.rb
|
121
|
+
homepage: ''
|
122
|
+
licenses: []
|
123
|
+
metadata: {}
|
124
|
+
post_install_message:
|
125
|
+
rdoc_options: []
|
126
|
+
require_paths:
|
127
|
+
- lib
|
128
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ! '>='
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ! '>'
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: 1.3.1
|
138
|
+
requirements: []
|
139
|
+
rubyforge_project:
|
140
|
+
rubygems_version: 2.0.3
|
141
|
+
signing_key:
|
142
|
+
specification_version: 4
|
143
|
+
summary: Oops
|
144
|
+
test_files:
|
145
|
+
- test/controllers/oops/failure_controller_test.rb
|
146
|
+
- test/dummy/app/assets/javascripts/application.js
|
147
|
+
- test/dummy/app/assets/stylesheets/application.css
|
148
|
+
- test/dummy/app/controllers/application_controller.rb
|
149
|
+
- test/dummy/app/controllers/simulate_controller.rb
|
150
|
+
- test/dummy/app/helpers/application_helper.rb
|
151
|
+
- test/dummy/app/views/layouts/application.html.erb
|
152
|
+
- test/dummy/config/application.rb
|
153
|
+
- test/dummy/config/boot.rb
|
154
|
+
- test/dummy/config/database.yml
|
155
|
+
- test/dummy/config/environment.rb
|
156
|
+
- test/dummy/config/environments/development.rb
|
157
|
+
- test/dummy/config/environments/production.rb
|
158
|
+
- test/dummy/config/environments/test.rb
|
159
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
160
|
+
- test/dummy/config/initializers/inflections.rb
|
161
|
+
- test/dummy/config/initializers/mime_types.rb
|
162
|
+
- test/dummy/config/initializers/secret_token.rb
|
163
|
+
- test/dummy/config/initializers/session_store.rb
|
164
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
165
|
+
- test/dummy/config/locales/en.yml
|
166
|
+
- test/dummy/config/routes.rb
|
167
|
+
- test/dummy/config.ru
|
168
|
+
- test/dummy/db/development.sqlite3
|
169
|
+
- test/dummy/db/schema.rb
|
170
|
+
- test/dummy/log/development.log
|
171
|
+
- test/dummy/public/404.html
|
172
|
+
- test/dummy/public/422.html
|
173
|
+
- test/dummy/public/500.html
|
174
|
+
- test/dummy/public/favicon.ico
|
175
|
+
- test/dummy/Rakefile
|
176
|
+
- test/dummy/README.rdoc
|
177
|
+
- test/dummy/script/rails
|
178
|
+
- test/dummy/tmp/cache/assets/C8D/B30/sprockets%2F5f1ae429b8722e01f89b76057426297e
|
179
|
+
- test/dummy/tmp/cache/assets/CC9/160/sprockets%2F5ff6276c91df6068be97d1f551283549
|
180
|
+
- test/dummy/tmp/cache/assets/CE7/530/sprockets%2F7662585d3faf2a21e6bb813d8834773c
|
181
|
+
- test/dummy/tmp/cache/assets/CE7/930/sprockets%2F21f81f45951ff8cd88ad0502b457763b
|
182
|
+
- test/dummy/tmp/cache/assets/D03/880/sprockets%2Fd26991da41794ac11f61bee0e94500c1
|
183
|
+
- test/dummy/tmp/cache/assets/D4A/080/sprockets%2F52c20fc80f4cef70688f544976dcb81a
|
184
|
+
- test/dummy/tmp/cache/assets/D55/100/sprockets%2F73e73f6ab54e8ecc38de6752e4c59347
|
185
|
+
- test/dummy/tmp/cache/assets/D62/EC0/sprockets%2F16ffcc05f857e89428f07a89d5fd288f
|
186
|
+
- test/dummy/tmp/cache/assets/D89/660/sprockets%2F955a8da8b6efdfcf203ed6919f565458
|
187
|
+
- test/dummy/tmp/cache/assets/D95/0C0/sprockets%2F5d456c9244824b8bc20bbdeb0aded159
|
188
|
+
- test/dummy/tmp/cache/assets/D96/8F0/sprockets%2Fdca1af6249c7c42decf896c3e0a29110
|
189
|
+
- test/dummy/tmp/cache/assets/DA5/610/sprockets%2Fe5206f46b92d97abffadd45fc07275b5
|
190
|
+
- test/dummy/tmp/cache/assets/DC6/F00/sprockets%2F9f2714acae946fef0aeaeba92f012435
|
191
|
+
- test/dummy/tmp/cache/assets/E01/2E0/sprockets%2Fd5d083bdbb7c22514a92ed9c797ebdbf
|
192
|
+
- test/fixtures/oops/failures.yml
|
193
|
+
- test/integration/navigation_test.rb
|
194
|
+
- test/oops_test.rb
|
195
|
+
- test/test_helper.rb
|
196
|
+
- test/unit/oops/failure_test.rb
|