error-locator 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +3 -0
  3. data/Rakefile +37 -0
  4. data/lib/error-locator/action_dispatch_ext.rb +13 -0
  5. data/lib/error-locator/templates/rescues/_request_and_response.erb +31 -0
  6. data/lib/error-locator/templates/rescues/_trace.erb +38 -0
  7. data/lib/error-locator/templates/rescues/diagnostics.erb +10 -0
  8. data/lib/error-locator/templates/rescues/layout.erb +31 -0
  9. data/lib/error-locator/templates/rescues/missing_template.erb +2 -0
  10. data/lib/error-locator/templates/rescues/routing_error.erb +10 -0
  11. data/lib/error-locator/templates/rescues/template_error.erb +17 -0
  12. data/lib/error-locator/templates/rescues/unknown_action.erb +2 -0
  13. data/lib/error-locator/version.rb +3 -0
  14. data/lib/error-locator.rb +13 -0
  15. data/lib/tasks/error-locator_tasks.rake +4 -0
  16. data/test/dummy/Rakefile +7 -0
  17. data/test/dummy/app/controllers/application_controller.rb +4 -0
  18. data/test/dummy/app/controllers/home_controller.rb +8 -0
  19. data/test/dummy/config/application.rb +45 -0
  20. data/test/dummy/config/boot.rb +10 -0
  21. data/test/dummy/config/database.yml +25 -0
  22. data/test/dummy/config/environment.rb +5 -0
  23. data/test/dummy/config/environments/development.rb +30 -0
  24. data/test/dummy/config/environments/production.rb +60 -0
  25. data/test/dummy/config/environments/test.rb +39 -0
  26. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  27. data/test/dummy/config/initializers/inflections.rb +10 -0
  28. data/test/dummy/config/initializers/mime_types.rb +5 -0
  29. data/test/dummy/config/initializers/secret_token.rb +7 -0
  30. data/test/dummy/config/initializers/session_store.rb +8 -0
  31. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  32. data/test/dummy/config/locales/en.yml +5 -0
  33. data/test/dummy/config/routes.rb +62 -0
  34. data/test/dummy/config.ru +4 -0
  35. data/test/dummy/db/development.sqlite3 +0 -0
  36. data/test/dummy/db/test.sqlite3 +0 -0
  37. data/test/dummy/log/development.log +1376 -0
  38. data/test/dummy/log/test.log +0 -0
  39. data/test/dummy/public/404.html +26 -0
  40. data/test/dummy/public/422.html +26 -0
  41. data/test/dummy/public/500.html +26 -0
  42. data/test/dummy/public/favicon.ico +0 -0
  43. data/test/dummy/script/rails +6 -0
  44. data/test/dummy/tmp/cache/assets/C81/2F0/sprockets%2F55a616d0509364450c69ca5357ce8d52 +9446 -0
  45. data/test/dummy/tmp/cache/assets/DD0/C80/sprockets%2F4ba2b51509e8f546fac0d93cbe54dd8f +9467 -0
  46. data/test/error-locator_test.rb +7 -0
  47. data/test/test_helper.rb +10 -0
  48. metadata +159 -0
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class ErrorLocatorTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, ErrorLocator
6
+ end
7
+ end
@@ -0,0 +1,10 @@
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 }
metadata ADDED
@@ -0,0 +1,159 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: error-locator
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Partsyrniy Dmitriy
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-11-23 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.1.8
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 3.1.8
30
+ - !ruby/object:Gem::Dependency
31
+ name: sqlite3
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ description: Set $EDITOR environment variable to your desired editor, add 'error-locator'
47
+ gem to your gem file and add ' post '/error-locator' => ErrorLocator' to your routes.rb.
48
+ Click on a stack trace line in the browser.
49
+ email:
50
+ - liks@mail.require
51
+ executables: []
52
+ extensions: []
53
+ extra_rdoc_files: []
54
+ files:
55
+ - lib/tasks/error-locator_tasks.rake
56
+ - lib/error-locator/templates/rescues/layout.erb
57
+ - lib/error-locator/templates/rescues/_request_and_response.erb
58
+ - lib/error-locator/templates/rescues/routing_error.erb
59
+ - lib/error-locator/templates/rescues/unknown_action.erb
60
+ - lib/error-locator/templates/rescues/_trace.erb
61
+ - lib/error-locator/templates/rescues/missing_template.erb
62
+ - lib/error-locator/templates/rescues/diagnostics.erb
63
+ - lib/error-locator/templates/rescues/template_error.erb
64
+ - lib/error-locator/version.rb
65
+ - lib/error-locator/action_dispatch_ext.rb
66
+ - lib/error-locator.rb
67
+ - MIT-LICENSE
68
+ - Rakefile
69
+ - README.rdoc
70
+ - test/test_helper.rb
71
+ - test/dummy/config/initializers/mime_types.rb
72
+ - test/dummy/config/initializers/session_store.rb
73
+ - test/dummy/config/initializers/backtrace_silencers.rb
74
+ - test/dummy/config/initializers/inflections.rb
75
+ - test/dummy/config/initializers/wrap_parameters.rb
76
+ - test/dummy/config/initializers/secret_token.rb
77
+ - test/dummy/config/boot.rb
78
+ - test/dummy/config/locales/en.yml
79
+ - test/dummy/config/routes.rb
80
+ - test/dummy/config/application.rb
81
+ - test/dummy/config/database.yml
82
+ - test/dummy/config/environments/test.rb
83
+ - test/dummy/config/environments/development.rb
84
+ - test/dummy/config/environments/production.rb
85
+ - test/dummy/config/environment.rb
86
+ - test/dummy/config.ru
87
+ - test/dummy/log/development.log
88
+ - test/dummy/log/test.log
89
+ - test/dummy/db/test.sqlite3
90
+ - test/dummy/db/development.sqlite3
91
+ - test/dummy/Rakefile
92
+ - test/dummy/app/controllers/home_controller.rb
93
+ - test/dummy/app/controllers/application_controller.rb
94
+ - test/dummy/public/422.html
95
+ - test/dummy/public/favicon.ico
96
+ - test/dummy/public/404.html
97
+ - test/dummy/public/500.html
98
+ - test/dummy/tmp/cache/assets/DD0/C80/sprockets%2F4ba2b51509e8f546fac0d93cbe54dd8f
99
+ - test/dummy/tmp/cache/assets/C81/2F0/sprockets%2F55a616d0509364450c69ca5357ce8d52
100
+ - test/dummy/script/rails
101
+ - test/error-locator_test.rb
102
+ homepage: http://www.google.com
103
+ licenses: []
104
+ post_install_message:
105
+ rdoc_options: []
106
+ require_paths:
107
+ - lib
108
+ required_ruby_version: !ruby/object:Gem::Requirement
109
+ none: false
110
+ requirements:
111
+ - - ! '>='
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ required_rubygems_version: !ruby/object:Gem::Requirement
115
+ none: false
116
+ requirements:
117
+ - - ! '>='
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
120
+ requirements: []
121
+ rubyforge_project:
122
+ rubygems_version: 1.8.24
123
+ signing_key:
124
+ specification_version: 3
125
+ summary: Locate error in editor from error stack
126
+ test_files:
127
+ - test/test_helper.rb
128
+ - test/dummy/config/initializers/mime_types.rb
129
+ - test/dummy/config/initializers/session_store.rb
130
+ - test/dummy/config/initializers/backtrace_silencers.rb
131
+ - test/dummy/config/initializers/inflections.rb
132
+ - test/dummy/config/initializers/wrap_parameters.rb
133
+ - test/dummy/config/initializers/secret_token.rb
134
+ - test/dummy/config/boot.rb
135
+ - test/dummy/config/locales/en.yml
136
+ - test/dummy/config/routes.rb
137
+ - test/dummy/config/application.rb
138
+ - test/dummy/config/database.yml
139
+ - test/dummy/config/environments/test.rb
140
+ - test/dummy/config/environments/development.rb
141
+ - test/dummy/config/environments/production.rb
142
+ - test/dummy/config/environment.rb
143
+ - test/dummy/config.ru
144
+ - test/dummy/log/development.log
145
+ - test/dummy/log/test.log
146
+ - test/dummy/db/test.sqlite3
147
+ - test/dummy/db/development.sqlite3
148
+ - test/dummy/Rakefile
149
+ - test/dummy/app/controllers/home_controller.rb
150
+ - test/dummy/app/controllers/application_controller.rb
151
+ - test/dummy/public/422.html
152
+ - test/dummy/public/favicon.ico
153
+ - test/dummy/public/404.html
154
+ - test/dummy/public/500.html
155
+ - test/dummy/tmp/cache/assets/DD0/C80/sprockets%2F4ba2b51509e8f546fac0d93cbe54dd8f
156
+ - test/dummy/tmp/cache/assets/C81/2F0/sprockets%2F55a616d0509364450c69ca5357ce8d52
157
+ - test/dummy/script/rails
158
+ - test/error-locator_test.rb
159
+ has_rdoc: