rscratch 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +15 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +99 -0
  4. data/Rakefile +40 -0
  5. data/app/assets/javascripts/rscratch/Chart.min.js +11 -0
  6. data/app/assets/javascripts/rscratch/application.js +128 -0
  7. data/app/assets/javascripts/rscratch/dashboard.js +90 -0
  8. data/app/assets/javascripts/rscratch/exceptions.js +97 -0
  9. data/app/assets/javascripts/rscratch/templates/exception_overview.jst.ejs +57 -0
  10. data/app/assets/javascripts/rscratch/templates/loader.jst.ejs +65 -0
  11. data/app/assets/stylesheets/rscratch/application.css +13 -0
  12. data/app/assets/stylesheets/rscratch/style.css +101 -0
  13. data/app/controllers/rscratch/application_controller.rb +12 -0
  14. data/app/controllers/rscratch/dashboard_controller.rb +13 -0
  15. data/app/controllers/rscratch/exceptions_controller.rb +23 -0
  16. data/app/helpers/rscratch/application_helper.rb +4 -0
  17. data/app/helpers/rscratch/dashboard_helper.rb +4 -0
  18. data/app/helpers/rscratch/exceptions_helper.rb +4 -0
  19. data/app/models/rscratch/exception.rb +68 -0
  20. data/app/models/rscratch/exception_log.rb +49 -0
  21. data/app/views/layouts/rscratch/application.html.haml +35 -0
  22. data/app/views/rscratch/dashboard/index.html.haml +12 -0
  23. data/app/views/rscratch/exceptions/_exception_smartlist.html.haml +21 -0
  24. data/app/views/rscratch/exceptions/index.html.haml +59 -0
  25. data/app/views/rscratch/exceptions/index.js.erb +3 -0
  26. data/app/views/rscratch/exceptions/show.json.jbuilder +13 -0
  27. data/app/views/smart_listing/_action_custom.html.erb +10 -0
  28. data/app/views/smart_listing/_action_delete.html.erb +12 -0
  29. data/app/views/smart_listing/_action_edit.html.erb +11 -0
  30. data/app/views/smart_listing/_action_show.html.erb +11 -0
  31. data/app/views/smart_listing/_item_new.html.erb +30 -0
  32. data/app/views/smart_listing/_pagination_per_page_link.html.erb +12 -0
  33. data/app/views/smart_listing/_pagination_per_page_links.html.erb +19 -0
  34. data/app/views/smart_listing/_sortable.html.erb +21 -0
  35. data/config/routes.rb +8 -0
  36. data/db/migrate/20160123064059_create_rscratch_exceptions.rb +15 -0
  37. data/db/migrate/20160123064828_create_rscratch_exception_logs.rb +17 -0
  38. data/lib/generators/rscratch/install/install_generator.rb +27 -0
  39. data/lib/generators/rscratch/install/templates/initializer.rb.erb +7 -0
  40. data/lib/generators/rscratch/install/templates/migration.rb +40 -0
  41. data/lib/rscratch.rb +11 -0
  42. data/lib/rscratch/configuration.rb +7 -0
  43. data/lib/rscratch/engine.rb +10 -0
  44. data/lib/rscratch/version.rb +3 -0
  45. data/lib/tasks/rscratch_tasks.rake +4 -0
  46. data/test/dummy/README.rdoc +261 -0
  47. data/test/dummy/Rakefile +7 -0
  48. data/test/dummy/app/assets/javascripts/application.js +15 -0
  49. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  50. data/test/dummy/app/controllers/application_controller.rb +3 -0
  51. data/test/dummy/app/helpers/application_helper.rb +2 -0
  52. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  53. data/test/dummy/config.ru +4 -0
  54. data/test/dummy/config/application.rb +59 -0
  55. data/test/dummy/config/boot.rb +10 -0
  56. data/test/dummy/config/database.yml +25 -0
  57. data/test/dummy/config/environment.rb +5 -0
  58. data/test/dummy/config/environments/development.rb +37 -0
  59. data/test/dummy/config/environments/production.rb +67 -0
  60. data/test/dummy/config/environments/test.rb +37 -0
  61. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  62. data/test/dummy/config/initializers/inflections.rb +15 -0
  63. data/test/dummy/config/initializers/mime_types.rb +5 -0
  64. data/test/dummy/config/initializers/secret_token.rb +7 -0
  65. data/test/dummy/config/initializers/session_store.rb +8 -0
  66. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  67. data/test/dummy/config/locales/en.yml +5 -0
  68. data/test/dummy/config/routes.rb +4 -0
  69. data/test/dummy/public/404.html +26 -0
  70. data/test/dummy/public/422.html +26 -0
  71. data/test/dummy/public/500.html +25 -0
  72. data/test/dummy/public/favicon.ico +0 -0
  73. data/test/dummy/script/rails +6 -0
  74. data/test/fixtures/rscratch/exception_logs.yml +23 -0
  75. data/test/fixtures/rscratch/exceptions.yml +19 -0
  76. data/test/functional/rscratch/dashboard_controller_test.rb +11 -0
  77. data/test/functional/rscratch/exceptions_controller_test.rb +11 -0
  78. data/test/integration/navigation_test.rb +10 -0
  79. data/test/rscratch_test.rb +7 -0
  80. data/test/test_helper.rb +15 -0
  81. data/test/unit/helpers/rscratch/dashboard_helper_test.rb +6 -0
  82. data/test/unit/helpers/rscratch/exceptions_helper_test.rb +6 -0
  83. data/test/unit/rscratch/exception_log_test.rb +9 -0
  84. data/test/unit/rscratch/exception_test.rb +9 -0
  85. metadata +235 -0
