免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3927 | 回复: 3
打印 上一主题 下一主题

Mojolicious新版本发布,5.0.2. 旧版本升级可能会报错 [复制链接]

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-06-02 14:48 |只看该作者 |倒序浏览
今天从4.99升级到5.02。报了一个EV timer错误,完全坏掉了。看了一下,是因为5.0中的一个变化

  1. - Replaced reserved stash value partial with render_to_string method.
复制代码
renter的时候已经不可以用partial参数,改成render_to_string.文档在这里http://search.cpan.org/~sri/Mojo ... cious/Controller.pm

论坛徽章:
0
2 [报告]
发表于 2014-06-02 17:47 |只看该作者
  1. Mojo::Reactor::EV: Timer 78f6c5a31c5f9e86a6ffb82cfdd44e0b failed: Can't call method "is_websocket" on an undefined value at /usr/local/share/perl5/Mojolicious/Controller.pm line 249, <FH> line 1118.
  2. Mojo::Reactor::EV: Timer 78f6c5a31c5f9e86a6ffb82cfdd44e0b failed: Can't call method "is_websocket" on an undefined value at /usr/local/share/perl5/Mojolicious/Controller.pm line 249, <FH> line 1118.
  3. Mojo::Reactor::EV: Timer 7525788e4364c58fbf9668c886aeca3d failed: Can't call method "is_websocket" on an undefined value at /usr/local/share/perl5/Mojolicious/Controller.pm line 249, <FH> line 1118.
复制代码
我只用到了send
  1.     Mojo::IOLoop->recurring(0.01 => sub {                                                                                         |   ~                          
  2.         my $line = <FH>;                                                                                                          |   ~                          
  3.         #$self->send("<br \>");                                                                                                   |   ~                          
  4.         $self->send($line);  
复制代码

论坛徽章:
6
丑牛
日期:2014-03-21 15:42:04子鼠
日期:2014-04-12 11:50:17处女座
日期:2014-09-01 09:25:1115-16赛季CBA联赛之吉林
日期:2015-12-22 14:01:5215-16赛季CBA联赛之广东
日期:2016-03-08 18:49:422016科比退役纪念章
日期:2016-07-06 12:19:55
3 [报告]
发表于 2014-06-02 19:12 |只看该作者
一直就觉得partial怪怪的{:3_193:}

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
4 [报告]
发表于 2014-06-03 08:40 |只看该作者
新版本还是有不少变化的。升级时候得看清楚。
  1. 5.0  2014-05-29
  2.   - Code name "Tiger Face", this is a major release.
  3.   - Changed heuristics for number detection in Mojo::JSON to better line up
  4.     with user expectations.
  5.   - Changed lock and unlock callbacks in Mojo::IOLoop to not receive an
  6.     invocant.
  7.   - Changed return value of path_for method in Mojolicious::Routes::Match.
  8.   - Changed return value and arguments of error method in Mojo::Message.
  9.   - Removed deprecated support for "X-Forwarded-HTTPS".
  10.   - Removed return values from wait method in Mojo::IOLoop::Delay.
  11.   - Removed list context support from header method in Mojo::Headers.
  12.   - Removed generate_port method from Mojo::IOLoop.
  13.   - Replaced reserved stash value partial with render_to_string method.
  14.   - Replaced format method in Mojo::Log with an attribute.
  15.   - Replaced check_file method in Mojo::Server::Morbo with check method.
  16.   - Added with_compression method to Mojo::Transaction::WebSocket.
  17.   - Added catch method to Mojo::EventEmitter.
  18.   - Added append method to Mojo::Log.
  19.   - Updated jQuery to version 2.1.1.
  20.   - Improved Mojo::IOLoop::Delay to automatically check if the event loop is
  21.     already running.
  22.   - Improved Mojo::Parameters to consistently accept arrays.
  23.   - Improved Mojo::Collection to perform actual boolean checks. (marcus)
  24.   - Fixed Mojo::DOM::HTML to handle slashes in unquoted attribute values
  25.     correctly.
  26.   - Fixed Mojo::IOLoop::Server to work correctly with newer versions of
  27.     IO::Socket::SSL. (noxxi)
  28.   - Fixed rendering bug where rewritten arguments could not be localized.
  29.   - Fixed verification bug in Mojo::IOLoop::Server.
  30.   - Fixed path generation bug in Mojolicious::Routes::Match.
  31.   - Fixed warnings in Mojo::IOLoop::Delay.
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP