glimmer-libui-cc-graphs_and_charts 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: aefbc0c06b3968b4e633e3d923cf886e64421d5debea0e0e8a2376a54b45df86
4
- data.tar.gz: beb20ca4b10e5ff0187becd7e1d3aeb087033a35093ea932dcde4a4b980ae22f
3
+ metadata.gz: fa1f107626b30af5f1158617ad578b5fcd82663700f60f36d581489026c7d5c8
4
+ data.tar.gz: 3c38aab6b233810235a2ad87e2ce78a0bc58def745d9a72c1c9a27243b9be140
5
5
  SHA512:
6
- metadata.gz: 619d28542b4a45eaa32b1f71e912ca24e11ba48ececef50bb7a5503ee0854a17591df78b2e6202f90625b747947b661f5a247e8eeb4c4fdf6ef1cf7ae8bbce6f
7
- data.tar.gz: 1d48203f5a1a03e0c84eb60301085bd89c4cf589a41214b825d07ea22afa2a910fc331f80a62802e1c7e2b2d4f29b0daab63150da1cbb8c48eed76f27926b331
6
+ metadata.gz: 131eddeb423e5b7c2194cddd21c7ce828b63dd6554f05c6377cf4960057bd30a5535ae705477e95d9b72782d7d355090e75ad08acad08f84bfa48ac5eeeafe17
7
+ data.tar.gz: bbe9afaafbc760c80f73c59979f9354e9826129310b7122331e566dc24039ce5525b3968239c085ffc369b06a233a63d33ca0aa7f91a8c9f9560fa7f7783d248
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.1.4
4
+
5
+ - Fix issue with crashing at `lib/glimmer/view/line_graph.rb:243:in y_value_max_for_all_lines': undefined method max for nil:NilClass`
6
+
3
7
  ## 0.1.3
4
8
 
5
9
  - Fix issue with crashing if lines had points that did not share the same x-axis values as opposed to all points in all lines falling on the same x-axis values
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Graphs and Charts 0.1.3 (Alpha)
1
+ # Graphs and Charts 0.1.4 (Alpha)
2
2
  ## [Glimmer DSL for LibUI](https://github.com/AndyObtiva/glimmer-dsl-libui) Custom Controls
3
3
  [![Gem Version](https://badge.fury.io/rb/glimmer-libui-cc-graphs_and_charts.svg)](http://badge.fury.io/rb/glimmer-libui-cc-graphs_and_charts)
4
4
  [![Join the chat at https://gitter.im/AndyObtiva/glimmer](https://badges.gitter.im/AndyObtiva/glimmer.svg)](https://gitter.im/AndyObtiva/glimmer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
@@ -12,7 +12,7 @@ Graphs and Charts (Custom Controls) for [Glimmer DSL for LibUI](https://github.c
12
12
  Add this line to Bundler `Gemfile`:
13
13
 
14
14
  ```ruby
15
- gem 'glimmer-libui-cc-graphs_and_charts', '~> 0.1.3'
15
+ gem 'glimmer-libui-cc-graphs_and_charts', '~> 0.1.4'
16
16
  ```
17
17
 
18
18
  Run:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: glimmer-libui-cc-graphs_and_charts 0.1.3 ruby lib
5
+ # stub: glimmer-libui-cc-graphs_and_charts 0.1.4 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "glimmer-libui-cc-graphs_and_charts".freeze
9
- s.version = "0.1.3".freeze
9
+ s.version = "0.1.4".freeze
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
@@ -239,7 +239,7 @@ module Glimmer
239
239
  def y_value_max_for_all_lines
240
240
  if @y_value_max_for_all_lines.nil?
241
241
  line_visible_y_values = lines.map { |line| line[:y_values][0, max_visible_point_count(line)] }
242
- all_visible_y_values = line_visible_y_values.reduce(:+)
242
+ all_visible_y_values = line_visible_y_values.reduce(:+) || []
243
243
  @y_value_max_for_all_lines = all_visible_y_values.max.to_f
244
244
  end
245
245
  @y_value_max_for_all_lines
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-libui-cc-graphs_and_charts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Maleh