@@ -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'
@@ -0,0 +1,23 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ exception_id: 1
5
+ description: MyText
6
+ backtrace: MyText
7
+ request_url: MyText
8
+ request_method: MyString
9
+ parameters: MyText
10
+ user_agent: MyString
11
+ client_ip: MyString
12
+ status: MyString
13
+
14
+ two:
15
+ exception_id: 1
16
+ description: MyText
17
+ backtrace: MyText
18
+ request_url: MyText
19
+ request_method: MyString
20
+ parameters: MyText
21
+ user_agent: MyString
22
+ client_ip: MyString
23
+ status: MyString
@@ -0,0 +1,19 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ exception: MyText
5
+ message: MyText
6
+ controller: MyString
7
+ action: MyString
8
+ app_environment: MyString
9
+ total_occurance_count: 1
10
+ new_occurance_count: 1
11
+
12
+ two:
13
+ exception: MyText
14
+ message: MyText
15
+ controller: MyString
16
+ action: MyString
17
+ app_environment: MyString
18
+ total_occurance_count: 1
19
+ new_occurance_count: 1
@@ -0,0 +1,11 @@
1
+ require 'test_helper'
2
+
3
+ module Rscratch
4
+ class DashboardControllerTest < ActionController::TestCase
5
+ test "should get index" do
6
+ get :index
7
+ assert_response :success
8
+ end
9
+
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ require 'test_helper'
2
+
3
+ module Rscratch
4
+ class ExceptionsControllerTest < ActionController::TestCase
5
+ test "should get index" do
6
+ get :index
7
+ assert_response :success
8
+ end
9
+
10
+ end
11
+ end
@@ -0,0 +1,10 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ fixtures :all
5
+
6
+ # test "the truth" do
7
+ # assert true
8
+ # end
9
+ end
10
+
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class RscratchTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, Rscratch
6
+ end
7
+ end
@@ -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
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ module Rscratch
4
+ class DashboardHelperTest < ActionView::TestCase
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ module Rscratch
4
+ class ExceptionsHelperTest < ActionView::TestCase
5
+ end
6
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module Rscratch
4
+ class ExceptionLogTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module Rscratch
4
+ class ExceptionTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,235 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rscratch
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.3
5
+ platform: ruby
6
+ authors:
7
+ - Avishek Jana
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-01-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: smart_listing
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: haml
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: ejs
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: jbuilder
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: haml-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ! '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: RScratch - Exception and log processing solution for Ruby on Rails application
84
+ email:
85
+ - avishekjana.it@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - MIT-LICENSE
91
+ - README.md
92
+ - Rakefile
93
+ - app/assets/javascripts/rscratch/Chart.min.js
94
+ - app/assets/javascripts/rscratch/application.js
95
+ - app/assets/javascripts/rscratch/dashboard.js
96
+ - app/assets/javascripts/rscratch/exceptions.js
97
+ - app/assets/javascripts/rscratch/templates/exception_overview.jst.ejs
98
+ - app/assets/javascripts/rscratch/templates/loader.jst.ejs
99
+ - app/assets/stylesheets/rscratch/application.css
100
+ - app/assets/stylesheets/rscratch/style.css
101
+ - app/controllers/rscratch/application_controller.rb
102
+ - app/controllers/rscratch/dashboard_controller.rb
103
+ - app/controllers/rscratch/exceptions_controller.rb
104
+ - app/helpers/rscratch/application_helper.rb
105
+ - app/helpers/rscratch/dashboard_helper.rb
106
+ - app/helpers/rscratch/exceptions_helper.rb
107
+ - app/models/rscratch/exception.rb
108
+ - app/models/rscratch/exception_log.rb
109
+ - app/views/layouts/rscratch/application.html.haml
110
+ - app/views/rscratch/dashboard/index.html.haml
111
+ - app/views/rscratch/exceptions/_exception_smartlist.html.haml
112
+ - app/views/rscratch/exceptions/index.html.haml
113
+ - app/views/rscratch/exceptions/index.js.erb
114
+ - app/views/rscratch/exceptions/show.json.jbuilder
115
+ - app/views/smart_listing/_action_custom.html.erb
116
+ - app/views/smart_listing/_action_delete.html.erb
117
+ - app/views/smart_listing/_action_edit.html.erb
118
+ - app/views/smart_listing/_action_show.html.erb
119
+ - app/views/smart_listing/_item_new.html.erb
120
+ - app/views/smart_listing/_pagination_per_page_link.html.erb
121
+ - app/views/smart_listing/_pagination_per_page_links.html.erb
122
+ - app/views/smart_listing/_sortable.html.erb
123
+ - config/routes.rb
124
+ - db/migrate/20160123064059_create_rscratch_exceptions.rb
125
+ - db/migrate/20160123064828_create_rscratch_exception_logs.rb
126
+ - lib/generators/rscratch/install/install_generator.rb
127
+ - lib/generators/rscratch/install/templates/initializer.rb.erb
128
+ - lib/generators/rscratch/install/templates/migration.rb
129
+ - lib/rscratch.rb
130
+ - lib/rscratch/configuration.rb
131
+ - lib/rscratch/engine.rb
132
+ - lib/rscratch/version.rb
133
+ - lib/tasks/rscratch_tasks.rake
134
+ - test/dummy/README.rdoc
135
+ - test/dummy/Rakefile
136
+ - test/dummy/app/assets/javascripts/application.js
137
+ - test/dummy/app/assets/stylesheets/application.css
138
+ - test/dummy/app/controllers/application_controller.rb
139
+ - test/dummy/app/helpers/application_helper.rb
140
+ - test/dummy/app/views/layouts/application.html.erb
141
+ - test/dummy/config.ru
142
+ - test/dummy/config/application.rb
143
+ - test/dummy/config/boot.rb
144
+ - test/dummy/config/database.yml
145
+ - test/dummy/config/environment.rb
146
+ - test/dummy/config/environments/development.rb
147
+ - test/dummy/config/environments/production.rb
148
+ - test/dummy/config/environments/test.rb
149
+ - test/dummy/config/initializers/backtrace_silencers.rb
150
+ - test/dummy/config/initializers/inflections.rb
151
+ - test/dummy/config/initializers/mime_types.rb
152
+ - test/dummy/config/initializers/secret_token.rb
153
+ - test/dummy/config/initializers/session_store.rb
154
+ - test/dummy/config/initializers/wrap_parameters.rb
155
+ - test/dummy/config/locales/en.yml
156
+ - test/dummy/config/routes.rb
157
+ - test/dummy/public/404.html
158
+ - test/dummy/public/422.html
159
+ - test/dummy/public/500.html
160
+ - test/dummy/public/favicon.ico
161
+ - test/dummy/script/rails
162
+ - test/fixtures/rscratch/exception_logs.yml
163
+ - test/fixtures/rscratch/exceptions.yml
164
+ - test/functional/rscratch/dashboard_controller_test.rb
165
+ - test/functional/rscratch/exceptions_controller_test.rb
166
+ - test/integration/navigation_test.rb
167
+ - test/rscratch_test.rb
168
+ - test/test_helper.rb
169
+ - test/unit/helpers/rscratch/dashboard_helper_test.rb
170
+ - test/unit/helpers/rscratch/exceptions_helper_test.rb
171
+ - test/unit/rscratch/exception_log_test.rb
172
+ - test/unit/rscratch/exception_test.rb
173
+ homepage: https://github.com/avishekjana/rscratch
174
+ licenses: []
175
+ metadata: {}
176
+ post_install_message:
177
+ rdoc_options: []
178
+ require_paths:
179
+ - lib
180
+ required_ruby_version: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - ! '>='
183
+ - !ruby/object:Gem::Version
184
+ version: '0'
185
+ required_rubygems_version: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ requirements: []
191
+ rubyforge_project:
192
+ rubygems_version: 2.4.8
193
+ signing_key:
194
+ specification_version: 4
195
+ summary: RScratch - Exception and log processing solution for Ruby on Rails application
196
+ test_files:
197
+ - test/dummy/app/assets/javascripts/application.js
198
+ - test/dummy/app/assets/stylesheets/application.css
199
+ - test/dummy/app/controllers/application_controller.rb
200
+ - test/dummy/app/helpers/application_helper.rb
201
+ - test/dummy/app/views/layouts/application.html.erb
202
+ - test/dummy/config/application.rb
203
+ - test/dummy/config/boot.rb
204
+ - test/dummy/config/database.yml
205
+ - test/dummy/config/environment.rb
206
+ - test/dummy/config/environments/development.rb
207
+ - test/dummy/config/environments/production.rb
208
+ - test/dummy/config/environments/test.rb
209
+ - test/dummy/config/initializers/backtrace_silencers.rb
210
+ - test/dummy/config/initializers/inflections.rb
211
+ - test/dummy/config/initializers/mime_types.rb
212
+ - test/dummy/config/initializers/secret_token.rb
213
+ - test/dummy/config/initializers/session_store.rb
214
+ - test/dummy/config/initializers/wrap_parameters.rb
215
+ - test/dummy/config/locales/en.yml
216
+ - test/dummy/config/routes.rb
217
+ - test/dummy/config.ru
218
+ - test/dummy/public/404.html
219
+ - test/dummy/public/422.html
220
+ - test/dummy/public/500.html
221
+ - test/dummy/public/favicon.ico
222
+ - test/dummy/Rakefile
223
+ - test/dummy/README.rdoc
224
+ - test/dummy/script/rails
225
+ - test/fixtures/rscratch/exception_logs.yml
226
+ - test/fixtures/rscratch/exceptions.yml
227
+ - test/functional/rscratch/dashboard_controller_test.rb
228
+ - test/functional/rscratch/exceptions_controller_test.rb
229
+ - test/integration/navigation_test.rb
230
+ - test/rscratch_test.rb
231
+ - test/test_helper.rb
232
+ - test/unit/helpers/rscratch/dashboard_helper_test.rb
233
+ - test/unit/helpers/rscratch/exceptions_helper_test.rb
234
+ - test/unit/rscratch/exception_log_test.rb
235
+ - test/unit/rscratch/exception_test.rb