rrjj 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +84 -0
- data/Rakefile +14 -0
- data/config/rrjj.rb +35 -0
- data/lib/guard_helpers/file_helper.rb +35 -0
- data/lib/guard_helpers/opal_helper.rb +27 -0
- data/lib/guard_helpers/rails_helper.rb +33 -0
- data/lib/guard_helpers/rrjj_helper.rb +45 -0
- data/lib/guard_helpers/srt_helper.rb +96 -0
- data/lib/rails_handlers/ctrl_handler.rb +7 -0
- data/lib/ro_commands/check.rb +16 -0
- data/lib/ro_commands/model.rb +24 -0
- data/lib/ro_commands/post_handler.rb +85 -0
- data/lib/ro_commands/rails_base.rb +27 -0
- data/lib/ro_commands/rails_shortcuts.rb +18 -0
- data/lib/ro_commands/ro_proc.rb +8 -0
- data/lib/ro_core_ext/object.rb +11 -0
- data/lib/ro_html_handler.rb +8 -0
- data/lib/rrjj.rb +18 -0
- data/lib/rrjj/cmd.rb +7 -0
- data/lib/rrjj/cmds.rb +42 -0
- data/lib/rrjj/railtie.rb +13 -0
- data/lib/rrjj/ro_faker.rb +10 -0
- data/lib/rrjj/version.rb +3 -0
- data/lib/rrjj_ro_commands_bin.rb +4 -0
- data/lib/rubymine_heaven.rb +2 -0
- data/lib/rubymine_heaven/linkable_errors.rb +56 -0
- data/lib/rubymine_heaven/linkable_errors_handler.rb +31 -0
- data/lib/rubymine_heaven/linkable_errors_railtie.rb +21 -0
- data/lib/subtitle.rb +149 -0
- data/lib/subtitles/ex.srt +5 -0
- data/lib/templates/alias.erb +3 -0
- data/lib/templates/srt.erb +4 -0
- data/spec/controllers/app_controller_spec.rb +12 -0
- data/spec/decorators/app_decorator_spec.rb +4 -0
- data/spec/decorators/post_decorator_spec.rb +38 -0
- data/spec/features/posts/index_spec.rb +9 -0
- data/spec/features/posts/search_spec.rb +10 -0
- data/spec/fixtures/handler/error_page.html +1 -0
- data/spec/fixtures/handler/result.html +1 -0
- data/spec/fixtures/post_handler/posts/error/test.md +1 -0
- data/spec/fixtures/post_handler/posts/rails/test.html +0 -0
- data/spec/fixtures/post_handler/tmp/rspec_guard_result +1 -0
- data/spec/fixtures/rails_navigate/app/controllers/app_controller.rb +0 -0
- data/spec/fixtures/rails_navigate/app/controllers/one_controller.rb +0 -0
- data/spec/fixtures/rails_navigate/app/controllers/two_controller.rb +0 -0
- data/spec/fixtures/rails_navigate/app/decorators/two_decorator.rb +0 -0
- data/spec/fixtures/rails_navigate/app/models/two_model.rb +0 -0
- data/spec/fixtures/rails_navigate/opal_lib/path/to/file.rb +0 -0
- data/spec/fixtures/rails_navigate/opal_lib/path/to/file2.rb +0 -0
- data/spec/fixtures/try/origin/ex.erb.ogv +0 -0
- data/spec/helpers/app_helper_spec.rb +15 -0
- data/spec/helpers/posts_helper_spec.rb +15 -0
- data/spec/lib/guard_helpers/rails_helper_spec.rb +1 -0
- data/spec/lib/guard_helpers/ro_helper_spec.rb +23 -0
- data/spec/lib/guard_helpers/srt_helper_spec.rb +18 -0
- data/spec/lib/ro_cells/opal_spec.rb +40 -0
- data/spec/lib/ro_commands/check_spec.rb +21 -0
- data/spec/lib/ro_commands/post_handler_spec.rb +0 -0
- data/spec/lib/ro_commands/rails_navigate_spec.rb +47 -0
- data/spec/lib/rubymine_heaven/linkable_errors_railtie_spec.rb +2 -0
- data/spec/lib/srt_helper_spec.rb +5 -0
- data/spec/lib/subtitle_spec.rb +46 -0
- data/spec/lib/templates/srt_spec.rb +2 -0
- data/spec/lib/video_spec.rb +34 -0
- data/spec/models/ln_spec.rb +5 -0
- data/spec/models/post_spec.rb +8 -0
- data/spec/models/sub_spec.rb +5 -0
- data/spec/models/tag_spec.rb +5 -0
- data/spec/models/try_spec.rb +5 -0
- data/spec/requests/posts_spec.rb +11 -0
- data/spec/routing/posts_routing_spec.rb +35 -0
- data/spec/spec_helper.rb +79 -0
- data/spec/views/app/search.html.erb_spec.rb +5 -0
- metadata +227 -0
@@ -0,0 +1,38 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe PostDecorator do
|
4
|
+
let(:o) do
|
5
|
+
PostDecorator.decorate(RoFaker.post)
|
6
|
+
end
|
7
|
+
|
8
|
+
let(:post) do
|
9
|
+
PostDecorator.decorate RoFaker.post
|
10
|
+
end
|
11
|
+
|
12
|
+
let(:post_in_posts) do
|
13
|
+
PostDecorator.decorate_collection(Post.all).first
|
14
|
+
end
|
15
|
+
|
16
|
+
let(:post_from_Post_paginate) do
|
17
|
+
PostDecorator.decorate_collection(Post.paginate(:page => 1, :per_page => 30).order('created_at DESC')).first
|
18
|
+
end
|
19
|
+
|
20
|
+
before do
|
21
|
+
10.times { RoFaker.post }
|
22
|
+
end
|
23
|
+
|
24
|
+
describe "post has publish_time" do
|
25
|
+
|
26
|
+
it "when post just is decorated standalone" do
|
27
|
+
post.publish_time
|
28
|
+
end
|
29
|
+
|
30
|
+
it "when post in posts" do
|
31
|
+
post_in_posts.publish_time
|
32
|
+
end
|
33
|
+
|
34
|
+
it "when posts from Post.paginate" do
|
35
|
+
post_from_Post_paginate.publish_time
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Action Controller: Exception caught</title> <style> body { background-color: #FAFAFA; color: #333; margin: 0px; } body, p, ol, ul, td { font-family: helvetica, verdana, arial, sans-serif; font-size: 13px; line-height: 18px; } pre { font-size: 11px; white-space: pre-wrap; } pre.box { border: 1px solid #EEE; padding: 10px; margin: 0px; width: 958px; } header { color: #F0F0F0; background: #C52F24; padding: 0.5em 1.5em; } h1 { margin: 0.2em 0; line-height: 1.1em; font-size: 2em; } h2 { color: #C52F24; line-height: 25px; } .details { border: 1px solid #D0D0D0; border-radius: 4px; margin: 1em 0px; display: block; width: 978px; } .summary { padding: 8px 15px; border-bottom: 1px solid #D0D0D0; display: block; } .details pre { margin: 5px; border: none; } #container { box-sizing: border-box; width: 100%; padding: 0 1.5em; } .source * { margin: 0px; padding: 0px; } .source { border: 1px solid #D9D9D9; background: #ECECEC; width: 978px; } .source pre { padding: 10px 0px; border: none; } .source .data { font-size: 80%; overflow: auto; background-color: #FFF; } .info { padding: 0.5em; } .source .data .line_numbers { background-color: #ECECEC; color: #AAA; padding: 1em .5em; border-right: 1px solid #DDD; text-align: right; } .line { padding-left: 10px; } .line:hover { background-color: #F6F6F6; } .line.active { background-color: #FFCCCC; } a { color: #980905; } a:visited { color: #666; } a:hover { color: #C52F24; } </style> <script> var toggle = function(id) { var s = document.getElementById(id).style; s.display = s.display == 'none' ? 'block' : 'none'; return false; } var show = function(id) { document.getElementById(id).style.display = 'block'; } var hide = function(id) { document.getElementById(id).style.display = 'none'; } var toggleTrace = function() { return toggle('blame_trace'); } var toggleSessionDump = function() { return toggle('session_dump'); } var toggleEnvDump = function() { return toggle('env_dump'); } </script> </head> <body> <header> <h1>Routing Error</h1> </header> <div id="container"> <h2>No route matches [GET] "/app/index/www"</h2> <p><code>Rails.root: /home/zxr/Dropbox/ruby-projects/try</code></p> <div id="traces"> <a href="#" onclick="hide('Framework-Trace');hide('Full-Trace');show('Application-Trace');; return false;">Application Trace</a> | <a href="#" onclick="hide('Application-Trace');hide('Full-Trace');show('Framework-Trace');; return false;">Framework Trace</a> | <a href="#" onclick="hide('Application-Trace');hide('Framework-Trace');show('Full-Trace');; return false;">Full Trace</a> <div id="Application-Trace" style="display: block;"> <pre><code></code></pre> </div> <div id="Framework-Trace" style="display: none;"> <pre><code>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb:38:in `call_app' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb:20:in `block in call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb:67:in `block in tagged' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb:25:in `tagged' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb:67:in `tagged' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb:20:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/request_id.rb:21:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/cache/strategy/local_cache.rb:83:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/static.rb:64:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:511:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/application.rb:97:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'</code></pre> </div> <div id="Full-Trace" style="display: none;"> <pre><code>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb:38:in `call_app' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb:20:in `block in call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb:67:in `block in tagged' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb:25:in `tagged' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb:67:in `tagged' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb:20:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/request_id.rb:21:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/cache/strategy/local_cache.rb:83:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/static.rb:64:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:511:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/application.rb:97:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'</code></pre> </div> </div> </div> </body> </html>
|
@@ -0,0 +1 @@
|
|
1
|
+
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" <a href='localhost:3000/rodebug/start/> <title>Action Controller: Exception caught</title> <style> body { background-color: #FAFAFA; color: #333; margin: 0px; } body, p, ol, ul, td { font-family: helvetica, verdana, arial, sans-serif; font-size: 13px; line-height: 18px; } pre { font-size: 11px; white-space: pre-wrap; } pre.box { border: 1px solid #EEE; padding: 10px; margin: 0px; width: 958px; } header { color: #F0F0F0; background: #C52F24; padding: 0.5em 1.5em; } h1 { margin: 0.2em 0; line-height: 1.1em; font-size: 2em; } h2 { color: #C52F24; line-height: 25px; } .details { border: 1px solid #D0D0D0; border-radius: 4px; margin: 1em 0px; display: block; width: 978px; } .summary { padding: 8px 15px; border-bottom: 1px solid #D0D0D0; display: block; } .details pre { margin: 5px; border: none; } #container { box-sizing: border-box; width: 100%; padding: 0 1.5em; } .source * { margin: 0px; padding: 0px; } .source { border: 1px solid #D9D9D9; background: #ECECEC; width: 978px; } .source pre { padding: 10px 0px; border: none; } .source .data { font-size: 80%; overflow: auto; background-color: #FFF; } .info { padding: 0.5em; } .source .data .line_numbers { background-color: #ECECEC; color: #AAA; padding: 1em .5em; border-right: 1px solid #DDD; text-align: right; } .line { padding-left: 10px; } .line:hover { background-color: #F6F6F6; } .line.active { background-color: #FFCCCC; } a { color: #980905; } a:visited { color: #666; } a:hover { color: #C52F24; } </style> <script> var toggle = function(id) { var s = document.getElementById(id).style; s.display = s.display == 'none' ? 'block' : 'none'; return false; } var show = function(id) { document.getElementById(id).style.display = 'block'; } var hide = function(id) { document.getElementById(id).style.display = 'none'; } var toggleTrace = function() { return toggle('blame_trace'); } var toggleSessionDump = function() { return toggle('session_dump'); } var toggleEnvDump = function() { return toggle('env_dump'); } </script> </head> <body> <header> <h1>Routing Error</h1> </header> <div id="container"> <h2>No route matches [GET] "/app/index/www"</h2> <p><code>Rails.root: /home/zxr/Dropbox/ruby-projects/try</code></p> <div id="traces"> <a href="#" onclick="hide('Framework-Trace');hide('Full-Trace');show('Application-Trace');; return false;">Application Trace</a> | <a href="#" onclick="hide('Application-Trace');hide('Full-Trace');show('Framework-Trace');; return false;">Framework Trace</a> | <a href="#" onclick="hide('Application-Trace');hide('Framework-Trace');show('Full-Trace');; return false;">Full Trace</a> <div id="Application-Trace" style="display: block;"> <pre><code></code></pre> </div> <div id="Framework-Trace" style="display: none;"> <pre><code>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/debug_exceptions.rb/21'>/> <title>Action Controller: Exception caught</title> <style> body { background-color: #FAFAFA; color: #333; margin: 0px; } body, p, ol, ul, td { font-family: helvetica, verdana, arial, sans-serif; font-size: 13px; line-height: 18px; } pre { font-size: 11px; white-space: pre-wrap; } pre.box { border: 1px solid #EEE; padding: 10px; margin: 0px; width: 958px; } header { color: #F0F0F0; background: #C52F24; padding: 0.5em 1.5em; } h1 { margin: 0.2em 0; line-height: 1.1em; font-size: 2em; } h2 { color: #C52F24; line-height: 25px; } .details { border: 1px solid #D0D0D0; border-radius: 4px; margin: 1em 0px; display: block; width: 978px; } .summary { padding: 8px 15px; border-bottom: 1px solid #D0D0D0; display: block; } .details pre { margin: 5px; border: none; } #container { box-sizing: border-box; width: 100%; padding: 0 1.5em; } .source * { margin: 0px; padding: 0px; } .source { border: 1px solid #D9D9D9; background: #ECECEC; width: 978px; } .source pre { padding: 10px 0px; border: none; } .source .data { font-size: 80%; overflow: auto; background-color: #FFF; } .info { padding: 0.5em; } .source .data .line_numbers { background-color: #ECECEC; color: #AAA; padding: 1em .5em; border-right: 1px solid #DDD; text-align: right; } .line { padding-left: 10px; } .line:hover { background-color: #F6F6F6; } .line.active { background-color: #FFCCCC; } a { color: #980905; } a:visited { color: #666; } a:hover { color: #C52F24; } </style> <script> var toggle = function(id) { var s = document.getElementById(id).style; s.display = s.display == 'none' ? 'block' : 'none'; return false; } var show = function(id) { document.getElementById(id).style.display = 'block'; } var hide = function(id) { document.getElementById(id).style.display = 'none'; } var toggleTrace = function() { return toggle('blame_trace'); } var toggleSessionDump = function() { return toggle('session_dump'); } var toggleEnvDump = function() { return toggle('env_dump'); } </script> </head> <body> <header> <h1>Routing Error</h1> </header> <div id="container"> <h2>No route matches [GET] "/app/index/www"</h2> <p><code>Rails.root: /home/zxr/Dropbox/ruby-projects/try</code></p> <div id="traces"> <a href="#" onclick="hide('Framework-Trace');hide('Full-Trace');show('Application-Trace');; return false;">Application Trace</a> | <a href="#" onclick="hide('Application-Trace');hide('Full-Trace');show('Framework-Trace');; return false;">Framework Trace</a> | <a href="#" onclick="hide('Application-Trace');hide('Framework-Trace');show('Full-Trace');; return false;">Full Trace</a> <div id="Application-Trace" style="display: block;"> <pre><code></code></pre> </div> <div id="Framework-Trace" style="display: none;"> <pre><code>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/debug_exceptions.rb:21</a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/show_exceptions.rb/30'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/show_exceptions.rb/30'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/show_exceptions.rb:30</a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb/38'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb/38'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb:38</a></a>:in `call_app' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb/20'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb/20'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb/20'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb/20'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb:20</a></a></a></a>:in `block in call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb/67'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb/67'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb/67'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb/67'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb:67</a></a></a></a>:in `block in tagged' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb/25'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb/25'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb:25</a></a>:in `tagged' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb/67'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb/67'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb/67'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb/67'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb:67</a></a></a></a>:in `tagged' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb/20'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb/20'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb/20'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb/20'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb:20</a></a></a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/request_id.rb/21'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/request_id.rb/21'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/request_id.rb:21</a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb/21'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb/21'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21</a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb/17'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb/17'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17</a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/cache/strategy/local_cache.rb/83'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/cache/strategy/local_cache.rb/83'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/cache/strategy/local_cache.rb:83</a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb/17'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb/17'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb/17'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb/17'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17</a></a></a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/static.rb/64'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/static.rb/64'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/static.rb:64</a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/sendfile.rb/112'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/sendfile.rb/112'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/sendfile.rb:112</a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb/511'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb/511'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:511</a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/application.rb/97'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/application.rb/97'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/application.rb:97</a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb/17'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb/17'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb/17'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb/17'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17</a></a></a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb/14'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb/14'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14</a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb/60'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb/60'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60</a></a>:in `service' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb/138'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb/138'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138</a></a>:in `service' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb/94'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb/94'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94</a></a>:in `run' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb/295'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb/295'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295</a></a>:in `block in start_thread'<<a href='localhost:3000/rodebug/start/code></pre> </div> <div id="Full-Trace" style="display: none;"> <pre><code>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/debug_exceptions.rb/21'>/code></pre> </div> <div id="Full-Trace" style="display: none;"> <pre><code>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/debug_exceptions.rb:21</a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/show_exceptions.rb/30'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/show_exceptions.rb/30'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/show_exceptions.rb:30</a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb/38'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb/38'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb:38</a></a>:in `call_app' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb/20'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb/20'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb/20'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb/20'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb:20</a></a></a></a>:in `block in call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb/67'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb/67'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb/67'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb/67'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb:67</a></a></a></a>:in `block in tagged' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb/25'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb/25'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb:25</a></a>:in `tagged' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb/67'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb/67'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb/67'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb/67'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/tagged_logging.rb:67</a></a></a></a>:in `tagged' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb/20'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb/20'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb/20'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb/20'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb:20</a></a></a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/request_id.rb/21'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/request_id.rb/21'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/request_id.rb:21</a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb/21'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb/21'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21</a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb/17'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb/17'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17</a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/cache/strategy/local_cache.rb/83'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/cache/strategy/local_cache.rb/83'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/cache/strategy/local_cache.rb:83</a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb/17'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb/17'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb/17'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb/17'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17</a></a></a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/static.rb/64'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/static.rb/64'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/static.rb:64</a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/sendfile.rb/112'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/sendfile.rb/112'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/sendfile.rb:112</a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb/511'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb/511'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:511</a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/application.rb/97'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/application.rb/97'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/application.rb:97</a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb/17'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb/17'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb/17'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb/17'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17</a></a></a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb/14'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb/14'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14</a></a>:in `call' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb/60'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb/60'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60</a></a>:in `service' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb/138'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb/138'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138</a></a>:in `service' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb/94'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb/94'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94</a></a>:in `run' <a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb/295'><a href='localhost:3000/rodebug/start/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb/295'>/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295</a></a>:in `block in start_thread'</code></pre> </div> </div> </div> </body> </html>
|
@@ -0,0 +1 @@
|
|
1
|
+
# a test markdown file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
# Specs in this file have access to a helper object that includes
|
4
|
+
# the AppHelper. For example:
|
5
|
+
#
|
6
|
+
# describe AppHelper do
|
7
|
+
# describe "string concat" do
|
8
|
+
# it "concats two strings with spaces" do
|
9
|
+
# expect(helper.concat_strings("this","that")).to eq("this that")
|
10
|
+
# end
|
11
|
+
# end
|
12
|
+
# end
|
13
|
+
describe AppHelper do
|
14
|
+
pending "add some examples to (or delete) #{__FILE__}"
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
# Specs in this file have access to a helper object that includes
|
4
|
+
# the PostsHelper. For example:
|
5
|
+
#
|
6
|
+
# describe PostsHelper do
|
7
|
+
# describe "string concat" do
|
8
|
+
# it "concats two strings with spaces" do
|
9
|
+
# expect(helper.concat_strings("this","that")).to eq("this that")
|
10
|
+
# end
|
11
|
+
# end
|
12
|
+
# end
|
13
|
+
describe PostsHelper do
|
14
|
+
pending "add some examples to (or delete) #{__FILE__}"
|
15
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'spec_helper'
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require "guard_helpers/file_helper"
|
3
|
+
|
4
|
+
|
5
|
+
module Mod
|
6
|
+
include ::GuardHelpers::FileHelper
|
7
|
+
end
|
8
|
+
|
9
|
+
describe "RoHelper" do
|
10
|
+
let(:o) do
|
11
|
+
Mod
|
12
|
+
end
|
13
|
+
|
14
|
+
before do
|
15
|
+
fix 'try'
|
16
|
+
RoFaker.f "origin/ex.erb.ogv"
|
17
|
+
end
|
18
|
+
|
19
|
+
it "#select_file" do
|
20
|
+
result = o.send(:"select_file", "ex.erb")
|
21
|
+
expect(result).to have_value
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
class Klass
|
4
|
+
include ::GuardHelpers::SrtHelper
|
5
|
+
end
|
6
|
+
|
7
|
+
describe "Klass" do
|
8
|
+
let(:o) do
|
9
|
+
Klass
|
10
|
+
end
|
11
|
+
|
12
|
+
it "#handle_line" do
|
13
|
+
result = o.send(:"handle_line", "230024 a text")
|
14
|
+
expect(result).to eq(["23:00:24", "23:00:34", "a text"])
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
|
@@ -0,0 +1,40 @@
|
|
1
|
+
#require 'spec_helper'
|
2
|
+
#load 'ro_cells/opal.rb'
|
3
|
+
#
|
4
|
+
#class Klass
|
5
|
+
# include ::RoCells::OpalHelper
|
6
|
+
#end
|
7
|
+
#
|
8
|
+
#describe "Opal" do
|
9
|
+
# let(:o) do
|
10
|
+
# Klass.new
|
11
|
+
# end
|
12
|
+
#
|
13
|
+
# before do
|
14
|
+
# cdfix "opal"
|
15
|
+
# RoFaker.flow do |f|
|
16
|
+
# f.f "test.rb", <<-CONTENT
|
17
|
+
# puts "what's the fuck?"
|
18
|
+
# CONTENT
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
# allow(o).to receive(:default_dir).and_return(Dir.pwd)
|
22
|
+
# end
|
23
|
+
#
|
24
|
+
# it "#handle_single" do
|
25
|
+
# result = o.send(:"handle_single", "test.rb")
|
26
|
+
# expect(File).to exist "test.js"
|
27
|
+
# end
|
28
|
+
#
|
29
|
+
# it "#delete_all_js" do
|
30
|
+
# RoFaker.flow do |f|
|
31
|
+
# f.f "try.js"
|
32
|
+
# f.f "try2.js"
|
33
|
+
# f.f "try3.js"
|
34
|
+
# end
|
35
|
+
#
|
36
|
+
# allow(o).to receive(:default_dir).and_return(Dir.pwd)
|
37
|
+
# result = o.send(:"delete_all_js")
|
38
|
+
# end
|
39
|
+
#end
|
40
|
+
#
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "#RoCommands::Check" do
|
4
|
+
let(:o) do
|
5
|
+
::RoCommands::Check.new
|
6
|
+
end
|
7
|
+
|
8
|
+
before do
|
9
|
+
10.times do
|
10
|
+
Post.create(title: RoFaker.sentence, content: RoFaker.paras)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
|
15
|
+
it "#table" do
|
16
|
+
post = o.send(:"table", 'post').first
|
17
|
+
expect(post.title).to have_value
|
18
|
+
expect(post.content).to have_value
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
Binary file
|
@@ -0,0 +1,47 @@
|
|
1
|
+
#require 'spec_helper'
|
2
|
+
#
|
3
|
+
#describe "#RailsNavigate" do
|
4
|
+
# let(:o) do
|
5
|
+
# ::RoCommands::RailsNavigate.new
|
6
|
+
# end
|
7
|
+
#
|
8
|
+
# before do
|
9
|
+
# cdfix "rails_navigate"
|
10
|
+
# RoFaker.flow do |f|
|
11
|
+
# f.f "app/controllers/one_controller.rb"
|
12
|
+
# f.f "app/controllers/two_controller.rb"
|
13
|
+
# f.f "app/controllers/app_controller.rb"
|
14
|
+
# f.f "app/models/two_model.rb"
|
15
|
+
# f.f "app/models/two_model.rb"
|
16
|
+
# f.f "app/decorators/two_decorator.rb"
|
17
|
+
# f.f "app/decorators/two_decorator.rb"
|
18
|
+
# f.f "opal_lib/path/to/file.rb"
|
19
|
+
# f.f "opal_lib/path/to/file2.rb"
|
20
|
+
# end
|
21
|
+
# end
|
22
|
+
#
|
23
|
+
# PROJECT_FILES = %w(cone mtwo dtwo lfile)
|
24
|
+
# PROJECT_FILES.each do |file|
|
25
|
+
# it "#access #{file}" do
|
26
|
+
# result = o.send(:"get_file", file)
|
27
|
+
# end
|
28
|
+
# end
|
29
|
+
#
|
30
|
+
# it "#access app_controller.rb" do
|
31
|
+
# result = o.send(:"get_file", "capp")
|
32
|
+
# end
|
33
|
+
#
|
34
|
+
# it "#find_file" do
|
35
|
+
# result = o.send(:"find_file" ,'app/controllers', 'app')
|
36
|
+
# expect(result).to eq("app/controllers/app_controller.rb")
|
37
|
+
# end
|
38
|
+
#
|
39
|
+
# let(:odd) do
|
40
|
+
# ::RoCommands::RailsNavigate::DirDict
|
41
|
+
# end
|
42
|
+
#
|
43
|
+
# it "[]" do
|
44
|
+
# expect(odd["c"]).to eq("app/controllers")
|
45
|
+
# end
|
46
|
+
#end
|
47
|
+
#
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require "subtitle"
|
3
|
+
|
4
|
+
describe "#Subtitle" do
|
5
|
+
let(:o) do
|
6
|
+
Subtitle
|
7
|
+
end
|
8
|
+
|
9
|
+
it "#hex2rgb" do
|
10
|
+
result = o.send(:"hex2rgb", "0xff00ff")
|
11
|
+
expect(result).to eq([255, 0, 255])
|
12
|
+
end
|
13
|
+
|
14
|
+
it "#decimal2hex" do
|
15
|
+
result = o.send(:"decimal2hex", 10)
|
16
|
+
expect(result).to eq('a')
|
17
|
+
end
|
18
|
+
|
19
|
+
it "#hex2decimal" do
|
20
|
+
result = o.send(:"hex2decimal", "ff")
|
21
|
+
expect(result).to eq(255)
|
22
|
+
end
|
23
|
+
|
24
|
+
describe "#translate" do
|
25
|
+
it "'a' to 10" do
|
26
|
+
result = o.send(:"translate", 'a')
|
27
|
+
expect(result).to eq(10)
|
28
|
+
end
|
29
|
+
|
30
|
+
it "10 to 'a'" do
|
31
|
+
result = o.send(:"translate", 10)
|
32
|
+
expect(result).to eq('a')
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
it "#rgb2hex" do
|
37
|
+
result = o.send(:"rgb2hex" ,255,0,255)
|
38
|
+
expect(result).to eq("#ff00ff")
|
39
|
+
end
|
40
|
+
|
41
|
+
it "#hex2rgb" do
|
42
|
+
result = o.send(:"hex2rgb", "#ff00ff")
|
43
|
+
expect(result).to eq([255, 0, 255])
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require "subtitle"
|
3
|
+
|
4
|
+
describe "Time" do
|
5
|
+
let(:o) do
|
6
|
+
Subtitle
|
7
|
+
end
|
8
|
+
|
9
|
+
def eg(time, expected)
|
10
|
+
result = o.send(:"handle_time", time)
|
11
|
+
expect(result).to eq(expected)
|
12
|
+
end
|
13
|
+
|
14
|
+
it "" do
|
15
|
+
eg(223344, ["22:33:44", "22:33:54"])
|
16
|
+
end
|
17
|
+
|
18
|
+
it "" do
|
19
|
+
eg(3344, ["00:33:44", "00:33:54"])
|
20
|
+
end
|
21
|
+
|
22
|
+
it "" do
|
23
|
+
eg(44, ["00:00:44", "00:00:54"])
|
24
|
+
end
|
25
|
+
|
26
|
+
def eg_ctn(content, expected)
|
27
|
+
result = o.send(:"handle_content", content)
|
28
|
+
expect(result).to eq(expected)
|
29
|
+
end
|
30
|
+
|
31
|
+
it "" do
|
32
|
+
eg_ctn(" a text ", "a text")
|
33
|
+
end
|
34
|
+
end
|