hoth 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hoth (0.3.2.beta6)
4
+ hoth (0.3.3)
5
5
  activesupport
6
6
  bertrpc
7
7
  hoth
@@ -10,7 +10,7 @@ PATH
10
10
  GEM
11
11
  remote: http://rubygems.org/
12
12
  specs:
13
- activesupport (3.0.6)
13
+ activesupport (3.0.10)
14
14
  beanstalk-client (1.1.0)
15
15
  bert (1.1.2)
16
16
  bertrpc (1.3.0)
@@ -19,16 +19,16 @@ GEM
19
19
  em-jack (0.1.3)
20
20
  eventmachine
21
21
  eventmachine (0.12.10)
22
- json (1.5.1)
22
+ json (1.5.3)
23
23
  memcache-client (1.8.5)
24
- rspec (2.4.0)
25
- rspec-core (~> 2.4.0)
26
- rspec-expectations (~> 2.4.0)
27
- rspec-mocks (~> 2.4.0)
28
- rspec-core (2.4.0)
29
- rspec-expectations (2.4.0)
24
+ rspec (2.6.0)
25
+ rspec-core (~> 2.6.0)
26
+ rspec-expectations (~> 2.6.0)
27
+ rspec-mocks (~> 2.6.0)
28
+ rspec-core (2.6.3)
29
+ rspec-expectations (2.6.0)
30
30
  diff-lcs (~> 1.1.2)
31
- rspec-mocks (2.4.0)
31
+ rspec-mocks (2.6.0)
32
32
  simple_publisher (0.1.1)
33
33
  starling
34
34
  system_timer
@@ -44,5 +44,5 @@ DEPENDENCIES
44
44
  beanstalk-client
45
45
  em-jack
46
46
  hoth!
47
- rspec
47
+ rspec (~> 2.6.0)
48
48
  simple_publisher
@@ -1,15 +1,19 @@
1
1
  class Exception
2
2
  def to_json(*params)
3
+ as_json(*params).to_json(*params)
4
+ end
5
+
6
+ def as_json(*params)
3
7
  {
4
8
  'json_class' => self.class.name,
5
9
  'message' => self.message,
6
10
  'backtrace' => self.backtrace
7
- }.to_json(*params)
11
+ }
8
12
  end
9
-
13
+
10
14
  def self.json_create(hash)
11
15
  exception = new(hash["message"])
12
16
  exception.set_backtrace hash['backtrace']
13
17
  exception
14
18
  end
15
- end
19
+ end
@@ -6,6 +6,11 @@ describe Exception do
6
6
  e = Exception.new "message"
7
7
  e.to_json.should == "{\"json_class\":\"Exception\",\"message\":\"message\",\"backtrace\":null}"
8
8
  end
9
+
10
+ it "should be able to create a json encodable representation of the exception" do
11
+ e = Exception.new "message"
12
+ e.as_json.should == {"json_class" => "Exception", "message" => "message", "backtrace" => nil}
13
+ end
9
14
 
10
15
  it "should be able to create json with backtrace" do
11
16
  e = Exception.new "message"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoth
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 3
10
- version: 0.3.3
9
+ - 4
10
+ version: 0.3.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dirk Breuer
@@ -15,9 +15,11 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-27 00:00:00 Z
18
+ date: 2011-08-22 00:00:00 +02:00
19
+ default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
22
+ prerelease: false
21
23
  type: :runtime
22
24
  requirement: &id001 !ruby/object:Gem::Requirement
23
25
  none: false
@@ -28,10 +30,10 @@ dependencies:
28
30
  segments:
29
31
  - 0
30
32
  version: "0"
31
- prerelease: false
32
- version_requirements: *id001
33
33
  name: hoth
34
+ version_requirements: *id001
34
35
  - !ruby/object:Gem::Dependency
36
+ prerelease: false
35
37
  type: :development
36
38
  requirement: &id002 !ruby/object:Gem::Requirement
37
39
  none: false
@@ -44,10 +46,10 @@ dependencies:
44
46
  - 6
45
47
  - 0
46
48
  version: 2.6.0
47
- prerelease: false
48
- version_requirements: *id002
49
49
  name: rspec
50
+ version_requirements: *id002
50
51
  - !ruby/object:Gem::Dependency
52
+ prerelease: false
51
53
  type: :development
52
54
  requirement: &id003 !ruby/object:Gem::Requirement
53
55
  none: false
@@ -58,10 +60,10 @@ dependencies:
58
60
  segments:
59
61
  - 0
60
62
  version: "0"
61
- prerelease: false
62
- version_requirements: *id003
63
63
  name: simple_publisher
64
+ version_requirements: *id003
64
65
  - !ruby/object:Gem::Dependency
66
+ prerelease: false
65
67
  type: :development
66
68
  requirement: &id004 !ruby/object:Gem::Requirement
