sads_xml 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README +8 -0
  3. data/Rakefile +38 -0
  4. data/app/views/layouts/sads_xml.html.erb +9 -0
  5. data/app/views/sads_xml/sads.html.erb +126 -0
  6. data/lib/sads_xml/controller_additions.rb +61 -0
  7. data/lib/sads_xml/sads.rb +166 -0
  8. data/lib/sads_xml/version.rb +3 -0
  9. data/lib/sads_xml.rb +9 -0
  10. data/test/dummy/README.rdoc +261 -0
  11. data/test/dummy/Rakefile +7 -0
  12. data/test/dummy/app/assets/javascripts/application.js +15 -0
  13. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  14. data/test/dummy/app/controllers/application_controller.rb +3 -0
  15. data/test/dummy/app/controllers/ussd/default_controller.rb +9 -0
  16. data/test/dummy/app/helpers/application_helper.rb +2 -0
  17. data/test/dummy/app/helpers/ussd/default_helper.rb +2 -0
  18. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  19. data/test/dummy/config/application.rb +56 -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 +37 -0
  24. data/test/dummy/config/environments/production.rb +67 -0
  25. data/test/dummy/config/environments/test.rb +37 -0
  26. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  27. data/test/dummy/config/initializers/inflections.rb +15 -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 +337 -0
  38. data/test/dummy/log/test.log +133 -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 +25 -0
  42. data/test/dummy/public/favicon.ico +0 -0
  43. data/test/dummy/script/rails +6 -0
  44. data/test/dummy/test/functional/ussd/default_controller_test.rb +9 -0
  45. data/test/dummy/test/unit/helpers/ussd/default_helper_test.rb +4 -0
  46. data/test/dummy/tmp/cache/assets/CB1/D30/sprockets%2F7b6a97d2209a681f2bebe34655163319 +0 -0
  47. data/test/dummy/tmp/cache/assets/CBF/3F0/sprockets%2F7bd700995054fc7f6e3dd46729840f41 +0 -0
  48. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  49. data/test/dummy/tmp/cache/assets/CF8/240/sprockets%2Fa77e8c483f757a8dde25486509c30e49 +0 -0
  50. data/test/dummy/tmp/cache/assets/CFA/270/sprockets%2Fd02325a0101297b802b9d58bf528daad +0 -0
  51. data/test/dummy/tmp/cache/assets/D15/F00/sprockets%2Fecc50cf25fa3f5a19523f1167447499e +0 -0
  52. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  53. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  54. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  55. data/test/dummy/tmp/cache/assets/D87/660/sprockets%2F1ae8d4faaefc28a0e004e1363156a41f +0 -0
  56. data/test/dummy/tmp/cache/assets/D9D/DE0/sprockets%2Fa9c151cfd3ded7726c52d078c35ac71f +0 -0
  57. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  58. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  59. data/test/dummy/tmp/cache/assets/E43/620/sprockets%2Fa1fde4a5eaab0961220acbd9def065aa +0 -0
  60. data/test/sads_xml_test.rb +108 -0
  61. data/test/test_helper.rb +14 -0
  62. metadata +186 -0
