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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10f2f724f30721a3979467ffa4d4e5b488feb5ca
4
- data.tar.gz: 3f5e15c5c580042321e44e08d3a151002c32bdfa
3
+ metadata.gz: 604194957e5aa441b5345700858545d6e0d37120
4
+ data.tar.gz: 61de441def51f0bfbdc0a0c2833c388551f6bc96
5
5
  SHA512:
6
- metadata.gz: 08775ddf183fefd32260ea0fc7a6a6207c0ab37d3da91b03bde408e2d43d053b85a47d847fdd23bbe573181cfd7e21e1a3e1d437d92a43d4b2e06f28e083ed02
7
- data.tar.gz: 5650b38a85cc0eaf984f818a7ad726241d27b492f1f4d6e60a7c0c7391e95a00dba7c4e572ee7ca8668e72c103cd0b2db2e5d7948837d483b765a61e2226ee9c
6
+ metadata.gz: 36a1196b0829a30d9927a2b902f74137b09bd5ee9ea245a21c54aa12cf12ff486a290107df13024ba464707d2d37893cefd52caf19b4b2955d086be734e5d991
7
+ data.tar.gz: ade786b1be750104ceaea3e26405ad847ff4ec2a80d85f7890585c46a95b49a39f2dc8b23cc18391eef4fe199dca81358e74058f27bac5d16fcfe7b9c46b1d44
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- radar-api (0.1.5)
4
+ radar-api (0.2.2)
5
5
  thrift (= 0.9.1)
6
6
 
7
7
  GEM
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Radar
2
2
  module API
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
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.1
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-08-04 00:00:00.000000000 Z
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.11
98
+ rubygems_version: 2.2.1
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: Radar API