67
69
  none: false
@@ -72,10 +74,10 @@ dependencies:
72
74
  segments:
73
75
  - 0
74
76
  version: "0"
75
- prerelease: false
76
- version_requirements: *id004
77
77
  name: beanstalk-client
78
+ version_requirements: *id004
78
79
  - !ruby/object:Gem::Dependency
80
+ prerelease: false
79
81
  type: :development
80
82
  requirement: &id005 !ruby/object:Gem::Requirement
81
83
  none: false
@@ -86,12 +88,28 @@ dependencies:
86
88
  segments:
87
89
  - 0
88
90
  version: "0"
89
- prerelease: false
90
- version_requirements: *id005
91
91
  name: em-jack
92
+ version_requirements: *id005
92
93
  - !ruby/object:Gem::Dependency
93
- type: :runtime
94
+ prerelease: false
95
+ type: :development
94
96
  requirement: &id006 !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ hash: 23
102
+ segments:
103
+ - 2
104
+ - 6
105
+ - 0
106
+ version: 2.6.0
107
+ name: rspec
108
+ version_requirements: *id006
109
+ - !ruby/object:Gem::Dependency
110
+ prerelease: false
111
+ type: :development
112
+ requirement: &id007 !ruby/object:Gem::Requirement
95
113
  none: false
96
114
  requirements:
97
115
  - - ">="
@@ -100,12 +118,98 @@ dependencies:
100
118
  segments:
101
119
  - 0
102
120
  version: "0"
121
+ name: simple_publisher
122
+ version_requirements: *id007
123
+ - !ruby/object:Gem::Dependency
103
124
  prerelease: false
104
- version_requirements: *id006
105
- name: activesupport
125
+ type: :development
126
+ requirement: &id008 !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ hash: 3
132
+ segments:
133
+ - 0
134
+ version: "0"
135
+ name: beanstalk-client
136
+ version_requirements: *id008
137
+ - !ruby/object:Gem::Dependency
138
+ prerelease: false
139
+ type: :development
140
+ requirement: &id009 !ruby/object:Gem::Requirement
141
+ none: false
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ hash: 3
146
+ segments:
147
+ - 0
148
+ version: "0"
149
+ name: em-jack
150
+ version_requirements: *id009
151
+ - !ruby/object:Gem::Dependency
152
+ prerelease: false
153
+ type: :development
154
+ requirement: &id010 !ruby/object:Gem::Requirement
155
+ none: false
156
+ requirements:
157
+ - - ~>
158
+ - !ruby/object:Gem::Version
159
+ hash: 23
160
+ segments:
161
+ - 2
162
+ - 6
163
+ - 0
164
+ version: 2.6.0
165
+ name: rspec
166
+ version_requirements: *id010
106
167
  - !ruby/object:Gem::Dependency
168
+ prerelease: false
169
+ type: :development
170
+ requirement: &id011 !ruby/object:Gem::Requirement
171
+ none: false
172
+ requirements:
173
+ - - ">="
174
+ - !ruby/object:Gem::Version
175
+ hash: 3
176
+ segments:
177
+ - 0
178
+ version: "0"
179
+ name: simple_publisher
180
+ version_requirements: *id011
181
+ - !ruby/object:Gem::Dependency
182
+ prerelease: false
183
+ type: :development
184
+ requirement: &id012 !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ">="
188
+ - !ruby/object:Gem::Version
189
+ hash: 3
190
+ segments:
191
+ - 0
192
+ version: "0"
193
+ name: beanstalk-client
194
+ version_requirements: *id012
195
+ - !ruby/object:Gem::Dependency
196
+ prerelease: false
197
+ type: :development
198
+ requirement: &id013 !ruby/object:Gem::Requirement
199
+ none: false
200
+ requirements:
201
+ - - ">="
202
+ - !ruby/object:Gem::Version
203
+ hash: 3
204
+ segments:
205
+ - 0
206
+ version: "0"
207
+ name: em-jack
208
+ version_requirements: *id013
209
+ - !ruby/object:Gem::Dependency
210
+ prerelease: false
107
211
  type: :runtime
108
- requirement: &id007 !ruby/object:Gem::Requirement
212
+ requirement: &id014 !ruby/object:Gem::Requirement
109
213
  none: false
110
214
  requirements:
111
215
  - - ">="
@@ -114,12 +218,26 @@ dependencies:
114
218
  segments:
115
219
  - 0
116
220
  version: "0"
221
+ name: activesupport
222
+ version_requirements: *id014
223
+ - !ruby/object:Gem::Dependency
117
224
  prerelease: false
118
- version_requirements: *id007
225
+ type: :runtime
226
+ requirement: &id015 !ruby/object:Gem::Requirement
227
+ none: false
228
+ requirements:
229
+ - - ">="
230
+ - !ruby/object:Gem::Version
231
+ hash: 3
232
+ segments:
233
+ - 0
234
+ version: "0"
119
235
  name: bertrpc
