radar-api 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/gen/radar/api/calendar_service.rb +86 -0
- data/lib/radar-api.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3aed2ec7ccdbc68debce4359634cc306d2174bed
|
4
|
+
data.tar.gz: a4b4f1f08fb53418005f7b9418b328a7c1246246
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a321ff6fe5b2edfc05ef24f6d8563a48d57be2e6708b31c089cba0921759c214181d8bfabcddd60b9fdaf9e425c0ecbdb6593098433d78b037bdfc826ca3844
|
7
|
+
data.tar.gz: a525e5f6d452a9cc5391bd0eb2e602ea59e98418122fd0aeaffc2c24a5a76c9aec6e8f2d81d2ede4f36015992e53582e1d6beebc36c6784202c97cece46479f0
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,86 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.3)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'radar/api/data_server_types'
|
9
|
+
|
10
|
+
module Radar
|
11
|
+
module Api
|
12
|
+
module CalendarService
|
13
|
+
class Client
|
14
|
+
include ::Thrift::Client
|
15
|
+
|
16
|
+
def advance(calendar, date, n)
|
17
|
+
send_advance(calendar, date, n)
|
18
|
+
return recv_advance()
|
19
|
+
end
|
20
|
+
|
21
|
+
def send_advance(calendar, date, n)
|
22
|
+
send_message('advance', Advance_args, :calendar => calendar, :date => date, :n => n)
|
23
|
+
end
|
24
|
+
|
25
|
+
def recv_advance()
|
26
|
+
result = receive_message(Advance_result)
|
27
|
+
return result.success unless result.success.nil?
|
28
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'advance failed: unknown result')
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
class Processor
|
34
|
+
include ::Thrift::Processor
|
35
|
+
|
36
|
+
def process_advance(seqid, iprot, oprot)
|
37
|
+
args = read_args(iprot, Advance_args)
|
38
|
+
result = Advance_result.new()
|
39
|
+
result.success = @handler.advance(args.calendar, args.date, args.n)
|
40
|
+
write_result(result, oprot, 'advance', seqid)
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
|
45
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
46
|
+
|
47
|
+
class Advance_args
|
48
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
49
|
+
CALENDAR = 1
|
50
|
+
DATE = 2
|
51
|
+
N = 3
|
52
|
+
|
53
|
+
FIELDS = {
|
54
|
+
CALENDAR => {:type => ::Thrift::Types::STRING, :name => 'calendar'},
|
55
|
+
DATE => {:type => ::Thrift::Types::I64, :name => 'date'},
|
56
|
+
N => {:type => ::Thrift::Types::I16, :name => 'n'}
|
57
|
+
}
|
58
|
+
|
59
|
+
def struct_fields; FIELDS; end
|
60
|
+
|
61
|
+
def validate
|
62
|
+
end
|
63
|
+
|
64
|
+
::Thrift::Struct.generate_accessors self
|
65
|
+
end
|
66
|
+
|
67
|
+
class Advance_result
|
68
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
69
|
+
SUCCESS = 0
|
70
|
+
|
71
|
+
FIELDS = {
|
72
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'}
|
73
|
+
}
|
74
|
+
|
75
|
+
def struct_fields; FIELDS; end
|
76
|
+
|
77
|
+
def validate
|
78
|
+
end
|
79
|
+
|
80
|
+
::Thrift::Struct.generate_accessors self
|
81
|
+
end
|
82
|
+
|
83
|
+
end
|
84
|
+
|
85
|
+
end
|
86
|
+
end
|
data/lib/radar-api.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.
|
4
|
+
version: 0.8.0
|
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: 2017-02-
|
11
|
+
date: 2017-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,6 +66,7 @@ files:
|
|
66
66
|
- README.md
|
67
67
|
- Rakefile
|
68
68
|
- gen/radar/api/analyzer_controller.rb
|
69
|
+
- gen/radar/api/calendar_service.rb
|
69
70
|
- gen/radar/api/common_constants.rb
|
70
71
|
- gen/radar/api/common_types.rb
|
71
72
|
- gen/radar/api/data_server_constants.rb
|