chartkick 5.1.1 → 5.1.2

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: f722bcabef61aa9911ea2f6aab9d84712f605caa534cbb68f9360c61a97c2313
4
- data.tar.gz: 579c293a43b47a61013e4d9a79017ef97494a20a92aacb4c9ad9e68315c567bc
3
+ metadata.gz: c02c167e89a1d4b519eef7efd26bba1cdd94454058d5c1c172263cd338c854da
4
+ data.tar.gz: 54537bba9415ee70f1f0b081c5614348c37a75f3220aa114061486b6ee170dda
5
5
  SHA512:
6
- metadata.gz: 42ce28d82ee1fa7ffde1cf4b9f4face510022ee830d26a6ad2934b2dd23645aad5bd75ba91c9cce3bbd31cb8f5c8705266c538522874231c0b4f71480c06690d
7
- data.tar.gz: dc9265a194aa04deb3c7c059c25830b8e2bf0aae19fe4928c0ee027f215fec67949a3da000030a3e50b5b247298af860f15f724da3148d40c6e33102560fbacc
6
+ metadata.gz: e6109c2e24f9dc17e48769d88da714c38e463c49379af85361d4c560e79369208e4b03282ed41be7aab0bc3fd5af29d15ea9af697caf347d8c8b9b76afeb50b1
7
+ data.tar.gz: daca8c4bb5c24e889a9feaa542d2088ec8b62b41658179bbbc4ad6afe67e7eecc3e9d956e7dc560596b3c2cae10a286b5304929debfa0db35c6acd0b7ef09dd9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 5.1.2 (2024-10-29)
2
+
3
+ - Updated Chart.js to 4.4.6
4
+
1
5
  ## 5.1.1 (2024-10-16)
2
6
 
3
7
  - Updated Chart.js to 4.4.5
@@ -379,3 +383,15 @@ Breaking changes
379
383
  ## 0.0.4 (2013-05-13)
380
384
 
381
385
  - Fix for `Uncaught ReferenceError: Chartkick is not defined` when chartkick.js is included in the `<head>`
386
+
387
+ ## 0.0.3 (2013-05-12)
388
+
389
+ - Improved error messages
390
+
391
+ ## 0.0.2 (2013-05-10)
392
+
393
+ - Added `min` and `max` options
394
+
395
+ ## 0.0.1 (2013-05-07)
396
+
397
+ - First release
@@ -1,3 +1,3 @@
1
1
  module Chartkick
2
- VERSION = "5.1.1"
2
+ VERSION = "5.1.2"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Chart.js v4.4.5
2
+ * Chart.js v4.4.6
3
3
  * https://www.chartjs.org
4
4
  * (c) 2024 Chart.js Contributors
5
5
  * Released under the MIT License
@@ -4496,9 +4496,11 @@
4496
4496
  if (value === null) {
4497
4497
  return;
4498
4498
  }
4499
+ var found = false;
4499
4500
  for (i = 0, ilen = keys.length; i < ilen; ++i) {
4500
4501
  datasetIndex = +keys[i];
4501
4502
  if (datasetIndex === dsIndex) {
4503
+ found = true;
4502
4504
  if (options.all) {
4503
4505
  continue;
4504
4506
  }
@@ -4509,6 +4511,9 @@
4509
4511
  value += otherValue;
4510
4512
  }
4511
4513
  }
4514
+ if (!found && !options.all) {
4515
+ return 0;
4516
+ }
4512
4517
  return value;
4513
4518
  }
4514
4519
  function convertObjectDataToArray(data, meta) {
@@ -10397,7 +10402,7 @@
10397
10402
  }
10398
10403
  return false;
10399
10404
  }
10400
- var version = "4.4.5";
10405
+ var version = "4.4.6";
10401
10406
  var KNOWN_POSITIONS = ['top', 'bottom', 'left', 'right', 'chartArea'];
10402
10407
  function positionIsHorizontal(position, axis) {
10403
10408
  return position === 'top' || position === 'bottom' || KNOWN_POSITIONS.indexOf(position) === -1 && axis === 'x';
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chartkick
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.1
4
+ version: 5.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-16 00:00:00.000000000 Z
11
+ date: 2024-10-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: andrew@ankane.org