bunny 0.6.3.rc2 → 0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. data/.gitignore +8 -0
  2. data/.rspec +3 -0
  3. data/.travis.yml +15 -0
  4. data/.yardopts +9 -0
  5. data/CHANGELOG +3 -0
  6. data/Gemfile +39 -0
  7. data/Gemfile.lock +34 -0
  8. data/LICENSE +5 -4
  9. data/README.textile +54 -0
  10. data/Rakefile +15 -13
  11. data/bunny.gemspec +42 -61
  12. data/examples/simple_08.rb +4 -2
  13. data/examples/simple_09.rb +4 -2
  14. data/examples/simple_ack_08.rb +3 -1
  15. data/examples/simple_ack_09.rb +3 -1
  16. data/examples/simple_consumer_08.rb +4 -2
  17. data/examples/simple_consumer_09.rb +4 -2
  18. data/examples/simple_fanout_08.rb +3 -1
  19. data/examples/simple_fanout_09.rb +3 -1
  20. data/examples/simple_headers_08.rb +5 -3
  21. data/examples/simple_headers_09.rb +5 -3
  22. data/examples/simple_publisher_08.rb +3 -1
  23. data/examples/simple_publisher_09.rb +3 -1
  24. data/examples/simple_topic_08.rb +5 -3
  25. data/examples/simple_topic_09.rb +5 -3
  26. data/ext/amqp-0.8.json +616 -0
  27. data/ext/amqp-0.9.1.json +388 -0
  28. data/ext/config.yml +4 -0
  29. data/ext/qparser.rb +463 -0
  30. data/lib/bunny.rb +88 -66
  31. data/lib/bunny/channel08.rb +38 -38
  32. data/lib/bunny/channel09.rb +37 -37
  33. data/lib/bunny/client08.rb +184 -206
  34. data/lib/bunny/client09.rb +277 -363
  35. data/lib/bunny/consumer.rb +35 -0
  36. data/lib/bunny/exchange08.rb +37 -41
  37. data/lib/bunny/exchange09.rb +106 -124
  38. data/lib/bunny/queue08.rb +216 -202
  39. data/lib/bunny/queue09.rb +256 -326
  40. data/lib/bunny/subscription08.rb +30 -29
  41. data/lib/bunny/subscription09.rb +84 -83
  42. data/lib/bunny/version.rb +5 -0
  43. data/lib/qrack/amq-client-url.rb +165 -0
  44. data/lib/qrack/channel.rb +19 -17
  45. data/lib/qrack/client.rb +152 -151
  46. data/lib/qrack/errors.rb +5 -0
  47. data/lib/qrack/protocol/protocol08.rb +132 -130
  48. data/lib/qrack/protocol/protocol09.rb +133 -131
  49. data/lib/qrack/protocol/spec08.rb +2 -0
  50. data/lib/qrack/protocol/spec09.rb +2 -0
  51. data/lib/qrack/qrack08.rb +7 -10
  52. data/lib/qrack/qrack09.rb +7 -10
  53. data/lib/qrack/queue.rb +27 -40
  54. data/lib/qrack/subscription.rb +102 -101
  55. data/lib/qrack/transport/buffer08.rb +266 -264
  56. data/lib/qrack/transport/buffer09.rb +268 -264
  57. data/lib/qrack/transport/frame08.rb +13 -11
  58. data/lib/qrack/transport/frame09.rb +9 -7
  59. data/spec/spec_08/bunny_spec.rb +48 -45
  60. data/spec/spec_08/connection_spec.rb +10 -7
  61. data/spec/spec_08/exchange_spec.rb +145 -143
  62. data/spec/spec_08/queue_spec.rb +161 -161
  63. data/spec/spec_09/bunny_spec.rb +46 -44
  64. data/spec/spec_09/connection_spec.rb +15 -8
  65. data/spec/spec_09/exchange_spec.rb +147 -145
  66. data/spec/spec_09/queue_spec.rb +182 -184
  67. metadata +60 -41
  68. data/README.rdoc +0 -66
metadata CHANGED
@@ -1,89 +1,109 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bunny
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15424105
5
- prerelease: 6
6
- segments:
7
- - 0
8
- - 6
9
- - 3
10
- - rc
11
- - 2
12
- version: 0.6.3.rc2
4
+ prerelease:
5
+ version: "0.7"
13
6
  platform: ruby
14
7
  authors:
15
8
  - Chris Duncan
9
+ - Eric Lindvall
10
+ - Jakub Stastny aka botanicus
11
+ - Michael S. Klishin
12
+ - Stefan Kaes
16
13
  autorequire:
