异步事件驱动的RubyWeb应用框架Cramp.zip

时间:2022-08-07 23:11:36
【文件属性】:
文件名称:异步事件驱动的RubyWeb应用框架Cramp.zip
文件大小:68KB
文件格式:ZIP
更新时间:2022-08-07 23:11:36
开源项目 Cramp是一种新的,处 理并发事件的Web应用程序框架,由37signals和Rails核心小组的Pratik Naik提供。它建立在Ruby的EventMachine库之上,主要用于处理一些大量的开放连接 (如Comet系统或streaming APIs),整个过程都使用event-driven I/O。 Cramp使用Rails 3.0的ActiveSupport 和 ActiveModel库, 它会显示两层用于开发:controllers 和 models。 示例代码: require 'rubygems'require 'cramp/controller'class WelcomeAction < Cramp::Controller::Action on_start :send_hello_world def send_hello_world render "Hello World" finish endendRack::Handler::Thin.run WelcomeAction, :Port => 3000 安装方法: gem install arel --pre gem install activemodel --pre And then, gem install cramp   标签:Cramp  Web框架
【文件预览】:
cramp-master
----MIT-LICENSE(1KB)
----lib()
--------cramp.rb(1KB)
--------cramp()
--------vendor()
----Gemfile(363B)
----Rakefile(214B)
----examples()
--------chat_websocket()
--------rainsocket.ru(550B)
--------sse()
--------streaming.rb(445B)
--------chunked.ru(508B)
--------hello_world.ru(352B)
--------with_http_router.rb(533B)
--------long_poll.ru(638B)
--------fibers()
--------rainbows.conf(63B)
--------socketio()
--------sinatra_async.ru(775B)
--------hello_websock.rb(568B)
----.travis.yml(130B)
----test()
--------test_helper.rb(338B)
--------controller()
----README.md(470B)
----cramp.gemspec(822B)
----Gemfile.lock(2KB)
----.gitignore(58B)
----bin()
--------cramp(273B)
----CHANGELOG(1KB)

网友评论