radar-api 0.1.2 → 0.1.3
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.
- checksums.yaml +4 -4
- data/lib/radar/api/analyzer_controller.rb +52 -0
- data/lib/radar/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bfe9fa7da143dd55ae428ee6435de279b0bc076
|
4
|
+
data.tar.gz: d15e5d4d5b24c902a97b062728d790e128eab766
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6d2f75037949a8c05ceac5a992fe0eb606267ac8f2b1f77343be7e52cc1d4aaaf0445ad1785289c927cac7f2a1c513ef2e0fc68990b31a559e5a323f7151254
|
7
|
+
data.tar.gz: 755d9af23ced7583b2f28522a1ac9fb5f73c7880629c6d9243f6c3efdc4e1decfbfb9d3e826655f706ce2d43a71b328775b5aca7fe5c62bfeff57c763753212b
|
@@ -101,6 +101,20 @@ module Radar
|
|
101
101
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'result failed: unknown result')
|
102
102
|
end
|
103
103
|
|
104
|
+
def example_result(session_id)
|
105
|
+
send_example_result(session_id)
|
106
|
+
recv_example_result()
|
107
|
+
end
|
108
|
+
|
109
|
+
def send_example_result(session_id)
|
110
|
+
send_message('example_result', Example_result_args, :session_id => session_id)
|
111
|
+
end
|
112
|
+
|
113
|
+
def recv_example_result()
|
114
|
+
result = receive_message(Example_result_result)
|
115
|
+
return
|
116
|
+
end
|
117
|
+
|
104
118
|
def destroy_session(session_id)
|
105
119
|
send_destroy_session(session_id)
|
106
120
|
end
|
@@ -165,6 +179,13 @@ module Radar
|
|
165
179
|
write_result(result, oprot, 'result', seqid)
|
166
180
|
end
|
167
181
|
|
182
|
+
def process_example_result(seqid, iprot, oprot)
|
183
|
+
args = read_args(iprot, Example_result_args)
|
184
|
+
result = Example_result_result.new()
|
185
|
+
@handler.example_result(args.session_id)
|
186
|
+
write_result(result, oprot, 'example_result', seqid)
|
187
|
+
end
|
188
|
+
|
168
189
|
def process_destroy_session(seqid, iprot, oprot)
|
169
190
|
args = read_args(iprot, Destroy_session_args)
|
170
191
|
@handler.destroy_session(args.session_id)
|
@@ -436,6 +457,37 @@ module Radar
|
|
436
457
|
::Thrift::Struct.generate_accessors self
|
437
458
|
end
|
438
459
|
|
460
|
+
class Example_result_args
|
461
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
462
|
+
SESSION_ID = 1
|
463
|
+
|
464
|
+
FIELDS = {
|
465
|
+
SESSION_ID => {:type => ::Thrift::Types::I16, :name => 'session_id'}
|
466
|
+
}
|
467
|
+
|
468
|
+
def struct_fields; FIELDS; end
|
469
|
+
|
470
|
+
def validate
|
471
|
+
end
|
472
|
+
|
473
|
+
::Thrift::Struct.generate_accessors self
|
474
|
+
end
|
475
|
+
|
476
|
+
class Example_result_result
|
477
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
478
|
+
|
479
|
+
FIELDS = {
|
480
|
+
|
481
|
+
}
|
482
|
+
|
483
|
+
def struct_fields; FIELDS; end
|
484
|
+
|
485
|
+
def validate
|
486
|
+
end
|
487
|
+
|
488
|
+
::Thrift::Struct.generate_accessors self
|
489
|
+
end
|
490
|
+
|
439
491
|
class Destroy_session_args
|
440
492
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
441
493
|
SESSION_ID = 1
|
data/lib/radar/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radar-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- André Aizim Kelmanson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|