17
14
  bindir: bin
18
15
  cert_chain: []
19
16
 
20
- date: 2011-07-01 00:00:00 Z
17
+ date: 2011-07-18 00:00:00 +01:00
18
+ default_executable:
21
19
  dependencies: []
22
20
 
23
- description: Another synchronous Ruby AMQP client
24
- email: celldee@gmail.com
21
+ description: A synchronous Ruby AMQP client that enables interaction with AMQP-compliant brokers.
22
+ email:
23
+ - celldee@gmail.com
24
+ - eric@5stops.com
25
+ - stastny@101ideas.cz
26
+ - michael@novemberain.com
27
+ - skaes@railsexpress.de
25
28
  executables: []
26
29
 
27
30
  extensions: []
28
31
 
29
32
  extra_rdoc_files:
30
- - README.rdoc
33
+ - README.textile
31
34
  files:
35
+ - .gitignore
36
+ - .rspec
37
+ - .travis.yml
38
+ - .yardopts
39
+ - CHANGELOG
40
+ - Gemfile
41
+ - Gemfile.lock
32
42
  - LICENSE
33
- - README.rdoc
43
+ - README.textile
34
44
  - Rakefile
35
45
  - bunny.gemspec
36
46
  - examples/simple_08.rb
37
- - examples/simple_ack_08.rb
38
- - examples/simple_consumer_08.rb
39
- - examples/simple_fanout_08.rb
40
- - examples/simple_publisher_08.rb
41
- - examples/simple_topic_08.rb
42
- - examples/simple_headers_08.rb
43
47
  - examples/simple_09.rb
48
+ - examples/simple_ack_08.rb
44
49
  - examples/simple_ack_09.rb
50
+ - examples/simple_consumer_08.rb
45
51
  - examples/simple_consumer_09.rb
52
+ - examples/simple_fanout_08.rb
46
53
  - examples/simple_fanout_09.rb
54
+ - examples/simple_headers_08.rb
55
+ - examples/simple_headers_09.rb
56
+ - examples/simple_publisher_08.rb
47
57
  - examples/simple_publisher_09.rb
58
+ - examples/simple_topic_08.rb
48
59
  - examples/simple_topic_09.rb
49
- - examples/simple_headers_09.rb
60
+ - ext/amqp-0.8.json
61
+ - ext/amqp-0.9.1.json
62
+ - ext/config.yml
63
+ - ext/qparser.rb
50
64
  - lib/bunny.rb
51
65
  - lib/bunny/channel08.rb
52
66
  - lib/bunny/channel09.rb
53
67
  - lib/bunny/client08.rb
54
68
  - lib/bunny/client09.rb
69
+ - lib/bunny/consumer.rb
55
70
  - lib/bunny/exchange08.rb
56
71
  - lib/bunny/exchange09.rb
57
72
  - lib/bunny/queue08.rb
58
73
  - lib/bunny/queue09.rb
59
74
  - lib/bunny/subscription08.rb
60
75
  - lib/bunny/subscription09.rb
61
- - lib/qrack/client.rb
76
+ - lib/bunny/version.rb
77
+ - lib/qrack/amq-client-url.rb
62
78
  - lib/qrack/channel.rb
63
- - lib/qrack/queue.rb
64
- - lib/qrack/subscription.rb
79
+ - lib/qrack/client.rb
80
+ - lib/qrack/errors.rb
65
81
  - lib/qrack/protocol/protocol08.rb
66
82
  - lib/qrack/protocol/protocol09.rb
67
83
  - lib/qrack/protocol/spec08.rb
68
84
  - lib/qrack/protocol/spec09.rb
69
85
  - lib/qrack/qrack08.rb
70
86
  - lib/qrack/qrack09.rb
87
+ - lib/qrack/queue.rb
88
+ - lib/qrack/subscription.rb
71
89
  - lib/qrack/transport/buffer08.rb
72
90
  - lib/qrack/transport/buffer09.rb
73
91
  - lib/qrack/transport/frame08.rb
74
92
  - lib/qrack/transport/frame09.rb
75
93
  - spec/spec_08/bunny_spec.rb
94
+ - spec/spec_08/connection_spec.rb
76
95
  - spec/spec_08/exchange_spec.rb
77
96
  - spec/spec_08/queue_spec.rb
78
- - spec/spec_08/connection_spec.rb
79
97
  - spec/spec_09/bunny_spec.rb
98
+ - spec/spec_09/connection_spec.rb
80
99
  - spec/spec_09/exchange_spec.rb
81
100
  - spec/spec_09/queue_spec.rb
