onstomp 1.0.0 → 1.0.1

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 (52) hide show
  1. data/.gitignore +4 -0
  2. data/.yardopts +2 -1
  3. data/Rakefile +147 -0
  4. data/extra_doc/API.md +491 -0
  5. data/extra_doc/API.md.erb +33 -0
  6. data/extra_doc/DeveloperNarrative.md +123 -0
  7. data/extra_doc/UserNarrative.md +511 -0
  8. data/lib/onstomp.rb +5 -5
  9. data/lib/onstomp/client.rb +6 -1
  10. data/lib/onstomp/components/frame.rb +6 -6
  11. data/lib/onstomp/components/frame_headers.rb +18 -18
  12. data/lib/onstomp/components/scopes/transaction_scope.rb +11 -11
  13. data/lib/onstomp/components/subscription.rb +2 -2
  14. data/lib/onstomp/components/threaded_processor.rb +1 -1
  15. data/lib/onstomp/components/uri.rb +1 -1
  16. data/lib/onstomp/connections/base.rb +5 -5
  17. data/lib/onstomp/connections/heartbeating.rb +2 -2
  18. data/lib/onstomp/connections/serializers/stomp_1.rb +6 -6
  19. data/lib/onstomp/connections/serializers/stomp_1_1.rb +2 -2
  20. data/lib/onstomp/connections/stomp_1_0.rb +1 -1
  21. data/lib/onstomp/connections/stomp_1_1.rb +1 -1
  22. data/lib/onstomp/failover.rb +4 -0
  23. data/lib/onstomp/failover/buffers.rb +1 -0
  24. data/lib/onstomp/failover/buffers/receipts.rb +101 -0
  25. data/lib/onstomp/failover/buffers/written.rb +2 -2
  26. data/lib/onstomp/failover/client.rb +15 -12
  27. data/lib/onstomp/failover/failover_configurable.rb +3 -3
  28. data/lib/onstomp/failover/pools/base.rb +1 -1
  29. data/lib/onstomp/failover/uri.rb +41 -16
  30. data/lib/onstomp/interfaces/client_configurable.rb +1 -1
  31. data/lib/onstomp/interfaces/client_events.rb +30 -11
  32. data/lib/onstomp/interfaces/connection_events.rb +5 -1
  33. data/lib/onstomp/interfaces/event_manager.rb +2 -2
  34. data/lib/onstomp/interfaces/frame_methods.rb +169 -8
  35. data/lib/onstomp/interfaces/uri_configurable.rb +3 -3
  36. data/lib/onstomp/open-uri/client_extensions.rb +4 -4
  37. data/lib/onstomp/version.rb +2 -2
  38. data/onstomp.gemspec +0 -1
  39. data/spec/onstomp/components/threaded_processor_spec.rb +21 -0
  40. data/spec/onstomp/connections/base_spec.rb +15 -0
  41. data/spec/onstomp/failover/buffers/receipts_spec.rb +189 -0
  42. data/spec/onstomp/failover/buffers/written_spec.rb +167 -1
  43. data/spec/onstomp/failover/client_spec.rb +70 -1
  44. data/spec/onstomp/failover/failover_events_spec.rb +1 -2
  45. data/spec/onstomp/failover/uri_spec.rb +37 -4
  46. data/spec/onstomp/full_stacks/failover_spec.rb +76 -25
  47. data/spec/onstomp/full_stacks/onstomp_spec.rb +52 -8
  48. data/spec/onstomp/full_stacks/onstomp_ssh_spec.rb +83 -0
  49. data/spec/onstomp/full_stacks/test_broker.rb +45 -29
  50. metadata +11 -15
  51. data/DeveloperNarrative.md +0 -15
  52. data/UserNarrative.md +0 -8
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: onstomp
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.0
5
+ version: 1.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ian D. Eccles
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-03 00:00:00 -04:00
13
+ date: 2011-04-05 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -57,17 +57,6 @@ dependencies:
57
57
  version: "0"
58
58
  type: :development
59
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
60
  description: Client library for message passing with brokers that support the Stomp protocol.
72
61
  email:
73
62
  - ian.eccles@gmail.com
@@ -83,15 +72,17 @@ files:
83
72
  - .rspec
