gruff 0.28.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26b395dec8d012e9a7cee4013081d689b7decd86aeda0dc1ffd8fc66c6e71db6
4
- data.tar.gz: 6cc57c03116dff4ba0a0c6e8adb0f36d247431bba05e292bb6d422a8b9d1b1c5
3
+ metadata.gz: 79572698484a762e000b269890c2575523d452453fc6a00d5e6302acae126c89
4
+ data.tar.gz: 06a6b5e010af0c354bbc9547b594ea6e3412f3f30662d985c3bcb7143cb92fbf
5
5
  SHA512:
6
- metadata.gz: 7b155ccb54f177475c81c1176401fd95147152300e48da0c96951d8767bf8b861cbc7a4f2e27da32e727cb64e1f9fe31b5fa7a8bee49d2747e0a3e883a72a636
7
- data.tar.gz: c2ec8dd6104836dfa234a8300c0e1ba40e212b2faac3c77ec504fd9db7d01408a75bbe486a487a3744965c54487c114961f5c58f79ca66c8e974b3dd4b135d05
6
+ metadata.gz: 0c557571a807ac8157c8f43401514374a052e61c1b22482169c9baf8b5b1c686b715fe222bd7d838118e33e536cdf2cf4639c75a0e5d21c8ab268993dc457ef8
7
+ data.tar.gz: 22ccb5f2c70327d30c8de0cafb13d9f1ec05d13b53cfef37a27e9a3d23b66f8009d13c90dc12425dcf460bf518d84eca2cff3140028629916be70964af928592
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.29.0
4
+
5
+ - Line graph: reset previous point between dataxy series to prevent unwanted poly‑line connection (#665)
6
+
3
7
  ## 0.28.0
4
8
 
5
9
  - Fix Gruff::Line to prevent unknown lines drawing (#664)
data/lib/gruff/line.rb CHANGED
@@ -229,9 +229,9 @@ private
229
229
 
230
230
  stroke_width = @line_width || clip_value_if_greater_than(@columns / (store.norm_data.first.y_points.size * 4.0), 5.0)
231
231
  circle_radius = @dot_radius || clip_value_if_greater_than(@columns / (store.norm_data.first.y_points.size * 2.5), 5.0)
232
- prev_x = prev_y = nil
233
232
 
234
233
  store.norm_data.each do |data_row|
234
+ prev_x = prev_y = nil
235
235
  data_row.coordinates.each_with_index do |(x_data, y_data), index|
236
236
  new_x = begin
237
237
  if x_data.nil?
data/lib/gruff/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # rbs_inline: enabled
4
4
 
5
5
  module Gruff
6
- VERSION = '0.28.0'
6
+ VERSION = '0.29.0'
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gruff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0
4
+ version: 0.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoffrey Grosenbach