236
+ version_requirements: *id015
120
237
  - !ruby/object:Gem::Dependency
238
+ prerelease: false
121
239
  type: :runtime
122
- requirement: &id008 !ruby/object:Gem::Requirement
240
+ requirement: &id016 !ruby/object:Gem::Requirement
123
241
  none: false
124
242
  requirements:
125
243
  - - ">="
@@ -128,12 +246,12 @@ dependencies:
128
246
  segments:
129
247
  - 0
130
248
  version: "0"
131
- prerelease: false
132
- version_requirements: *id008
133
249
  name: json
250
+ version_requirements: *id016
134
251
  - !ruby/object:Gem::Dependency
252
+ prerelease: false
135
253
  type: :development
136
- requirement: &id009 !ruby/object:Gem::Requirement
254
+ requirement: &id017 !ruby/object:Gem::Requirement
137
255
  none: false
138
256
  requirements:
139
257
  - - ~>
@@ -144,12 +262,12 @@ dependencies:
144
262
  - 6
145
263
  - 0
146
264
  version: 2.6.0
147
- prerelease: false
148
- version_requirements: *id009
149
265
  name: rspec
266
+ version_requirements: *id017
150
267
  - !ruby/object:Gem::Dependency
268
+ prerelease: false
151
269
  type: :development
152
- requirement: &id010 !ruby/object:Gem::Requirement
270
+ requirement: &id018 !ruby/object:Gem::Requirement
153
271
  none: false
154
272
  requirements:
155
273
  - - ">="
@@ -158,12 +276,12 @@ dependencies:
158
276
  segments:
159
277
  - 0
160
278
  version: "0"
161
- prerelease: false
162
- version_requirements: *id010
163
279
  name: simple_publisher
280
+ version_requirements: *id018
164
281
  - !ruby/object:Gem::Dependency
282
+ prerelease: false
165
283
  type: :development
166
- requirement: &id011 !ruby/object:Gem::Requirement
284
+ requirement: &id019 !ruby/object:Gem::Requirement
167
285
  none: false
168
286
  requirements:
169
287
  - - ">="
@@ -172,12 +290,12 @@ dependencies:
172
290
  segments:
173
291
  - 0
174
292
  version: "0"
175
- prerelease: false
176
- version_requirements: *id011
177
293
  name: beanstalk-client
294
+ version_requirements: *id019
178
295
  - !ruby/object:Gem::Dependency
296
+ prerelease: false
179
297
  type: :development
180
- requirement: &id012 !ruby/object:Gem::Requirement
298
+ requirement: &id020 !ruby/object:Gem::Requirement
181
299
  none: false
182
300
  requirements:
183
301
  - - ">="
@@ -186,9 +304,8 @@ dependencies:
186
304
  segments:
187
305
  - 0
188
306
  version: "0"
189
- prerelease: false
190
- version_requirements: *id012
191
307
  name: em-jack
308
+ version_requirements: *id020
192
309
  description: |
193
310
  Creating a SOA requires a centralized location to define all services within the
194
311
  SOA. Furthermore you want to know where to deploy those services.
@@ -246,6 +363,7 @@ files:
246
363
  - spec/unit/transport_spec.rb
247
364
  - LICENSE
248
365
  - TODO
366
+ has_rdoc: true
249
367
  homepage: http://github.com/galaxycats/hoth
250
368
  licenses: []
251
369
 
@@ -275,9 +393,23 @@ required_rubygems_version: !ruby/object:Gem::Requirement
275
393
  requirements: []
276
394
 
277
395
  rubyforge_project:
278
- rubygems_version: 1.8.4
396
+ rubygems_version: 1.6.2
279
397
  signing_key:
280
398
  specification_version: 3
281
399
  summary: Registry and deployment description abstraction for SOA-Services
282
- test_files: []
283
-
400
+ test_files:
401
+ - spec/spec_helper.rb
402
+ - spec/unit/encoding/json_spec.rb
403
+ - spec/unit/endpoint_spec.rb
404
+ - spec/unit/extension/core/exception_spec.rb
405
+ - spec/unit/hoth_spec.rb
406
+ - spec/unit/providers/beanstalkd_provider_spec.rb
407
+ - spec/unit/providers/rack_provider_spec.rb
408
+ - spec/unit/service_definition_spec.rb
409
+ - spec/unit/service_module_spec.rb
410
+ - spec/unit/service_spec.rb
411
+ - spec/unit/transport/base_spec.rb
412
+ - spec/unit/transport/beanstalkd_spec.rb
413
+ - spec/unit/transport/http_spec.rb
414
+ - spec/unit/transport/workling_spec.rb
415
+ - spec/unit/transport_spec.rb