chartkick 2.3.0 → 2.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: 4c58fc2c0725fcf5226fd394c02d7e7a08eed251
4
- data.tar.gz: 4809227124c7b7fa8bb3e1907859e65d7476746c
3
+ metadata.gz: 9c337ade357df03e6f2696c9a3a0286f680be8a0
4
+ data.tar.gz: ad699b7126c8453c7940c2856a4fb5b364b40ac7
5
5
  SHA512:
6
- metadata.gz: a5cfd768e87a01679cb843a18365f226a9e7014ee942606a8cdab144c51b05e315d9be2fab068668aad1a55022ce9d67bad30254dd9e7445da7e0f634a38fb0b
7
- data.tar.gz: d7430b45f2d189d6e711cb9eefbf5e4edc4939200bcc0ba3a813aed1da0e24f47436a38c8c8fc64c8c86dc958be4a71c65e823c2a61dd8dc2d23dba7d58fd7c1
6
+ metadata.gz: 338c912c54d819b763c75b9a4285b8053db75acd4e25d2f92107f43db5fc4adcf6b67594d623018346985c101eec99b9ee14c94d018c66d4a491b1c6273ac819
7
+ data.tar.gz: 0f860d947e6d76893b6c591392ca3c638e06e061441a89bfc0a017f86dbdb7befc2ccd44208c19de5b68e310e5a2ba4f4ebf931434dab96f234c65700db4dca5
File without changes
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.3.1
2
+
3
+ - Updated Chartkick.js to 2.3.1
4
+
1
5
  ## 2.3.0
2
6
 
3
7
  - Fixed deep merge error for non-Rails apps
data/CONTRIBUTING.md CHANGED
@@ -21,10 +21,11 @@ Think you’ve discovered an issue?
21
21
  gem "chartkick", github: "ankane/chartkick"
22
22
  ```
23
23
 
24
- If the above steps don’t help, create an issue.
24
+ If the above steps don’t help, create an issue. Include:
25
25
 
26
- - Include the JavaScript rendered by Chartkick.
27
- - For exceptions, include the complete backtrace.
26
+ - Detailed steps to reproduce
27
+ - JavaScript rendered by Chartkick
28
+ - Complete backtraces for exceptions
28
29
 
29
30
  ## Pull Requests
30
31
 
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 Andrew Kane
1
+ Copyright (c) 2013-2018 Andrew Kane
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -224,7 +224,7 @@ You can pass options directly to the charting library with:
224
224
  <%= line_chart data, library: {backgroundColor: "#eee"} %>
225
225
  ```
226
226
 
227
- See the documentation for [Chart.js](http://www.chartjs.org/docs/), [Google Charts](https://developers.google.com/chart/interactive/docs/gallery), and [Highcharts](http://api.highcharts.com/highcharts) for more info.
227
+ See the documentation for [Chart.js](http://www.chartjs.org/docs/), [Google Charts](https://developers.google.com/chart/interactive/docs/gallery), and [Highcharts](https://api.highcharts.com/highcharts) for more info.
228
228
 
229
229
  ### Global Options
230
230
 
@@ -310,7 +310,9 @@ gem "chartkick"
310
310
 
311
311
  Next, choose your charting library.
312
312
 
313
- **Note:** In the instructions below, `application.js` must be included **before** the helper methods in your views, unless using the `:content_for` option.
313
+ ### Charting Libraries
314
+
315
+ **Note:** In the instructions below, `application.js` must be included **before** the charts in your views, unless using the `:content_for` option.
314
316
 
315
317
  #### Chart.js
316
318
 
@@ -337,7 +339,7 @@ In your views, before `application.js`, add:
337
339
 
338
340
  #### Highcharts
339
341
 
340
- Download [highcharts.js](https://code.highcharts.com/highcharts.js) into `vendor/assets/javascripts`.
342
+ Download [highcharts.js](https://code.highcharts.com/highcharts.js) into `vendor/assets/javascripts` (or use `yarn add highcharts` in Rails 5.1+).
341
343
 
342
344
  In `application.js`, add:
343
345
 
@@ -348,6 +350,35 @@ In `application.js`, add:
348
350
 
349
351
  Works with Highcharts 2.1+
350
352
 
353
+ ### Webpacker
354
+
355
+ For Webpacker, use Yarn to install the JavaScript libraries:
356
+
357
+ ```sh
358
+ yarn add chartkick
359
+ yarn add chart.js # or highcharts
360
+ ```
361
+
362
+ Then include them in your pack.
363
+
364
+ ```es6
365
+ import Chartkick from "chartkick";
366
+ window.Chartkick = Chartkick;
367
+
368
+ // for Chart.js
369
+ import Chart from "chart.js";
370
+ window.Chart = Chart;
371
+
372
+ // for Highcharts
373
+ import Highcharts from "highcharts";
374
+ window.Highcharts = Highcharts;
375
+
376
+ // for Google Charts
377
+ // just include https://www.gstatic.com/charts/loader.js in your views
378
+ ```
379
+
380
+ You pack must be included **before** the charts in your views, unless using the `:content_for` option.
381
+
351
382
  ### Sinatra and Padrino
352
383
 
353
384
  You must include `chartkick.js` manually. [Download it here](https://raw.githubusercontent.com/ankane/chartkick/master/vendor/assets/javascripts/chartkick.js)
@@ -459,7 +490,7 @@ Chartkick uses [iso8601.js](https://github.com/Do/iso8601.js) to parse dates and
459
490
 
460
491
  View the [changelog](https://github.com/ankane/chartkick/blob/master/CHANGELOG.md)
461
492
 
462
- Chartkick follows [Semantic Versioning](http://semver.org/)
493
+ Chartkick follows [Semantic Versioning](https://semver.org/)
463
494
 
464
495
  ## Contributing
465
496
 
@@ -1,3 +1,3 @@
1
1
  module Chartkick
2
- VERSION = "2.3.0"
2
+ VERSION = "2.3.1"
3
3
  end