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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4fd4b955e78610227bb6db4e4328ac35748376f8
4
- data.tar.gz: 409a649229fac74707caddf2ecfc7a205dbd17d1
3
+ metadata.gz: 3aed2ec7ccdbc68debce4359634cc306d2174bed
4
+ data.tar.gz: a4b4f1f08fb53418005f7b9418b328a7c1246246
5
5
  SHA512:
6
- metadata.gz: 73c9b2b8bb7d5cfc05af8ba78b2e342cd0aa1d248d217f28c5f98b44da4bf5f1d18f53aeef9196194b586e884a6a3b46226077c6b8cbdb1e4bcff19889a61358
7
- data.tar.gz: 2e25b83f3bbe714621f3f6f56385ca5569d61a9aca1ddccea3315a9f6ee1fee1bd5f96ee5074db774d9bb1d2ad2a9b3bff32f23102321d4836f04adfe231cc3e
6
+ metadata.gz: 8a321ff6fe5b2edfc05ef24f6d8563a48d57be2e6708b31c089cba0921759c214181d8bfabcddd60b9fdaf9e425c0ecbdb6593098433d78b037bdfc826ca3844
7
+ data.tar.gz: a525e5f6d452a9cc5391bd0eb2e602ea59e98418122fd0aeaffc2c24a5a76c9aec6e8f2d81d2ede4f36015992e53582e1d6beebc36c6784202c97cece46479f0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- radar-api (0.7.0)
4
+ radar-api (0.8.0)
5
5
  thrift (~> 0.9.0)
6
6
 
7
7
  GEM
@@ -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
@@ -4,5 +4,6 @@ require 'radar/api/fund_service'
4
4
  require 'radar/api/security_service'
5
5
  require 'radar/api/fund_service'
6
6
  require 'radar/api/index_service'
7
+ require 'radar/api/calendar_service'
7
8
 
8
9
  Radar::API = Radar::Api
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.7.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-06 00:00:00.000000000 Z
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