onstomp 1.0.0pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. data/.autotest +2 -0
  2. data/.gitignore +6 -0
  3. data/.rspec +2 -0
  4. data/.yardopts +5 -0
  5. data/CHANGELOG.md +4 -0
  6. data/DeveloperNarrative.md +15 -0
  7. data/Gemfile +4 -0
  8. data/LICENSE.md +221 -0
  9. data/README.md +73 -0
  10. data/Rakefile +6 -0
  11. data/UserNarrative.md +8 -0
  12. data/examples/basic.rb +40 -0
  13. data/examples/events.rb +72 -0
  14. data/lib/onstomp/client.rb +152 -0
  15. data/lib/onstomp/components/frame.rb +108 -0
  16. data/lib/onstomp/components/frame_headers.rb +212 -0
  17. data/lib/onstomp/components/nil_processor.rb +20 -0
  18. data/lib/onstomp/components/scopes/header_scope.rb +25 -0
  19. data/lib/onstomp/components/scopes/receipt_scope.rb +25 -0
  20. data/lib/onstomp/components/scopes/transaction_scope.rb +191 -0
  21. data/lib/onstomp/components/scopes.rb +45 -0
  22. data/lib/onstomp/components/subscription.rb +30 -0
  23. data/lib/onstomp/components/threaded_processor.rb +62 -0
  24. data/lib/onstomp/components/uri.rb +30 -0
  25. data/lib/onstomp/components.rb +13 -0
  26. data/lib/onstomp/connections/base.rb +208 -0
  27. data/lib/onstomp/connections/heartbeating.rb +82 -0
  28. data/lib/onstomp/connections/serializers/stomp_1.rb +166 -0
  29. data/lib/onstomp/connections/serializers/stomp_1_0.rb +41 -0
  30. data/lib/onstomp/connections/serializers/stomp_1_1.rb +134 -0
  31. data/lib/onstomp/connections/serializers.rb +9 -0
  32. data/lib/onstomp/connections/stomp_1.rb +69 -0
  33. data/lib/onstomp/connections/stomp_1_0.rb +28 -0
  34. data/lib/onstomp/connections/stomp_1_1.rb +65 -0
  35. data/lib/onstomp/connections.rb +119 -0
  36. data/lib/onstomp/interfaces/client_configurable.rb +55 -0
  37. data/lib/onstomp/interfaces/client_events.rb +168 -0
  38. data/lib/onstomp/interfaces/connection_events.rb +62 -0
  39. data/lib/onstomp/interfaces/event_manager.rb +69 -0
  40. data/lib/onstomp/interfaces/frame_methods.rb +190 -0
  41. data/lib/onstomp/interfaces/receipt_manager.rb +33 -0
  42. data/lib/onstomp/interfaces/subscription_manager.rb +48 -0
  43. data/lib/onstomp/interfaces/uri_configurable.rb +106 -0
  44. data/lib/onstomp/interfaces.rb +14 -0
  45. data/lib/onstomp/version.rb +13 -0
  46. data/lib/onstomp.rb +147 -0
  47. data/onstomp.gemspec +29 -0
  48. data/spec/onstomp/client_spec.rb +265 -0
  49. data/spec/onstomp/components/frame_headers_spec.rb +163 -0
  50. data/spec/onstomp/components/frame_spec.rb +144 -0
  51. data/spec/onstomp/components/nil_processor_spec.rb +32 -0
  52. data/spec/onstomp/components/scopes/header_scope_spec.rb +27 -0
  53. data/spec/onstomp/components/scopes/receipt_scope_spec.rb +33 -0
  54. data/spec/onstomp/components/scopes/transaction_scope_spec.rb +227 -0
  55. data/spec/onstomp/components/scopes_spec.rb +63 -0
  56. data/spec/onstomp/components/subscription_spec.rb +58 -0
  57. data/spec/onstomp/components/threaded_processor_spec.rb +92 -0
  58. data/spec/onstomp/components/uri_spec.rb +33 -0
  59. data/spec/onstomp/connections/base_spec.rb +349 -0
  60. data/spec/onstomp/connections/heartbeating_spec.rb +132 -0
  61. data/spec/onstomp/connections/serializers/stomp_1_0_spec.rb +50 -0
  62. data/spec/onstomp/connections/serializers/stomp_1_1_spec.rb +99 -0
  63. data/spec/onstomp/connections/serializers/stomp_1_spec.rb +104 -0
  64. data/spec/onstomp/connections/stomp_1_0_spec.rb +54 -0
  65. data/spec/onstomp/connections/stomp_1_1_spec.rb +137 -0
  66. data/spec/onstomp/connections/stomp_1_spec.rb +113 -0
  67. data/spec/onstomp/connections_spec.rb +135 -0
  68. data/spec/onstomp/interfaces/client_events_spec.rb +108 -0
  69. data/spec/onstomp/interfaces/connection_events_spec.rb +55 -0
  70. data/spec/onstomp/interfaces/event_manager_spec.rb +72 -0
  71. data/spec/onstomp/interfaces/frame_methods_spec.rb +109 -0
  72. data/spec/onstomp/interfaces/receipt_manager_spec.rb +53 -0
  73. data/spec/onstomp/interfaces/subscription_manager_spec.rb +64 -0
  74. data/spec/onstomp_spec.rb +15 -0
  75. data/spec/spec_helper.rb +12 -0
  76. data/spec/support/custom_argument_matchers.rb +51 -0
  77. data/spec/support/frame_matchers.rb +88 -0
  78. data/spec/support/shared_frame_method_examples.rb +116 -0
  79. data/yard_extensions.rb +32 -0
  80. metadata +219 -0
