chartkick 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of chartkick might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 00b03d10b24d6e36edf3061bdd594b83b831776f
4
- data.tar.gz: eb2175cda000c9ed560f9b28dc08fd3eb9fd5b19
3
+ metadata.gz: f267372477ee8ee07e58cfd1d8aa238f46852804
4
+ data.tar.gz: 9d72a752e72eb9cbc2cbdc5b9a78864f1d889e5b
5
5
  SHA512:
6
- metadata.gz: 133267fc6a6a015495905656bac3be481ad205ed6aa81a5b7bdd68523617b798a72f3e2aac5f62834f62382c63d0462a28f1b1b934239db955cf6abfbd5f3999
7
- data.tar.gz: c7ebf3c44d41a69f099e5a46cd81f21ae501b99c7a5660d4e3a082ef87f01d7cbc9efd7fe393a8f1499b85458197ce4d76d2d1b7b52b9084bcebe4f3be96d718
6
+ metadata.gz: 3dded5fa96105623a3e52cfc18c6ad73cca64698583388da68df0bf30a2239f0c382c724ffd2a95acdae2207c5bb5db357c8cf8cba54aba88e37a5475efe2fe5
7
+ data.tar.gz: a71a15aa62707face8f1a3f84ee826e923ba6f6a8f59582e00d921daf0e9fda4930405b0ec214cdd20f3a1a1e9bb2f4e4115db793e65cfad5f537b2d284c0adc
@@ -1,3 +1,8 @@
1
+ ## 1.3.1
2
+
3
+ - Fixed blank screen bug
4
+ - Fixed language support
5
+
1
6
  ## 1.3.0
2
7
 
3
8
  - Added timelines
data/README.md CHANGED
@@ -51,7 +51,11 @@ Geo chart
51
51
  Timeline
52
52
 
53
53
  ```erb
54
- <%= timeline [["Washington", "1789-04-29", "1797-03-03"], ["Adams", "1797-03-03", "1801-03-03"]] %>
54
+ <%= timeline [
55
+ ["Washington", "1789-04-29", "1797-03-03"],
56
+ ["Adams", "1797-03-03", "1801-03-03"],
57
+ ["Jefferson", "1801-03-03", "1809-03-03"]
58
+ ] %>
55
59
  ```
56
60
 
57
61
  Multiple series
@@ -11,6 +11,7 @@
11
11
  (function (window) {
12
12
  'use strict';
13
13
 
14
+ var config = window.Chartkick || {};
14
15
  var Chartkick, ISO8601_PATTERN, DECIMAL_SEPARATOR, adapters = [];
15
16
 
16
17
  // helpers
@@ -403,11 +404,11 @@
403
404
  var loaded = {};
404
405
  var callbacks = [];
405
406
 
406
- var runCallbacks = function() {
407
+ var runCallbacks = function () {
407
408
  var cb, call;
408
409
  for (var i = 0; i < callbacks.length; i++) {
409
410
  cb = callbacks[i];
410
- call = (cb.pack == "corechart" && isFunction(google.visualization.LineChart)) || (cb.pack == "timeline" && isFunction(google.visualization.Timeline))
411
+ call = google.visualization && ((cb.pack == "corechart" && google.visualization.LineChart) || (cb.pack == "timeline" && google.visualization.Timeline))
411
412
  if (call) {
412
413
  cb.callback();
413
414
  callbacks.splice(i, 1);
@@ -416,8 +417,6 @@
416
417
  }
417
418
  };
418
419
 
419
- google.setOnLoadCallback(runCallbacks);
420
-
421
420
  var waitForLoaded = function (pack, callback) {
422
421
  if (!callback) {
423
422
  callback = pack;
@@ -430,7 +429,16 @@
430
429
  runCallbacks();
431
430
  } else {
432
431
  loaded[pack] = true;
433
- google.load("visualization", "1.0", {"packages": [pack]});
432
+
433
+ // https://groups.google.com/forum/#!topic/google-visualization-api/fMKJcyA2yyI
434
+ var loadOptions = {
435
+ packages: [pack],
436
+ callback: runCallbacks
437
+ };
438
+ if (config.language) {
439
+ loadOptions.language = config.language;
440
+ }
441
+ google.load("visualization", "1", loadOptions);
434
442
  }
435
443
  };
436
444
 
@@ -1,3 +1,3 @@
1
1
  module Chartkick
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
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: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-29 00:00:00.000000000 Z
11
+ date: 2014-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler