chartkick 4.0.1 → 4.0.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
  SHA256:
3
- metadata.gz: 4417917bb3b1cfdd1162611420f28894429668c15d9388ca21e38b4260450001
4
- data.tar.gz: 22eba7da8a6e8138501d03ded1e729066fcd79cbc23a33e1ff140dabdac2ec66
3
+ metadata.gz: 6c7fa77eaa5945f84a46d2482bcdf7d5472d76a1f64e658b5703ca94af159b5c
4
+ data.tar.gz: 6a6ba76b72c5f5a1f19e5fad672221c4dd5ac9939f89be4550b39cc87175b35d
5
5
  SHA512:
6
- metadata.gz: a3ab5015141fca35725c64b1710c5497323be41ee4a60c7e7f35b415167945af818acc9616b452fcc1f1959800484a34cb55e24da34309c75154419c0357f040
7
- data.tar.gz: ee41fb30a428ebb1fce9fc827713107c208694a39755253ee0fff8014704f5a5650d06619ca5f3f826a95c6fcfccc00bc6f2cc4c25eeaed5c521eefc26be7872
6
+ metadata.gz: b316a62c2fa403bb4fb02a8340360366431d3c5ffd198b52f055cc710d176d745d660283df955aee40e45b9f99d340e935eb3f2aa191e98770258858938534e5
7
+ data.tar.gz: 061df713e35e3bda787b12a2567f7a38980979fc4c696268a9095db13f1de98ea0dbdea66c0b727c3f596c3d2c4a27dc7d464a24ca60956a0c6e14d9c4038536
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 4.0.2 (2021-04-06)
2
+
3
+ - Updated Chartkick.js to 4.0.2
4
+
1
5
  ## 4.0.1 (2021-04-06)
2
6
 
3
7
  - Fixed error with Uglifier
@@ -1,3 +1,3 @@
1
1
  module Chartkick
2
- VERSION = "4.0.1"
2
+ VERSION = "4.0.2"
3
3
  end
@@ -2,7 +2,7 @@
2
2
  * Chartkick.js
3
3
  * Create beautiful charts with one line of JavaScript
4
4
  * https://github.com/ankane/chartkick.js
5
- * v4.0.1
5
+ * v4.0.2
6
6
  * MIT License
7
7
  */
8
8
 
@@ -92,8 +92,8 @@
92
92
  // try our best to get the str into iso8601
93
93
  // TODO be smarter about this
94
94
  var str = n.replace(/ /, "T").replace(" ", "").replace("UTC", "Z");
95
- // use Date.parse for str since it returns NaN instead of invalid date
96
- n = Date.parse(str) || new Date(n);
95
+ // Date.parse returns milliseconds if valid and NaN if invalid
96
+ n = new Date(Date.parse(str) || n);
97
97
  }
98
98
  }
99
99
  }
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: 4.0.1
4
+ version: 4.0.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: 2021-04-06 00:00:00.000000000 Z
11
+ date: 2021-04-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: andrew@ankane.org