metadata ADDED
@@ -0,0 +1,219 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: onstomp
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: 5
5
+ version: 1.0.0pre1
6
+ platform: ruby
7
+ authors:
8
+ - Ian D. Eccles
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-03-30 00:00:00 -04:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: rspec
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ~>
23
+ - !ruby/object:Gem::Version
24
+ version: 2.4.0
25
+ type: :development
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
28
+ name: simplecov
29
+ prerelease: false
30
+ requirement: &id002 !ruby/object:Gem::Requirement
31
+ none: false
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: 0.3.0
36
+ type: :development
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
39
+ name: yard
40
+ prerelease: false
41
+ requirement: &id003 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 0.6.0
47
+ type: :development
48
+ version_requirements: *id003
49
+ - !ruby/object:Gem::Dependency
50
+ name: rake
51
+ prerelease: false
52
+ requirement: &id004 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: "0"
58
+ type: :development
59
+ version_requirements: *id004
60
+ - !ruby/object:Gem::Dependency
61
+ name: bluecloth
62
+ prerelease: false
63
+ requirement: &id005 !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: "0"
69
+ type: :development
70
+ version_requirements: *id005
71
+ description: Client library for message passing with brokers that support the Stomp protocol.
72
+ email:
73
+ - ian.eccles@gmail.com
74
+ executables: []
75
+
76
+ extensions: []
77
+
78
+ extra_rdoc_files: []
79
+
80
+ files:
81
+ - .autotest
82
+ - .gitignore
83
+ - .rspec
84
+ - .yardopts
85
+ - CHANGELOG.md
86
+ - DeveloperNarrative.md
87
+ - Gemfile
88
+ - LICENSE.md
89
+ - README.md
90
+ - Rakefile
91
+ - UserNarrative.md
92
+ - examples/basic.rb
93
+ - examples/events.rb
94
+ - lib/onstomp.rb
95
+ - lib/onstomp/client.rb
96
+ - lib/onstomp/components.rb
97
+ - lib/onstomp/components/frame.rb
98
+ - lib/onstomp/components/frame_headers.rb
99
+ - lib/onstomp/components/nil_processor.rb
100
+ - lib/onstomp/components/scopes.rb
101
+ - lib/onstomp/components/scopes/header_scope.rb
102
+ - lib/onstomp/components/scopes/receipt_scope.rb
103
+ - lib/onstomp/components/scopes/transaction_scope.rb
104
+ - lib/onstomp/components/subscription.rb
105
+ - lib/onstomp/components/threaded_processor.rb
106
+ - lib/onstomp/components/uri.rb
107
+ - lib/onstomp/connections.rb
108
+ - lib/onstomp/connections/base.rb
109
+ - lib/onstomp/connections/heartbeating.rb
110
+ - lib/onstomp/connections/serializers.rb
111
+ - lib/onstomp/connections/serializers/stomp_1.rb
112
+ - lib/onstomp/connections/serializers/stomp_1_0.rb
113
+ - lib/onstomp/connections/serializers/stomp_1_1.rb
114
+ - lib/onstomp/connections/stomp_1.rb
115
+ - lib/onstomp/connections/stomp_1_0.rb
116
+ - lib/onstomp/connections/stomp_1_1.rb
117
+ - lib/onstomp/interfaces.rb
118
+ - lib/onstomp/interfaces/client_configurable.rb
119
+ - lib/onstomp/interfaces/client_events.rb
120
+ - lib/onstomp/interfaces/connection_events.rb
121
+ - lib/onstomp/interfaces/event_manager.rb
122
+ - lib/onstomp/interfaces/frame_methods.rb
123
+ - lib/onstomp/interfaces/receipt_manager.rb
124
+ - lib/onstomp/interfaces/subscription_manager.rb
125
+ - lib/onstomp/interfaces/uri_configurable.rb
126
+ - lib/onstomp/version.rb
127
+ - onstomp.gemspec
128
+ - spec/onstomp/client_spec.rb
129
+ - spec/onstomp/components/frame_headers_spec.rb
130
+ - spec/onstomp/components/frame_spec.rb
131
+ - spec/onstomp/components/nil_processor_spec.rb
132
+ - spec/onstomp/components/scopes/header_scope_spec.rb
133
+ - spec/onstomp/components/scopes/receipt_scope_spec.rb
134
+ - spec/onstomp/components/scopes/transaction_scope_spec.rb
135
+ - spec/onstomp/components/scopes_spec.rb
136
+ - spec/onstomp/components/subscription_spec.rb
137
+ - spec/onstomp/components/threaded_processor_spec.rb
138
+ - spec/onstomp/components/uri_spec.rb
139
+ - spec/onstomp/connections/base_spec.rb
140
+ - spec/onstomp/connections/heartbeating_spec.rb
141
+ - spec/onstomp/connections/serializers/stomp_1_0_spec.rb
142
+ - spec/onstomp/connections/serializers/stomp_1_1_spec.rb
143
+ - spec/onstomp/connections/serializers/stomp_1_spec.rb
144
+ - spec/onstomp/connections/stomp_1_0_spec.rb
145
+ - spec/onstomp/connections/stomp_1_1_spec.rb
146
+ - spec/onstomp/connections/stomp_1_spec.rb
147
+ - spec/onstomp/connections_spec.rb
148
+ - spec/onstomp/interfaces/client_events_spec.rb
149
+ - spec/onstomp/interfaces/connection_events_spec.rb
150
+ - spec/onstomp/interfaces/event_manager_spec.rb
151
+ - spec/onstomp/interfaces/frame_methods_spec.rb
152
+ - spec/onstomp/interfaces/receipt_manager_spec.rb
153
+ - spec/onstomp/interfaces/subscription_manager_spec.rb
154
+ - spec/onstomp_spec.rb
155
+ - spec/spec_helper.rb
156
+ - spec/support/custom_argument_matchers.rb
157
+ - spec/support/frame_matchers.rb
158
+ - spec/support/shared_frame_method_examples.rb
159
+ - yard_extensions.rb
160
+ has_rdoc: yard
161
+ homepage: http://github.com/meadvillerb/onstomp
162
+ licenses: []
163
+
164
+ post_install_message:
165
+ rdoc_options: []
166
+
167
+ require_paths:
168
+ - lib
169
+ required_ruby_version: !ruby/object:Gem::Requirement
170
+ none: false
171
+ requirements:
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ version: 1.8.7
175
+ required_rubygems_version: !ruby/object:Gem::Requirement
176
+ none: false
177
+ requirements:
178
+ - - ">"
179
+ - !ruby/object:Gem::Version
180
+ version: 1.3.1
181
+ requirements: []
182
+
183
+ rubyforge_project: onstomp-core
184
+ rubygems_version: 1.6.2
185
+ signing_key:
186
+ specification_version: 3
187
+ summary: Client for message queues implementing the Stomp protocol interface.
188
+ test_files:
189
+ - spec/onstomp/client_spec.rb
190
+ - spec/onstomp/components/frame_headers_spec.rb
191
+ - spec/onstomp/components/frame_spec.rb
192
+ - spec/onstomp/components/nil_processor_spec.rb
193
+ - spec/onstomp/components/scopes/header_scope_spec.rb
194
+ - spec/onstomp/components/scopes/receipt_scope_spec.rb
195
+ - spec/onstomp/components/scopes/transaction_scope_spec.rb
196
+ - spec/onstomp/components/scopes_spec.rb
197
+ - spec/onstomp/components/subscription_spec.rb
198
+ - spec/onstomp/components/threaded_processor_spec.rb
199
+ - spec/onstomp/components/uri_spec.rb
200
+ - spec/onstomp/connections/base_spec.rb
201
+ - spec/onstomp/connections/heartbeating_spec.rb
202
+ - spec/onstomp/connections/serializers/stomp_1_0_spec.rb
203
+ - spec/onstomp/connections/serializers/stomp_1_1_spec.rb
204
+ - spec/onstomp/connections/serializers/stomp_1_spec.rb
205
+ - spec/onstomp/connections/stomp_1_0_spec.rb
206
+ - spec/onstomp/connections/stomp_1_1_spec.rb
207
+ - spec/onstomp/connections/stomp_1_spec.rb
208
+ - spec/onstomp/connections_spec.rb
209
+ - spec/onstomp/interfaces/client_events_spec.rb
210
+ - spec/onstomp/interfaces/connection_events_spec.rb
211
+ - spec/onstomp/interfaces/event_manager_spec.rb
212
+ - spec/onstomp/interfaces/frame_methods_spec.rb
213
+ - spec/onstomp/interfaces/receipt_manager_spec.rb
214
+ - spec/onstomp/interfaces/subscription_manager_spec.rb
215
+ - spec/onstomp_spec.rb
216
+ - spec/spec_helper.rb
217
+ - spec/support/custom_argument_matchers.rb
218
+ - spec/support/frame_matchers.rb
219
+ - spec/support/shared_frame_method_examples.rb