84
73
  - .yardopts
85
74
  - CHANGELOG.md
86
- - DeveloperNarrative.md
87
75
  - Gemfile
88
76
  - LICENSE.md
89
77
  - README.md
90
78
  - Rakefile
91
- - UserNarrative.md
92
79
  - examples/basic.rb
93
80
  - examples/events.rb
94
81
  - examples/openuri.rb
82
+ - extra_doc/API.md
83
+ - extra_doc/API.md.erb
84
+ - extra_doc/DeveloperNarrative.md
85
+ - extra_doc/UserNarrative.md
95
86
  - lib/onstomp.rb
96
87
  - lib/onstomp/client.rb
97
88
  - lib/onstomp/components.rb
@@ -116,6 +107,7 @@ files:
116
107
  - lib/onstomp/connections/stomp_1_1.rb
117
108
  - lib/onstomp/failover.rb
118
109
  - lib/onstomp/failover/buffers.rb
110
+ - lib/onstomp/failover/buffers/receipts.rb
119
111
  - lib/onstomp/failover/buffers/written.rb
120
112
  - lib/onstomp/failover/client.rb
121
113
  - lib/onstomp/failover/failover_configurable.rb
@@ -158,6 +150,7 @@ files:
158
150
  - spec/onstomp/connections/stomp_1_1_spec.rb
159
151
  - spec/onstomp/connections/stomp_1_spec.rb
160
152
  - spec/onstomp/connections_spec.rb
153
+ - spec/onstomp/failover/buffers/receipts_spec.rb
161
154
  - spec/onstomp/failover/buffers/written_spec.rb
162
155
  - spec/onstomp/failover/client_spec.rb
163
156
  - spec/onstomp/failover/failover_events_spec.rb
@@ -167,6 +160,7 @@ files:
167
160
  - spec/onstomp/failover/uri_spec.rb
168
161
  - spec/onstomp/full_stacks/failover_spec.rb
169
162
  - spec/onstomp/full_stacks/onstomp_spec.rb
163
+ - spec/onstomp/full_stacks/onstomp_ssh_spec.rb
170
164
  - spec/onstomp/full_stacks/open-uri_spec.rb
171
165
  - spec/onstomp/full_stacks/ssl/README
172
166
  - spec/onstomp/full_stacks/ssl/broker_cert.csr
@@ -249,6 +243,7 @@ test_files:
249
243
  - spec/onstomp/connections/stomp_1_1_spec.rb
250
244
  - spec/onstomp/connections/stomp_1_spec.rb
251
245
  - spec/onstomp/connections_spec.rb
246
+ - spec/onstomp/failover/buffers/receipts_spec.rb
252
247
  - spec/onstomp/failover/buffers/written_spec.rb
253
248
  - spec/onstomp/failover/client_spec.rb
254
249
  - spec/onstomp/failover/failover_events_spec.rb
@@ -258,6 +253,7 @@ test_files:
258
253
  - spec/onstomp/failover/uri_spec.rb
259
254
  - spec/onstomp/full_stacks/failover_spec.rb
260
255
  - spec/onstomp/full_stacks/onstomp_spec.rb
256
+ - spec/onstomp/full_stacks/onstomp_ssh_spec.rb
261
257
  - spec/onstomp/full_stacks/open-uri_spec.rb
262
258
  - spec/onstomp/full_stacks/ssl/README
263
259
  - spec/onstomp/full_stacks/ssl/broker_cert.csr
@@ -1,15 +0,0 @@
1
- # A Narrative for Developers
2
-
3
- This document explores the `OnStomp` library through a narrative aimed at end
4
- developers who wish to extend or modify the library. It will start with the
5
- basics and work through the important code through exposition and examples.
6
-
7
- ## Clients
8
-
9
- ## Event Management
10
-
11
- ## URI Based Configuration
12
-
13
- ## Connections
14
-
15
- ## Processors
@@ -1,8 +0,0 @@
1
- # A Narrative for Users
2
-
3
- This document explores the `OnStomp` API through a narrative aimed at end
4
- users of the library. It will start with the basics and work through the
5
- available features through exposition and examples.
6
-
7
- ## Creating a STOMP Client
8
-