82
- - spec/spec_09/connection_spec.rb
101
+ has_rdoc: true
83
102
  homepage: http://github.com/ruby-amqp/bunny
84
103
  licenses: []
85
104
 
86
- post_install_message:
105
+ post_install_message: "[\e[32mVersion 0.7\e[0m] Encoding of source files is set to UTF-8 on Ruby 1.9.\n\
106
+ [\e[32mVersion 0.7\e[0m] Queue#publish deprecated.\n"
87
107
  rdoc_options:
88
108
  - --main
89
109
  - README.rdoc
@@ -94,27 +114,26 @@ required_ruby_version: !ruby/object:Gem::Requirement
94
114
  requirements:
95
115
  - - ">="
96
116
  - !ruby/object:Gem::Version
97
- hash: 3
98
- segments:
99
- - 0
100
117
  version: "0"
101
118
  required_rubygems_version: !ruby/object:Gem::Requirement
102
119
  none: false
103
120
  requirements:
104
- - - ">"
121
+ - - ">="
105
122
  - !ruby/object:Gem::Version
106
- hash: 25
107
- segments:
108
- - 1
109
- - 3
110
- - 1
111
- version: 1.3.1
123
+ version: "0"
112
124
  requirements: []
113
125
 
114
126
  rubyforge_project: bunny-amqp
115
- rubygems_version: 1.8.5
127
+ rubygems_version: 1.6.2
116
128
  signing_key:
117
129
  specification_version: 3
118
- summary: A synchronous Ruby AMQP client that enables interaction with AMQP-compliant brokers/servers.
119
- test_files: []
120
-
130
+ summary: Synchronous Ruby AMQP 0.9.1 client
131
+ test_files:
132
+ - spec/spec_08/bunny_spec.rb
133
+ - spec/spec_08/connection_spec.rb
134
+ - spec/spec_08/exchange_spec.rb
135
+ - spec/spec_08/queue_spec.rb
136
+ - spec/spec_09/bunny_spec.rb
137
+ - spec/spec_09/connection_spec.rb
138
+ - spec/spec_09/exchange_spec.rb
139
+ - spec/spec_09/queue_spec.rb
@@ -1,66 +0,0 @@
1
- = Bunny: A synchronous Ruby AMQP client
2
-
3
- *GitHub* *repo*: http://github.com/ruby-amqp/bunny
4
-
5
- *Rubyforge*: http://rubyforge.org/projects/bunny-amqp
6
-
7
- *Twitter*: http://twitter.com/bunny_amqp
8
-
9
- *Google* *Group*: http://groups.google.com/group/bunny-amqp
10
-
11
- *Blog*: http://bunnyamqp.wordpress.com
12
-
13
- === DESCRIPTION:
14
-
15
- Bunny is an AMQP[http://www.amqp.org] (Advanced Message Queuing Protocol) client, written in Ruby, that is intended to allow you to interact with AMQP-compliant message brokers/servers such as RabbitMQ[http://www.rabbitmq.com] in a synchronous fashion.
16
-
17
- It is based on a great deal of useful code from amqp[http://github.com/tmm1/amqp] by Aman Gupta and Carrot[http://github.com/famoseagle/carrot] by Amos Elliston.
18
-
19
- You can use Bunny to -
20
-
21
- * Create and delete exchanges
22
- * Create and delete queues
23
- * Publish and consume messages
24
-
25
- Bunny is known to work with RabbitMQ versions 1.5.4 and above with version 0-8 of the AMQP specification.
26
-
27
- === INSTALL:
28
-
29
- *Rubyforge*: <tt>gem install bunny</tt>
30
-
31
- *Gemcutter*: <tt>gem install bunny</tt>
32
-
33
- *GitHub*: Current gem is not available.
34
-
35
- === QUICK START:
36
-
37
- require 'bunny'
38
-
39
- b = Bunny.new(:logging => true)
40
-
41
- # start a communication session with the amqp server
42
- b.start
43
-
44
- # declare a queue
45
- q = b.queue('test1')
46
-
47
- # publish a message to the queue
48
- q.publish('Hello everybody!')
49
-
50
- # get message from the queue
51
- msg = q.pop[:payload]
52
-
53
- puts 'This is the message: ' + msg + "\n\n"
54
-
55
- # close the connection
56
- b.stop
57
-
58
- === EVEN QUICKER START
59
-
60
- require 'bunny'
61
-
62
- # Create a direct queue named 'my_testq'
63
- Bunny.run { |c| c.queue('my_testq') }
64
-
65
- === OTHER:
66
- Please see the _examples_ directory for additional usage information.