File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -5,20 +5,29 @@ Here you can find Ruby code examples from
5
5
6
6
## Requirements
7
7
8
+ If you use Microsoft Windows, we highly recommend you to use [ JRuby] ( http://jruby.org ) .
9
+ It is 1.9.2-compatible since 1.6.0.
10
+
8
11
To run this code you need [ amqp gem] ( https://github.com/ruby-amqp/amqp ) version 0.8
9
12
(currently available as a prerelease version). This code won't work
10
- with earlier versions! You can install it via RubyGems thusly:
13
+ with earlier versions!
14
+
15
+ You can install it via RubyGems. On Linux, Mac OS X and * BSD systems:
11
16
12
17
gem install amqp --pre --version "~> 0.8.0.rc12"
13
18
19
+ On Windows:
20
+
21
+ jruby.exe --1.9 -S gem install amqp --pre --version "~> 0.8.0.rc12"
22
+
14
23
## Code
15
24
16
- [ Tutorial one: "Hello World!"] ( http://www.rabbitmq.com/tutorial-one-python.html )
25
+ [ Tutorial one: "Hello World!"] ( http://www.rabbitmq.com/tutorial-one-python.html ) :
17
26
18
27
ruby send.rb
19
28
ruby receive.rb
20
29
21
- [ Tutorial two: Work Queues] ( http://www.rabbitmq.com/tutorial-two-python.html )
30
+ [ Tutorial two: Work Queues] ( http://www.rabbitmq.com/tutorial-two-python.html ) :
22
31
23
32
ruby new_task.rb
24
33
ruby worker.rb
You can’t perform that action at this time.
0 commit comments