bixby-common 0.3.16 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +55 -18
- data/Rakefile +1 -2
- data/VERSION +1 -1
- data/bixby-common.gemspec +21 -4
- data/lib/bixby-common/api/api_channel.rb +20 -0
- data/lib/bixby-common/api/encrypted_json_request.rb +19 -0
- data/lib/bixby-common/api/http_channel.rb +72 -0
- data/lib/bixby-common/api/json_request.rb +4 -0
- data/lib/bixby-common/api/json_response.rb +4 -0
- data/lib/bixby-common/api/rpc_handler.rb +35 -0
- data/lib/bixby-common/api/signed_json_request.rb +38 -0
- data/lib/bixby-common/command_spec.rb +1 -1
- data/lib/bixby-common/util/log.rb +21 -1
- data/lib/bixby-common/websocket/api_channel.rb +114 -0
- data/lib/bixby-common/websocket/async_response.rb +50 -0
- data/lib/bixby-common/websocket/client.rb +117 -0
- data/lib/bixby-common/websocket/message.rb +48 -0
- data/lib/bixby-common/websocket/request.rb +24 -0
- data/lib/bixby-common/websocket/response.rb +24 -0
- data/lib/bixby-common.rb +14 -0
- metadata +109 -121
metadata
CHANGED
@@ -1,384 +1,365 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bixby-common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.3.16
|
4
|
+
version: 0.4.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Chetan Sarva
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-24 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
14
|
+
name: faye-websocket
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
16
21
|
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: api-auth
|
17
29
|
requirement: !ruby/object:Gem::Requirement
|
18
30
|
requirements:
|
19
|
-
- -
|
31
|
+
- - '>='
|
20
32
|
- !ruby/object:Gem::Version
|
21
33
|
version: '0'
|
22
|
-
none: false
|
23
34
|
type: :runtime
|
35
|
+
prerelease: false
|
24
36
|
version_requirements: !ruby/object:Gem::Requirement
|
25
37
|
requirements:
|
26
|
-
- -
|
38
|
+
- - '>='
|
27
39
|
- !ruby/object:Gem::Version
|
28
40
|
version: '0'
|
29
|
-
none: false
|
30
41
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
42
|
+
name: multi_json
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
32
49
|
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: httpi
|
33
57
|
requirement: !ruby/object:Gem::Requirement
|
34
58
|
requirements:
|
35
|
-
- -
|
59
|
+
- - '>='
|
36
60
|
- !ruby/object:Gem::Version
|
37
61
|
version: '0'
|
38
|
-
none: false
|
39
62
|
type: :runtime
|
63
|
+
prerelease: false
|
40
64
|
version_requirements: !ruby/object:Gem::Requirement
|
41
65
|
requirements:
|
42
|
-
- -
|
66
|
+
- - '>='
|
43
67
|
- !ruby/object:Gem::Version
|
44
68
|
version: '0'
|
45
|
-
none: false
|
46
69
|
- !ruby/object:Gem::Dependency
|
47
70
|
name: logging
|
48
|
-
prerelease: false
|
49
71
|
requirement: !ruby/object:Gem::Requirement
|
50
72
|
requirements:
|
51
|
-
- -
|
73
|
+
- - '>='
|
52
74
|
- !ruby/object:Gem::Version
|
53
75
|
version: '0'
|
54
|
-
none: false
|
55
76
|
type: :runtime
|
77
|
+
prerelease: false
|
56
78
|
version_requirements: !ruby/object:Gem::Requirement
|
57
79
|
requirements:
|
58
|
-
- -
|
80
|
+
- - '>='
|
59
81
|
- !ruby/object:Gem::Version
|
60
82
|
version: '0'
|
61
|
-
none: false
|
62
83
|
- !ruby/object:Gem::Dependency
|
63
84
|
name: yard
|
64
|
-
prerelease: false
|
65
85
|
requirement: !ruby/object:Gem::Requirement
|
66
86
|
requirements:
|
67
87
|
- - ~>
|
68
88
|
- !ruby/object:Gem::Version
|
69
89
|
version: '0.8'
|
70
|
-
none: false
|
71
90
|
type: :development
|
91
|
+
prerelease: false
|
72
92
|
version_requirements: !ruby/object:Gem::Requirement
|
73
93
|
requirements:
|
74
94
|
- - ~>
|
75
95
|
- !ruby/object:Gem::Version
|
76
96
|
version: '0.8'
|
77
|
-
none: false
|
78
97
|
- !ruby/object:Gem::Dependency
|
79
98
|
name: bundler
|
80
|
-
prerelease: false
|
81
99
|
requirement: !ruby/object:Gem::Requirement
|
82
100
|
requirements:
|
83
101
|
- - ~>
|
84
102
|
- !ruby/object:Gem::Version
|
85
103
|
version: '1.1'
|
86
|
-
none: false
|
87
104
|
type: :development
|
105
|
+
prerelease: false
|
88
106
|
version_requirements: !ruby/object:Gem::Requirement
|
89
107
|
requirements:
|
90
108
|
- - ~>
|
91
109
|
- !ruby/object:Gem::Version
|
92
110
|
version: '1.1'
|
93
|
-
none: false
|
94
111
|
- !ruby/object:Gem::Dependency
|
95
112
|
name: jeweler
|
96
|
-
prerelease: false
|
97
113
|
requirement: !ruby/object:Gem::Requirement
|
98
114
|
requirements:
|
99
|
-
- -
|
115
|
+
- - '>='
|
100
116
|
- !ruby/object:Gem::Version
|
101
117
|
version: '0'
|
102
|
-
none: false
|
103
118
|
type: :development
|
119
|
+
prerelease: false
|
104
120
|
version_requirements: !ruby/object:Gem::Requirement
|
105
121
|
requirements:
|
106
|
-
- -
|
122
|
+
- - '>='
|
107
123
|
- !ruby/object:Gem::Version
|
108
124
|
version: '0'
|
109
|
-
none: false
|
110
125
|
- !ruby/object:Gem::Dependency
|
111
126
|
name: pry
|
112
|
-
prerelease: false
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
|
-
- -
|
129
|
+
- - '>='
|
116
130
|
- !ruby/object:Gem::Version
|
117
131
|
version: '0'
|
118
|
-
none: false
|
119
132
|
type: :development
|
133
|
+
prerelease: false
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
122
|
-
- -
|
136
|
+
- - '>='
|
123
137
|
- !ruby/object:Gem::Version
|
124
138
|
version: '0'
|
125
|
-
none: false
|
126
139
|
- !ruby/object:Gem::Dependency
|
127
140
|
name: simplecov
|
128
|
-
prerelease: false
|
129
141
|
requirement: !ruby/object:Gem::Requirement
|
130
142
|
requirements:
|
131
|
-
- -
|
143
|
+
- - '>='
|
132
144
|
- !ruby/object:Gem::Version
|
133
145
|
version: '0'
|
134
|
-
none: false
|
135
146
|
type: :development
|
147
|
+
prerelease: false
|
136
148
|
version_requirements: !ruby/object:Gem::Requirement
|
137
149
|
requirements:
|
138
|
-
- -
|
150
|
+
- - '>='
|
139
151
|
- !ruby/object:Gem::Version
|
140
152
|
version: '0'
|
141
|
-
none: false
|
142
153
|
- !ruby/object:Gem::Dependency
|
143
154
|
name: rcov
|
144
|
-
prerelease: false
|
145
155
|
requirement: !ruby/object:Gem::Requirement
|
146
156
|
requirements:
|
147
|
-
- -
|
157
|
+
- - '>='
|
148
158
|
- !ruby/object:Gem::Version
|
149
159
|
version: '0'
|
150
|
-
none: false
|
151
160
|
type: :development
|
161
|
+
prerelease: false
|
152
162
|
version_requirements: !ruby/object:Gem::Requirement
|
153
163
|
requirements:
|
154
|
-
- -
|
164
|
+
- - '>='
|
155
165
|
- !ruby/object:Gem::Version
|
156
166
|
version: '0'
|
157
|
-
none: false
|
158
167
|
- !ruby/object:Gem::Dependency
|
159
168
|
name: minitest
|
160
|
-
prerelease: false
|
161
169
|
requirement: !ruby/object:Gem::Requirement
|
162
170
|
requirements:
|
163
171
|
- - ~>
|
164
172
|
- !ruby/object:Gem::Version
|
165
173
|
version: '4.0'
|
166
|
-
none: false
|
167
174
|
type: :development
|
175
|
+
prerelease: false
|
168
176
|
version_requirements: !ruby/object:Gem::Requirement
|
169
177
|
requirements:
|
170
178
|
- - ~>
|
171
179
|
- !ruby/object:Gem::Version
|
172
180
|
version: '4.0'
|
173
|
-
none: false
|
174
181
|
- !ruby/object:Gem::Dependency
|
175
182
|
name: test-unit
|
176
|
-
prerelease: false
|
177
183
|
requirement: !ruby/object:Gem::Requirement
|
178
184
|
requirements:
|
179
|
-
- -
|
185
|
+
- - '>='
|
180
186
|
- !ruby/object:Gem::Version
|
181
187
|
version: '0'
|
182
|
-
none: false
|
183
188
|
type: :development
|
189
|
+
prerelease: false
|
184
190
|
version_requirements: !ruby/object:Gem::Requirement
|
185
191
|
requirements:
|
186
|
-
- -
|
192
|
+
- - '>='
|
187
193
|
- !ruby/object:Gem::Version
|
188
194
|
version: '0'
|
189
|
-
none: false
|
190
195
|
- !ruby/object:Gem::Dependency
|
191
196
|
name: webmock
|
192
|
-
prerelease: false
|
193
197
|
requirement: !ruby/object:Gem::Requirement
|
194
198
|
requirements:
|
195
|
-
- -
|
199
|
+
- - '>='
|
196
200
|
- !ruby/object:Gem::Version
|
197
201
|
version: '0'
|
198
|
-
none: false
|
199
202
|
type: :development
|
203
|
+
prerelease: false
|
200
204
|
version_requirements: !ruby/object:Gem::Requirement
|
201
205
|
requirements:
|
202
|
-
- -
|
206
|
+
- - '>='
|
203
207
|
- !ruby/object:Gem::Version
|
204
208
|
version: '0'
|
205
|
-
none: false
|
206
209
|
- !ruby/object:Gem::Dependency
|
207
210
|
name: mocha
|
208
|
-
prerelease: false
|
209
211
|
requirement: !ruby/object:Gem::Requirement
|
210
212
|
requirements:
|
211
|
-
- -
|
213
|
+
- - '>='
|
212
214
|
- !ruby/object:Gem::Version
|
213
215
|
version: '0'
|
214
|
-
none: false
|
215
216
|
type: :development
|
217
|
+
prerelease: false
|
216
218
|
version_requirements: !ruby/object:Gem::Requirement
|
217
219
|
requirements:
|
218
|
-
- -
|
220
|
+
- - '>='
|
219
221
|
- !ruby/object:Gem::Version
|
220
222
|
version: '0'
|
221
|
-
none: false
|
222
223
|
- !ruby/object:Gem::Dependency
|
223
224
|
name: turn
|
224
|
-
prerelease: false
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
|
-
- -
|
227
|
+
- - '>='
|
228
228
|
- !ruby/object:Gem::Version
|
229
229
|
version: '0'
|
230
|
-
none: false
|
231
230
|
type: :development
|
231
|
+
prerelease: false
|
232
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
|
-
- -
|
234
|
+
- - '>='
|
235
235
|
- !ruby/object:Gem::Version
|
236
236
|
version: '0'
|
237
|
-
none: false
|
238
237
|
- !ruby/object:Gem::Dependency
|
239
238
|
name: test_guard
|
240
|
-
prerelease: false
|
241
239
|
requirement: !ruby/object:Gem::Requirement
|
242
240
|
requirements:
|
243
|
-
- -
|
241
|
+
- - '>='
|
244
242
|
- !ruby/object:Gem::Version
|
245
243
|
version: '0'
|
246
|
-
none: false
|
247
244
|
type: :development
|
245
|
+
prerelease: false
|
248
246
|
version_requirements: !ruby/object:Gem::Requirement
|
249
247
|
requirements:
|
250
|
-
- -
|
248
|
+
- - '>='
|
251
249
|
- !ruby/object:Gem::Version
|
252
250
|
version: '0'
|
253
|
-
none: false
|
254
251
|
- !ruby/object:Gem::Dependency
|
255
252
|
name: rb-inotify
|
256
|
-
prerelease: false
|
257
253
|
requirement: !ruby/object:Gem::Requirement
|
258
254
|
requirements:
|
259
|
-
- -
|
255
|
+
- - '>='
|
260
256
|
- !ruby/object:Gem::Version
|
261
257
|
version: '0'
|
262
|
-
none: false
|
263
258
|
type: :development
|
259
|
+
prerelease: false
|
264
260
|
version_requirements: !ruby/object:Gem::Requirement
|
265
261
|
requirements:
|
266
|
-
- -
|
262
|
+
- - '>='
|
267
263
|
- !ruby/object:Gem::Version
|
268
264
|
version: '0'
|
269
|
-
none: false
|
270
265
|
- !ruby/object:Gem::Dependency
|
271
266
|
name: rb-fsevent
|
272
|
-
prerelease: false
|
273
267
|
requirement: !ruby/object:Gem::Requirement
|
274
268
|
requirements:
|
275
|
-
- -
|
269
|
+
- - '>='
|
276
270
|
- !ruby/object:Gem::Version
|
277
271
|
version: '0'
|
278
|
-
none: false
|
279
272
|
type: :development
|
273
|
+
prerelease: false
|
280
274
|
version_requirements: !ruby/object:Gem::Requirement
|
281
275
|
requirements:
|
282
|
-
- -
|
276
|
+
- - '>='
|
283
277
|
- !ruby/object:Gem::Version
|
284
278
|
version: '0'
|
285
|
-
none: false
|
286
279
|
- !ruby/object:Gem::Dependency
|
287
280
|
name: rb-fchange
|
288
|
-
prerelease: false
|
289
281
|
requirement: !ruby/object:Gem::Requirement
|
290
282
|
requirements:
|
291
|
-
- -
|
283
|
+
- - '>='
|
292
284
|
- !ruby/object:Gem::Version
|
293
285
|
version: '0'
|
294
|
-
none: false
|
295
286
|
type: :development
|
287
|
+
prerelease: false
|
296
288
|
version_requirements: !ruby/object:Gem::Requirement
|
297
289
|
requirements:
|
298
|
-
- -
|
290
|
+
- - '>='
|
299
291
|
- !ruby/object:Gem::Version
|
300
292
|
version: '0'
|
301
|
-
none: false
|
302
293
|
- !ruby/object:Gem::Dependency
|
303
294
|
name: json
|
304
|
-
prerelease: false
|
305
295
|
requirement: !ruby/object:Gem::Requirement
|
306
296
|
requirements:
|
307
|
-
- -
|
297
|
+
- - '>='
|
308
298
|
- !ruby/object:Gem::Version
|
309
299
|
version: '0'
|
310
|
-
none: false
|
311
300
|
type: :development
|
301
|
+
prerelease: false
|
312
302
|
version_requirements: !ruby/object:Gem::Requirement
|
313
303
|
requirements:
|
314
|
-
- -
|
304
|
+
- - '>='
|
315
305
|
- !ruby/object:Gem::Version
|
316
306
|
version: '0'
|
317
|
-
none: false
|
318
307
|
- !ruby/object:Gem::Dependency
|
319
308
|
name: oj
|
320
|
-
prerelease: false
|
321
309
|
requirement: !ruby/object:Gem::Requirement
|
322
310
|
requirements:
|
323
|
-
- -
|
311
|
+
- - '>='
|
324
312
|
- !ruby/object:Gem::Version
|
325
313
|
version: '0'
|
326
|
-
none: false
|
327
314
|
type: :development
|
315
|
+
prerelease: false
|
328
316
|
version_requirements: !ruby/object:Gem::Requirement
|
329
317
|
requirements:
|
330
|
-
- -
|
318
|
+
- - '>='
|
331
319
|
- !ruby/object:Gem::Version
|
332
320
|
version: '0'
|
333
|
-
none: false
|
334
321
|
- !ruby/object:Gem::Dependency
|
335
322
|
name: httpclient
|
336
|
-
prerelease: false
|
337
323
|
requirement: !ruby/object:Gem::Requirement
|
338
324
|
requirements:
|
339
|
-
- -
|
325
|
+
- - '>='
|
340
326
|
- !ruby/object:Gem::Version
|
341
327
|
version: '0'
|
342
|
-
none: false
|
343
328
|
type: :development
|
329
|
+
prerelease: false
|
344
330
|
version_requirements: !ruby/object:Gem::Requirement
|
345
331
|
requirements:
|
346
|
-
- -
|
332
|
+
- - '>='
|
347
333
|
- !ruby/object:Gem::Version
|
348
334
|
version: '0'
|
349
|
-
none: false
|
350
335
|
- !ruby/object:Gem::Dependency
|
351
336
|
name: curb
|
352
|
-
prerelease: false
|
353
337
|
requirement: !ruby/object:Gem::Requirement
|
354
338
|
requirements:
|
355
|
-
- -
|
339
|
+
- - '>='
|
356
340
|
- !ruby/object:Gem::Version
|
357
341
|
version: '0'
|
358
|
-
none: false
|
359
342
|
type: :development
|
343
|
+
prerelease: false
|
360
344
|
version_requirements: !ruby/object:Gem::Requirement
|
361
345
|
requirements:
|
362
|
-
- -
|
346
|
+
- - '>='
|
363
347
|
- !ruby/object:Gem::Version
|
364
348
|
version: '0'
|
365
|
-
none: false
|
366
349
|
- !ruby/object:Gem::Dependency
|
367
350
|
name: jruby-openssl
|
368
|
-
prerelease: false
|
369
351
|
requirement: !ruby/object:Gem::Requirement
|
370
352
|
requirements:
|
371
|
-
- -
|
353
|
+
- - '>='
|
372
354
|
- !ruby/object:Gem::Version
|
373
355
|
version: '0'
|
374
|
-
none: false
|
375
356
|
type: :development
|
357
|
+
prerelease: false
|
376
358
|
version_requirements: !ruby/object:Gem::Requirement
|
377
359
|
requirements:
|
378
|
-
- -
|
360
|
+
- - '>='
|
379
361
|
- !ruby/object:Gem::Version
|
380
362
|
version: '0'
|
381
|
-
none: false
|
382
363
|
description: Bixby Common files/libs
|
383
364
|
email: chetan@pixelcop.net
|
384
365
|
executables: []
|
@@ -394,8 +375,13 @@ files:
|
|
394
375
|
- VERSION
|
395
376
|
- bixby-common.gemspec
|
396
377
|
- lib/bixby-common.rb
|
378
|
+
- lib/bixby-common/api/api_channel.rb
|
379
|
+
- lib/bixby-common/api/encrypted_json_request.rb
|
380
|
+
- lib/bixby-common/api/http_channel.rb
|
397
381
|
- lib/bixby-common/api/json_request.rb
|
398
382
|
- lib/bixby-common/api/json_response.rb
|
383
|
+
- lib/bixby-common/api/rpc_handler.rb
|
384
|
+
- lib/bixby-common/api/signed_json_request.rb
|
399
385
|
- lib/bixby-common/bixby.rb
|
400
386
|
- lib/bixby-common/command_response.rb
|
401
387
|
- lib/bixby-common/command_spec.rb
|
@@ -410,6 +396,12 @@ files:
|
|
410
396
|
- lib/bixby-common/util/jsonify.rb
|
411
397
|
- lib/bixby-common/util/log.rb
|
412
398
|
- lib/bixby-common/util/log/filtering_layout.rb
|
399
|
+
- lib/bixby-common/websocket/api_channel.rb
|
400
|
+
- lib/bixby-common/websocket/async_response.rb
|
401
|
+
- lib/bixby-common/websocket/client.rb
|
402
|
+
- lib/bixby-common/websocket/message.rb
|
403
|
+
- lib/bixby-common/websocket/request.rb
|
404
|
+
- lib/bixby-common/websocket/response.rb
|
413
405
|
- test/bixby_common_test.rb
|
414
406
|
- test/command_response_test.rb
|
415
407
|
- test/command_spec_test.rb
|
@@ -424,29 +416,25 @@ files:
|
|
424
416
|
- test/util/log_test.rb
|
425
417
|
homepage: http://github.com/chetan/bixby-common
|
426
418
|
licenses: []
|
419
|
+
metadata: {}
|
427
420
|
post_install_message:
|
428
421
|
rdoc_options: []
|
429
422
|
require_paths:
|
430
423
|
- lib
|
431
424
|
required_ruby_version: !ruby/object:Gem::Requirement
|
432
425
|
requirements:
|
433
|
-
- -
|
426
|
+
- - '>='
|
434
427
|
- !ruby/object:Gem::Version
|
435
|
-
hash: 3750030930207905689
|
436
|
-
segments:
|
437
|
-
- 0
|
438
428
|
version: '0'
|
439
|
-
none: false
|
440
429
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
441
430
|
requirements:
|
442
|
-
- -
|
431
|
+
- - '>='
|
443
432
|
- !ruby/object:Gem::Version
|
444
433
|
version: '0'
|
445
|
-
none: false
|
446
434
|
requirements: []
|
447
435
|
rubyforge_project:
|
448
|
-
rubygems_version:
|
436
|
+
rubygems_version: 2.0.3
|
449
437
|
signing_key:
|
450
|
-
specification_version:
|
438
|
+
specification_version: 4
|
451
439
|
summary: Bixby Common
|
452
440
|
test_files: []
|