8000 rabbitmq-tutorials/ruby at rabbitmq-website-37 · bsumgit/rabbitmq-tutorials · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"path":"ruby","repo":{"id":84954296,"defaultBranch":"master","name":"rabbitmq-tutorials","ownerLogin":"bsumgit","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2017-03-14T13:48:56.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/7982441?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"rabbitmq-website-37","listCacheKey":"v0:1618741932.288447","canEdit":false,"refType":"branch","currentOid":"85f30811471c3f17d0f23d494933a11189a718e8"},"tree":{"items":[{"name":"README.md","path":"ruby/README.md","contentType":"file"},{"name":"emit_log.rb","path":"ruby/emit_log.rb","contentType":"file"},{"name":"emit_log_direct.rb","path":"ruby/emit_log_direct.rb","contentType":"file"},{"name":"emit_log_topic.rb","path":"ruby/emit_log_topic.rb","contentType":"file"},{"name":"new_task.rb","path":"ruby/new_task.rb","contentType":"file"},{"name":"receive.rb","path":"ruby/receive.rb","contentType":"file"},{"name":"receive_logs.rb","path":"ruby/receive_logs.rb","contentType":"file"},{"name":"receive_logs_direct.rb","path":"ruby/receive_logs_direct.rb","contentType":"file"},{"name":"receive_logs_topic.rb","path":"ruby/receive_logs_topic.rb","contentType":"file"},{"name":"rpc_client.rb","path":"ruby/rpc_client.rb","contentType":"file"},{"name":"rpc_server.rb","path":"ruby/rpc_server.rb","contentType":"file"},{"name":"send.rb","path":"ruby/send.rb","contentType":"file"},{"name":"worker.rb","path":"ruby/worker.rb","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRuby code for RabbitMQ tutorials\u003c/h1\u003e\u003ca id=\"user-content-ruby-code-for-rabbitmq-tutorials\" class=\"anchor\" aria-label=\"Permalink: Ruby code for RabbitMQ tutorials\" href=\"#ruby-code-for-rabbitmq-tutorials\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eHere you can find Ruby code examples from\n\u003ca href=\"http://www.rabbitmq.com/getstarted.html\" rel=\"nofollow\"\u003eRabbitMQ tutorials\u003c/a\u003e.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRequirements\u003c/h2\u003e\u003ca id=\"user-content-requirements\" class=\"anchor\" aria-label=\"Permalink: Requirements\" href=\"#requirements\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eTo run this code you need \u003ca href=\"http://rubybunny.info\" rel=\"nofollow\"\u003eBunny 0.9+\u003c/a\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eYou can install it via RubyGems:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"gem install bunny --version \u0026quot;\u0026gt;= 0.9.1\u0026quot;\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003egem install bunny --version \"\u0026gt;= 0.9.1\"\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eBunny supports Ruby 2.0, 1.9, JRuby, Rubinius 2.0, and Ruby 1.8.7.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eCode\u003c/h2\u003e\u003ca id=\"user-content-code\" class=\"anchor\" aria-label=\"Permalink: Code\" href=\"#code\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"http://www.rabbitmq.com/tutorial-one-ruby.html\" rel=\"nofollow\"\u003eTutorial one: \"Hello World!\"\u003c/a\u003e:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"ruby send.rb\nruby receive.rb\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003eruby send.rb\nruby receive.rb\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"http://www.rabbitmq.com/tutorial-two-ruby.html\" rel=\"nofollow\"\u003eTutorial two: Work Queues\u003c/a\u003e:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"ruby new_task.rb\nruby worker.rb\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003eruby new_task.rb\nruby worker.rb\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"http://www.rabbitmq.com/tutorial-three-ruby.html\" rel=\"nofollow\"\u003eTutorial three: Publish/Subscribe\u003c/a\u003e\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"ruby receive_logs.rb\nruby emit_log.rb\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003eruby receive_logs.rb\nruby emit_log.rb\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"http://www.rabbitmq.com/tutorial-four-ruby.html\" rel=\"nofollow\"\u003eTutorial four: Routing\u003c/a\u003e\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"ruby receive_logs_direct.rb\nruby emit_log_direct.rb\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003eruby receive_logs_direct.rb\nruby emit_log_direct.rb\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"http://www.rabbitmq.com/tutorial-five-ruby.html\" rel=\"nofollow\"\u003eTutorial five: Topics\u003c/a\u003e\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"ruby receive_logs_topic.rb\nruby emit_log_topic.rb\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003eruby receive_logs_topic.rb\nruby emit_log_topic.rb\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"http://www.rabbitmq.com/tutorial-six-ruby.html\" rel=\"nofollow\"\u003eTutorial six: RPC\u003c/a\u003e\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"ruby rpc_server.rb\nruby rpc_client.rb\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003eruby rpc_server.rb\nruby rpc_client.rb\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eTo learn more, visit \u003ca href=\"http://rubybunny.info\" rel=\"nofollow\"\u003eBunny documentation\u003c/a\u003e site.\u003c/p\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Ruby code for RabbitMQ tutorials","anchor":"ruby-code-for-rabbitmq-tutorials","htmlText":"Ruby code for RabbitMQ tutorials"},{"level":2,"text":"Requirements","anchor":"requirements","htmlText":"Requirements"},{"level":2,"text":"Code","anchor":"code","htmlText":"Code"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fbsumgit%2Frabbitmq-tutorials%2Ftree%2Frabbitmq-website-37%2Fruby"}},"totalCount":13,"showBranchInfobar":true},"fileTree":{"":{"items":[{"name":"bin","path":"bin","contentType":"directory"},{"name":"clojure","path":"clojure","contentType":"directory"},{"name":"dotnet-visual-studio","path":"dotnet-visual-studio","contentType":"directory"},{"name":"dotnet","path":"dotnet","contentType":"directory"},{"name":"erlang","path":"erlang","contentType":"directory"},{"name":"go","path":"go","contentType":"directory"},{"name":"haskell","path":"haskell","contentType":"directory"},{"name":"java-idea","path":"java-idea","contentType":"directory"},{"name":"java","path":"java","contentType":"directory"},{"name":"perl","path":"perl","contentType":"directory"},{"name":"php","path":"php","contentType":"directory"},{"name":"python-puka","path":"python-puka","contentType":"directory"},{"name":"python","path":"python","contentType":"directory"},{"name":"ruby-amqp","path":"ruby-amqp","contentType":"directory"},{"name":"ruby","path":"ruby","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".travis.yml","path":".travis.yml","contentType":"file"},{"name":"LICENSE.txt","path":"LICENSE.txt","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"test.py","path":"test.py","contentType":"file"},{"name":"travisci.py","path":"travisci.py","contentType":"file"}],"totalCount":22}},"fileTreeProcessingTime":2.624882,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/bsumgit/rabbitmq-tutorials/branches":{"post":"fVi0hKFsMZX0elqpS50RwvEXV4lODqrTzdXQP00dvkT6GGKztWc8Z8tnYkx38V75ur9zdwQ7gZW1lCh_mzj-wQ"},"/bsumgit/rabbitmq-tutorials/branches/fetch_and_merge/rabbitmq-website-37":{"post":"ieqpdPCjTS6-sjeSsogie3O5sl2r-gQKYcMgJixENlVLr01-cBBCrdrJfAOUZ2pYCgMLW3fxYegeZiWnDtjn2Q"},"/bsumgit/rabbitmq-tutorials/branches/fetch_and_merge/rabbitmq-website-37?discard_changes=true":{"post":"WX8Wo-WVBL4LNBgBO8-oK59LxvjID6NCKYdB7rp8AVSbOvKpZSYLPW9PU5AdIOAI5vF__hQExqBWIkRvmODQ2A"}}},"title":"rabbitmq-tutorials/ruby at rabbitmq-website-37 · bsumgit/rabbitmq-tutorials","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1b17b3e7786a.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}
0