rails_info 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +58 -0
  3. data/Rakefile +40 -0
  4. data/app/assets/javascripts/rails_info/application.js +6 -0
  5. data/app/assets/javascripts/rails_info/base.js.coffee +6 -0
  6. data/app/assets/javascripts/rails_info/bootstrap.js.coffee +4 -0
  7. data/app/assets/stylesheets/rails_info/application.css +14 -0
  8. data/app/assets/stylesheets/rails_info/base.css.scss +22 -0
  9. data/app/assets/stylesheets/rails_info/bootstrap_and_overrides.css.less +63 -0
  10. data/app/assets/stylesheets/rails_info/exception.css +17 -0
  11. data/app/assets/stylesheets/rails_info/exception/base.css.scss +31 -0
  12. data/app/assets/stylesheets/rails_info/exception/pygments.css.erb +5 -0
  13. data/app/controllers/rails_info/data_controller.rb +9 -0
  14. data/app/controllers/rails_info/logs/server_controller.rb +10 -0
  15. data/app/controllers/rails_info/logs/test/rspec_controller.rb +16 -0
  16. data/app/controllers/rails_info/model_controller.rb +5 -0
  17. data/app/controllers/rails_info/properties_controller.rb +4 -0
  18. data/app/controllers/rails_info/routes_controller.rb +4 -0
  19. data/app/controllers/rails_info/stack_traces_controller.rb +11 -0
  20. data/app/controllers/rails_info_controller.rb +16 -0
  21. data/app/helpers/rails_info/resources_helper.rb +194 -0
  22. data/app/presenters/rails_info/code_presenter.rb +63 -0
  23. data/app/presenters/rails_info/data/object_presenter.rb +34 -0
  24. data/app/presenters/rails_info/data/row_set_presenter.rb +38 -0
  25. data/app/presenters/rails_info/data_presenter.rb +21 -0
  26. data/app/presenters/rails_info/logs/server/action_presenter.rb +109 -0
  27. data/app/presenters/rails_info/logs/server_presenter.rb +57 -0
  28. data/app/presenters/rails_info/logs/test/rspec/file_presenter.rb +87 -0
  29. data/app/presenters/rails_info/logs/test/rspec_presenter.rb +32 -0
  30. data/app/presenters/rails_info/model_presenter.rb +68 -0
  31. data/app/presenters/rails_info/presenter.rb +19 -0
  32. data/app/presenters/rails_info/stack_trace_presenter.rb +98 -0
  33. data/app/views/layouts/_layout.html.erb +19 -0
  34. data/app/views/layouts/rails_info.html.erb +1 -0
  35. data/app/views/layouts/rails_info/exception.html.erb +1 -0
  36. data/app/views/layouts/shared/_navigation.html.erb +7 -0
  37. data/app/views/rails_info/data/index.html.erb +23 -0
  38. data/app/views/rails_info/logs/server/_table.html.erb +16 -0
  39. data/app/views/rails_info/logs/server/new.html.erb +19 -0
  40. data/app/views/rails_info/logs/test/rspec/new.html.erb +10 -0
  41. data/app/views/rails_info/model/index.html.erb +14 -0
  42. data/app/views/rails_info/properties/index.html.erb +1 -0
  43. data/app/views/rails_info/routes/index.html.erb +18 -0
  44. data/app/views/rails_info/stack_traces/_accordion.html.erb +1 -0
  45. data/app/views/rails_info/stack_traces/_form.html.erb +11 -0
  46. data/app/views/rails_info/stack_traces/_with_request_and_response.html.erb +16 -0
  47. data/app/views/rails_info/stack_traces/new.html.erb +10 -0
  48. data/config/navigation.rb +20 -0
  49. data/config/routes.rb +20 -0
  50. data/lib/rails_info.rb +19 -0
  51. data/lib/rails_info/controller.rb +2 -0
  52. data/lib/rails_info/controller/exception_diagnostics.rb +28 -0
  53. data/lib/rails_info/data.rb +55 -0
  54. data/lib/rails_info/engine.rb +9 -0
  55. data/lib/rails_info/logs.rb +2 -0
  56. data/lib/rails_info/logs/server.rb +230 -0
  57. data/lib/rails_info/logs/test.rb +2 -0
  58. data/lib/rails_info/logs/test/rspec.rb +160 -0
  59. data/lib/rails_info/model.rb +221 -0
  60. data/lib/rails_info/stack_trace.rb +155 -0
  61. data/lib/rails_info/version.rb +3 -0
  62. data/lib/tasks/rails_info_tasks.rake +4 -0
  63. data/spec/dummy/README.rdoc +261 -0
  64. data/spec/dummy/Rakefile +7 -0
  65. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  66. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  67. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  68. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  69. data/spec/dummy/app/models/user.rb +3 -0
  70. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  71. data/spec/dummy/config.ru +4 -0
  72. data/spec/dummy/config/application.rb +59 -0
  73. data/spec/dummy/config/boot.rb +10 -0
  74. data/spec/dummy/config/database.yml +42 -0
  75. data/spec/dummy/config/environment.rb +5 -0
  76. data/spec/dummy/config/environments/development.rb +39 -0
  77. data/spec/dummy/config/environments/production.rb +69 -0
  78. data/spec/dummy/config/environments/test.rb +39 -0
  79. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  80. data/spec/dummy/config/initializers/inflections.rb +15 -0
  81. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  82. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  83. data/spec/dummy/config/initializers/session_store.rb +8 -0
  84. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  85. data/spec/dummy/config/locales/en.yml +5 -0
  86. data/spec/dummy/config/routes.rb +2 -0
  87. data/spec/dummy/log/development.log +4876 -0
  88. data/spec/dummy/public/404.html +26 -0
  89. data/spec/dummy/public/422.html +26 -0
  90. data/spec/dummy/public/500.html +25 -0
  91. data/spec/dummy/public/favicon.ico +0 -0
  92. data/spec/dummy/script/rails +6 -0
  93. metadata +274 -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
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'
metadata ADDED
@@ -0,0 +1,274 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_info
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Mathias Gawlista
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-07-03 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &70129925875360 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.6
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70129925875360
25
+ - !ruby/object:Gem::Dependency
26
+ name: coffee-script
27
+ requirement: &70129925874920 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70129925874920
36
+ - !ruby/object:Gem::Dependency
37
+ name: uglifier
38
+ requirement: &70129925874460 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *70129925874460
47
+ - !ruby/object:Gem::Dependency
48
+ name: jquery-rails
49
+ requirement: &70129925874020 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *70129925874020
58
+ - !ruby/object:Gem::Dependency
59
+ name: jquery-ui-rails
60
+ requirement: &70129925873600 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: *70129925873600
69
+ - !ruby/object:Gem::Dependency
70
+ name: pygments.rb
71
+ requirement: &70129925873180 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: *70129925873180
80
+ - !ruby/object:Gem::Dependency
81
+ name: twitter-bootstrap-rails
82
+ requirement: &70129925872760 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :runtime
89
+ prerelease: false
90
+ version_requirements: *70129925872760
91
+ - !ruby/object:Gem::Dependency
92
+ name: simple-navigation-bootstrap
93
+ requirement: &70129925872340 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :runtime
100
+ prerelease: false
101
+ version_requirements: *70129925872340
102
+ - !ruby/object:Gem::Dependency
103
+ name: mysql2
104
+ requirement: &70129925871900 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: *70129925871900
113
+ description: Engine for a rails application which extends /rails/info about some information
114
+ resources in development environment.
115
+ email:
116
+ - gawlista@googlemail.com
117
+ executables: []
118
+ extensions: []
119
+ extra_rdoc_files: []
120
+ files:
121
+ - app/assets/javascripts/rails_info/application.js
122
+ - app/assets/javascripts/rails_info/base.js.coffee
123
+ - app/assets/javascripts/rails_info/bootstrap.js.coffee
124
+ - app/assets/stylesheets/rails_info/application.css
125
+ - app/assets/stylesheets/rails_info/base.css.scss
126
+ - app/assets/stylesheets/rails_info/bootstrap_and_overrides.css.less
127
+ - app/assets/stylesheets/rails_info/exception/base.css.scss
128
+ - app/assets/stylesheets/rails_info/exception/pygments.css.erb
129
+ - app/assets/stylesheets/rails_info/exception.css
130
+ - app/controllers/rails_info/data_controller.rb
131
+ - app/controllers/rails_info/logs/server_controller.rb
132
+ - app/controllers/rails_info/logs/test/rspec_controller.rb
133
+ - app/controllers/rails_info/model_controller.rb
134
+ - app/controllers/rails_info/properties_controller.rb
135
+ - app/controllers/rails_info/routes_controller.rb
136
+ - app/controllers/rails_info/stack_traces_controller.rb
137
+ - app/controllers/rails_info_controller.rb
138
+ - app/helpers/rails_info/resources_helper.rb
139
+ - app/presenters/rails_info/code_presenter.rb
140
+ - app/presenters/rails_info/data/object_presenter.rb
141
+ - app/presenters/rails_info/data/row_set_presenter.rb
142
+ - app/presenters/rails_info/data_presenter.rb
143
+ - app/presenters/rails_info/logs/server/action_presenter.rb
144
+ - app/presenters/rails_info/logs/server_presenter.rb
145
+ - app/presenters/rails_info/logs/test/rspec/file_presenter.rb
146
+ - app/presenters/rails_info/logs/test/rspec_presenter.rb
147
+ - app/presenters/rails_info/model_presenter.rb
148
+ - app/presenters/rails_info/presenter.rb
149
+ - app/presenters/rails_info/stack_trace_presenter.rb
150
+ - app/views/layouts/_layout.html.erb
151
+ - app/views/layouts/rails_info/exception.html.erb
152
+ - app/views/layouts/rails_info.html.erb
153
+ - app/views/layouts/shared/_navigation.html.erb
154
+ - app/views/rails_info/data/index.html.erb
155
+ - app/views/rails_info/logs/server/_table.html.erb
156
+ - app/views/rails_info/logs/server/new.html.erb
157
+ - app/views/rails_info/logs/test/rspec/new.html.erb
158
+ - app/views/rails_info/model/index.html.erb
159
+ - app/views/rails_info/properties/index.html.erb
160
+ - app/views/rails_info/routes/index.html.erb
161
+ - app/views/rails_info/stack_traces/_accordion.html.erb
162
+ - app/views/rails_info/stack_traces/_form.html.erb
163
+ - app/views/rails_info/stack_traces/_with_request_and_response.html.erb
164
+ - app/views/rails_info/stack_traces/new.html.erb
165
+ - config/navigation.rb
166
+ - config/routes.rb
167
+ - lib/rails_info/controller/exception_diagnostics.rb
168
+ - lib/rails_info/controller.rb
169
+ - lib/rails_info/data.rb
170
+ - lib/rails_info/engine.rb
171
+ - lib/rails_info/logs/server.rb
172
+ - lib/rails_info/logs/test/rspec.rb
173
+ - lib/rails_info/logs/test.rb
174
+ - lib/rails_info/logs.rb
175
+ - lib/rails_info/model.rb
176
+ - lib/rails_info/stack_trace.rb
177
+ - lib/rails_info/version.rb
178
+ - lib/rails_info.rb
179
+ - lib/tasks/rails_info_tasks.rake
180
+ - MIT-LICENSE
181
+ - Rakefile
182
+ - README.rdoc
183
+ - spec/dummy/app/assets/javascripts/application.js
184
+ - spec/dummy/app/assets/stylesheets/application.css
185
+ - spec/dummy/app/controllers/application_controller.rb
186
+ - spec/dummy/app/helpers/application_helper.rb
187
+ - spec/dummy/app/models/user.rb
188
+ - spec/dummy/app/views/layouts/application.html.erb
189
+ - spec/dummy/config/application.rb
190
+ - spec/dummy/config/boot.rb
191
+ - spec/dummy/config/database.yml
192
+ - spec/dummy/config/environment.rb
193
+ - spec/dummy/config/environments/development.rb
194
+ - spec/dummy/config/environments/production.rb
195
+ - spec/dummy/config/environments/test.rb
196
+ - spec/dummy/config/initializers/backtrace_silencers.rb
197
+ - spec/dummy/config/initializers/inflections.rb
198
+ - spec/dummy/config/initializers/mime_types.rb
199
+ - spec/dummy/config/initializers/secret_token.rb
200
+ - spec/dummy/config/initializers/session_store.rb
201
+ - spec/dummy/config/initializers/wrap_parameters.rb
202
+ - spec/dummy/config/locales/en.yml
203
+ - spec/dummy/config/routes.rb
204
+ - spec/dummy/config.ru
205
+ - spec/dummy/log/development.log
206
+ - spec/dummy/public/404.html
207
+ - spec/dummy/public/422.html
208
+ - spec/dummy/public/500.html
209
+ - spec/dummy/public/favicon.ico
210
+ - spec/dummy/Rakefile
211
+ - spec/dummy/README.rdoc
212
+ - spec/dummy/script/rails
213
+ homepage: http://Murd.ch
214
+ licenses: []
215
+ post_install_message:
216
+ rdoc_options: []
217
+ require_paths:
218
+ - lib
219
+ required_ruby_version: !ruby/object:Gem::Requirement
220
+ none: false
221
+ requirements:
222
+ - - ! '>='
223
+ - !ruby/object:Gem::Version
224
+ version: '0'
225
+ segments:
226
+ - 0
227
+ hash: -2149159514130258787
228
+ required_rubygems_version: !ruby/object:Gem::Requirement
229
+ none: false
230
+ requirements:
231
+ - - ! '>='
232
+ - !ruby/object:Gem::Version
233
+ version: '0'
234
+ segments:
235
+ - 0
236
+ hash: -2149159514130258787
237
+ requirements: []
238
+ rubyforge_project:
239
+ rubygems_version: 1.8.17
240
+ signing_key:
241
+ specification_version: 3
242
+ summary: Engine for a rails application which extends /rails/info about some information
243
+ resources in development environment.
244
+ test_files:
245
+ - spec/dummy/app/assets/javascripts/application.js
246
+ - spec/dummy/app/assets/stylesheets/application.css
247
+ - spec/dummy/app/controllers/application_controller.rb
248
+ - spec/dummy/app/helpers/application_helper.rb
249
+ - spec/dummy/app/models/user.rb
250
+ - spec/dummy/app/views/layouts/application.html.erb
251
+ - spec/dummy/config/application.rb
252
+ - spec/dummy/config/boot.rb
253
+ - spec/dummy/config/database.yml
254
+ - spec/dummy/config/environment.rb
255
+ - spec/dummy/config/environments/development.rb
256
+ - spec/dummy/config/environments/production.rb
257
+ - spec/dummy/config/environments/test.rb
258
+ - spec/dummy/config/initializers/backtrace_silencers.rb
259
+ - spec/dummy/config/initializers/inflections.rb
260
+ - spec/dummy/config/initializers/mime_types.rb
261
+ - spec/dummy/config/initializers/secret_token.rb
262
+ - spec/dummy/config/initializers/session_store.rb
263
+ - spec/dummy/config/initializers/wrap_parameters.rb
264
+ - spec/dummy/config/locales/en.yml
265
+ - spec/dummy/config/routes.rb
266
+ - spec/dummy/config.ru
267
+ - spec/dummy/log/development.log
268
+ - spec/dummy/public/404.html
269
+ - spec/dummy/public/422.html
270
+ - spec/dummy/public/500.html
271
+ - spec/dummy/public/favicon.ico
272
+ - spec/dummy/Rakefile
273
+ - spec/dummy/README.rdoc
274
+ - spec/dummy/script/rails