radar-api 0.2.1 → 0.2.2
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/lib/radar/api/radar_types.rb +31 -2
- data/lib/radar/api/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 604194957e5aa441b5345700858545d6e0d37120
|
4
|
+
data.tar.gz: 61de441def51f0bfbdc0a0c2833c388551f6bc96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36a1196b0829a30d9927a2b902f74137b09bd5ee9ea245a21c54aa12cf12ff486a290107df13024ba464707d2d37893cefd52caf19b4b2955d086be734e5d991
|
7
|
+
data.tar.gz: ade786b1be750104ceaea3e26405ad847ff4ec2a80d85f7890585c46a95b49a39f2dc8b23cc18391eef4fe199dca81358e74058f27bac5d16fcfe7b9c46b1d44
|
data/Gemfile.lock
CHANGED
@@ -266,10 +266,36 @@ module Radar
|
|
266
266
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
267
267
|
NAME = 1
|
268
268
|
DATA = 2
|
269
|
+
STACK_NAME = 3
|
269
270
|
|
270
271
|
FIELDS = {
|
271
272
|
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
272
|
-
DATA => {:type => ::Thrift::Types::LIST, :name => 'data', :element => {:type => ::Thrift::Types::DOUBLE}}
|
273
|
+
DATA => {:type => ::Thrift::Types::LIST, :name => 'data', :element => {:type => ::Thrift::Types::DOUBLE}},
|
274
|
+
# Criado na versão 0.2.2.
|
275
|
+
#
|
276
|
+
# Só é necessário se <code>BarChart.options.stacked = true</code> e a intenção for agrupar as pilhas.
|
277
|
+
STACK_NAME => {:type => ::Thrift::Types::STRING, :name => 'stack_name', :optional => true}
|
278
|
+
}
|
279
|
+
|
280
|
+
def struct_fields; FIELDS; end
|
281
|
+
|
282
|
+
def validate
|
283
|
+
end
|
284
|
+
|
285
|
+
::Thrift::Struct.generate_accessors self
|
286
|
+
end
|
287
|
+
|
288
|
+
# Criado na versão 0.2.2.
|
289
|
+
class BarChartOptions
|
290
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
291
|
+
STACKED = 1
|
292
|
+
PERCENT = 2
|
293
|
+
Y_AXIS_TITLE = 4
|
294
|
+
|
295
|
+
FIELDS = {
|
296
|
+
STACKED => {:type => ::Thrift::Types::BOOL, :name => 'stacked', :default => false},
|
297
|
+
PERCENT => {:type => ::Thrift::Types::BOOL, :name => 'percent', :default => false},
|
298
|
+
Y_AXIS_TITLE => {:type => ::Thrift::Types::STRING, :name => 'y_axis_title', :optional => true}
|
273
299
|
}
|
274
300
|
|
275
301
|
def struct_fields; FIELDS; end
|
@@ -285,11 +311,14 @@ module Radar
|
|
285
311
|
TITLE = 1
|
286
312
|
SERIES = 2
|
287
313
|
CATEGORIES = 3
|
314
|
+
OPTIONS = 4
|
288
315
|
|
289
316
|
FIELDS = {
|
290
317
|
TITLE => {:type => ::Thrift::Types::STRING, :name => 'title'},
|
291
318
|
SERIES => {:type => ::Thrift::Types::LIST, :name => 'series', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::API::BarSeries}},
|
292
|
-
CATEGORIES => {:type => ::Thrift::Types::LIST, :name => 'categories', :element => {:type => ::Thrift::Types::STRING}}
|
319
|
+
CATEGORIES => {:type => ::Thrift::Types::LIST, :name => 'categories', :element => {:type => ::Thrift::Types::STRING}},
|
320
|
+
# Criado na versão 0.2.2.
|
321
|
+
OPTIONS => {:type => ::Thrift::Types::STRUCT, :name => 'options', :class => ::Radar::API::BarChartOptions}
|
293
322
|
}
|
294
323
|
|
295
324
|
def struct_fields; FIELDS; end
|
data/lib/radar/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radar-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
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-
|
11
|
+
date: 2014-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.5'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.5'
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -85,17 +85,17 @@ require_paths:
|
|
85
85
|
- lib
|
86
86
|
required_ruby_version: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- -
|
88
|
+
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: '0'
|
91
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- -
|
93
|
+
- - ">="
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.1
|
98
|
+
rubygems_version: 2.2.1
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: Radar API
|