@@ -0,0 +1,62 @@
1
+ Dummy::Application.routes.draw do
2
+ namespace :ussd do
3
+ match 'index', :to => 'default#index'
4
+ end
5
+
6
+ # The priority is based upon order of creation:
7
+ # first created -> highest priority.
8
+
9
+ # Sample of regular route:
10
+ # match 'products/:id' => 'catalog#view'
11
+ # Keep in mind you can assign values other than :controller and :action
12
+
13
+ # Sample of named route:
14
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
15
+ # This route can be invoked with purchase_url(:id => product.id)
16
+
17
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
18
+ # resources :products
19
+
20
+ # Sample resource route with options:
21
+ # resources :products do
22
+ # member do
23
+ # get 'short'
24
+ # post 'toggle'
25
+ # end
26
+ #
27
+ # collection do
28
+ # get 'sold'
29
+ # end
30
+ # end
31
+
32
+ # Sample resource route with sub-resources:
33
+ # resources :products do
34
+ # resources :comments, :sales
35
+ # resource :seller
36
+ # end
37
+
38
+ # Sample resource route with more complex sub-resources
39
+ # resources :products do
40
+ # resources :comments
41
+ # resources :sales do
42
+ # get 'recent', :on => :collection
43
+ # end
44
+ # end
45
+
46
+ # Sample resource route within a namespace:
47
+ # namespace :admin do
48
+ # # Directs /admin/products/* to Admin::ProductsController
49
+ # # (app/controllers/admin/products_controller.rb)
50
+ # resources :products
51
+ # end
52
+
53
+ # You can have the root of your site routed with "root"
54
+ # just remember to delete public/index.html.
55
+ # root :to => 'welcome#index'
56
+
57
+ # See how all your routes lay out with "rake routes"
58
+
59
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
60
+ # Note: This route will make all actions in every controller accessible via GET requests.
61
+ # match ':controller(/:action(/:id))(.:format)'
62
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
File without changes
File without changes
@@ -0,0 +1,337 @@
1
+
2
+
3
+ Started GET "/" for 127.0.0.1 at 2012-05-09 12:18:58 +0800
4
+
5
+ ActionController::RoutingError (No route matches [GET] "/"):
6
+ actionpack (3.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
7
+ actionpack (3.2.3) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
8
+ railties (3.2.3) lib/rails/rack/logger.rb:26:in `call_app'
9
+ railties (3.2.3) lib/rails/rack/logger.rb:16:in `call'
10
+ actionpack (3.2.3) lib/action_dispatch/middleware/request_id.rb:22:in `call'
11
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
12
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
13
+ activesupport (3.2.3) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
14
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
15
+ actionpack (3.2.3) lib/action_dispatch/middleware/static.rb:62:in `call'
16
+ railties (3.2.3) lib/rails/engine.rb:479:in `call'
17
+ railties (3.2.3) lib/rails/application.rb:220:in `call'
18
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
19
+ railties (3.2.3) lib/rails/rack/log_tailer.rb:14:in `call'
20
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
21
+ /Users/andrew/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
22
+ /Users/andrew/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
23
+ /Users/andrew/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
24
+
25
+
26
+ Rendered /Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (9.5ms)
27
+
28
+
29
+ Started GET "/ussd" for 127.0.0.1 at 2012-05-09 12:19:05 +0800
30
+
31
+ ActionController::RoutingError (No route matches [GET] "/ussd"):
32
+ actionpack (3.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
33
+ actionpack (3.2.3) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
34
+ railties (3.2.3) lib/rails/rack/logger.rb:26:in `call_app'
35
+ railties (3.2.3) lib/rails/rack/logger.rb:16:in `call'
36
+ actionpack (3.2.3) lib/action_dispatch/middleware/request_id.rb:22:in `call'
37
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
38
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
39
+ activesupport (3.2.3) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
40
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
41
+ actionpack (3.2.3) lib/action_dispatch/middleware/static.rb:62:in `call'
42
+ railties (3.2.3) lib/rails/engine.rb:479:in `call'
43
+ railties (3.2.3) lib/rails/application.rb:220:in `call'
44
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
45
+ railties (3.2.3) lib/rails/rack/log_tailer.rb:14:in `call'
46
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
47
+ /Users/andrew/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
48
+ /Users/andrew/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
49
+ /Users/andrew/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
50
+
51
+
52
+ Rendered /Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.7ms)
53
+
54
+
55
+ Started GET "/ussd" for 127.0.0.1 at 2012-05-09 12:19:57 +0800
56
+
57
+ ActionController::RoutingError (No route matches [GET] "/ussd"):
58
+ actionpack (3.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
59
+ actionpack (3.2.3) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
60
+ railties (3.2.3) lib/rails/rack/logger.rb:26:in `call_app'
61
+ railties (3.2.3) lib/rails/rack/logger.rb:16:in `call'
62
+ actionpack (3.2.3) lib/action_dispatch/middleware/request_id.rb:22:in `call'
63
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
64
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
65
+ activesupport (3.2.3) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
66
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
67
+ actionpack (3.2.3) lib/action_dispatch/middleware/static.rb:62:in `call'
68
+ railties (3.2.3) lib/rails/engine.rb:479:in `call'
69
+ railties (3.2.3) lib/rails/application.rb:220:in `call'
70
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
71
+ railties (3.2.3) lib/rails/rack/log_tailer.rb:14:in `call'
72
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
73
+ /Users/andrew/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
74
+ /Users/andrew/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
75
+ /Users/andrew/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
76
+
77
+
78
+ Rendered /Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
79
+
80
+
81
+ Started GET "/ussd/index.sads" for 127.0.0.1 at 2012-05-09 12:20:03 +0800
82
+
83
+ ActionController::RoutingError (undefined local variable or method `enable_sads' for Ussd::DefaultController:Class):
84
+ app/controllers/ussd/default_controller.rb:2:in `<class:DefaultController>'
85
+ app/controllers/ussd/default_controller.rb:1:in `<top (required)>'
86
+
87
+
88
+ Rendered /Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
89
+
90
+
91
+ Started GET "/ussd/index.sads" for 127.0.0.1 at 2012-05-09 12:20:54 +0800
92
+
93
+ ActionController::RoutingError (undefined local variable or method `enable_sads' for Ussd::DefaultController:Class):
94
+ app/controllers/ussd/default_controller.rb:2:in `<class:DefaultController>'
95
+ app/controllers/ussd/default_controller.rb:1:in `<top (required)>'
96
+
97
+
98
+ Rendered /Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.7ms)
99
+
100
+
101
+ Started GET "/ussd/index.sads" for 127.0.0.1 at 2012-05-09 12:21:06 +0800
102
+ Processing by Ussd::DefaultController#index as
103
+ WHOISD: {}
104
+ Rendered ussd/default/index.html.erb within layouts/application (8.5ms)
105
+ Compiled ussd/default.css (0ms) (pid 1575)
106
+ Compiled application.css (41ms) (pid 1575)
107
+ Compiled jquery.js (3ms) (pid 1575)
108
+ Compiled jquery_ujs.js (0ms) (pid 1575)
109
+ Compiled ussd/default.js (0ms) (pid 1575)
110
+ Compiled application.js (84ms) (pid 1575)
111
+ Completed 200 OK in 198ms (Views: 197.7ms | ActiveRecord: 0.0ms)
112
+
113
+
114
+ Started GET "/assets/ussd/default.js?body=1" for 127.0.0.1 at 2012-05-09 12:21:07 +0800
115
+ Served asset /ussd/default.js - 200 OK (2ms)
116
+
117
+
118
+ Started GET "/assets/ussd/default.css?body=1" for 127.0.0.1 at 2012-05-09 12:21:07 +0800
119
+ Served asset /ussd/default.css - 200 OK (39ms)
120
+
121
+
122
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-05-09 12:21:07 +0800
123
+ Served asset /application.css - 304 Not Modified (7ms)
124
+
125
+
126
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-05-09 12:21:07 +0800
127
+ Served asset /jquery.js - 304 Not Modified (2ms)
128
+
129
+
130
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-05-09 12:21:07 +0800
131
+ Served asset /application.js - 304 Not Modified (6ms)
132
+
133
+
134
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-05-09 12:21:07 +0800
135
+ Served asset /jquery_ujs.js - 304 Not Modified (2ms)
136
+
137
+
138
+ Started GET "/ussd/index.sads" for 127.0.0.1 at 2012-05-09 12:22:34 +0800
139
+ Processing by Ussd::DefaultController#index as
140
+ WHOISD: {}
141
+ Completed 500 Internal Server Error in 1ms
142
+
143
+ NameError (uninitialized constant Mime::SADS):
144
+ app/controllers/ussd/default_controller.rb:7:in `index'
145
+
146
+
147
+ Rendered /Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (3.8ms)
148
+ Rendered /Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.8ms)
149
+ Rendered /Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (30.8ms)
150
+
151
+
152
+ Started GET "/ussd/index.sads" for 127.0.0.1 at 2012-05-09 12:23:24 +0800
153
+ Processing by Ussd::DefaultController#index as
154
+ WHOISD: {}
155
+ Completed 500 Internal Server Error in 1ms
156
+
157
+ NameError (uninitialized constant Mime::SADS):
158
+ app/controllers/ussd/default_controller.rb:7:in `index'
159
+
160
+
161
+ Rendered /Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (39.3ms)
162
+ Rendered /Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms)
163
+ Rendered /Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (47.2ms)
164
+
165
+
166
+ Started GET "/ussd/index.sads" for 127.0.0.1 at 2012-05-09 12:23:34 +0800
167
+ Processing by Ussd::DefaultController#index as SADS
168
+ WHOISD: {}
169
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
170
+
171
+
172
+ Started GET "/ussd/index.html?abonent=%2B639175649910&mpin=123456&verification_code=526151" for 127.0.0.1 at 2012-05-09 12:23:39 +0800
173
+ Processing by Ussd::DefaultController#index as HTML
174
+ Parameters: {"abonent"=>"+639175649910", "mpin"=>"123456", "verification_code"=>"526151"}
175
+ Completed 500 Internal Server Error in 52ms
176
+
177
+ ActionView::MissingTemplate (Missing template sads_xml/sads with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder]}. Searched in:
178
+ * "/Users/andrew/code/plugins/sads_xml/test/dummy/app/views"
179
+ ):
180
+ app/controllers/ussd/default_controller.rb:7:in `index'
181
+
182
+
183
+ Rendered /Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (8.9ms)
184
+
185
+
186
+ Started GET "/ussd/index.html" for 127.0.0.1 at 2012-05-09 12:23:46 +0800
187
+ Processing by Ussd::DefaultController#index as HTML
188
+ Completed 500 Internal Server Error in 1ms
189
+
190
+ ActionView::MissingTemplate (Missing template sads_xml/sads with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder]}. Searched in:
191
+ * "/Users/andrew/code/plugins/sads_xml/test/dummy/app/views"
192
+ ):
193
+ app/controllers/ussd/default_controller.rb:7:in `index'
194
+
195
+
196
+ Rendered /Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.5ms)
197
+
198
+
199
+ Started GET "/ussd/index.html" for 127.0.0.1 at 2012-05-09 12:26:51 +0800
200
+ Processing by Ussd::DefaultController#index as HTML
201
+ Completed 500 Internal Server Error in 1ms
202
+
203
+ ActionView::MissingTemplate (Missing template sads_xml/sads with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder]}. Searched in:
204
+ * "/Users/andrew/code/plugins/sads_xml/test/dummy/app/views"
205
+ ):
206
+ app/controllers/ussd/default_controller.rb:7:in `index'
207
+
208
+
209
+ Rendered /Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.4ms)
210
+
211
+
212
+ Started GET "/ussd/index.html" for 127.0.0.1 at 2012-05-09 12:27:56 +0800
213
+ Processing by Ussd::DefaultController#index as HTML
214
+ Completed 500 Internal Server Error in 1ms
215
+
216
+ ActionView::MissingTemplate (Missing template sads_xml/sads with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder]}. Searched in:
217
+ * "/Users/andrew/code/plugins/sads_xml/test/dummy/app/views"
218
+ ):
219
+ app/controllers/ussd/default_controller.rb:7:in `index'
220
+
221
+
222
+ Rendered /Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.5ms)
223
+
224
+
225
+ Started GET "/ussd/index.html" for 127.0.0.1 at 2012-05-09 12:27:57 +0800
226
+ Processing by Ussd::DefaultController#index as HTML
227
+ Completed 500 Internal Server Error in 1ms
228
+
229
+ ActionView::MissingTemplate (Missing template sads_xml/sads with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder]}. Searched in:
230
+ * "/Users/andrew/code/plugins/sads_xml/test/dummy/app/views"
231
+ ):
232
+ app/controllers/ussd/default_controller.rb:7:in `index'
233
+
234
+
235
+ Rendered /Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.5ms)
236
+
237
+
238
+ Started GET "/ussd/index.html" for 127.0.0.1 at 2012-05-09 12:27:57 +0800
239
+ Processing by Ussd::DefaultController#index as HTML
240
+ Completed 500 Internal Server Error in 1ms
241
+
242
+ ActionView::MissingTemplate (Missing template sads_xml/sads with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder]}. Searched in:
243
+ * "/Users/andrew/code/plugins/sads_xml/test/dummy/app/views"
244
+ ):
245
+ app/controllers/ussd/default_controller.rb:7:in `index'
246
+
247
+
248
+ Rendered /Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.5ms)
249
+
250
+
251
+ Started GET "/ussd/index.html" for 127.0.0.1 at 2012-05-09 12:27:58 +0800
252
+ Processing by Ussd::DefaultController#index as HTML
253
+ Completed 500 Internal Server Error in 1ms
254
+
255
+ ActionView::MissingTemplate (Missing template sads_xml/sads with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder]}. Searched in:
256
+ * "/Users/andrew/code/plugins/sads_xml/test/dummy/app/views"
257
+ ):
258
+ app/controllers/ussd/default_controller.rb:7:in `index'
259
+
260
+
261
+ Rendered /Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.7ms)
262
+
263
+
264
+ Started GET "/ussd/index.html" for 127.0.0.1 at 2012-05-09 12:33:42 +0800
265
+ Processing by Ussd::DefaultController#index as HTML
266
+ Completed 500 Internal Server Error in 63ms
267
+
268
+ ActionView::MissingTemplate (Missing partial sads_xml/sads with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder]}. Searched in:
269
+ * "/Users/andrew/code/plugins/sads_xml/test/dummy/app/views"
270
+ ):
271
+ app/controllers/ussd/default_controller.rb:7:in `index'
272
+
273
+
274
+ Rendered /Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (8.9ms)
275
+
276
+
277
+ Started GET "/ussd/index.html" for 127.0.0.1 at 2012-05-09 12:58:10 +0800
278
+ Processing by Ussd::DefaultController#index as HTML
279
+ Completed 500 Internal Server Error in 68ms
280
+
281
+ ActionView::MissingTemplate (Missing template layouts/sads_xml with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder]}. Searched in:
282
+ * "/Users/andrew/code/plugins/sads_xml/test/dummy/app/views"
283
+ ):
284
+ app/controllers/ussd/default_controller.rb:7:in `index'
285
+
286
+
287
+ Rendered /Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (9.3ms)
288
+
289
+
290
+ Started GET "/ussd/index.html" for 127.0.0.1 at 2012-05-09 13:05:50 +0800
291
+ Processing by Ussd::DefaultController#index as HTML
292
+ Rendered text template within layouts/sads_xml (0.0ms)
293
+ Completed 200 OK in 41ms (Views: 41.0ms | ActiveRecord: 0.0ms)
294
+
295
+
296
+ Started GET "/ussd/index.html" for 127.0.0.1 at 2012-05-09 13:07:15 +0800
297
+ Processing by Ussd::DefaultController#index as HTML
298
+ Rendered /Users/andrew/code/plugins/sads_xml/app/views/sads_xml/sads.html.erb within layouts/sads_xml (11.5ms)
299
+ Completed 200 OK in 40ms (Views: 39.6ms | ActiveRecord: 0.0ms)
300
+
301
+
302
+ Started GET "/" for 127.0.0.1 at 2012-05-09 18:25:07 +0800
303
+
304
+ ActionController::RoutingError (No route matches [GET] "/"):
305
+ actionpack (3.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
306
+ actionpack (3.2.3) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
307
+ railties (3.2.3) lib/rails/rack/logger.rb:26:in `call_app'
308
+ railties (3.2.3) lib/rails/rack/logger.rb:16:in `call'
309
+ actionpack (3.2.3) lib/action_dispatch/middleware/request_id.rb:22:in `call'
310
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
311
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
312
+ activesupport (3.2.3) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
313
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
314
+ actionpack (3.2.3) lib/action_dispatch/middleware/static.rb:62:in `call'
315
+ railties (3.2.3) lib/rails/engine.rb:479:in `call'
316
+ railties (3.2.3) lib/rails/application.rb:220:in `call'
317
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
318
+ railties (3.2.3) lib/rails/rack/log_tailer.rb:14:in `call'
319
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
320
+ /Users/andrew/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
321
+ /Users/andrew/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
322
+ /Users/andrew/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
323
+
324
+
325
+ Rendered /Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (12.9ms)
326
+
327
+
328
+ Started GET "/ussd/index.sads" for 127.0.0.1 at 2012-05-09 18:25:15 +0800
329
+ Processing by Ussd::DefaultController#index as SADS
330
+ WHOISD: {}
331
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
332
+
333
+
334
+ Started GET "/ussd/index.html" for 127.0.0.1 at 2012-05-09 18:25:17 +0800
335
+ Processing by Ussd::DefaultController#index as HTML
336
+ Rendered /Users/andrew/code/sads_xml/app/views/sads_xml/sads.html.erb within layouts/sads_xml (2.1ms)
337
+ Completed 200 OK in 35ms (Views: 34.8ms | ActiveRecord: 0.0ms)
@@ -0,0 +1,133 @@
1
+  (0.4ms) begin transaction
2
+  (0.0ms) rollback transaction
3
+  (0.4ms) begin transaction
4
+  (0.0ms) rollback transaction
5
+  (0.0ms) begin transaction
6
+  (0.0ms) rollback transaction
7
+  (0.0ms) begin transaction
8
+  (0.0ms) rollback transaction
9
+  (0.0ms) begin transaction
10
+  (0.0ms) rollback transaction
11
+  (0.0ms) begin transaction
12
+  (0.0ms) rollback transaction
13
+  (0.0ms) begin transaction
14
+  (0.1ms) rollback transaction
15
+  (0.0ms) begin transaction
16
+  (0.0ms) rollback transaction
17
+  (0.0ms) begin transaction
18
+  (0.0ms) rollback transaction
19
+  (0.0ms) begin transaction
20
+  (0.0ms) rollback transaction
21
+  (0.3ms) begin transaction
22
+  (0.0ms) rollback transaction
23
+  (0.0ms) begin transaction
24
+  (0.0ms) rollback transaction
25
+  (0.0ms) begin transaction
26
+  (0.0ms) rollback transaction
27
+  (0.0ms) begin transaction
28
+  (0.0ms) rollback transaction
29
+  (0.0ms) begin transaction
30
+  (0.0ms) rollback transaction
31
+  (0.0ms) begin transaction
32
+  (0.1ms) rollback transaction
33
+  (0.0ms) begin transaction
34
+  (0.0ms) rollback transaction
35
+  (0.0ms) begin transaction
36
+  (0.0ms) rollback transaction
37
+  (0.0ms) begin transaction
38
+  (0.0ms) rollback transaction
39
+  (0.3ms) begin transaction
40
+  (0.0ms) rollback transaction
41
+  (0.0ms) begin transaction
42
+  (0.0ms) rollback transaction
43
+  (0.0ms) begin transaction
44
+  (0.0ms) rollback transaction
45
+  (0.0ms) begin transaction
46
+  (0.0ms) rollback transaction
47
+  (0.0ms) begin transaction
48
+  (0.0ms) rollback transaction
49
+  (0.0ms) begin transaction
50
+  (0.1ms) rollback transaction
51
+  (0.0ms) begin transaction
52
+  (0.0ms) rollback transaction
53
+  (0.0ms) begin transaction
54
+  (0.0ms) rollback transaction
55
+  (0.0ms) begin transaction
56
+  (0.0ms) rollback transaction
57
+  (0.3ms) begin transaction
58
+  (0.0ms) rollback transaction
59
+  (0.0ms) begin transaction
60
+  (0.0ms) rollback transaction
61
+  (0.0ms) begin transaction
62
+  (0.0ms) rollback transaction
63
+  (0.0ms) begin transaction
64
+  (0.0ms) rollback transaction
65
+  (0.0ms) begin transaction
66
+  (0.0ms) rollback transaction
67
+  (0.0ms) begin transaction
68
+  (0.1ms) rollback transaction
69
+  (0.0ms) begin transaction
70
+  (0.0ms) rollback transaction
71
+  (0.0ms) begin transaction
72
+  (0.0ms) rollback transaction
73
+  (0.0ms) begin transaction
74
+  (0.0ms) rollback transaction
75
+  (0.3ms) begin transaction
76
+  (0.0ms) rollback transaction
77
+  (0.0ms) begin transaction
78
+  (0.1ms) rollback transaction
79
+  (0.0ms) begin transaction
80
+  (0.0ms) rollback transaction
81
+  (0.0ms) begin transaction
82
+  (0.0ms) rollback transaction
83
+  (0.0ms) begin transaction
84
+  (0.0ms) rollback transaction
85
+  (0.0ms) begin transaction
86
+  (0.0ms) rollback transaction
87
+  (0.0ms) begin transaction
88
+  (0.0ms) rollback transaction
89
+  (0.0ms) begin transaction
90
+  (0.0ms) rollback transaction
91
+  (0.0ms) begin transaction
92
+  (0.0ms) rollback transaction
93
+  (0.3ms) begin transaction
94
+  (0.0ms) rollback transaction
95
+  (0.0ms) begin transaction
96
+  (0.0ms) rollback transaction
97
+  (0.0ms) begin transaction
98
+  (0.0ms) rollback transaction
99
+  (0.0ms) begin transaction
100
+  (0.0ms) rollback transaction
101
+  (0.0ms) begin transaction
102
+  (0.0ms) rollback transaction
103
+  (0.0ms) begin transaction
104
+  (0.0ms) rollback transaction
105
+  (0.0ms) begin transaction
106
+  (0.0ms) rollback transaction
107
+  (0.0ms) begin transaction
108
+  (0.0ms) rollback transaction
109
+  (0.0ms) begin transaction
110
+  (0.0ms) rollback transaction
111
+  (0.4ms) begin transaction
112
+  (0.1ms) rollback transaction
113
+  (0.0ms) begin transaction
114
+  (0.0ms) rollback transaction
115
+  (0.0ms) begin transaction
116
+  (0.0ms) rollback transaction
117
+  (0.0ms) begin transaction
118
+  (0.0ms) rollback transaction
119
+  (0.0ms) begin transaction
120
+  (0.0ms) rollback transaction
121
+  (0.0ms) begin transaction
122
+  (0.0ms) rollback transaction
123
+  (0.0ms) begin transaction
124
+  (0.0ms) rollback transaction
125
+  (0.0ms) begin transaction
126
+  (0.0ms) rollback transaction
127
+  (0.0ms) begin transaction
128
+  (0.0ms) rollback transaction
129
+  (0.1ms) begin transaction
130
+ Processing by Ussd::DefaultController#index as HTML
131
+ Rendered /Users/andrew/code/sads_xml/app/views/sads_xml/sads.html.erb within layouts/sads_xml (11.7ms)
132
+ Completed 200 OK in 62ms (Views: 61.7ms | ActiveRecord: 0.0ms)
133
+  (0.1ms) rollback transaction
@@ -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'
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ class Ussd::DefaultControllerTest < ActionController::TestCase
4
+ test "should get index" do
5
+ get :index
6
+ assert_response :success
7
+ end
8
+
9
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class Ussd::DefaultHelperTest < ActionView::TestCase
4
+ end